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

NRF52823 ANT continuous scan mode is not able to receive message after 128 seconds when only one channel is enabled

Hi,

My target is to create prototype of ANT application with the continuous scan mode. The application works as ANT slave. It is expected to monitor the message boardcast by multiple ANT masters. So in my understanding, i need only enable one channel for continuous scan mode and enable the extended message.

I checked the NRF5 SDK and find the ant_continuous_scanning_controller examples provided in the package can be the starting point.

I do experiment below:

  • use the hrm_tx examples provided in the SDK packages continuous sending out message.
  • update the continuous_scanning_controller and make it as the receive. The main changes are 1. add the rtt log output. 2. remove the using of response channel. The project is attached.examples.zip

The issue i see is after 128 second, no message can be received.

Here are the environment of my test:

How to reproduce this issue

  • unzip the examples.zip attached files
  • copy the examples folder to the SDK root folder
  • compile and program examples/ant/ant_continuous_scanning_controller_coreboard to any NRF52823 boards
  • compile and program examples/ant/ant_plus/ant_hrm/hrm_tx to another NRF52823 board
  • open the Jlink RTT client and get the log

Here are the logs i got from the Jlink RTT client:

Time-increase per second[127] ANT Event Received?[1]
Time-increase per second[128] ANT Event Received?[1]
Time-increase per second[129] ANT Event Received?[0]
Time-increase per second[130] ANT Event Received?[0]
Time-increase per second[131] ANT Event Received?[0]
Time-increase per second[132] ANT Event Received?[0]
Time-increase per second[133] ANT Event Received?[0]

When error happens, app_error_fault_handler() will be called and it shows that there is an error reported by the soft device stack. However, i don't get way to debug these issues.

Parents
  • I tested your project, seems to be working fine on the nRF52 DK. Do you have nRF52 DK that you can test on? What is this error you are talking about? When does it happen? Have you defined DEBUG in your project? Then you should be able to put a breakpoint in app_error_handler() and see error code, line number and file name. (and turn off optimization)

    Can you tell me more about your custom board? What kind of components have you connected to the nRF52? What is the ppm of the LF crystal?

Reply
  • I tested your project, seems to be working fine on the nRF52 DK. Do you have nRF52 DK that you can test on? What is this error you are talking about? When does it happen? Have you defined DEBUG in your project? Then you should be able to put a breakpoint in app_error_handler() and see error code, line number and file name. (and turn off optimization)

    Can you tell me more about your custom board? What kind of components have you connected to the nRF52? What is the ppm of the LF crystal?

Children
No Data
Related