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

beacons are missed when debugger is not connected

Hi,

I designed a gateway that includes nrf52832 which receives beacons and sends it to other processor through uart, and this processor sends beacons to the server. Well, when i connect the rtt debugger to the nrf, there is no problem, all beacons are sended to the server but when i disconnect the debugger, approximately %40 of the beacon are missed, i can see these received beacons on the server. I use one beacon, and advertising interval is 1 second.

Also SEGGER_RTT_CONFIG_DEFAULT_MODE is set to SKIP

Any idea what is the reason.

Parents
  • Hi

    A common reason something would work "better" in debugger mode, is that in debugger mode, the HFCLK is forced to stay on all the time, while in normal mode, the HFCLK will be turned off to minimize the current consumption when it isn't needed, so for example between scanning/transmitting radio events. Which could be the reason it ain't received. A few questions, as I don't quite understand your setup:

    Does this gateway work as a relayer, so it receives a beacon signal, and transmits it to your central? What device is your central? If you're able to see that the beacons are received by the central, is it the gateway that isn't receiving 40% of your beacon signals?

    Best regards,

    Simon

Reply
  • Hi

    A common reason something would work "better" in debugger mode, is that in debugger mode, the HFCLK is forced to stay on all the time, while in normal mode, the HFCLK will be turned off to minimize the current consumption when it isn't needed, so for example between scanning/transmitting radio events. Which could be the reason it ain't received. A few questions, as I don't quite understand your setup:

    Does this gateway work as a relayer, so it receives a beacon signal, and transmits it to your central? What device is your central? If you're able to see that the beacons are received by the central, is it the gateway that isn't receiving 40% of your beacon signals?

    Best regards,

    Simon

Children
Related