[ KernelModules ] Kernel module USB drivers

Discussion on apps, protocols, APIs, specifications, and more. You are welcome to join us as a TOS app developer!
User avatar
outkastm
Posts: 1056
Joined: 29 Dec 2020, 23:52

Re: [ KernelModules ] Kernel module USB drivers

Post by outkastm » 24 May 2023, 03:19

For what exactly you want to use the bluetooth adapter ?
Bluetooth dongles doesn't work in the same way as USB-serial adapters or Z-Wave, Zigbee etc. You will not get a tty device.

At this moment with the kernel drivers you only have the adapter available in TOS.

Code: Select all

[ 1489.787038] usb 1-2.1: new full-speed USB device number 7 using xhci_hcd
[ 1489.887936] usb 1-2.1: New USB device found, idVendor=0bda, idProduct=8771, bcdDevice= 2.00
[ 1489.887944] usb 1-2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1489.887947] usb 1-2.1: Product: Bluetooth Radio
[ 1489.887950] usb 1-2.1: Manufacturer: Realtek
[ 1489.887952] usb 1-2.1: SerialNumber: xxxxxx
[ 1489.896318] Bluetooth: hci0: RTL: examining hci_ver=0a hci_rev=000b lmp_ver=0a lmp_subver=8761
[ 1489.897312] Bluetooth: hci0: RTL: rom_version status=0 version=1
[ 1489.897318] Bluetooth: hci0: RTL: loading rtl_bt/rtl8761bu_fw.bin
[ 1489.955127] Bluetooth: hci0: RTL: loading rtl_bt/rtl8761bu_config.bin
[ 1489.955331] Bluetooth: hci0: RTL: cfg_sz 14, total sz 11678
[ 1490.027308] Bluetooth: hci0: RTL: fw version 0x097bec43
To go further with configure the adapter, you need the BlueZ tool

Code: Select all

[user@TNAS-XXXX ~]# /usr/local/BlueZ/sys/bin/bluetoothctl list
Controller 00:E0:4C:23:XX:XX BlueZ 5.66 [default]
[user@TNAS-XXXX ~]# /usr/local/BlueZ/sys/bin/bluetoothctl
Agent registered
[CHG] Controller 00:E0:4C:23:XX:XX Pairable: yes
[bluetooth]# power on
Changing power on succeeded
[CHG] Controller 00:E0:4C:23:XX:XX Powered: yes
[bluetooth]# scan on
Discovery started
[CHG] Controller 00:E0:4C:23:XX:XX Discovering: yes
[NEW] Device D4:5E:EC:XX:XX:XX D4-5E-EC-XX-XX-XX
[NEW] Device C8:B2:1E:XX:XX:XX SANITAS SBF70
[CHG] Device D4:5E:EC:XX:XX:XX LegacyPairing: no
[CHG] Device D4:5E:EC:XX:XX:XX Name: MIBOX4
[CHG] Device D4:5E:EC:XX:XX:XX Alias: MIBOX4

User avatar
XFNeo
Posts: 66
Joined: 10 Oct 2022, 23:18

Re: [ KernelModules ] Kernel module USB drivers

Post by XFNeo » 26 May 2023, 22:56

{L_BUTTON_AT}outkastm

Thanks. I want to use it in docker containers (homeassistan e.g.)

User avatar
outkastm
Posts: 1056
Joined: 29 Dec 2020, 23:52

Re: [ KernelModules ] Kernel module USB drivers

Post by outkastm » 26 May 2023, 23:11

Then search for bluez containers and so on. Your bluetooth adapter is visible by TOS.
I've test it with my native Bluez and HomeAssistent apps.

Post Reply