Getting next beacon/slot time in class B #1166
Replies: 1 comment 1 reply
-
Hi @upwis-gabriel , thanks for starting the discussion. In general, the stack does not have an easy interface to get the time when the next beacon or ping slot will occur. However, the beacon transmission time is based on GPS and the periodicity is 128 seconds. Thus, if you know either the GPS time or you have once received a beacon, you can calculate the next occurrences. For the ping slots, its not that easy, as the calculation of the windows depend on several parameters. Nevertheless, the stack provides a callback to the application layer to call the process function if a ping slot window will be opened. Actually, i see the use case that you would like to schedule you tasks around the class b operations, so would a functionality to easily track the timings be of interest? |
Beta Was this translation helpful? Give feedback.
-
I'm working on a project where the end node is periodically uploading data (every X minutes) but still requires class B. The project is running on ST's modified version of the 4.4.7 LoRaMac release, but I believe the lower layers are basically the same.
Before transmitting the message, the device reads from a serial port, and that can take some time. I have found that it sometimes collides with the beacon or RX slot, causing issues. Therefore I would like to schedule around them, and need to know when they will happen. Is there a simple way to find the next scheduled beacon reception and RX slot?
Beta Was this translation helpful? Give feedback.
All reactions