IQRF GW-GSM-02A User manual

GW-GSM-02A
IQRF GSM Gateway
User's Guide
© 2017 IQRF Tech s.r.o. www.iqrf.tech www.iqrf.org User_Guide_GW-G M-02A_170814 Page 1

GW-GSM-02A
© 2017 IQRF Tech s.r.o. www.iqrf.tech www.iqrf.org User_Guide_GW-G M-02A_170814 Page 2
Description
GW-G M-02A is an IQRF gateway for connection between IQRF
and G M networks allowing remote monitoring, data collection and
control of IQRF network.
Main components are: 8b microcontroller, G M module with
antenna, serial Flash memory and IQRF transceiver module with
antenna.
The gateway can communicate outside the IQRF network via
GPR . Configuration is possible via IQRF IDE.
GW-G M-02A allows communication with IQRF IDE to configure
internal TR module and simply create IQRF networks. It is fully
compatible with the DPA protocol. Non-DPA applications are
supported as well.
GW-G M-02A supports exchanging data with any cloud server
designed according to IQRF Cloud server specification.
Applications
• Remote monitoring and control
• Data acquisition / collection
• Datalogger, IQRF Cloud supported
• Interface to building / home automation
• Connection of more IQRF networks to single PC
• DPA as well as non-DPA applications supported
Key features
• HTTP client for communication with IQRF Cloud server
• DHCP client for automated getting of IP address
• RTCC (real time clock/calendar)
• Firmware upgrade via IQRF IDE
• Upgrade of application in internal TR module via IQRF IDE
• DPA and IQRF IDE compatible
Block diagram

GW-GSM-02A
Information contained in this publication regarding device applications and the like is provided only for your convenience and may
be superseded by updates. It is your responsibility to ensure that your application meets with your specifications.
IQRF Tech MAKE NO REPRE ENTATION OR WARRANTIE OF ANY KIND TO TATED CONDITION, QUALITY,
PERFORMANCE, MERCHANTABILITY OR FITNE FOR PURPO E and disclaims all liability arising from this information and
its use. Use of IQRF Tech devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to
defend, indemnify and hold harmless IQRF Tech from any and all damages, claims, suits, or expenses resulting from such use.
No licenses are conveyed, implicitly or otherwise, under any IQRF Tech intellectual property rights.
Electrical specifications (Typical values unless otherwise stated)
Power supply 4.8 V – 5.5 V DC
Accumulator LI14500-1L, 3.7V, 700 mAh, soldered
upply current
tandby (all peripherals disabled,
accumulator fully charged) 20 µA
Operating
TR and G M inactive 75 mA
Additional current
TR active ee datasheet of TR module
G M transmitting ~175 mA
Accumulator charging 50 mA max.
Temperature range
Operational -20°C to +60°C
Accumulator charging 0 °C to +45 °C
torage -20°C to +20°C (1 year), -20°C to +60°C (1 month)
+10°C to +25°C recommended
IQRF
Frequency bands For (DC)TR-52D: 868 MHz or 916 MHz ( W configurable)
For (DC)TR-72D: 868 MHz
RF output power According to TR module, programmable
TR module (DC)TR-72DA or DCTR-52DA
Antenna PCB antenna built-in TR module
G M
Frequency bands 850/900/1800/1900 MHz
Antenna External, MA, gain 2.15 dBi
Flash memory T25VF080B, 8 Mb, 100 000 erase/write cycles typ.
Dimensions
Without antenna 87 mm x 62 mm x 26 mm
With antenna 105 mm x 62 mm x 62 mm
Weight 88 g
Absolute maximum ratings
tresses above those values may cause permanent damage to the device. Exposure to maximum rating conditions
for extended periods may affect device reliability.
upply voltage (VCC) 5.5 V
torage temperature -20 °C to +60 °C
© 2017 IQRF Tech s.r.o. www.iqrf.tech www.iqrf.org User_Guide_GW-G M-02A_170814 Page 3

GW-GSM-02A
Hardware
Power supply
GW-G M-02A is intended to be supplied by external stabilized 5 V DC
connected to micro U B connector.
GSM
850 MHz and 1800 MHz as well as 950 MHz and 1900 MHz bands are used.
Pushbuttons
Both Reset and Control pushbutton functionality is fixed and can not be changed in application program.
Control
• hort press (< 1 s): No effect
• Long press (> 1 s): witching On/Off. ee Appendix 1 for startup LED indication.
•Long press (> 10 s): Restore the factory settings of the gateway. (After 10s LED stop flashing to indicate that new
settings was written)
eset
Reset button can be pressed by a pin through the hole in the case. It is intended to completely initialize the gateway.
LEDs
ee Appendix 1 – LED indication.
IQ F
DCTR-52DA or (DC)TR-72DA wireless transceiver module is used for IQRF connectivity. Antenna is built in TR module.
Interferences between close G M and IQRF frequencies can possibly result in packets losts. If this phenomena affects
functionality of your gateway, to avoid simultaneous G M / IQRF data transmissions you can separate both transmissions
by an adjustable time-delay in the gateway setting. Or use remote G M antenna instead of the standard one delivered
with the gateway.
© 2017 IQRF Tech s.r.o. www.iqrf.tech www.iqrf.org User_Guide_GW-G M-02A_170814 Page 4

GW-GSM-02A
Flash memory
Log data is stored in circular buffer in Flash memory. When it is full and a subsequent write is performed, then it
starts overwriting the oldest data.
There is 256 KB dedicated to IQRF RX data and 128 KB for IQRF TX data and same size for ystem log.
The number of records of IQRF RX/TX data depends on the parameter Packet size, which define how many
payload data bytes is dedicated for every data record. For default setting (Packet size = 64 B) there is 3360
positions for IQRF RX and 1680 positions for IQRF TX. For ystem log there is always 6553 positions in the buffer.
The actual size of the data log is the Packet size + 14 B, where the additional 14 bytes are used for saving date,
time and index of the log. In this way the user can calculate actual number of positions in the buffer.
Data volumes and recording frequency must be taken in account with respect to the Flash memory endurance.
When the Packet size is changed in the GW settings, all logs are cleared.
Case
Caution: It is not allowed to open the GW case otherwise the device may be damaged.
© 2017 IQRF Tech s.r.o. www.iqrf.tech www.iqrf.org User_Guide_GW-G M-02A_170814 Page 5

GW-GSM-02A
Operation
Start up
GW-G M-02A is turned on by power supply connecting to U B connector or by the Control button.
Initialization
•After the start-up, the GW checks its own hardware first. If there is no critical error it starts to initialize G M. When
a critical error occurs, the execution does not continue and the error code is indicated by LEDs.
Communication
The size of payload IQRF data transmitted between the GW and the IQRF network is limited to 64 B in both
directions.
GW-G M-02A can communicate with an IQRF Cloud only. ee chapter IQRF Cloud.
•All incomming IQRF data (IQRF RX) is stored and logged in internal Flash memory.The logged data is transmitted
to the Cloud server always after the Cloud period elapsed. ee chapters IQRF IDE – GW Tool.
•Data to be sent to IQRF (IQRF TX) is stored in the Cloud server first and transferred to the GW always after the
IQRF Cloud period elapsing. After downloading the data from IQRF Cloud, it is stored in GW internal Flash
memory and subsequently forwarded to IQRF network.
•If the communication between the GW and the Cloud server failed, the GW indicates an error.
Using IQ F IDE
•The IQRF IDE GW Tool is intended for GW configuration, checking of operational and error states and for access to the
datalogger. When using the GW Tool, the communication with IQRF Cloud is enabled.
•IQRF IDE can also be used similarly as for the CK-U B-04(A): uploading the code into TR transceiver,
configuration of TR module inside the GW, debugging of the application, using the IQME H Network manager etc.
In this mode the communication with IQRF Cloud is disabled.
• Additionally, GW firmware can be upgraded from IQRF IDE. ee chapter Firmware upgrade/ ootloader.
GW configuration
GW configuration is possible via IQRF IDE.
© 2017 IQRF Tech s.r.o. www.iqrf.tech www.iqrf.org User_Guide_GW-G M-02A_170814 Page 6

GW-GSM-02A
System log
All important events are logged. ystem logs can be read using IQRF IDE GW Tool.
Date and time
GW-G M-02A contains a real time clock/calendar (RTCC). Date and time are synchronized using IQRF Cloud
server.
T module data exchange
Data between the internal TR module and the GW memory is transferred bidirectionally via PI (using the
bufferCOM memory array inside the TR module). Therefore, the application in TR must have the PI communication
activated. When using DPA, a plug-in with PI interface must be uploaded in TR. The maximum PI packet length is
64 B.
GW services
•HTTP client for communication with IQRF Cloud server (using the 128 b AE encryption)
•DHCP client for automated getting of IP address from the DHCP server
GW identification
IMEI
Every device can be identified using IMEI, which is the unique identifier of the G M chip. The IMEI can be read using the
GW Tool.
ID
Another unique number (manufacturer's identification) is used to identify the gateway by IQRF IDE, the IQRF Cloud server
and user applications utilizing the Cloud via API.
For GW-G M-02A ID = 11 xx xx xx, where xx xx xx are unique 6 digits, assigned by the manufacturer
© 2017 IQRF Tech s.r.o. www.iqrf.tech www.iqrf.org User_Guide_GW-G M-02A_170814 Page 7

GW-GSM-02A
IQ F Cloud
The IQRF Cloud provides an effective way to exchange data between IQRF wireless device(s) and a user
superordinary system implemented by a higher level platform (e.g. PHP, Java cript or web interface) and connected
via Internet or a LAN.
As an interface to IQRF, the GW-G M-02A or another IQRF gateway providing Internet connectivity (Ethernet, GPR
or WiFi) is intended.
An IQRF Cloud server is available free of charge on http(s)://cloud iqrf org provided by CI (Complete
Internet ervices, s.r.o., an IQRF contractual partner for cloud implementations). Refer to the IQRF Cloud User's
Guide for details.
© 2017 IQRF Tech s.r.o. www.iqrf.tech www.iqrf.org User_Guide_GW-G M-02A_170814 Page 8

GW-GSM-02A
IQ F IDE – GW Tool
IQRF IDE 4.20 and higher is required.
Login to GW Tool
The GW Tool can be invoked from IQRF IDE menu Tools → GW Tool.
To open the Tool, the username and the password must be entered. Default values are iqrf and iqrf.
PIN code
The IM card is locked by the PIN code. It must be specified during the first configuration. The following window will
appear when PIN is not specified. It can also be invoked using the Update button. ee below.
© 2017 IQRF Tech s.r.o. www.iqrf.tech www.iqrf.org User_Guide_GW-G M-02A_170814 Page 9

GW-GSM-02A
Status
The Status tab contains general overview about the gateway status. everal buttons are available to control the GW:
•Copy ID To copy the GW ID to the clipboard
•Restart To restart the gateway
•Update To update the tatus tab
•Close To close the GW Tool window
Device information
•Type Current GW type
•ID Unique identification number of the gateway
•Firmware ver. Current firmware version
T module
•Type IQRF TR module type inside the gateway
•FCC ID FCC certification identification
•MID Unique IQRF TR module identification number
•O IQRF O version of the TR module
LAN information
•IP address Current IP of the GW
© 2017 IQRF Tech s.r.o. www.iqrf.tech www.iqrf.org User_Guide_GW-G M-02A_170814 Page 10

GW-GSM-02A
GSM information
•IMEI A unique number assigned to G M chip inside the gateway
•ICCID A unique number assigned to the IM card
•M I DN A number uniquely identifying a subscription in a G M network
•R I Received G M signal strength indicator. The values correspond to the following gains:
SSI value Signal strength [dBm]
< 4 < -107
< 10 < -93
< 16 < -71
< 22 < -69
< 28 < -57
>= 28 >= -57
99 unknown
•PIN status
•No PIN PIN is not used by the IM card
•Enter PIN The PIN needs to be inserted
•Used PIN The PIN is correctly set
•PIN blocked The PIN has been inserted incorrectly for the third time. When this situation occurs, the PUK must
be used in another G M device (in a cell phone for instance) to unblock the IM card.
System status
•GW status Current operation executed by the gateway:
•Initiating G M
•Initiating GPR
•Reading DN
•erver communication
•Checking IQRF data
•ending IQRF data
•Reading IQRF data
•Checking G M
•Logging IQRF, G M off
•GW iddle
•GW error An error during execution indication:
•No error
•AT command error
•IM card error
•IM card blocked
•Waiting for PIN
•FLA H error
•TR PI Error
•G M init error
•DN error
•GPR init error
•Cloud erver communication failed
•Cloud password error
•Power External / Accumulator
•Accu voltage Accumulator voltage
•Current Date/Time The date and time used in the gateway
© 2017 IQRF Tech s.r.o. www.iqrf.tech www.iqrf.org User_Guide_GW-G M-02A_170814 Page 11

GW-GSM-02A
Basic
The asic tab provides the setting of the gateway.
The following buttons are available in addition to previous ones:
•Restart To restart the GW with current configuration
•Default To restore the default configuration
•Download To read the configuration from GW
•Upload To store the configuration to GW
GSM
•APN The user must specify the APN according used G M provider
Logger
•Packet ize The size dedicated for the data log in the gateway memory. By default, this value is set to 64 B,
the same as the maximum size of the IQRF packet. horter packets allow to store more data
logs. Minimum packet size is 1 B. When an IQRF packet oversizes the selected packet size, a
part of user data is lost.
When the packet size is changed the content of internal memory is cleared.
IQ F Cloud
•IQRF Cloud If this checkbox is not checked, the communication with IQRF Cloud is disabled and the gateway
reads the data from IQRF side only.
•Period Defines how often the gateway transmits the data to IQRF Cloud server. Allowed values are from
10 s to 24 hours.
•Use IQRF Cloud hosted by CI The gateway is configured by default to communicate with IQRF Cloud server
provided by CI . Any gateway can also communicate with another IQRF Cloud server provided
by anyone else. In such a case, the checkbox must be unchecked and the following fields must
be filled.
•AE key Encryption key used for secure communication between the gateway and the IQRF Cloud server.
The same key must also be specified at the server side.
•Cloud path The URL address where IQRF Cloud server is hosted. The '/cloud' substring must follow
•Cloud port The TCP port used. In most cases port 80 is used.
© 2017 IQRF Tech s.r.o. www.iqrf.tech www.iqrf.org User_Guide_GW-G M-02A_170814 Page 12

GW-GSM-02A
Expert
The user does not need to modify this setting in most cases.
•Delay between G M and IQRF TX
ometimes, in case of bad IQRF RF conditions, G M can affect the RX IQRF data when received
simultaneously during G M transmitting. uch a problem can be fixed by increasing this delay (to
separate both events in time).
•Delay between IQRF and G M TX
When DPA used, this delay can define time ensuring that all IQRF responses are received. This
ensures that some responses are uploaded to the Cloud server with the next period. This is
advantageous especially when the Cloud period is set long and user wants to receive the response
shortly after the DPA request was sent.
© 2017 IQRF Tech s.r.o. www.iqrf.tech www.iqrf.org User_Guide_GW-G M-02A_170814 Page 13

GW-GSM-02A
Time
GW time and date setup.
Set time
•Manual To setup the time manually
•PC time To upload the date and time from connected PC.
elected time is transferred to the GW by the Set Time button.
GW time
•Current GW Date/Time Date and time currently running in the GW
•Time zone Time zone selection
•Use daylight savings Daylight savings for given time zone selection
© 2017 IQRF Tech s.r.o. www.iqrf.tech www.iqrf.org User_Guide_GW-G M-02A_170814 Page 14

GW-GSM-02A
Administration
The user can change the username and the gateway password here. When the password is changed, in order to
allow an access the data on the Cloud server it must be changed there too. The change of username has no effect
for that. Allowed password length is from 4 to 8 characters. When the username or the password is lost, the user can
reset the gateway to factory settings. The default username and password values are iqrf and iqrf.
© 2017 IQRF Tech s.r.o. www.iqrf.tech www.iqrf.org User_Guide_GW-G M-02A_170814 Page 15

GW-GSM-02A
Log
Transmitted data stored on the Cloud server stays also accessible directly in the GW buffer.
Buttons:
•Restart To restart the GW
•Erase Log To erase the content of the whole GW internal log memory
•Update To read the data from the GW and refresh the Log window
•Close To close the GW Tool window
Three types of logs are stored in the gateway:
•IQRF Rx Data received from IQRF network and transmitted to the Cloud server
•IQRF Tx Data downloaded from Cloud server and transmitted to IQRF network
•ystem Certain events that occurs during the execution. The user do not usually need to take care about it.
Nevertheless it can be helpful in case of nonstandard behavior.
Last Record When selected, the output list is scrolled down to display the last acquired data.
The format of IQRF RX/TX data depends on the user application in TR (e.g. DPA or any user-specific protocol). The
format of system log is fixed. It contains the following information:
© 2017 IQRF Tech s.r.o. www.iqrf.tech www.iqrf.org User_Guide_GW-G M-02A_170814 Page 16

GW-GSM-02A
The following system events are logged:
•GW_RE ET
•GW_ON_BY_BUTTON
•GW_ON_BY_EXT_POWER
•GW_ON_BY_TR_MODULE
•GW_OFF_BY_BUTTON
•GW_OFF_BY_U B_COMMAND
•GW_OFF_BY_LOW_ACCU
•G M_RE ET
•EXT_PWR_OFF
•EXT_PWR_ON
•CLOUD_REGI TRATION_OK
•G M_LOGIN_OK
•GPR _INIT_OK
•GPR _OK
•IQRF_ PI_OK
•ACCU_OK
•IQRF_ PI_ERROR
•DN _ERROR
•CLOUD_CONNECTION_ERROR
•CLOUD_REGI TRATION_ERROR
•CLOUD_UPLOAD_ERROR
•CLOUD_DOWNLOAD_ERROR
•CLOUD_PWD_ERROR
•AT_ERROR
•IM_ERROR
•G M_LOGIN_ERROR
•G M_ TART_ERROR
•G M_RUN_ERROR
•GPR _ERROR
•IM_BLOCKED
•ACCU_LOW
The Log also contains the specifiyng information:
•Power Indicates whether the GW is powered from external power supply or internal accumulator at the
moment of the event.
•ACCU voltage Indicates the voltage on the accumulator
•R I Indicates the G M signal strength. ee chapter IQRF IDE – GW Tool, GSM information.
© 2017 IQRF Tech s.r.o. www.iqrf.tech www.iqrf.org User_Guide_GW-G M-02A_170814 Page 17

GW-GSM-02A
GSM Log
The G M log displays the communication between the gateway and the G M modem. Currently executed AT
commands are displayed here. This may help the IQRF support to identify possible incorrect settings of the gateway
etc.
© 2017 IQRF Tech s.r.o. www.iqrf.tech www.iqrf.org User_Guide_GW-G M-02A_170814 Page 18

GW-GSM-02A
Factory setup
This initial setup can be restored whenever the GW is powered from external source and the control button is
pressed for more than 10 s. This can be useful if it is not possible to establish communication due to wrong
configuration. ee Appendix 1 – LED indication.
Basic
----------------------------------------------------------------------------------------------------------------------------------------------------
•Packet ize 64 B
•IQRF Cloud Communication Enabled
•Use IQRF Cloud erver hosted by CI Enabled
•Communication period 30 s
Advanced
----------------------------------------------------------------------------------------------------------------------------------------------
•Delay between G M and IQRF TX 250 [in 10 ms units]
•Delay between IQRF and G M TX 100 [in 10 ms units]
Password
----------------------------------------------------------------------------------------------------------------------------------------------
•Authorization when enter the internal web server page, IQRF Cloud server or IQRF IDE GW Tool
•Username „iqrf“
•Password „iqrf“
Time
-----------------------------------------------------------------------------------------------------------------------------------------------------
•ummer / winter time distinguishing On
•Time zone GMT + 01:00
© 2017 IQRF Tech s.r.o. www.iqrf.tech www.iqrf.org User_Guide_GW-G M-02A_170814 Page 19

GW-GSM-02A
First startup
Factory settings
GW-G M-02A is set from the factory as follows:
•User name iqrf
•Password iqrf
•APN internet
•IQRF Cloud Enabled
•IQRF Cloud hosting By CI (https://cloud iqrf org)
•Communication period 30 s
•Delay between G M and IQRF TX 250 [in 10 ms units]
•Delay between IQRF and G M TX 100 [in 10 ms units]
This setting can be used to operate the GW with IQRF Cloud without any changes in configuration. But it is strictly
recommended to change the GW password to avoid illegal access to GW data.
Step by step guide
To get familiar with GW-G M-02A functionality, the IQRF module in the GW can be used with DPA hardware profile
in similar way as described in IQRF DPA Quick tart Guide:
•Follow this Guide, chapters 1 to 5.
•Use GW-G M-02A instead of CK-U B-04(A)
• GW-G M-02A is delivered with the HWP-Coordinator- TD- PI plug-in uploaded in internal TR module. Thus, there is
no need to upload any HWP plug-in.
• After the LED control (described in DPA Quick tart Guide) is done locally using IQRF IDE, test the same commands
via IQRF Cloud:
• Open the https://cloud iqrf org page in web browser
© 2017 IQRF Tech s.r.o. www.iqrf.tech www.iqrf.org User_Guide_GW-G M-02A_170814 Page 20
Table of contents
Other IQRF Gateway manuals

IQRF
IQRF GW-USB-03A User manual

IQRF
IQRF GW-USB-13A User manual

IQRF
IQRF GW-ETH-02A User manual

IQRF
IQRF GW-USB-05 User manual

IQRF
IQRF GW-USB-06 User manual

IQRF
IQRF GW-USB-04 User manual

IQRF
IQRF GW-ETH-01 User manual

IQRF
IQRF GW-USB-13-868 User manual

IQRF
IQRF GW-GSM-02 User manual

IQRF
IQRF GW-WIFI-01 User manual