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

with nrf52840 how to detect (scan/sniff) a beacon, identify UUID and aftet go to sleep for one second

I have already developed a beacon with nrf52840, but now I need to detect it with another nrf52840, but my problem is taht I need to use less power as possible, so I need to detect it for one second and after go to sleep for a defined time. 

Problem is that I must disable all possible peripheral (for example UART) and system for many seconds to save power beacuse system must be powered by a small batteries (100mA) for almost one year.

Is there some sample code ready to use?
Can anyone tell me ho to configures scanning and read UUID and RSSI fileds?

Thanks in advance to anyone that could help me.

Parents
  • Hi

    Sorry, but what do you mean by "intercepting" a beacon detection? Can you please try to explain a bit more about what you want to do, and what you're struggling with? Are you working on a central (scanner) or a peripheral (beacon)?

    Best regards,

    Simon

  • Hi

    sorry for my bad english, I'm working on a central (scanner) and pratically I need only to detect an external beacon with a specific UUID that my central knows. when the beacon with UUID is near to the scannel, that is when signal level (RSSI) is over a value, I must set an output pin (I/O) at high level. When beacon is far and signal level (RSSI) under a value, or not detectable (lost), then that output pin must set low.

    The work is simple, but there is also another small problem, the system must go in sleep (under 2uA), or wake up, by the level of another I/O (an input pin). When nrf52 is active (Input pin externally kept high) the detect state must continue for 3 seconds and after has to go sleep for 2 seconds, and so on until input pin will be pulled low. 

    Best regards,

    yahdar

Reply
  • Hi

    sorry for my bad english, I'm working on a central (scanner) and pratically I need only to detect an external beacon with a specific UUID that my central knows. when the beacon with UUID is near to the scannel, that is when signal level (RSSI) is over a value, I must set an output pin (I/O) at high level. When beacon is far and signal level (RSSI) under a value, or not detectable (lost), then that output pin must set low.

    The work is simple, but there is also another small problem, the system must go in sleep (under 2uA), or wake up, by the level of another I/O (an input pin). When nrf52 is active (Input pin externally kept high) the detect state must continue for 3 seconds and after has to go sleep for 2 seconds, and so on until input pin will be pulled low. 

    Best regards,

    yahdar

Children
No Data
Related