2017-02-13 25 views
0

我成功地能夠與我的nucleo-64板上的IDB05A1進行通信。從BLUEnrg-ms藍牙設備解密HCI事件

我使它成爲可發現的並將我的手機與它配對。但是,在配對之後,設備會與我的手機斷開連接。 它斷開之前,我收到HCI事件我無法破譯:

0×04 0xFF的0x0B中0×01 0x0c 0×01 0×08 0×04 0×00 0×02 0×00 0×00 0×02 0×00

請幫我解讀這一點。 datasheet with commands and events

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

這是什麼事?

回答

0

此事件看起來與問題無關。 它表示某些屬性的修改值。

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

事件數據: 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