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

simple scanner application stops after ~1 week

Hello,

I have developed simple scanner application that scans for beacons (apple, nordic and of own type). It prints data about beacons over UART. I have installation where I have 25 such scanners. I installed them ~10 days ago. Suddenly 3 days ago all of them except from 2 I installed later stoped reporting. Reset helped. Looks like time-releated problem, however I dont use any timers in my app. My scan params are:

#define SCAN_INTERVAL           0x0020                          /**< Determines scan interval in units of 0.625 millisecond. */
#define SCAN_WINDOW             0x0020                          /**< Determines scan window in units of 0.625 millisecond. */
#define SCAN_ACTIVE             1                               /**< If 1, performe active scanning (scan requests). */
#define SCAN_SELECTIVE          0                               /**< If 1, ignore unknown devices (non whitelisted). */
#define SCAN_TIMEOUT            0x0000                          /**< Timout when scanning. 0x0000 disables timeout. */

Regards,

Michal

Parents
  • Hi,

    I find this issue strange. Nothing indicates that the scan parameters that you have would cause this. My suspicion is that the issue is on the UART client side.

    • What client have you connected the beacons to? A PC? What program is running on the PC?
    • Was there any activity on the data line when the beacons had stopped? Where they still scanning? 
    • Do you have any sniffer log of the event?
    • I would recommend connecting one of the IC to a debugger and run it in debug mode until you experience a similar issue. Then print the debug code that is thrown so that we can analyze the problem further.

    Best regards

    Jared 

Reply
  • Hi,

    I find this issue strange. Nothing indicates that the scan parameters that you have would cause this. My suspicion is that the issue is on the UART client side.

    • What client have you connected the beacons to? A PC? What program is running on the PC?
    • Was there any activity on the data line when the beacons had stopped? Where they still scanning? 
    • Do you have any sniffer log of the event?
    • I would recommend connecting one of the IC to a debugger and run it in debug mode until you experience a similar issue. Then print the debug code that is thrown so that we can analyze the problem further.

    Best regards

    Jared 

Children
No Data
Related