Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Bluetooth Device an Docker Container passthrough

Featured Replies

Moin,

 

Ich möchte einen Bluetooth Stick diesen (per USB an mein Unraid angeschlossen) an einen Docker Container (Home Assistant) weitergeben.

Irgendwie bekomme Ich für den BT Stick aber keine Device in /dev

 

Ich habe am selben Unraid noch ein Zigbee Stick der bekommt immer /dev/ttyACM0

 

Wenn Ich den Stick in den Server Stecke finde Ich im Unraid log:

 

Feb  9 15:33:58 Server kernel: usb 1-3: USB disconnect, device number 6
Feb  9 15:34:00 Server kernel: usb 1-3: new full-speed USB device number 7 using xhci_hcd
Feb  9 15:34:00 Server kernel: Bluetooth: hci0: RTL: examining hci_ver=0a hci_rev=000b lmp_ver=0a lmp_subver=8761
Feb  9 15:34:00 Server kernel: Bluetooth: hci0: RTL: rom_version status=0 version=1
Feb  9 15:34:00 Server kernel: Bluetooth: hci0: RTL: loading rtl_bt/rtl8761bu_fw.bin
Feb  9 15:34:00 Server kernel: Bluetooth: hci0: RTL: loading rtl_bt/rtl8761bu_config.bin
Feb  9 15:34:00 Server kernel: Bluetooth: hci0: RTL: cfg_sz 6, total sz 27814
Feb  9 15:34:01 Server kernel: Bluetooth: hci0: RTL: fw version 0x09a98a6b

 

hier die Ausgabe von lsusb:

root@SchackSchack:/dev/serial/by-path# lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/7p, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/9p, 480M
    |__ Port 3: Dev 6, If 0, Class=Wireless, Driver=btusb, 12M
    |__ Port 3: Dev 6, If 1, Class=Wireless, Driver=btusb, 12M
    |__ Port 4: Dev 2, If 0, Class=Mass Storage, Driver=usb-storage, 480M
    |__ Port 6: Dev 3, If 0, Class=Communications, Driver=cdc_acm, 12M
    |__ Port 6: Dev 3, If 1, Class=CDC Data, Driver=cdc_acm, 12M
root@SchackSchack:/dev/serial/by-path# lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 0451:16a8 Texas Instruments, Inc. CC2531 ZigBee
Bus 001 Device 002: ID 0781:5571 SanDisk Corp. Cruzer Fit
Bus 001 Device 006: ID 0bda:8771 Realtek Semiconductor Corp. Bluetooth 5.1 Radio
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

 

und hier "serial by Id" (hier ist ja nur der Zigbee Stick zu sehen)

root@SchackSchack:/dev/serial/by-path# ls -l /dev/serial/by-id
total 0
lrwxrwxrwx 1 root root 13 Feb  7 15:49 usb-Texas_Instruments_TI_CC2531_USB_CDC___0X00124B001CD403E1-if00 -> ../../ttyACM0

 

Kann mir jemand vielleicht helfen. Ich bin gerade etwas Ratlos und meine Linux Kenntnisse sind auch nicht die "besten".

 

  • Author

Das ist ja mein Problem. Das BT Device bekommt kein ID (zumindest nach meinem Verständnis).

Das Texas Instrument Device ist mein Zigbee Stick diese gebe Ich auch genauso an einen anderen Docker Container weiter mit 

 

/dev/ttyACM0

das Funktioniert auch. 

 

Allerdings gibt mir

ls -l /dev/serial/by-id

nur den ZigbeeStick aus nicht den BT 

 

total 0
lrwxrwxrwx 1 root root 13 Feb  7 15:49 usb-Texas_Instruments_TI_CC2531_USB_CDC___0X00124B001CD403E1-if00 -> ../../ttyACM0

 

 

daher ist die Frage was hat der BT Stick für eine ID und wo bekomme Ich die her 😂?

Hatte meine erste Antwort gelöscht, hatte mich auf den Conbee Stick bezogen - was falsch war.

 

Was kommt wenn Du folgendes eingibst:

 

lsusb -D /dev/bus/usb/001/006

 

Steht da irgendwo eine iSerial?

 

  • Author

edit hab jetzt bluez Installiert und gestartet. Jetzt geht es.

Kann man das irgendwie so machen das dies Automatisch beim neustart auch passiert?

 

Spoiler


_____
Ne aber ewig viele Infos.
Aber anscheinend ist das wohl alles garnicht so einfach. Ich will den Stick in Home Assistant nutzen und hab jetzt mal
/dev/bus/usb/001/007 durchgereicht das ist die aktuelle ID vom Stick aber irgendwie scheint das auch nicht zu klappen.
Zumindest Sagt Home Assistant das da kein BT Device wäre. Ich habe auch keine Idee wie Ich das im Container checken kann.
 
Hier noch die ausgabe von lsusb -D /dev/bus/usb/001/006
 
Spoiler
Device: ID 0bda:8771 Realtek Semiconductor Corp. Bluetooth 5.1 Radio
Device Descriptor:
  bLength 18
  bDescriptorType 1
  bcdUSB 1.10
  bDeviceClass 224 Wireless
  bDeviceSubClass 1 Radio Frequency
  bDeviceProtocol 1 Bluetooth
  bMaxPacketSize0 64
  idVendor 0x0bda Realtek Semiconductor Corp.
  idProduct 0x8771
  bcdDevice 2.00
  iManufacturer 1 Realtek
  iProduct 2 Bluetooth 5.1 Radio
  iSerial 3 00E04C239987
  bNumConfigurations 1
  Configuration Descriptor:
  bLength 9
  bDescriptorType 2
  wTotalLength 0x00b1
  bNumInterfaces 2
  bConfigurationValue 1
  iConfiguration 0
  bmAttributes 0xe0
  Self Powered
  Remote Wakeup
  MaxPower 500mA
  Interface Descriptor:
  bLength 9
  bDescriptorType 4
  bInterfaceNumber 0
  bAlternateSetting 0
  bNumEndpoints 3
  bInterfaceClass 224 Wireless
  bInterfaceSubClass 1 Radio Frequency
  bInterfaceProtocol 1 Bluetooth
  iInterface 4 Bluetooth Radio
  Endpoint Descriptor:
  bLength 7
  bDescriptorType 5
  bEndpointAddress 0x81 EP 1 IN
  bmAttributes 3
  Transfer Type Interrupt
  Synch Type None
  Usage Type Data
  wMaxPacketSize 0x0010 1x 16 bytes
  bInterval 1
  Endpoint Descriptor:
  bLength 7
  bDescriptorType 5
  bEndpointAddress 0x02 EP 2 OUT
  bmAttributes 2
  Transfer Type Bulk
  Synch Type None
  Usage Type Data
  wMaxPacketSize 0x0040 1x 64 bytes
  bInterval 0
  Endpoint Descriptor:
  bLength 7
  bDescriptorType 5
  bEndpointAddress 0x82 EP 2 IN
  bmAttributes 2
  Transfer Type Bulk
  Synch Type None
  Usage Type Data
  wMaxPacketSize 0x0040 1x 64 bytes
  bInterval 0
  Interface Descriptor:
  bLength 9
  bDescriptorType 4
  bInterfaceNumber 1
  bAlternateSetting 0
  bNumEndpoints 2
  bInterfaceClass 224 Wireless
  bInterfaceSubClass 1 Radio Frequency
  bInterfaceProtocol 1 Bluetooth
  iInterface 4 Bluetooth Radio
  Endpoint Descriptor:
  bLength 7
  bDescriptorType 5
  bEndpointAddress 0x03 EP 3 OUT
  bmAttributes 1
  Transfer Type Isochronous
  Synch Type None
  Usage Type Data
  wMaxPacketSize 0x0000 1x 0 bytes
  bInterval 1
  Endpoint Descriptor:
  bLength 7
  bDescriptorType 5
  bEndpointAddress 0x83 EP 3 IN
  bmAttributes 1
  Transfer Type Isochronous
  Synch Type None
  Usage Type Data
  wMaxPacketSize 0x0000 1x 0 bytes
  bInterval 1
  Interface Descriptor:
  bLength 9
  bDescriptorType 4
  bInterfaceNumber 1
  bAlternateSetting 1
  bNumEndpoints 2
  bInterfaceClass 224 Wireless
  bInterfaceSubClass 1 Radio Frequency
  bInterfaceProtocol 1 Bluetooth
  iInterface 4 Bluetooth Radio
  Endpoint Descriptor:
  bLength 7
  bDescriptorType 5
  bEndpointAddress 0x03 EP 3 OUT
  bmAttributes 1
  Transfer Type Isochronous
  Synch Type None
  Usage Type Data
  wMaxPacketSize 0x0009 1x 9 bytes
  bInterval 1
  Endpoint Descriptor:
  bLength 7
  bDescriptorType 5
  bEndpointAddress 0x83 EP 3 IN
  bmAttributes 1
  Transfer Type Isochronous
  Synch Type None
  Usage Type Data
  wMaxPacketSize 0x0009 1x 9 bytes
  bInterval 1
  Interface Descriptor:
  bLength 9
  bDescriptorType 4
  bInterfaceNumber 1
  bAlternateSetting 2
  bNumEndpoints 2
  bInterfaceClass 224 Wireless
  bInterfaceSubClass 1 Radio Frequency
  bInterfaceProtocol 1 Bluetooth
  iInterface 4 Bluetooth Radio
  Endpoint Descriptor:
  bLength 7
  bDescriptorType 5
  bEndpointAddress 0x03 EP 3 OUT
  bmAttributes 1
  Transfer Type Isochronous
  Synch Type None
  Usage Type Data
  wMaxPacketSize 0x0011 1x 17 bytes
  bInterval 1
  Endpoint Descriptor:
  bLength 7
  bDescriptorType 5
  bEndpointAddress 0x83 EP 3 IN
  bmAttributes 1
  Transfer Type Isochronous
  Synch Type None
  Usage Type Data
  wMaxPacketSize 0x0011 1x 17 bytes
  bInterval 1
  Interface Descriptor:
  bLength 9
  bDescriptorType 4
  bInterfaceNumber 1
  bAlternateSetting 3
  bNumEndpoints 2
  bInterfaceClass 224 Wireless
  bInterfaceSubClass 1 Radio Frequency
  bInterfaceProtocol 1 Bluetooth
  iInterface 4 Bluetooth Radio
  Endpoint Descriptor:
  bLength 7
  bDescriptorType 5
  bEndpointAddress 0x03 EP 3 OUT
  bmAttributes 1
  Transfer Type Isochronous
  Synch Type None
  Usage Type Data
  wMaxPacketSize 0x0019 1x 25 bytes
  bInterval 1
  Endpoint Descriptor:
  bLength 7
  bDescriptorType 5
  bEndpointAddress 0x83 EP 3 IN
  bmAttributes 1
  Transfer Type Isochronous
  Synch Type None
  Usage Type Data
  wMaxPacketSize 0x0019 1x 25 bytes
  bInterval 1
  Interface Descriptor:
  bLength 9
  bDescriptorType 4
  bInterfaceNumber 1
  bAlternateSetting 4
  bNumEndpoints 2
  bInterfaceClass 224 Wireless
  bInterfaceSubClass 1 Radio Frequency
  bInterfaceProtocol 1 Bluetooth
  iInterface 4 Bluetooth Radio
  Endpoint Descriptor:
  bLength 7
  bDescriptorType 5
  bEndpointAddress 0x03 EP 3 OUT
  bmAttributes 1
  Transfer Type Isochronous
  Synch Type None
  Usage Type Data
  wMaxPacketSize 0x0021 1x 33 bytes
  bInterval 1
  Endpoint Descriptor:
  bLength 7
  bDescriptorType 5
  bEndpointAddress 0x83 EP 3 IN
  bmAttributes 1
  Transfer Type Isochronous
  Synch Type None
  Usage Type Data
  wMaxPacketSize 0x0021 1x 33 bytes
  bInterval 1
  Interface Descriptor:
  bLength 9
  bDescriptorType 4
  bInterfaceNumber 1
  bAlternateSetting 5
  bNumEndpoints 2
  bInterfaceClass 224 Wireless
  bInterfaceSubClass 1 Radio Frequency
  bInterfaceProtocol 1 Bluetooth
  iInterface 4 Bluetooth Radio
  Endpoint Descriptor:
  bLength 7
  bDescriptorType 5
  bEndpointAddress 0x03 EP 3 OUT
  bmAttributes 1
  Transfer Type Isochronous
  Synch Type None
  Usage Type Data
  wMaxPacketSize 0x0031 1x 49 bytes
  bInterval 1
  Endpoint Descriptor:
  bLength 7
  bDescriptorType 5
  bEndpointAddress 0x83 EP 3 IN
  bmAttributes 1
  Transfer Type Isochronous
  Synch Type None
  Usage Type Data
  wMaxPacketSize 0x0031 1x 49 bytes
  bInterval 1
Device Status: 0x0001
  Self Powered

 
Hab jetzt ewig viel Probiert die "alten Nerdtools" hatten bluez und damit hat es wohl geklappt in den "neuen" ist es nicht drin leider.

 

Edited by farco

1 hour ago, farco said:

Ne

 

Interessant. Es gibt eine iSerial (00E04C239987). Wundert mich.

 

  • Author

Wie gesagt mit bluez geht es jetzt muss ich nur noch rausfinden wie Ich das quasi bei jedem Start von Unraid automatisch laden kann.

 

  • Community Expert
41 minutes ago, farco said:

Wie gesagt mit bluez

Was ist denn bluez? In /boot/go packen?

1 hour ago, farco said:

bei jedem Start von Unraid automatisch laden

 

Wenn Du das passende Package hast, dann kannst Du das mit seinen Abhängigkeiten in /boot/extra/ packen.

 

  • Author

Ich hab jetzt mal weiter damit rumgespielt und meine Bluetooth devices werden nicht erkannt. Daher lasse Ich das ganze Zeit einfach.

Ich danke euch auf jeden Fall für euer Hilfe und Ich habe auf jeden Fall wieder viel über Linux gelernt heute 😊.

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.