
GW-GSM-02
Data logging
GW-GSM-02 automatically stores data packets received from TR in internal Flash memory. Up to 3200 records can be
saved. The memory is organized as circular FIFO buffer. When the buffer is full, the sector (for 32 records) with the latest
messages is cleared and new records start to be saved there.
Data records format
#number#DDMMYYHHmmSS#data#
•
number - record serial number
•
DD – days
•
MM – months
•
YY – years
•
HH - hours
•
mm – minutes
•
SS – seconds
•
data - record payload data, length up to 64 B
•
# - separator
System logging
GW-GSM-02 automatically logs system status and events. These messages are stored in Flash with the same format as
data records.
System records format
#number#DDMMYYHHmmSS#data#
•
number - record serial number
•
DD – days
•
MM – months
•
YY – years
•
HH – hours
•
mm – minutes
•
SS – seconds
•
data - event data and status
•
# - separator
Event data and status
Each system record payload has the same length 8 B.
0
1
2
3
4
5
6
7
Event
System agent
GSM RSSI
External Power
Accumulator voltage
Event
Type of event, see below
System Agent
Additional information for start up and shutdown events, see below
GSM RSSI
GSM Received Signal Strength Indication value in ASCII format (from 0 to 99)
Ext. Power
0x30 - External power not available, 0x31 - External power applied
Accumulator Voltage
Value from A/D converter in hex format (AD = 000 to 3FF)
To calculate voltage, use this formula V
bat
= (AD + 671.03)
/
327.71 V.
Example for AD = 190:
190 in hexadecimal = 400 in decimal, V
bat
= (400 + 671.03)
/
327.71 V = 3.27 V.
Event byte
System agent byte
Code ASCII Event
Code ASCII Agent
0x30 0
Reset
0x30 0
Not defined
0x31 1
Power On (wake up)
0x31 1
Accumulator - GW switched to sleep because of low accumulator voltage
0x32 2
GSM login correct
0x32 2
USB - GW has been switched to sleep using software from PC
0x33 3
Power Off (sleep)
0x33 3
Button - GW has been switched to sleep using power button
0x34 4
GSM login failed
0x35 5
Server login failed
0x36 6
Send SMS failed
© 2013 MICRORISC s.r.o.
www.iqrf.org
UG_GW-GSM-02_131016
Page 6