bluetooth-console
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
bluetooth-console [2020/09/13 11:43] – benny | bluetooth-console [2024/06/09 10:29] (aktuell) – Externe Bearbeitung 127.0.0.1 | ||
---|---|---|---|
Zeile 3: | Zeile 3: | ||
In diesem Artikel sammle ich Informationen zur seriellen Konsolenverbindung via Bluetooth zum OmniSwitch mit AOS Release 8. | In diesem Artikel sammle ich Informationen zur seriellen Konsolenverbindung via Bluetooth zum OmniSwitch mit AOS Release 8. | ||
- | <WRAP center round tip 60%> | + | ===== Kompatible/Getestete USB-Bluetooth-Adapter ===== |
- | Bisher ist das nur mein copy/paste Ziel hier, also nicht nicht final formatiert. | + | Die im hier Artikel aufgeführten Ausgaben/Details wurden mit diesen Produkten/ |
- | </WRAP> | + | Die AOS Release Notes enhalten jeweils aktuelle Angaben zu den unterstützen OmniSwitch Modellen. |
- | TODO/Notizen | + | ^ Produkt/Modell |
- | | + | | |
- | * In AOS 8.7.280.R1 ist Bluetooth standardmäßig "admin enabled" | + | |
- | * Prüfen welche Plattformen BT unterstützen und hier aufführen | + | |
- | * OS6465T-P12 | + | |
- | <code> | + | ===== Schritte am OmniSwitch ===== |
- | VINDHYA #-> lsusb -vvv | + | |
- | Bus 001 Device 002: ID 050d:065a <-- der Bluetooth | + | <WRAP center round info 60%> |
- | Bus 001 Device 001: ID 1d6b:0002 | + | In AOS Release 8.7 ist Bluetooth bei eingestecktem USB-Bluetooth-Adapter |
- | </code> | + | </WRAP> |
- | * Kein Adapter eingesteckt | + | === Kein USB-BT-Adapter eingesteckt |
< | < | ||
Router-> show bluetooth status | Router-> show bluetooth status | ||
Zeile 29: | Zeile 26: | ||
| | ||
</ | </ | ||
- | * USB-Adapter eingesteckt | + | === USB-BT-Adapter |
< | < | ||
Router-> show bluetooth status | Router-> show bluetooth status | ||
Zeile 40: | Zeile 37: | ||
</ | </ | ||
- | * Ausgabe in dmesg | + | ===== Verbindung via Raspberry Pi ===== |
- | < | + | Dieser Abschnitt des Artikels widmet sich den Ausgaben |
- | [1183593.649609] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002 | + | |
- | [1183593.649651] orion-ehci f1050000.usb: | + | |
- | [1183593.649682] hub 1-0:1.0: port 1, status 0101, change 0001, 12 Mb/s | + | |
- | [1183593.803626] hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x101 | + | |
- | [1183593.923627] usb 1-1: new full-speed USB device number 2 using orion-ehci | + | |
- | [1183593.961247] usb 1-1: skipped 1 descriptor after interface | + | |
- | [1183593.962243] usb 1-1: default language 0x0409 | + | |
- | [1183593.965227] usb 1-1: udev 2, busnum 1, minor = 1 | + | |
- | [1183593.965245] usb 1-1: New USB device found, idVendor=050d, idProduct=065a | + | |
- | [1183593.965259] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 | + | |
- | [1183593.965271] usb 1-1: Product: BCM20702A0 | + | |
- | [1183593.965282] usb 1-1: Manufacturer: | + | |
- | [1183593.965294] usb 1-1: SerialNumber: | + | |
- | [1183593.966059] usb 1-1: usb_probe_device | + | |
- | [1183593.966078] usb 1-1: configuration #1 chosen from 1 choice | + | |
- | [1183593.967259] usb 1-1: adding 1-1:1.0 (config #1, interface 0) | + | |
- | [1183593.984447] btusb 1-1:1.0: usb_probe_interface | + | |
- | [1183593.984469] btusb 1-1:1.0: usb_probe_interface - got id | + | |
- | [1183593.987218] usb 1-1: adding 1-1:1.1 (config #1, interface 1) | + | |
- | [1183593.991362] usb 1-1: adding 1-1:1.2 (config #1, interface 2) | + | |
- | [1183593.995804] usb 1-1: link qh1-0e01/ | + | |
- | [1183594.009198] btusb 1-1:1.2: usb_probe_interface | + | |
- | [1183594.009224] btusb 1-1:1.2: usb_probe_interface - got id | + | |
- | [1183594.009371] usb 1-1: adding 1-1:1.3 (config #1, interface 3) | + | |
- | [1183594.014470] btusb 1-1:1.3: usb_probe_interface | + | |
- | [1183594.014494] btusb 1-1:1.3: usb_probe_interface - got id | + | |
- | [1183594.014653] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002 | + | |
- | [1183595.188361] usb 1-1: unlink qh1-0e01/ | + | |
- | [1183595.189628] usb usb1: clear tt buffer port 1, a2 ep2 t04048d80 | + | |
- | [1183595.268571] orion-ehci f1050000.usb: | + | |
- | [1183595.268599] usb 1-1: link qh1-0e01/ | + | |
- | </ | + | |
- | * Herausfinden welches BT-Device im OmniSwitch verwendet wird | + | |
- | < | + | |
- | VINDHYA #-> hcitool dev | + | |
- | Devices: | + | |
- | hci0 00: | + | |
- | VINDHYA #-> | + | |
- | + | ||
- | </ | + | |
- | + | ||
- | ===== Ausgaben | + | |
==== Welche Bluetooth-Geräte gibt es im Umfeld? ==== | ==== Welche Bluetooth-Geräte gibt es im Umfeld? ==== | ||
Zeile 90: | Zeile 45: | ||
pi@powerpi: | pi@powerpi: | ||
Scanning ... | Scanning ... | ||
- | 00:02:72:CD:73:47 Router | + | 00:02:72:XX:YY:ZZ Router |
</ | </ | ||
Zeile 96: | Zeile 51: | ||
< | < | ||
- | pi@powerpi: | + | pi@powerpi: |
Requesting information ... | Requesting information ... | ||
- | BD Address: | + | BD Address: |
OUI Company: CC&C Technologies, | OUI Company: CC&C Technologies, | ||
Device Name: Router | Device Name: Router | ||
Zeile 125: | Zeile 80: | ||
< | < | ||
- | pi@powerpi: | + | pi@powerpi: |
Service Name: Serial Port | Service Name: Serial Port | ||
Service Description: | Service Description: | ||
Zeile 147: | Zeile 102: | ||
==== Drahtlose Konsolenverbindung herstellen ==== | ==== Drahtlose Konsolenverbindung herstellen ==== | ||
+ | <WRAP center round tip 60%> | ||
+ | Wichtig ist im **rfcomm**-Kommando die Angabe von **-r** für **RAW**, da man sonst jede Menge **^J**-Steuerzeichen im Konsolenprogramm sieht! | ||
+ | </ | ||
+ | |||
+ | |||
+ | === Verbindung vom Raspberry Pi zum ALE OmniSwitch aufbauen === | ||
< | < | ||
- | pi@powerpi: | + | pi@powerpi: |
- | Connected / | + | Connected / |
Press CTRL-C for hangup | Press CTRL-C for hangup | ||
</ | </ | ||
+ | |||
+ | === Verbindung via " | ||
+ | |||
+ | <WRAP center round tip 60%> | ||
+ | **screen** beendet man mit der Tastenkombination STRG+A und danach " | ||
+ | </ | ||
< | < | ||
Zeile 157: | Zeile 124: | ||
</ | </ | ||
+ | === Verbindung via " | ||
+ | <WRAP center round tip 60%> | ||
+ | **minicom** beendet man mit der Tastenkombination STRG+A und danach " | ||
+ | </ | ||
- | ==== Optional: Installation | + | < |
+ | pi@powerpi: | ||
+ | </ | ||
+ | |||
+ | ==== Anzeige | ||
+ | |||
+ | < | ||
+ | pi@powerpi: | ||
+ | rfcomm0: DC: | ||
+ | </ | ||
+ | |||
+ | ===== Weitere Details und Fehlerbehebung zum Raspberry Pi ===== | ||
+ | Hier sammle ich mögliche Fehlermeldung(en) sowie die Lösung. | ||
+ | |||
+ | ==== " | ||
+ | |||
+ | Rollt im Terminal **^J** in **screen** oder **minicom**, | ||
+ | |||
+ | === Exemplarische Ausgabe === | ||
+ | < | ||
+ | ^J | ||
+ | |||
+ | ^J^J | ||
+ | ^J | ||
+ | |||
+ | ^J^J | ||
+ | ^J | ||
+ | |||
+ | ^J^J | ||
+ | ^J | ||
+ | |||
+ | ^JLogin incorrect | ||
+ | Router login: | ||
+ | </ | ||
+ | |||
+ | === Lösung: " | ||
+ | < | ||
+ | sudo rfcomm -r connect hci0 00: | ||
+ | </ | ||
+ | |||
+ | ==== Fehlermeldung: | ||
+ | Zu dieser Fehlermeldung kam es bei mir in unregelmäßigen Abständen. Es hat geholfen in diesem Fall die lokale Bluetooth-Konfiguration zurückzusetzen (das sollte man aber vor dem copy/paste genau prüfen, in meinem Fall hängt bei mir nichts essentielles am BT-Stack). Damit werden Einstellungen und der Cache gelöscht! | ||
+ | < | ||
+ | sudo rm -rf / | ||
+ | </ | ||
+ | |||
+ | ==== Fehlermeldung: | ||
+ | Diese Fehlermeldung hatte ich regelmäßig nachdem ich erst **screen** oder **minicom** beendet habe und danach die **rfcomm**-Verbindung. In diesem [[https:// | ||
+ | < | ||
+ | sudo hciconfig hci0 reset | ||
+ | </ | ||
+ | |||
+ | ==== Analyse mit hcidump | ||
<WRAP center round tip 60%> | <WRAP center round tip 60%> | ||
- | Mag irgendwie meinen Pi nicht, stelle dies für den Moment zurück ... | + | Eventuell muss das Programm **hcidump** noch installiert werden: sudo apt install bluez-hcidump |
</ | </ | ||
+ | < | ||
+ | pi@powerpi: | ||
+ | HCI sniffer - Bluetooth packet analyzer ver 5.50 | ||
+ | device: hci0 snap_len: 1500 filter: 0xffffffff | ||
+ | < HCI Command: Create Connection (0x01|0x0005) plen 13 | ||
+ | bdaddr 00: | ||
+ | Packet type: DM1 DM3 DM5 DH1 DH3 DH5 | ||
+ | > HCI Event: Command Status (0x0f) plen 4 | ||
+ | Create Connection (0x01|0x0005) status 0x00 ncmd 1 | ||
+ | > HCI Event: Connect Complete (0x03) plen 11 | ||
+ | status 0x00 handle 11 bdaddr 00: | ||
+ | < HCI Command: Read Remote Supported Features (0x01|0x001b) plen 2 | ||
+ | handle 11 | ||
+ | > HCI Event: Command Status (0x0f) plen 4 | ||
+ | Read Remote Supported Features (0x01|0x001b) status 0x00 ncmd 1 | ||
+ | > HCI Event: Read Remote Supported Features (0x0b) plen 11 | ||
+ | status 0x00 handle 11 | ||
+ | Features: 0xbf 0xfe 0xcf 0xfe 0xdb 0xff 0x7b 0x87 | ||
+ | < HCI Command: Read Remote Extended Features (0x01|0x001c) plen 3 | ||
+ | handle 11 page 1 | ||
+ | > HCI Event: Command Status (0x0f) plen 4 | ||
+ | Read Remote Extended Features (0x01|0x001c) status 0x00 ncmd 1 | ||
+ | > HCI Event: Read Remote Extended Features (0x23) plen 13 | ||
+ | status 0x00 handle 11 page 1 max 1 | ||
+ | Features: 0x07 0x00 0x00 0x00 0x00 0x00 0x00 0x00 | ||
+ | > HCI Event: Max Slots Change (0x1b) plen 3 | ||
+ | handle 11 slots 5 | ||
+ | < HCI Command: Remote Name Request (0x01|0x0019) plen 10 | ||
+ | bdaddr 00: | ||
+ | > HCI Event: Command Status (0x0f) plen 4 | ||
+ | Remote Name Request (0x01|0x0019) status 0x00 ncmd 1 | ||
+ | > HCI Event: Remote Name Req Complete (0x07) plen 255 | ||
+ | status 0x00 bdaddr 00: | ||
+ | < HCI Command: Authentication Requested (0x01|0x0011) plen 2 | ||
+ | handle 11 | ||
+ | > HCI Event: Command Status (0x0f) plen 4 | ||
+ | Authentication Requested (0x01|0x0011) status 0x00 ncmd 1 | ||
+ | > HCI Event: Link Key Request (0x17) plen 6 | ||
+ | bdaddr 00: | ||
+ | < HCI Command: Link Key Request Negative Reply (0x01|0x000c) plen 6 | ||
+ | bdaddr 00: | ||
+ | > HCI Event: Command Complete (0x0e) plen 10 | ||
+ | Link Key Request Negative Reply (0x01|0x000c) ncmd 1 | ||
+ | status 0x00 bdaddr 00: | ||
+ | > HCI Event: IO Capability Request (0x31) plen 6 | ||
+ | bdaddr 00: | ||
+ | < HCI Command: IO Capability Request Reply (0x01|0x002b) plen 9 | ||
+ | bdaddr 00: | ||
+ | Capability: NoInputNoOutput (OOB data not present) | ||
+ | Authentication: | ||
+ | > HCI Event: Command Complete (0x0e) plen 10 | ||
+ | IO Capability Request Reply (0x01|0x002b) ncmd 1 | ||
+ | status 0x00 bdaddr 00: | ||
+ | > HCI Event: IO Capability Response (0x32) plen 9 | ||
+ | bdaddr 00: | ||
+ | Capability: DisplayYesNo (OOB data not present) | ||
+ | Authentication: | ||
+ | > HCI Event: User Confirmation Request (0x33) plen 10 | ||
+ | bdaddr 00: | ||
+ | < HCI Command: User Confirmation Request Reply (0x01|0x002c) plen 6 | ||
+ | bdaddr 00: | ||
+ | > HCI Event: Command Complete (0x0e) plen 10 | ||
+ | User Confirmation Request Reply (0x01|0x002c) ncmd 1 | ||
+ | status 0x00 bdaddr 00: | ||
+ | > HCI Event: Simple Pairing Complete (0x36) plen 7 | ||
+ | status 0x00 bdaddr 00: | ||
+ | > HCI Event: Link Key Notification (0x18) plen 23 | ||
+ | bdaddr 00: | ||
+ | Type: Unauthenticated Combination Key | ||
+ | > HCI Event: Auth Complete (0x06) plen 3 | ||
+ | status 0x00 handle 11 | ||
+ | < HCI Command: Set Connection Encryption (0x01|0x0013) plen 3 | ||
+ | handle 11 encrypt 0x01 | ||
+ | > HCI Event: Command Status (0x0f) plen 4 | ||
+ | Set Connection Encryption (0x01|0x0013) status 0x00 ncmd 1 | ||
+ | > HCI Event: Encrypt Change (0x08) plen 4 | ||
+ | status 0x00 handle 11 encrypt 0x01 | ||
+ | < HCI Command: Read Encryption Key Size (0x05|0x0008) plen 2 | ||
+ | 0000: 0b 00 .. | ||
+ | > HCI Event: Command Complete (0x0e) plen 7 | ||
+ | Read Encryption Key Size (0x05|0x0008) ncmd 1 | ||
+ | 0000: 00 0b 00 10 .... | ||
+ | < ACL data: handle 11 flags 0x00 dlen 10 | ||
+ | L2CAP(s): Info req: type 2 | ||
+ | > ACL data: handle 11 flags 0x02 dlen 16 | ||
+ | L2CAP(s): Info rsp: type 2 result 0 | ||
+ | Extended feature mask 0x00b8 | ||
+ | Enhanced Retransmission mode | ||
+ | Streaming mode | ||
+ | FCS Option | ||
+ | Fixed Channels | ||
+ | < ACL data: handle 11 flags 0x00 dlen 10 | ||
+ | L2CAP(s): Info req: type 3 | ||
+ | > HCI Event: Number of Completed Packets (0x13) plen 5 | ||
+ | handle 11 packets 2 | ||
+ | > ACL data: handle 11 flags 0x02 dlen 20 | ||
+ | L2CAP(s): Info rsp: type 3 result 0 | ||
+ | Fixed channel list 0x00000002 | ||
+ | L2CAP Signalling Channel | ||
+ | < ACL data: handle 11 flags 0x00 dlen 12 | ||
+ | L2CAP(s): Connect req: psm 3 scid 0x0040 | ||
+ | > ACL data: handle 11 flags 0x02 dlen 16 | ||
+ | L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 1 status 0 | ||
+ | Connection pending - No further information available | ||
+ | > ACL data: handle 11 flags 0x02 dlen 10 | ||
+ | L2CAP(s): Info req: type 2 | ||
+ | < ACL data: handle 11 flags 0x00 dlen 16 | ||
+ | L2CAP(s): Info rsp: type 2 result 0 | ||
+ | Extended feature mask 0x02b8 | ||
+ | Enhanced Retransmission mode | ||
+ | Streaming mode | ||
+ | FCS Option | ||
+ | Fixed Channels | ||
+ | Unicast Connectless Data Reception | ||
+ | > HCI Event: Number of Completed Packets (0x13) plen 5 | ||
+ | handle 11 packets 2 | ||
+ | > ACL data: handle 11 flags 0x02 dlen 10 | ||
+ | L2CAP(s): Info req: type 3 | ||
+ | < ACL data: handle 11 flags 0x00 dlen 20 | ||
+ | L2CAP(s): Info rsp: type 3 result 0 | ||
+ | Fixed channel list 0x00000086 | ||
+ | L2CAP Signalling Channel | ||
+ | L2CAP Connless | ||
+ | > ACL data: handle 11 flags 0x02 dlen 16 | ||
+ | L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 0 status 0 | ||
+ | Connection successful | ||
+ | < ACL data: handle 11 flags 0x00 dlen 27 | ||
+ | L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 15 | ||
+ | MTU 1013 | ||
+ | RFC 0x00 (Basic) | ||
+ | > ACL data: handle 11 flags 0x02 dlen 27 | ||
+ | L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 15 | ||
+ | MTU 1013 | ||
+ | RFC 0x00 (Basic) | ||
+ | < ACL data: handle 11 flags 0x00 dlen 18 | ||
+ | L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 4 | ||
+ | MTU 1013 | ||
+ | > HCI Event: Number of Completed Packets (0x13) plen 5 | ||
+ | handle 11 packets 2 | ||
+ | > ACL data: handle 11 flags 0x02 dlen 18 | ||
+ | L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 4 | ||
+ | MTU 1013 | ||
+ | < ACL data: handle 11 flags 0x00 dlen 8 | ||
+ | L2CAP(d): cid 0x0040 len 4 [psm 3] | ||
+ | RFCOMM(s): SABM: cr 1 dlci 0 pf 1 ilen 0 fcs 0x1c | ||
+ | > HCI Event: Number of Completed Packets (0x13) plen 5 | ||
+ | handle 11 packets 2 | ||
+ | > ACL data: handle 11 flags 0x02 dlen 8 | ||
+ | L2CAP(d): cid 0x0040 len 4 [psm 3] | ||
+ | RFCOMM(s): UA: cr 1 dlci 0 pf 1 ilen 0 fcs 0xd7 | ||
+ | < ACL data: handle 11 flags 0x00 dlen 18 | ||
+ | L2CAP(d): cid 0x0040 len 14 [psm 3] | ||
+ | RFCOMM(s): PN CMD: cr 1 dlci 0 pf 0 ilen 10 fcs 0x70 mcc_len 8 | ||
+ | dlci 2 frame_type 0 credit_flow 15 pri 7 ack_timer 0 | ||
+ | frame_size 1008 max_retrans 0 credits 7 | ||
+ | > ACL data: handle 11 flags 0x02 dlen 18 | ||
+ | L2CAP(d): cid 0x0040 len 14 [psm 3] | ||
+ | RFCOMM(s): PN RSP: cr 0 dlci 0 pf 0 ilen 10 fcs 0xaa mcc_len 8 | ||
+ | dlci 2 frame_type 0 credit_flow 14 pri 7 ack_timer 0 | ||
+ | frame_size 1008 max_retrans 0 credits 7 | ||
+ | < ACL data: handle 11 flags 0x00 dlen 8 | ||
+ | L2CAP(d): cid 0x0040 len 4 [psm 3] | ||
+ | RFCOMM(s): SABM: cr 1 dlci 2 pf 1 ilen 0 fcs 0x59 | ||
+ | > HCI Event: Number of Completed Packets (0x13) plen 5 | ||
+ | handle 11 packets 2 | ||
+ | > ACL data: handle 11 flags 0x02 dlen 8 | ||
+ | L2CAP(d): cid 0x0040 len 4 [psm 3] | ||
+ | RFCOMM(s): UA: cr 1 dlci 2 pf 1 ilen 0 fcs 0x92 | ||
+ | < ACL data: handle 11 flags 0x00 dlen 12 | ||
+ | L2CAP(d): cid 0x0040 len 8 [psm 3] | ||
+ | RFCOMM(s): MSC CMD: cr 1 dlci 0 pf 0 ilen 4 fcs 0x70 mcc_len 2 | ||
+ | dlci 2 fc 0 rtc 1 rtr 1 ic 0 dv 1 b1 1 b2 1 b3 0 len 0 | ||
+ | < ACL data: handle 11 flags 0x00 dlen 18 | ||
+ | L2CAP(d): cid 0x0040 len 14 [psm 3] | ||
+ | RFCOMM(s): RPN CMD: cr 1 dlci 0 pf 0 ilen 10 fcs 0x70 mcc_len 8 | ||
+ | dlci 2 br 3 db 3 sb 0 p 0 pt 0 xi 0 xo 0 | ||
+ | rtri 0 rtro 0 rtci 0 rtco 0 xon 0 xoff 0 pm 0x0061 | ||
+ | > ACL data: handle 11 flags 0x02 dlen 12 | ||
+ | L2CAP(d): cid 0x0040 len 8 [psm 3] | ||
+ | RFCOMM(s): MSC CMD: cr 0 dlci 0 pf 0 ilen 4 fcs 0xaa mcc_len 2 | ||
+ | dlci 2 fc 0 rtc 1 rtr 1 ic 0 dv 1 b1 0 b2 0 b3 0 len 0 | ||
+ | < ACL data: handle 11 flags 0x00 dlen 12 | ||
+ | L2CAP(d): cid 0x0040 len 8 [psm 3] | ||
+ | RFCOMM(s): MSC RSP: cr 1 dlci 0 pf 0 ilen 4 fcs 0x70 mcc_len 2 | ||
+ | dlci 2 fc 0 rtc 1 rtr 1 ic 0 dv 1 b1 0 b2 0 b3 0 len 0 | ||
+ | > HCI Event: Number of Completed Packets (0x13) plen 5 | ||
+ | handle 11 packets 2 | ||
+ | > ACL data: handle 11 flags 0x02 dlen 12 | ||
+ | L2CAP(d): cid 0x0040 len 8 [psm 3] | ||
+ | RFCOMM(s): MSC RSP: cr 0 dlci 0 pf 0 ilen 4 fcs 0xaa mcc_len 2 | ||
+ | dlci 2 fc 0 rtc 1 rtr 1 ic 0 dv 1 b1 0 b2 0 b3 0 len 0 | ||
+ | < ACL data: handle 11 flags 0x00 dlen 9 | ||
+ | L2CAP(d): cid 0x0040 len 5 [psm 3] | ||
+ | RFCOMM(d): UIH: cr 1 dlci 2 pf 1 ilen 0 fcs 0x86 credits 33 | ||
+ | > ACL data: handle 11 flags 0x02 dlen 18 | ||
+ | L2CAP(d): cid 0x0040 len 14 [psm 3] | ||
+ | RFCOMM(s): RPN RSP: cr 0 dlci 0 pf 0 ilen 10 fcs 0xaa mcc_len 8 | ||
+ | dlci 2 br 3 db 0 sb 0 p 0 pt 0 xi 0 xo 0 | ||
+ | rtri 0 rtro 0 rtci 0 rtco 0 xon 17 xoff 19 pm 0x3f1f | ||
+ | > ACL data: handle 11 flags 0x02 dlen 9 | ||
+ | L2CAP(d): cid 0x0040 len 5 [psm 3] | ||
+ | RFCOMM(d): UIH: cr 0 dlci 2 pf 1 ilen 0 fcs 0x5c credits 33 | ||
+ | > HCI Event: Number of Completed Packets (0x13) plen 5 | ||
+ | handle 11 packets 2 | ||
+ | > ACL data: handle 11 flags 0x02 dlen 9 | ||
+ | L2CAP(d): cid 0x0040 len 5 [psm 3] | ||
+ | RFCOMM(d): UIH: cr 0 dlci 2 pf 0 ilen 1 fcs 0x40 | ||
+ | 0000: 0d . | ||
+ | > ACL data: handle 11 flags 0x02 dlen 10 | ||
+ | L2CAP(d): cid 0x0040 len 6 [psm 3] | ||
+ | RFCOMM(d): UIH: cr 0 dlci 2 pf 0 ilen 2 fcs 0x40 | ||
+ | 0000: 0d 0a .. | ||
+ | > ACL data: handle 11 flags 0x02 dlen 22 | ||
+ | L2CAP(d): cid 0x0040 len 18 [psm 3] | ||
+ | RFCOMM(d): UIH: cr 0 dlci 2 pf 0 ilen 14 fcs 0x40 | ||
+ | 0000: 52 6f 75 74 65 72 20 6c 6f 67 69 6e 3a 20 Router login: | ||
+ | < ACL data: handle 11 flags 0x00 dlen 12 | ||
+ | L2CAP(s): Connect req: psm 1 scid 0x0041 | ||
+ | > ACL data: handle 11 flags 0x02 dlen 16 | ||
+ | L2CAP(s): Connect rsp: dcid 0x0041 scid 0x0041 result 0 status 0 | ||
+ | Connection successful | ||
+ | < ACL data: handle 11 flags 0x00 dlen 23 | ||
+ | L2CAP(s): Config req: dcid 0x0041 flags 0x00 clen 11 | ||
+ | RFC 0x00 (Basic) | ||
+ | > ACL data: handle 11 flags 0x02 dlen 23 | ||
+ | L2CAP(s): Config req: dcid 0x0041 flags 0x00 clen 11 | ||
+ | RFC 0x00 (Basic) | ||
+ | < ACL data: handle 11 flags 0x00 dlen 18 | ||
+ | L2CAP(s): Config rsp: scid 0x0041 flags 0x00 result 0 clen 4 | ||
+ | MTU 672 | ||
+ | > HCI Event: Number of Completed Packets (0x13) plen 5 | ||
+ | handle 11 packets 2 | ||
+ | > ACL data: handle 11 flags 0x02 dlen 18 | ||
+ | L2CAP(s): Config rsp: scid 0x0041 flags 0x00 result 0 clen 4 | ||
+ | MTU 672 | ||
+ | < ACL data: handle 11 flags 0x00 dlen 24 | ||
+ | L2CAP(d): cid 0x0041 len 20 [psm 1] | ||
+ | SDP SSA Req: tid 0x0 len 0xf | ||
+ | pat uuid-16 0x0100 (L2CAP) | ||
+ | max 65535 | ||
+ | aid(s) 0x0000 - 0xffff | ||
+ | cont 00 | ||
+ | > HCI Event: Number of Completed Packets (0x13) plen 5 | ||
+ | handle 11 packets 2 | ||
+ | > ACL data: handle 11 flags 0x02 dlen 228 | ||
+ | L2CAP(d): cid 0x0041 len 224 [psm 1] | ||
+ | SDP SSA Rsp: tid 0x0 len 0xdb | ||
+ | count 216 | ||
+ | record #0 | ||
+ | aid 0x0000 (SrvRecHndl) | ||
+ | uint 0x10000 | ||
+ | aid 0x0001 (SrvClassIDList) | ||
+ | < uuid-16 0x1101 (SP) > | ||
+ | aid 0x0002 (SrvRecState) | ||
+ | uint 0x1234 | ||
+ | aid 0x0003 (SrvID) | ||
+ | | ||
+ | aid 0x0004 (ProtocolDescList) | ||
+ | < < uuid-16 0x0100 (L2CAP) > < | ||
+ | | ||
+ | aid 0x0005 (BrwGrpList) | ||
+ | < uuid-16 0x1002 (PubBrwsGrp) > | ||
+ | aid 0x0006 (LangBaseAttrIDList) | ||
+ | < uint 0x656e uint 0x6a uint 0x100 > | ||
+ | aid 0x0007 (SrvInfoTimeToLive) | ||
+ | uint 0xffff | ||
+ | aid 0x0008 (SrvAvail) | ||
+ | uint 0xff | ||
+ | aid 0x0009 (BTProfileDescList) | ||
+ | < < uuid-16 0x1101 (SP) uint 0x100 > > | ||
+ | aid 0x000a (DocURL) | ||
+ | url " | ||
+ | aid 0x000b (ClientExeURL) | ||
+ | url " | ||
+ | aid 0x000c (IconURL) | ||
+ | url " | ||
+ | aid 0x0100 (SrvName) | ||
+ | str " | ||
+ | aid 0x0101 (SrvDesc) | ||
+ | str "COM Port" | ||
+ | aid 0x0102 (ProviderName) | ||
+ | str " | ||
+ | cont 00 | ||
+ | < ACL data: handle 11 flags 0x00 dlen 24 | ||
+ | L2CAP(d): cid 0x0041 len 20 [psm 1] | ||
+ | SDP SSA Req: tid 0x1 len 0xf | ||
+ | pat uuid-16 0x1200 (PNPInfo) | ||
+ | max 65535 | ||
+ | aid(s) 0x0000 - 0xffff | ||
+ | cont 00 | ||
+ | > ACL data: handle 11 flags 0x02 dlen 14 | ||
+ | L2CAP(d): cid 0x0041 len 10 [psm 1] | ||
+ | SDP SSA Rsp: tid 0x1 len 0x5 | ||
+ | count 2 | ||
+ | cont 00 | ||
+ | > HCI Event: Number of Completed Packets (0x13) plen 5 | ||
+ | handle 11 packets 1 | ||
+ | < ACL data: handle 11 flags 0x00 dlen 12 | ||
+ | L2CAP(s): Disconn req: dcid 0x0041 scid 0x0041 | ||
+ | > ACL data: handle 11 flags 0x02 dlen 12 | ||
+ | L2CAP(s): Disconn rsp: dcid 0x0041 scid 0x0041 | ||
+ | > HCI Event: Number of Completed Packets (0x13) plen 5 | ||
+ | handle 11 packets 1 | ||
+ | ... | ||
+ | </ | ||
- | Ich nutze Raspbian Buster und die Installation erfolgt wie folgt: | + | ===== Details zum OmniSwitch mit AOS R8 ===== |
+ | |||
+ | ==== Ausgabe von " | ||
+ | < | ||
+ | VINDHYA #-> lsusb -vvv | ||
+ | Bus 001 Device 002: ID 050d:065a <-- der Belkin Bluetooth Adapter | ||
+ | Bus 001 Device 001: ID 1d6b:0002 | ||
+ | </ | ||
+ | |||
+ | ==== Ausgabe in " | ||
+ | Meldungen in **dmesg** wenn der USB-BT-Adapter eingesteckt wird. | ||
< | < | ||
- | sudo apt install build-essential ruby-dev libpcap-dev | + | Router-> su |
- | sudo gem install bettercap | + | Entering maintenance shell. Type 'exit' |
- | pi@powerpi: | + | VINDHYA #-> dmesg |
- | | + | |
- | | |__ ___| |_| |_ ___ _ __ ___ __ _ _ __ | + | |
- | | '_ \ / _ \ __| __/ _ \ '__/ __/ _` | '_ \ | + | |
- | | |_) | __/ |_| || __/ | | (_| (_| | |_) | | + | |
- | |_.__/ \___|\__|\__\___|_| | + | |
- | |_| v1.6.2 | + | |
- | http:// | + | |
... | ... | ||
+ | [1183593.649609] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002 | ||
+ | [1183593.649651] orion-ehci f1050000.usb: | ||
+ | [1183593.649682] hub 1-0:1.0: port 1, status 0101, change 0001, 12 Mb/s | ||
+ | [1183593.803626] hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x101 | ||
+ | [1183593.923627] usb 1-1: new full-speed USB device number 2 using orion-ehci | ||
+ | [1183593.961247] usb 1-1: skipped 1 descriptor after interface | ||
+ | [1183593.962243] usb 1-1: default language 0x0409 | ||
+ | [1183593.965227] usb 1-1: udev 2, busnum 1, minor = 1 | ||
+ | [1183593.965245] usb 1-1: New USB device found, idVendor=050d, | ||
+ | [1183593.965259] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 | ||
+ | [1183593.965271] usb 1-1: Product: BCM20702A0 | ||
+ | [1183593.965282] usb 1-1: Manufacturer: | ||
+ | [1183593.965294] usb 1-1: SerialNumber: | ||
+ | [1183593.966059] usb 1-1: usb_probe_device | ||
+ | [1183593.966078] usb 1-1: configuration #1 chosen from 1 choice | ||
+ | [1183593.967259] usb 1-1: adding 1-1:1.0 (config #1, interface 0) | ||
+ | [1183593.984447] btusb 1-1:1.0: usb_probe_interface | ||
+ | [1183593.984469] btusb 1-1:1.0: usb_probe_interface - got id | ||
+ | [1183593.987218] usb 1-1: adding 1-1:1.1 (config #1, interface 1) | ||
+ | [1183593.991362] usb 1-1: adding 1-1:1.2 (config #1, interface 2) | ||
+ | [1183593.995804] usb 1-1: link qh1-0e01/ | ||
+ | [1183594.009198] btusb 1-1:1.2: usb_probe_interface | ||
+ | [1183594.009224] btusb 1-1:1.2: usb_probe_interface - got id | ||
+ | [1183594.009371] usb 1-1: adding 1-1:1.3 (config #1, interface 3) | ||
+ | [1183594.014470] btusb 1-1:1.3: usb_probe_interface | ||
+ | [1183594.014494] btusb 1-1:1.3: usb_probe_interface - got id | ||
+ | [1183594.014653] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002 | ||
+ | [1183595.188361] usb 1-1: unlink qh1-0e01/ | ||
+ | [1183595.189628] usb usb1: clear tt buffer port 1, a2 ep2 t04048d80 | ||
+ | [1183595.268571] orion-ehci f1050000.usb: | ||
+ | [1183595.268599] usb 1-1: link qh1-0e01/ | ||
</ | </ | ||
+ | ==== Herausfinden welcher USB-BT-Adapter im OmniSwitch verwendet wird ==== | ||
+ | Um herauszufinden welche MAC-Adresse der USB-BT-Adapter im OmniSwitch verwendet, werden folgende Kommandos verwendet. | ||
+ | |||
+ | < | ||
+ | Router-> su | ||
+ | Entering maintenance shell. Type ' | ||
+ | VINDHYA # | ||
+ | VINDHYA #-> hcitool dev | ||
+ | Devices: | ||
+ | hci0 00: | ||
+ | VINDHYA #-> | ||
+ | </ |
bluetooth-console.1599997385.txt.gz · Zuletzt geändert: 2024/06/09 10:29 (Externe Bearbeitung)