This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Any more information on the ble_app_ancs project?

I've downloaded the latest SDK and soft device. I've been able to compile the ble_app_ancs project, run it on my dev board and even connect to my iPhone. Although I'm getting assertions when I try to connect after restarting.

There seems to be a Master Control Panel server setup file, ANCS_central.bin, but I couldn't find any information about how to drive that like there if for the Alert Notification Application.

Parents
  • Hi Eric

    We have not made official documentation for it yet, it is experimental, but I will try to get you started. You should find some useful information in the Apple Notification Center Service (ANCS) Specification as well.

    1. Compile and program the application. Observe that the Advertising LED is lit.
    2. In the Master Control Panel create the ANCS server by doing the following steps: -Click File -> Server Setup. In the window that opened up, click File -> Load setup. -In the resulting window, navigate to ble_app_ancs folder and load the file named ANCS_central.bin. -Press 'Stop server' and then 'Start server'. -It is important to keep the server window opened.
    3. Select to the device from Master Control Panel (the device will be advertising as 'ANCC'), then connect and perform service discovery. Observe that the Connected LED is lit, and the Advertising LED is off.
    4. The first characteristic in our ANCS server is the 'Notification Source'(see the ANCS spec). This has 8 bytes, with the format in Figure 2.1. So, updating the value of this characteristic to 01-00-04-00-99-99-99-91 the lcd screen should show:

    Social Modified 9999999(not space for the last digit)

    You can find the different category ID's and event ID's in main.c

    Hope this can get you started, if anything is unclear, please don't hesitate to reply.

    Please remember that this is experimental, and there can, and most likely will, be changes.

Reply
  • Hi Eric

    We have not made official documentation for it yet, it is experimental, but I will try to get you started. You should find some useful information in the Apple Notification Center Service (ANCS) Specification as well.

    1. Compile and program the application. Observe that the Advertising LED is lit.
    2. In the Master Control Panel create the ANCS server by doing the following steps: -Click File -> Server Setup. In the window that opened up, click File -> Load setup. -In the resulting window, navigate to ble_app_ancs folder and load the file named ANCS_central.bin. -Press 'Stop server' and then 'Start server'. -It is important to keep the server window opened.
    3. Select to the device from Master Control Panel (the device will be advertising as 'ANCC'), then connect and perform service discovery. Observe that the Connected LED is lit, and the Advertising LED is off.
    4. The first characteristic in our ANCS server is the 'Notification Source'(see the ANCS spec). This has 8 bytes, with the format in Figure 2.1. So, updating the value of this characteristic to 01-00-04-00-99-99-99-91 the lcd screen should show:

    Social Modified 9999999(not space for the last digit)

    You can find the different category ID's and event ID's in main.c

    Hope this can get you started, if anything is unclear, please don't hesitate to reply.

    Please remember that this is experimental, and there can, and most likely will, be changes.

Children
Related