![IQRF GW-ETH-02A Скачать руководство пользователя страница 30](http://html1.mh-extra.com/html/iqrf/gw-eth-02a/gw-eth-02a_user-manual_2089820030.webp)
GW-ETH-02A
Communication initiated by the host
Get GW identification
Getting a GW identification. It is intended to identification of the GW which the connection is established with.
host -> GW direction
CMD
0x01
returns the GW identification
SUBCMD
0x00
no information
DLEN
0x0000
no data
GW -> host direction
CMD
0x81
answer to the 0x01 command
SUBCMD
0x00
no information
0x10
bootloader
DATA
text with GW identification. See Data identification
-------------------------------------------------------------------------------------------------------------------------------------
Get GW status
The GW returns the information about its state.
host -> GW direction
CMD
0x02
returns the GW status
SUBCMD
0x00
no information
DLEN
0x0000
no data
GW -> host direction
CMD
0x82
answer to the 0x02 command
SUBCMD
0x00
no information
DATA
see Status data
-------------------------------------------------------------------------------------------------------------------------------------
Write data to TR module
Data according the IQRF SPI protocol is written to the TR module. The answer is an acknowledge of writting to the module.
If the answer is requested from the module it is sent with the actual command – see Communication initiated by the GW.
According to GW configuration either just actual data or the whole packet is written.
host -> GW direction
CMD
0x03
write data to the TR module
SUBCMD
0x00
no information
DATA
data for the TR module
GW -> host direction
CMD
0x83
answer to the 0x03 command
SUBCMD
0x50
write OK
0x60
write Error (number of data = 0 or more than TR buffer COM length)
0x61
write Error (SPI bus busy)
0x62
write Error (IQRF - CRCM Error)
DLEN
0x0000
no data
-------------------------------------------------------------------------------------------------------------------------------------
© 2016 MICRORISC s.r.o.
www.iqrf.org
User_Guide_GW-ETH-02A_ 160208
Page 30