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

use nRF Connect app to test Alert Notification client example failed

My project based on nRF52832 and SDK is 12.2. I need to support alert notification(service UUID 0x1811) client profile for mobile device, I just build and download the nordic example ble_app_alert_notification to my board. My board works fine with other example like heart rate.

Next step I tried to find ways to simulate ANS server and comes to the nRF Connect mobile app, I got no 51dongle so I gave up the steps as the example test guide listed. Through the nRFConnect menu, select Configure GATT server->add service, then input "al", the list auto popped up a list with the first one is "Alert Notification Service", then I repeated to add all characterics:0x2A46, 0x2A47, 0x2A48,0x2A45, 0x2A44.

after that, in nRFConnect, can scan my board, but connect always failed. The board debug log printed: APP:INFO:Fast advertising APP:INFO:Start encryption APP_ERROR:ERROR:Fatal APP:INFO:Alert Notification started APP:INFO:Fast advertising APP:INFO:Slow advertising APP:INFO:Alert Notification started

Can someone give me a hint and really appreciate that.

Parents
  • FormerMember
    0 FormerMember

    Before connecting to the phone for the first time, make sure that the bonding information both on the phone and in the nRF52 device is deleted. Could you check if that changes anything?

  • Maybe I am near sight, I cannot find server settings in step 4, can you do me a favor to verify if it's there in nrfconnect? I am using 4.8.1 version. thanks again.

    1. Bond to the device from nRF Connect (the device is advertising as 'Nordic_Alert_Notif'). To bond, click the settings button for the server in nRF Connect, select "Security parameters", check "Perform Bonding", and click "Apply". Then connect to the device. Observe that the BSP_INDICATE_CONNECTED state is indicated.
Reply
  • Maybe I am near sight, I cannot find server settings in step 4, can you do me a favor to verify if it's there in nrfconnect? I am using 4.8.1 version. thanks again.

    1. Bond to the device from nRF Connect (the device is advertising as 'Nordic_Alert_Notif'). To bond, click the settings button for the server in nRF Connect, select "Security parameters", check "Perform Bonding", and click "Apply". Then connect to the device. Observe that the BSP_INDICATE_CONNECTED state is indicated.
Children
No Data
Related