Closed Bug 972274 Opened 10 years ago Closed 6 years ago

B2G Emulator: Suport Bluetooth host HCI pass through

Categories

(Firefox OS Graveyard :: Emulator, enhancement)

x86_64
Linux
enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: vicamo, Assigned: vicamo)

References

Details

Attachments

(2 files)

It would be nice if we can use emulator to connect a physical bluetooth dungle and analyze its packet flow.

To compile emulator with CONFIG_BLUEZ, libbluetooth-dev is required in the host environment.  Besides, due to the same problem we have in bug 897727, Debian libbluetooth-dev and libbluetooth-dev:i386 conflicts with each other, we have to trick Debian a little bit to have "libbluetooth.so" symlinks of both variants.
Summary: B2G Emulator: Suport host HCI pass through → B2G Emulator: Suport Bluetooth host HCI pass through
Working branch: https://github.com/vicamo/b2g_platform_external_qemu/tree/bugzilla/972274/bluetooth-host-hci-pass-through

To have a glance over current status:

1) (Debian Sid) install libbluetooth-dev, libbluetooth3:i386
2) ln -s /usr/lib/i386-linux-gnu/libbluetooth.so.3.13.0 /usr/lib/i386-linux-gnu/libbluetooth.so
3) checkout working HEAD in external/qemu
4) recompile emulator
5) edit ${B2G_ROOT}/run-emulator.sh to include: TAIL_ARGS="-bt hci,host"
6) ./run-emulator.sh
Attached file adb-logcat.txt
Boot up logcat with Bluetooth default enabled.
Attached file hcidump.log
Boot up hcidump with Bluetooth default enabled.
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: