2013年7月25日 星期四
Android Coding Note
Android data storage folder:
http://my.oschina.net/u/199733/blog/110454 (Chinese)
http://www.ozzysun.com/2010/11/android.html (Chinese)
String match
http://stackoverflow.com/questions/2275004/in-java-how-to-check-if-a-string-contains-a-substring-ignoring-the-case
Activity exit
http://stackoverflow.com/questions/14052849/how-to-close-all-activities-in-android-and-close-from-task-manager
NFC
http://stackoverflow.com/questions/10687482/android-launch-activity-multiple-times-on-an-nfc-tag
http://stackoverflow.com/questions/10278881/does-androids-nfc-foreground-dispatch-system-have-a-bug
- flow chart
http://www.imobilebbs.com/wordpress/archives/2813
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.
Reference documents:
Refer to sample source code:
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 0x2A 18 Characteristic
2013-07-16
17:03:55.351 GLP[3568:907] Found a Glucose Measurement Context 0x2A 34 Characteristic
2013-07-16
17:03:55.353 GLP[3568:907] Found a 0x2A 51
Feature Characteristic
2013-07-16
17:03:55.355 GLP[3568:907] Found a 0x2A 52
Record Access Control Point Characteristic
2013-07-16
17:03:55.357 GLP[3568:907] Set notification for 0x2A 52 Record Access Control Point
2013-07-16
17:03:55.361 GLP[3568:907] Write 0x2A 52
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 (<2a 52>)
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
(<2a 24>)
2013-07-16
17:03:56.019 GLP[3568:907] Manufacturer Name = DELBio
2013-07-16
17:04:07.324 GLP[3568:907] Write 0x2A 52
Record Access Control Point with value <0105>
2013-07-16
17:04:07.423 GLP[3568:907] RACP= <0105>, UUID=Unknown (<2a 52>)
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 0x2A 52
Record Access Control Point with value <0106>
2013-07-16
17:04:15.223 GLP[3568:907] RACP= <0106>, UUID=Unknown (<2a 52>)
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 0x2A 52
Record Access Control Point with value <0101>
2013-07-16
17:13:41.688 GLP[3568:907] RACP= <0101>, UUID=Unknown (<2a 52>)
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:
- CoreBluetooth Framework
- Sample code example guide (Chinese)
- CBError
- LED sample code
- CC254x Bonding code
- Workable BLE test App from App store
- CoreBluetooth simple guide
- Nordic glucose test flow
- TI CC254x wiki
- SIG Bluetooth Glucose profile
- Apple Bluetooth design guidelines
- Excel for calculating the connection parameters to meet Apple requirement (CC2540)
Refer to sample source code:
2013年7月9日 星期二
[Xcode] Corebluetooth lesson for start
http://blog.chrismiles.info/2013/03/bluetooth-le-with-corebluetooth.html
How to add storyboard to xcode ios project
Those steps :
- Add new storyboard to the project by File->New->File...->Userinterface->storyboard\
- Go to project summary and select MainStoryboard and select the storyboard name
- From AppDelegate.m file in method didFinishLaunchingWithOptions, comment everything except last statement which returns YES.
訂閱:
文章 (Atom)