BLE AlertNotification Code Example

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
madac_652656
Level 1
Level 1

I wanted to set up an Alert Notification project and send alerts to an Android phone/Tablet.  I got the project up and running using the Pioneer baseboard with a CYBLE-224110 module.  I've connected using CySmart and Android apps that supposedly support Alert Notification.  Everything is reporting "Peer device doesn't support ANS" on the terminal log.  Any suggestions on how to get this working.

0 Likes
1 Solution
himam_31
Employee
Employee
50 likes received 25 likes received 10 likes received

Hello,

   

The software team is planning to release Alert Notification Server example as Creator Code example. But this will be part of any of the future release of Creator version. We do not have a timeline for this as of now (tentatively with PSoC Creator 4.2 version).

   

Thanks,

   

Hima

View solution in original post

0 Likes
4 Replies
rola_264706
Level 8
Level 8
50 likes received 25 likes received 10 likes received

Please post your code by clicking on file then create work space bundle and click add attachment to a new post so we can help you with this issue.

0 Likes
madac_652656
Level 1
Level 1

bobgoar,

   

Thanks for the reply.

   

The code was the BLE_AlertNotification example code from PSoC Creator 4.  I didn't make any changes, just created a project from the GUI button and set the target device to my installed BLE module (CYBLE-224110).  Everything built and installed OK.  Running the code, I can scan and connect as described in the documentation.  I also tried running the installed code outside of the debugger (and pushing the reset button on the Pioneer board) in case there were any effects from sleep modes.  I'm always seeing the message saying ANS is not supported on the client.

   

I was hoping to see something using CySmart, but no luck so far.

   

Thanks,  Max

0 Likes
madac_652656
Level 1
Level 1

I realized the Alert Notification example code behaves as a BLE client, not a server like I was expecting.  I wanted a server example which would send alert notifications to an Android tablet/phone.  I'm trying to implement an ANS service configured as a server by adding that service to the FindMe example,  but would like an example of how to code the handler if anyone knows of one.  So far I haven't found anything amongst the Cypress examples.   

0 Likes
himam_31
Employee
Employee
50 likes received 25 likes received 10 likes received

Hello,

   

The software team is planning to release Alert Notification Server example as Creator Code example. But this will be part of any of the future release of Creator version. We do not have a timeline for this as of now (tentatively with PSoC Creator 4.2 version).

   

Thanks,

   

Hima

0 Likes