Communication initiated by the GW (asynchronous message)
Send date from TR module
Sends data from the TR module according to the IQRF SPI protocol. According to the settings either just actual data or the
whole packet is send.
GW -> host direction
CMD 0x04 send data from TR module
SUBCMD 0x00 no information
DATA data from TR module
-------------------------------------------------------------------------------------------------------------------------------------
Send GW status message
It is a message from the GW about its state. The information is indicated by the SUBCMD byte.
GW -> host direction
CMD 0x05 GW status message
SUBCMD 0x01 GW reset, sent after switching on
0x02 change its own IP address (only if the DHCP is active)
0x03 power supply: external
0x04 power supply: acumulator
0x10 reserved for upgrade (sent by the bootloader only)
DATA text with GW identification. See Identification data.
-------------------------------------------------------------------------------------------------------------------------------------
Identification data
Identification data consists of several texts separated by 0x0D 0x0A.
1. - GW name e.g.: „GW-ETH-01“
2. - GW version e.g.: „v0.30b“
3. - MAC address e.g.: „00 11 22 33 44 55“
4. - TCP/IP Stack version e.g.: „v4.51“
5. - IP address of GW e.g.: „192.168.2.100“
6. - Net BIOS Name e.g.: „iqrf “ 15 characters
7. - IQRF module OS version e.g.: „v2.08“
8. - Public IP address e.g.: „213.214.215.120“
-------------------------------------------------------------------------------------------------------------------------------------
Status data
GW status data for the Get GW status command.
DB1 TR module status (see the IQRF SPI protocol)
DB2 GW temperature – value in Celsius grads (signed char)
DB3 0x00 supplied from accumulator
0x01 supplied from external source
DB4 GW time – seconds (see Time and date coding)
DB5 GW time – minutes
DB6 GW time – hours
DB7 GW date – day of the week
DB8 GW date – day
DB9 GW date – month
DB10 GW date – year
DB11 GW accumulator voltage – H byte in mV (unsigned integer)
DB12 GW accumulator voltage – L byte
-------------------------------------------------------------------------------------------------------------------------------------
© 2011 MICRORISC s.r.o. www.iqrf.org MNGWETH01_110218 Page 12