1.I follow the mbientlab.com's method. Modify the code.
2.The iOS and CC2540 can connect.
3.When it is bond I start the Discovery function.
4.It found the UUID of ANCS
5.It found the UUID of Notification
6.I got the handle (I hope so) . The value is 0x10.
7.I Write 0x0001 to the handle.
8.I got Write Error 5.
PS. The Image's error is Error 3 because I mess up the handle value.
PS. I put the code I modify here -> Download TimeApp.zip
PS.My Board has Key. So I use Key_Up for Adv and press connect on iOS . After Connect I use Key_Right to Set Notify.
PS.I was wrong. The program still don't create the bond. Don't use the code.
Look so close now, hope can see you success and share your experience, I just finished one project with cc2540. but still can't know how to make ancs work.
Posted by: fly | February 06, 2014 at 05:39 AM