Android Emulator - Bluetooth Support

5,309 views
Skip to first unread message

prabhakaran M.C

unread,
Mar 2, 2009, 4:53:14 PM3/2/09
to android-platform
Hello,

I am trying to get Bluetooth support in Android emulator and I need
some inputs regarding that.

1. To enable the Bluetooth module in Android emulator, just We need to
create a build with Bluetooth module enabled and map those image files
to emulator.?

2. Android emulator provides UART emulation? If so, can we use it with
UART Bluetooth dongle?

3.For using UART emulation and UART Bluetooth dongle, do we need to do
any configuration or code changes? If so, Please give some insight to
it.

Thanks in Advance.!!.

Thanks,
Prabhakaran.

David Turner

unread,
Mar 3, 2009, 8:19:21 AM3/3/09
to android-...@googlegroups.com
On Mon, Mar 2, 2009 at 10:53 PM, prabhakaran M.C <mcprab...@gmail.com> wrote:

Hello,

 I am trying to get Bluetooth support in Android emulator and I need
some inputs regarding that.

1. To enable the Bluetooth module in Android emulator, just We need to
create a build with Bluetooth module enabled and map those image files
to emulator.?

This will not work, there is no bluetooth hardware emulation in the emulator, so even if you
build a kernel image with such support, it is very unlikely that it would work.
 

2. Android emulator provides UART emulation? If so, can we use it with
UART Bluetooth dongle?

You can do that, but the only thing that will be seen is a serial port in the emulated
system. It is unlikely to be sufficient to get what you need.
 

3.For using UART emulation and UART Bluetooth dongle, do we need to do
any configuration or code changes? If so, Please give some insight to
it.

Yes, drastic changes to the system need to be performed to do that. Also one
need to handle Bluetooth access/management on all of Windows / Linux / Darwin
to have this work flawlessly. Whether a normal application running on these platforms
can access all the required information to fully bridge Bluetooth is an open question
that I can't answer at the moment.

In short, Bluetooth emulation is not planned for the immediate future, though as
always patches are welcome.
 

Jackson Fan

unread,
Mar 3, 2009, 9:27:19 AM3/3/09
to android-platform
There is a way to do this over Ubuntu bare-metal mode (instead of
VMware version). General idea is to adding USB Host support in Android
SDK as following:
A real USB device <-(plugin)-> Ubuntu machine <-(grab into qemu)->
qemu <-(plug in)-> virtual OHCI <-(recognized by)-> Andorid kernel <-
(add into goldfish) -> device in Andoird OS

Yes, there will be a lot of code changes and a few hacks. Someone ever
tried, and performance is a challenge because Bluetooth dongle is used
as USB device under asynchronous mode (must be proceeded
efficiently).

The work for windows emulator is headache because no easy way to map
the Win32 driver into emulator's kernel.

On Mar 3, 9:19 pm, David Turner <di...@android.com> wrote:
Reply all
Reply to author
Forward
0 new messages