ISSC、紅果藍牙設備日誌分析

藍牙設備獲取不到設備信息,原因分析。

紅果藍牙:
2015-12-07 23:31:13.012 **[3533:356162] [CBController] connectDevice: Gprinter_BLE_1007
2015-12-07 23:31:13.627 **[3533:356162] [CBController] Service found with UUID: Device Information
2015-12-07 23:31:13.628 *[3533:356162] [CBController] Service found with UUID: **********
2015-12-07 23:31:13.775 **[3533:356162] –dog–error:(null)
2015-12-07 23:31:13.776 **[3533:356162]
[CBController] didDiscov******teristicsForService: Device Information
2015-12-07 23:31:13.777 **[3533:356162] [CBController] found system ID char
2015-12-07 23:31:13.777 **[3533:356162] found manufacture name char
2015-12-07 23:31:13.851 **[3533:356162] –dog–error:(null)
2015-12-07 23:31:13.852 **[3533:356162]
[CBController] didDiscov******teristicsForService: ****
2015-12-07 23:31:13.852 **[3533:356162] found TRANS_RX
2015-12-07 23:31:13.853 **[3533:356162] [MyPeripheral] setTransDataNotification UUID = (null)
2015-12-07 23:31:13.853 **[3533:356162] [ConnectViewController] updateMyPeripheralForNewConnected
2015-12-07 23:31:13.888 **[3533:356162] [CBController] didWriteValueForCharacteristic error msg:0, (null), (null)
2015-12-07 23:31:13.890 **[3533:356162] characteristic data = (null) id = BEF8D6C9-9C21-4C9E-B632-BD58C1009F9F
2015-12-07 23:31:15.893 **[3533:356162] [CBController] didWriteValueForCharacteristic error msg:0, (null), (null)
2015-12-07 23:31:15.894 **[3533:356162] characteristic data = (null) id = B—————-A

ISSC藍牙:
2015-12-07 23:34:15.665 **[3577:357362] [CBController] connectDevice: Gpinter
2015-12-07 23:34:16.679 **[3577:357362] [CBController] Service found with UUID: Device Information
2015-12-07 23:34:16.679 **[3577:357362] [CBController] Service found with UUID: 495353——–205E455
2015-12-07 23:34:16.799 **[3577:357362] –dog–error:(null)
2015-12-07 23:34:16.799 **[3577:357362]
[CBController] didDiscov******teristicsForService: Device Information
2015-12-07 23:34:16.799 **[3577:357362] found manufacture name char
2015-12-07 23:34:16.799 **[3577:357362] found model number char
2015-12-07 23:34:16.800 **[3577:357362] found serial number char
2015-12-07 23:34:16.800 **[3577:357362] found hardware revision char
2015-12-07 23:34:16.800 **[3577:357362] found firmware revision char
2015-12-07 23:34:16.800 **[3577:357362] found software revision char
2015-12-07 23:34:16.800 **[3577:357362] [CBController] found system ID char
2015-12-07 23:34:16.801 **[3577:357362] found certification data list char
2015-12-07 23:34:16.919 **[3577:357362] –dog–error:(null)
2015-12-07 23:34:16.919 **[3577:357362]
[CBController] didDiscov******teristicsForService: 49535343-FE7D-4AE5-8FA9-9FAFD205E455
2015-12-07 23:34:16.920 **[3577:357362] found CONNECTION_PARAMETER_CHAR
2015-12-07 23:34:16.920 **[3577:357362] found UUIDSTR_AIR_PATCH_CHAR
2015-12-07 23:34:16.921 **[3577:357362] found TRANS_TX
2015-12-07 23:34:16.921 **[3577:357362] found TRANS_RX
2015-12-07 23:34:16.921 **[3577:357362] [MyPeripheral] setTransDataNotification UUID = 49535343-1E4D-4BD9-BA61-23C647249616
2015-12-07 23:34:16.922 **[3577:357362] [ConnectViewController] updateMyPeripheralForNewConnected
2015-12-07 23:34:17.039 **[3577:357362] [CBController] didUpdateNotificationStateForCharacteristic, UUID = 49535343-ACA3-481C-91EC-D85E28A60318
2015-12-07 23:34:18.990 **[3577:357362] [CBController] didUpdateValueForCharacteristic <5f475032 31323054 00>

分析
ISSC不支持Tx、Rx同樣命名的處理,需要微調。
setTransDataNotification UUID = 49535343-1E4D-4BD9-BA61-23C647249616
此信息爲解決問題的關鍵。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章