www.dragino.com
LTC2 LoRaWAN Temperature Transmitter
15 / 32
User can get this time from link:
https://www.epochconverter.com/
Below is the converter example
So, we can use AT+TIMESTAMP=1611889405 or downlink 3060137afd00 to set current time 2021
– Jan
--
29 Friday 03:03:25
2.5.2
Set Device Time
There are two ways to set device’s time:
1.
Through LoRaWAN MAC Command (Default settings)
User need to set
SYNCMOD
=1 to enable sync time via MAC command.
Once LTC2 Joined LoRaWAN network, it will send the MAC command (DeviceTimeReq) and server
will reply with (DeviceTimeAns) to send the current time to LTC2. If LTC2 fails to get the time from
server, LTC2 will use the internal time and wait for next time request (AT+SYNCTDC to set time
request period, default is 10 days).
Note:
LoRaWAN Server need to support LoRaWAN v1.0.3(MAC v1.0.3)
or higher to support this
MAC command feature, Chirpstack,TTN
v3 and loriot support but TTN v2 doesn’t support. If
server doesn’t support this command, it will through away uplink packet with this command, so
user will lose the packet with time request for TTN v2 if
SYNCMOD
=1.
2.
Manually Set Time
User need to set
SYNCMOD
=0 to manual time, otherwise the user set time will be overwrite by
the time set by server.