Hey guys I’m trying to use BLE on my duo-s but I’m running into this issue with the standard V1.1.2 firmware image: https://github.com/milkv-duo/duo-buildroot-sdk/releases/download/Duo-V1.1.2/milkv-duos-sd-v1.1.2-2024-0801.img.zip
Trying bluetoothctl to configure a service gives absolutely no output and does not open the config menu as expected:
[root@milkv-duo]~# bluetoothctl
[root@milkv-duo]~#
hciconfig to check for bluetooth interface shows nothing:
[root@milkv-duo]~# hciconfig -a
[root@milkv-duo]~#
I don’t see anything alarming in dmesg on boot. I’m wondering if anyone else here can reproduce the issue.
Also I’ll note the wifi is working perfectly. After connecting with wpa_supplicant I can ping/curl fine.
Thanks!
1 Like
After some digging I figured out how to properly set up the hci device:
/usr/bin/hciattach -s 1500000 /dev/ttyS4 any 1500000 flow nosleep
Now the device appears properly and can scan/ping with hcitool:
[root@milkv-duo]~# hciconfig -a
hci0: Type: Primary Bus: UART
BD Address: 0B:3B:22:AC:88:20 ACL MTU: 1021:9 SCO MTU: 255:4
UP RUNNING PSCAN ISCAN
RX bytes:18609 acl:16 sco:0 events:540 errors:0
TX bytes:1669 acl:16 sco:0 commands:100 errors:0
Features: 0xbf 0x2e 0x4d 0xfe 0xd8 0x3f 0x7b 0x87
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV3
Link policy: RSWITCH SNIFF
Link mode: SLAVE ACCEPT
Name: 'AIC8820'
Class: 0x000000
Service Classes: Unspecified
Device Class: Miscellaneous,
HCI Version: (0xd) Revision: 0xb
LMP Version: (0xd) Subversion: 0xb
Manufacturer: not assigned (2875)
However, I’m still not able to use bluetoothctl
. Pretty sure this is because the bluetoothd service is not running. When I try starting it manually it immediately exits:
[root@milkv-duo]~# /usr/libexec/bluetooth/bluetoothd -d -n
bluetoothd[442]: Bluetooth daemon 5.58
bluetoothd[442]: src/adapter.c:adapter_init() sending read version command
bluetoothd[442]: Starting SDP server
bluetoothd[442]: src/sdpd-service.c:register_device_id() Adding device id record for 0002:1d6b:0246:053a
bluetoothd[442]: src/plugin.c:plugin_init() Loading builtin plugins
bluetoothd[442]: src/plugin.c:add_plugin() Loading hostname plugin
bluetoothd[442]: src/plugin.c:add_plugin() Loading wiimote plugin
bluetoothd[442]: src/plugin.c:add_plugin() Loading autopair plugin
bluetoothd[442]: src/plugin.c:add_plugin() Loading policy plugin
bluetoothd[442]: src/plugin.c:add_plugin() Loading a2dp plugin
bluetoothd[442]: src/plugin.c:add_plugin() Loading avrcp plugin
bluetoothd[442]: src/plugin.c:add_plugin() Loading network plugin
bluetoothd[442]: src/plugin.c:add_plugin() Loading input plugin
bluetoothd[442]: src/plugin.c:add_plugin() Loading hog plugin
bluetoothd[442]: src/plugin.c:add_plugin() Loading health plugin
bluetoothd[442]: src/plugin.c:add_plugin() Loading gap plugin
bluetoothd[442]: src/plugin.c:add_plugin() Loading scanparam plugin
bluetoothd[442]: src/plugin.c:add_plugin() Loading deviceinfo plugin
bluetoothd[442]: src/plugin.c:add_plugin() Loading battery plugin
bluetoothd[442]: src/plugin.c:plugin_init() Loading plugins /usr/lib/bluetooth/plugins
bluetoothd[442]: profiles/health/hdp.c:hdp_manager_start() Starting Health manager
bluetoothd[442]: profiles/input/suspend-none.c:suspend_init()
bluetoothd[442]: profiles/network/manager.c:read_config() Config options: Security=true
bluetoothd[442]: src/main.c:main() Entering main loop
bluetoothd[442]: src/plugin.c:plugin_cleanup() Cleanup plugins
bluetoothd[442]: profiles/health/hdp.c:hdp_manager_stop() Stopped Health manager
bluetoothd[442]: profiles/input/suspend-none.c:suspend_exit()
bluetoothd[442]: Stopping SDP server
bluetoothd[442]: Exit
I can’t find any more detailed logs. Not sure why the service stops itself immediately. If anyone has gotten BLE working on this thing please feel free to share. Thanks!
1 Like
lama
September 1, 2024, 10:59pm
3
Having the same issue. Has anyone managed to get bluetooth working on the buildroot image?
cc @WeiMouMou
1 Like