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 Reply Children
  • Hi Simon,

    I work for a company that ask to me to make firmware for a beacon detector (beacon already created and is capable to send advertise every 1 second consuming only 3uA ) in few work days; in the menawhile I also must follow other activities with greater priorities, so as you can image I can devote few time to understand libraries and BSP. 

    The beacon, for power saving, send an advertise every 1 second.

    With one seconds beacon transmission, in my mind with the scanner that listen for 3 seconds, the scanner should be able to detect the beacon in every situation, also after a long sleep. Is this right?

    If 3 second are too few, by your expirience, how many seconds the scanner need as a minimun to detect beacon?

    I hope these informations are useful and you can help me.

    Best regards
        Yahdar

Related