User Manual for LoRaWAN End Nodes - CPL01 LoRaWAN Outdoor Pulse/Contact Sensor
2.4.2 Set Device Time
There are two ways to set the device’s time:
1. Through LoRaWAN MAC Command (Default settings)
Users need to set SYNCMOD=1 to enable sync time via the MAC command.
Once CPL01 Joined the LoRaWAN network, it will send the MAC command (DeviceTimeReq) and the server will
reply with (DeviceTimeAns) to send the current time to CPL01. If CPL01 fails to get the time from the server, CPL01
will use the internal time and wait for the next time request [
Note
:
LoRaWAN Server needs to support LoRaWAN v1.0.3(MAC v1.0.3)
or higher to support this MAC command
feature.
2. Manually Set Time
Users need to set SYNCMOD=0 to manual time, otherwise, the user set time will be overwritten by the time set by
the server.
2.4.3 Poll sensor value
Users can poll sensor values based on timestamps. Below is the downlink command.
Downlink Command to poll Open/Close status (0x31)
1byte
4bytes
4bytes
1byte
Page 18 / 32 - last modified by Xiaoling on 2022/07/01 18:01