I can subscript to SimpleBLEPeripheral's 0xFFF3 Notification.
But I CANNOT subscript to Apple's ANCS Notification.
The possible problem is on the "Bonding". When I use LightBlue on iPhone 4 (6.1) my iPad Mini (Run ANCS Program) will ask for Pair. If I remove the Pairing on Bluetooth Setting. My LightBlue won't work with ANCS anymore . I have to Restart LightBlue and re-Pairing then it work with ANCS.
1.I try to set the Notification but it fail, So I fall back to connect to SimpleBLEPeripheral . It is also not easy,too. Beacuse there are few example on how to set Notification and most of them are not correct.
2.I make a few mistake on a)Got the wrong Charateristic UUID of 0xFFF4 it is 0x002f instead of 0x002e b)I should use GATT_WriteCharValue() instead of GATT_WriteNoRespon() c)req.cmd = 0, not 1;
3.Next step is to parse the Notification Message and try to port to ANCS
PS.The "MSG: 7" on the LCD Screen means, it has got 7 Notification. (BLEPeripheral will send out notification every 5 seconds)
PS.Another problem of why it is hard to debug is I cannot tell if BLEPeripheral has really got my Command from BLECentral. I don't know where to put my Log
Test iBeacon's iOS Native Location Manager's Events. When App run in background LocationManager will send event about iBeacon Enter or Leave. The problem of this method is you can monitor only 20 locations and the response time is slow. When I turn on the beacon it show Enter in 20~30 seconds. When I turn off beacon it show Leave also in 20~30 seconds. I think there is no way to change this.
Try to port the RedBear Lab's CC2540 UART Bridge. But unsuccess. Using 1.2.1 Lib, the Serial Port unable to read data from UART. And using 1.3.x Lib, the board just keep boot up again and again. Still no cue about what happen. I think I have to move to study the simple profile and add up my own UART stuff.