background image

GW-ETH-01

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

Содержание GW-ETH-01

Страница 1: ...GW ETH 01 IQRF Ethernet Gateway Firmware v1 03 User s Guide 2011 MICRORISC s r o www iqrf org MNGWETH01_110218 Page 1...

Страница 2: ...by the user can also be used The application protocol is fully documented Applications Remote monitoring and control Data acquisition Datalogger Interface to building home automation Connection of mor...

Страница 3: ...reliability Supply voltage VCC 5 5 V Storage temperature 50 C to 100 C Hardware Power supply GW ETH 01 is intended to be supplied by external stabilized 5 V DC connected to clamp or to micro USB conne...

Страница 4: ...ltaneously with the Reset pushbutton until indicated bootloader mode LED indication GW contains one dual color red green service LED inside the case Legend Reset 1s 200 ms 200 ms for 3s Bootloader 1s...

Страница 5: ...e goes for a packet received by the host Only user data The host sends only it s own data to the IQRF module in this mode Packet creation according the IQRF SPI protocol is up to the GW The same goes...

Страница 6: ...vice is reset and stays in the BL mode The GW uses the same network setup like in the GW mode stored in EEPROM which is important for keeping the communication in case of remote upgrade No setup chang...

Страница 7: ...DIP 001FD5010203 The GW ETH 01 client sends this command automatically and regularly if this is activated in the GW setup which keeps a record of MAC address of the equipment and corresponding IP addr...

Страница 8: ...s the same for both communication directions HEADER H 9 B DATA D 0 497 B CRC 2 B For receiving GW checks GW_ADR validity see the packet header packet length must not be lower than HEADER CRC packet le...

Страница 9: ...ocol 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...

Страница 10: ...of week DB5 GW data day DB6 GW data month DB7 GW data year GW host direction CMD 0x88 answer to the 0x08 command SUBCMD 0x50 write OK 0x60 write Error invalid values DLEN 0x0000 no data Change autent...

Страница 11: ...00 no data GW host direction See Communication initiated by the GW Sending the GW status message TR module reset Remote reset of the TR module host GW direction CMD 0x13 TR module reset SUBCMD 0x00 no...

Страница 12: ...ification 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...

Страница 13: ...text to max 15 characters not used ones replace with zeroes DB36 DB37 0x00 communication with TR module whole packets according to the IQRF SPI protocol 0x01 communication with TR module user data onl...

Страница 14: ...Savings Enabled DB106 0x00 Time Server Index pool ntp org 0x01 europe pool ntp org 0x02 asia pool ntp org 0x03 oceania pool ntp org 0x04 north america pool ntp org 0x05 south america pool ntp org 0x0...

Страница 15: ...n 0 max 59 hours UN 0 2 LN 0 9 min 0 max 23 day UN 0 3 LN 0 9 min 1 max 31 month UN 0 1 LN 0 9 min 1 max 12 year UN 0 9 LN 0 9 min 8 max 99 2008 2099 day of week UN 0 LN 0 6 min 0 max 6 0 Sunday 1 Mon...

Страница 16: ...X Firmware for MCU Ordering code GW ETH 01 IQRF Ethernet gateway Firmware history v1 03 Plug ins to TR modules supported For GW ETH Tool v 1 02 v1 02 Datalogger and Safe mode implemented v1 01 First r...

Страница 17: ...d logo are registered trademarks of MICRORISC s r o PIC SPI Microchip RFM and all other trademarks mentioned herein are property of their respective owners Legal All information contained in this publ...

Отзывы: