2017-02-13 2 views
0

Ich bin erfolgreich in der Lage, mit meinem IDB05A1 von meinem Nukleo-64-Board zu kommunizieren.Entschlüsselung HCI-Ereignis von BLUEnrg-ms Bluetooth-Gerät

Ich mache es erkennbar und mein Telefon damit zu koppeln. Unmittelbar nach dem Pairing wird das Gerät von meinem Telefon getrennt. Bevor es trennt erhalte ich ein HCI-Ereignis ich nicht entziffern kann:

0x04 0xff 0x0b 0x01 0x0C 0x01 0x08 0x04 0x00 0x02 0x00 0x00 0x02 0x00

mir bitte helfen, diese zu entschlüsseln. datasheet with commands and events

0x04  //HCI event 
0xff  //Vendor specific 
0x0b  //Contains 0b(12) bytes 
0x01, 0x0c //BLUEnrg event code 
0x...... 

Welches Ereignis ist das?

Antwort

0

Dieses Ereignis hat nichts mit dem Problem zu tun. Es zeigt den modifizierten Wert eines Attributs an.

HCI Eventpaket: 0x04 //HCI event 0xff //Vendor specific 0x0b //Contains 0b(11) bytes 0x01 0x0c 0x01 0x08 0x04 0x00 0x02 0x00 0x00 0x02 0x00 //Event data

Ereignisdaten: 0x0c01 //ACI_GATT_ATTRIBUTE_MODIFIED_EVENT 0x0801 //The connection handle which modified the attribute 0x0004 //Handle of the attribute that was modified 0x0002 //Length of the attribute data 0x00 //Offset 0x0002 //The modified value