S76G/S78G Commands Set Reference
v1.6.5
July 2, 2018
53 of 73
Product Name
Version
Doc No
Date
Page
LoRaWAN uplinks payload format:
UTC (Date & Time)
Latitude
Longitude
cbce48
c69ba8ce
625b3bc8
1.
Calculate UTC as Date and Time: (e.g.
cbce48
, 0xcb is 1
st
byte of the payload)
a)
Change endian as below:
cb ce 48
0x48cecb
0x48cecb equals “0100 1000 1100 1110 1100 1011”.
Divide them as two part: The first 6 bits and others.
“0100 10” & “00 1100 1110 1100 1011”.
b)
Find UTC Date out:
Add 0 in front of “0100 10”, it becomes “00010010”.
“00010010” is 0x12 (hex value).
0x12 (hex) is 18 (decimal), so the Day of date is
18
.
Year & Month is not supporting.
c)
Find UTC Time out:
Add 0 in front of “00 1100 1110 1100 1011”, it becomes “0000 1100 1110 1100 1011”.
“0000 1100 1110 1100 1011” is 0x0cecd (hex value).
0x0cecb (hex) is 52939
52939 means “5 29 39”
5
(hour):
29
(minute):
39
(sec) (UTC Time)
Taiwan Time (UTC+8) is 13:29:39.
2.
Calculate Latitude: (e.g.
c69ba8ce
, 0xc6 is 4
th
bytes of the payload, 0xce is 7
th
)
a)
Change endian as below:
ce a8 9b c6
0xcea89bc6 (hex)
“
11
00 1110 1010 1000 1001 1011 1100 0110”