2013年7月16日 星期二

[Xcode] Glucose profile coding for iOS app

Debug message for RACP (Record access control point) list below.
If get CoreBluetooth unknow error code 129, shall set Glucose Measurement & Glucose Measurement Context  with notification.
Other error can refer to CB error.

2013-07-16 17:03:54.637 GLP[3568:907] connected
2013-07-16 17:03:55.334 GLP[3568:907] Service found with UUID: Generic Access Profile
2013-07-16 17:03:55.337 GLP[3568:907] Service found with UUID: Generic Attribute Profile
2013-07-16 17:03:55.339 GLP[3568:907] Service found with UUID: Unknown (<1808>)
2013-07-16 17:03:55.342 GLP[3568:907] Service found with UUID: Unknown (<180a>)
2013-07-16 17:03:55.345 GLP[3568:907] Found a Device Name Characteristic
2013-07-16 17:03:55.348 GLP[3568:907] Found a Glucose Measurement 0x2A18 Characteristic
2013-07-16 17:03:55.351 GLP[3568:907] Found a Glucose Measurement Context 0x2A34 Characteristic
2013-07-16 17:03:55.353 GLP[3568:907] Found a 0x2A51 Feature Characteristic
2013-07-16 17:03:55.355 GLP[3568:907] Found a 0x2A52 Record Access Control Point Characteristic
2013-07-16 17:03:55.357 GLP[3568:907] Set notification for 0x2A52 Record Access Control Point
2013-07-16 17:03:55.361 GLP[3568:907] Write 0x2A52 Record Access Control Point with value <0401>
2013-07-16 17:03:55.364 GLP[3568:907] Found a Model Name Characteristic
2013-07-16 17:03:55.366 GLP[3568:907] Found a Device Manufacturer Name Characteristic
2013-07-16 17:03:55.368 GLP[3568:907] Device Name =
2013-07-16 17:03:55.453 GLP[3568:907] CoreBluetooth[WARNING] Unknown error: 2
2013-07-16 17:03:55.456 GLP[3568:907] Glucose measurement received value: (null)
2013-07-16 17:03:55.513 GLP[3568:907] Glucose feature received value: <ff07>
2013-07-16 17:03:55.664 GLP[3568:907] RACP= <0401>, UUID=Unknown (<2a52>)
2013-07-16 17:03:55.666 GLP[3568:907] Receive access control point value: <05000002>
2013-07-16 17:03:56.015 GLP[3568:907] Model Name = DE020
2013-07-16 17:03:56.017 GLP[3568:907] Model Name = <44453032 3000>, UUID=Unknown (<2a24>)
2013-07-16 17:03:56.019 GLP[3568:907] Manufacturer Name = DELBio
2013-07-16 17:04:07.324 GLP[3568:907] Write 0x2A52 Record Access Control Point with value <0105>
2013-07-16 17:04:07.423 GLP[3568:907] RACP= <0105>, UUID=Unknown (<2a52>)
2013-07-16 17:04:07.426 GLP[3568:907] Glucose measurement received value: <1b0100dc 07060507 06000000 01b01100 00>
2013-07-16 17:04:07.603 GLP[3568:907] Receive access control point value: <06000101>
2013-07-16 17:04:15.058 GLP[3568:907] Write 0x2A52 Record Access Control Point with value <0106>
2013-07-16 17:04:15.223 GLP[3568:907] RACP= <0106>, UUID=Unknown (<2a52>)
2013-07-16 17:04:15.226 GLP[3568:907] Glucose measurement received value: <1b0002dc 07060507 06000000 80b01100 00>
2013-07-16 17:04:15.403 GLP[3568:907] Receive access control point value: <06000101>
2013-07-16 17:13:41.585 GLP[3568:907] Write 0x2A52 Record Access Control Point with value <0101>
2013-07-16 17:13:41.688 GLP[3568:907] RACP= <0101>, UUID=Unknown (<2a52>)
2013-07-16 17:13:41.691 GLP[3568:907] Glucose measurement received value: <1b0100dc 07060507 06000000 01b01100 00>
2013-07-16 17:13:41.868 GLP[3568:907] Glucose measurement received value: <1b0200dc 07060507 06000000 02b01100 00>
2013-07-16 17:13:42.078 GLP[3568:907] Glucose measurement received value: <1b0300dc 07060507 06000000 03b01100 00>

2013-07-16 17:13:42.290 GLP[3568:907] Glucose measurement received value: <1b0400dc 07060507 06000000 04b01100 00>
.....
2013-07-16 17:15:24.889 GLP[3568:907] Glucose measurement received value: <1b0002dc 07060507 06000000 80b01100 00>
2013-07-16 17:15:25.069 GLP[3568:907] Receive access control point value: <06000101>


Reference documents:



Refer to sample source code:







1 則留言: