GW-GSM-02. User's Guide. IQRF GSM Gateway. Preliminary. Firmware v MICRORISC s.r.o. UG_GW-GSM-02_ Page 1

Similar documents
GW-USB-05. User's Guide. FW v1.07. IQRF USB Gateway MICRORISC s.r.o. User_Guide_GW-USB-05_ Page 1

CK-USB-04. User's Manual. IQRF Development Kit. Firmware v MICRORISC s.r.o. MNCKUSB04_ Page 1

GW-USB-06. User s Guide. IQRF USB Gateway. FW v MICRORISC s.r.o. User_Guide_GW-USB-06_ Page 1

DK-PGM-01. User's Guide. IQRF Universal Development kit MICRORISC s.r.o. MNDKPGM01_ Page 1

KON-RASP-01. User s guide. IQRF Shield for Raspberry Pi MICRORISC s.r.o. User_guide_KON-RASP-01_ Page 1

GW-ETH-0x Datalogger

IQRF DPA Quick Start Guide

IQRF DPA Quick Start Guide

GW-ETH-02. User's Guide. IQRF Ethernet Gateway. Firmware v MICRORISC s.r.o. UG_GW-ETH-02_ Page 1

Wireless M-Bus. Implementation in TR-7xD-WMB and GW-USB-06-WMB. Firmware v2.21. User's Guide

IQRF SPI. Technical guide. For TR-7xD For IQRF OS v4.02 or higher IQRF Tech s.r.o. Tech_Guide_SPI_TR-7xD_ Page 1

IQRF. Basic informations. Piotr Antończyk IQRF Tech s.r.o.

GSM communicator GD-06 Allegro Complete manual

RF4431 wireless transceiver module

FIFOTRACK MOTORCYCLE/VEHICLE GPS TRACKER

Conversion of Contact ID event codes sent by alarm control panel via GSM and PSTN channel to SMS messages

FIFOTRACK VEHICLE GPS TRACKER. Model: S30 Version: V1.1

WLS-TC Specifications

Technical guide IQRF Technical Guide

RF4432 wireless transceiver module

Quick Start Guide. Data Logger TrueLog100

KCS TraceME TM-178 / R9H4 GPS / GPRS / SMS / RFID module, OEM Version

Product Description. Applications. Features

Hints and tips when using RC1xx0 RF Modules

WM1030 Rev Introduction. Ultra low power DASH7 Modem. Applications. Description. 868 / 915 MHz. Features. WIZZILAB Technical datasheet 1/10

MultiModem rcell. Intelligent Wireless Router. Quick Start Guide

SimPLC. User Manual.

FIFOTRACK VEHICLE GPS TRACKER. Model: A300 Version: V1.1

KCS TraceME TM-202 / R9C5 GPS / GPRS / SMS / RFID module, OEM Version

SH1030 Rev Introduction. Ultra low power DASH7 Arduino Shield Modem. Applications. Description. 868 MHz. Features

GSM/GPRS/WCDMA/HSDPA/GPS. Automatic Vehicle Locator VT-1052C. Data Sheet

BitPipe Cellular Dev-Kit

eip-24/100 Embedded TCP/IP 10/100-BaseT Network Module Features Description Applications

FIFOTRACK VEHICLE GPS TRACKER

Display Real Time Clock (RTC) On LCD. Version 1.2. Aug Cytron Technologies Sdn. Bhd.

Communication of passive RFID Reader and. FOX3-2G/3G/4G series via RS-232 serial link. and its use to identify RFID tags in

FIFOTRACK VEHICLE GPS TRACKER 4 RS232 PORTS

QUADIMODO. Quad-Band IP68 GSM MODEM. Quad Band for Worldwide Use. IP68 Enclosure Submersible. Voice / Fax / SMS and Data. GPRS Class B Class 10:

GC 055. GSM Remote Monitoring. Operating and installation instructions

WIRELESS COMMUNICATION PLATFORM IQRF A CASE STUDY

USR-LG220-L User Manual

GETTING STARTED GUIDE

GSM/GPRS/GPS. Automatic Vehicle Locator VT-1052G. Data Sheet

RN-171-EK Evaluation Board

Link GSM idp Manual v1.0

BitPipe Cellular Dev- Kit

DEMO XTR-8LR100 DEMO XTR-8LR10 User Manual

ALPW-BLEM103 Datasheet 1.0 Bluetooth Low Energy HCI

GSM communicator G09 (v.1.61) User Manual and Installation Guide. Draugystes g. 17, LT Kaunas

AT1000 Quick Start Guide V1.2

USB-Based 14-Channel Data-Acquisition Module

MEITRACK T333 User Guide

CM5000 DATASHEET v0.1

Preliminary Product Overview

GSM/GPS/GPRS Vehicle/Motorcycle Motorbikes Tracking. User Manual V7.0

ZETA Series 2G/3G/4G Modems with GPS Option

MOD-RFID1356 User Manual. All boards produced by Olimex are ROHS compliant. Rev.A, May 2008 Copyright(c) 2008, OLIMEX Ltd, All rights reserved

GSM Interfacing Board

Banner Connected Data Solutions Web Service

M-BUS-2. User Manual LORAWAN CONVERTER.

ZD-VT1 User Guide. ZENDA GPS Tracker ZD-VT1 User Guide

ZWIR4532 Evaluation Kit User Manual. Description. Features. Kit Contents

IQRF Alliance. Simon Chudoba CEO, IQRF Alliance. Šimon Chudoba, IQRF Alliance, CEO

PXA270 EPIC Computer with Power Over Ethernet & Six Serial Protocols SBC4670

GPRS-T1. Monitoring Converter. SATEL sp. z o.o. ul. Schuberta Gdańsk POLAND tel

Haicom HI-604 GPS Tracking Device with 5-years Standby Battery

ZETA Series 2G/3G/4G Modems with GPS Option

Mini Tracker Model:MT-800. Data Sheet

CMT2110A/2210A One-Way RF Link Development Kits User s Guide

The TRSUN is the complete solution for the remote monitoring of photovoltaic plants.

GSM communicator G16 USER MANUAL

DEVBOARD3 DATASHEET. 10Mbits Ethernet & SD card Development Board PIC18F67J60 MICROCHIP

AN4696 Application note

TRBOnet Swift Agent A001

TELTONIKA ModemUSB/G10 User Manual v0.1

Enabler IIIG Firmware PKG 48

Catalog 1. Overview Feature Application Block Diagram

Ready Track OBD Vehicle Tracker

Alarm button Contact GSM-1M

PL1167. Low Power High Performance Single Chip 2.4GHz Transceiver. Product Description: Key Features: Applications: Pin Configuration:

User Manual Revision 1.02

CEL MeshConnect ZICM35x Test Tool User Guide

GPS Tracker AT06 manual Ver

Product description Rev. 3 11/06/14

LC1628-L High-Speed USB Flash Disk Controller Preliminary Data Sheet

Serial Port Plug - F2M01SXA Brief Datasheet. Features. Applications. General Description. Provides transparent RS-232 serial cable replacement.

AN4749 Application note

STD Simple Telemetry Application. Owner s Manual

GPS Vehicle Tracker (GPS+GSM+SMS/GPRS) User Manual (A5E-3)

Low-Power-Radio Transceiver IC

GSM FAX Terminal-8848 User's Manual Version 1.1. GSM FAX Terminal User's Manual

Particle E Series Cloud-integrated hardware platform for cellular IoT devices

IQRF - Mesh Networking

InTimeGo-630 GPS Watch Tracker User Manual

Firmware Update Function

Technical Note. Migrating from Micron M25PE to Micron MT25Q 128Mb. Introduction. TN-25-36: Migrating from M25PE to MT25Q 128Mb.

DKG-210 UNIVERSAL INTERNET GATEWAY UNIT

Embedded Navigation Solutions VN 100, VN 200 & VN 300 Development Board User Manual

ModemUSB/E12 User Manual v0.1

RN-174. WiFly GSX Super Module. Features. Description. Applications. rn-174-ds v1.1 1/24/2011

Transcription:

IQRF GSM Gateway Firmware v1.00 User's Guide Preliminary 2013 MICRORISC s.r.o. www.iqrf.org UG_GW-GSM-02_131016 Page 1

Description GW-GSM-02 is an IQRF gateway with GSM connectivity intended as an interface between IQRF and GSM/GPRS networks. The user can implement specific functionality by software for internal IQRF TR module. Main components are 8 b microcontroller, GSM/GPRS transceiver module and IQRF TR module with antennas, FLASH memory and backup accumulator. GW-GSM-02 can be configured and firmware can be upgraded from PC. Application software for TR module can be uploaded via IQRF IDE4 using the gateway as a programmer. Key features TCP Server mode with public IP address SMS alarm feature Data logging IP filtering RTCC (real time clock/calendar) Backup accumulator Very low power consumption in Sleep mode Documented application protocol Firmware upgrade via PC software Programmable application in internal TR module Applications Remote monitoring and control Data acquisition / collection Datalogger Interface to building / home automation Remote control of IQRF network Connection of more IQRF networks to one PC Access to IQRF network from more locations Block diagram 2013 MICRORISC s.r.o. www.iqrf.org UG_GW-GSM-02_131016 Page 2

Electrical specifications Power supply Accumulator (typical values unless otherwise stated) 4.8 V 5.5 V DC LI14500-1L, 3.7V, 700 mah Supply current Standby (all peripherals disabled) 12 µa Operational TR and GSM inactive 75 ma Additional current TR active See datasheet of TR module GSM transmitting 175 ma Accumulator charging 450 ma max. Temperature range Operational 0 C to +60 C Accumulator charging 0 C to +45 C Storage 10 C to +20 C (recommended) IQRF Frequency bands RF output power TR module Antenna GSM frequency bands Antenna Flash memory Data logging Temperature sensor Dimensions without antenna with antenna Weight Absolute maximum ratings 868 MHz or 916 MHz (SW selectable) According to TR module, programmable TR-54DA PCB antenna built-in TR module 900 MHz or 1800 MHz External, SMA, gain 2.15 dbi 1 MB, serial interface SPI, 100 000 erase / write cycles typ. Up to 3200 events Optional, built-in TR module 86 mm x 60 mm x 24 mm 104 mm x 60 mm x 60 mm 90 g GW-GSM-02 Stresses above those values may cause permanent damage to the device. Exposure to maximum rating conditions for extended periods may affect device reliability. Supply voltage (VCC) 5.5 V Storage temperature -20 C to +60 C 2013 MICRORISC s.r.o. www.iqrf.org UG_GW-GSM-02_131016 Page 3

Hardware Power supply GW-GSM-02 is intended to be supplied by external stabilized 5 V DC connected to micro USB connector. Accumulator Backup accumulator is intended especially for short failures of external power supply. It is not removable and enables continuous charging when external power is connected. Power control button (ON / OFF) Short press (< 3s): no effect Long press (> 3s): Switching between operational and sleep modes LED indication Power LED (red) Power LED is on when main power is on. GSM LED (yellow) Flashes once per second when GSM module is powered. Flashing twice per second when communicating via GSM/GPRS. Status LED (green) Status LED is on when GSM module is establishing connection to network. Flashing once per two seconds when GSM is logged in the network. Flashing two times per second when an error occurred (missing SIM card etc.) IQRF LED (red) This LED is controlled by the TR module, the LEDG output. Functionality is fully under control of user application program. IQRF OS functions dedicated to LEDG can be used. In Demo SW this LED shortly flashes whenever an RF packet is transmitted or received by TR module. MCU Microcontroller PIC18F26J50 by Microchip is used. GSM M590E dual band wireless module by Neoway is used for GSM/GRPS connectivity. SIM card SIM card with activated data services from mobile network operator must be plugged in the SIM connector under the cover. Public IP address is required (see below). IQRF TR-54DA wireless transceiver module is used for IQRF connectivity. Antenna is built in TR module. Flash memory SST25VF080B 1 MB Flash memory by Microchip/SST is used for gateway configuration and message buffer. Up to 100 000 erase/write cycles (typical) is allowed. 2013 MICRORISC s.r.o. www.iqrf.org UG_GW-GSM-02_131016 Page 4

Operation GW-GSM-02 can completely be configured by the GW-GSM Tool PC software which is also intended for testing and debugging. See the screenshots below. It is necessary to obtain fixed public IP address from mobile network operator. GW replies to TCP packets sent to port 10001. The GW-GSM-02 can handle only one connection at the same time. Each connection is terminated 5 seconds after sending data. Date and time GW-GSM-02 contains a real time clock / calendar (RTCC). Date and time must be set after every GW reset. Current time is necessary for proper logging only. Use SMS Alarm This feature allows to send a short message to selected telephone number if an alarm is activated. Alarm activation is initiated by the high logic level (log.1) pulse with minimum length 50 ms on pin C1 of TR module (MCU pin PORTA.0). After alarm activation the gateway sends data prepared in buffercom in TR module. Alarm activation may precede sending data itself. The data is sent only after the TR module executes the startspi(n) command. Access restriction It is possible to enable IP address filtering. If enabled, only addresses specified in the address list are allowed for communication with the server. The gateway supports up to 15 addresses in the list. TR module data exchange Data transmission from TR module to MCU in gateway is performed by command startspi(n), where n is the length of SPI data in buffercom in TR module. The maximum length of the SPI packet is 64 bytes. TR module receives data from the main MCU to variable buffercom. TR module powering If the main MCU communicates with serial Flash memory, the TR module is switched off. This may occur also when communicating with PC or during GSM transmission or reception. Thus, it is strongly recommended to provide TR modules with a communication protocol ensuring proper communication in IQRF network (requesting to resend an answer to incoming data not beeing served due to temporarily disabled TR module in GW-GSM-02). 2013 MICRORISC s.r.o. www.iqrf.org UG_GW-GSM-02_131016 Page 5

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 0x35 5 0x36 6 GSM login failed Server login failed Send SMS failed 2013 MICRORISC s.r.o. www.iqrf.org UG_GW-GSM-02_131016 Page 6

Application Firmware upgrade MCU firmware is fixed but can be upgraded by the user with a new version released by the IQRF manufacturer via USB and IQRF UDU software. TR module application GW-GSM-02 is delivered with the TR-GW-GSM-Demo application SW uploaded in TR module. It implements basic operations and can be used as a template for user specific applications. The Demo functionality is as follows: TR module inside the GSM gateway continually attempts to receive IQRF packets possibly incoming from (an)other IQRF device(s). If a packet containing temperature is recognized, it is checked whether the temperature exceeds the predefined limit. If so, TR module generates an alarm signal via dedicated pin to main MCU and the gateway generates the alert SMS. All incomming IQRF packets can be accesed remotely by TCP client or localy using USB connectivity. Both can be done using GW-GSM Tool software. Format of the packet containing the temperature is:"t:xx", where xx is the temperature in degrees, all 4 bytes in ASCII characters. E.g. "T:35" means temperature 35 C. The shape of the alarm signal is log. high for 50 ms on the PORTA.0 pin. Remote temperature sensor can be simulated by another TR module connected to PC e.g. by CK-USB-04 development kit or GW-USB-05 gateway connected to PC. Then packets can easily be created by IQRF IDE development environment using built-in SPI Terminal. The demo also enables to send IQRF packets. Any data recieved by TCP client is transmited by GW into the IQRF nerwork. The TCP client uses an aplication protocol, described below. The demo SW can be downoaded from the GW-GSM-02 product web page. Application code can be developed and uploaded inside the GW-GSM-02 using the IQRF IDE 4 development environment. 2013 MICRORISC s.r.o. www.iqrf.org UG_GW-GSM-02_131016 Page 7

Application protocol GW-GSM-02 The communication is realized with the application protocol described below. It uses the transport protocol TCP according the OSI reference model. Connection establishment To connect to the gateway operating in the Server mode, it is necessary to know the IP address of the gateway. IP can be obtain from the GSM provider or it can be read using the GW-GSM Tool. The default port is set to 10001. Commands The GW-GSM-02 listens to commands from allowed IPs. The complete set of supported commands is listed in the following table. Command string record = ffff record = number dump dump_index = number send_data = data syslog Gateway action Returns last record Returns record with index number Returns all records Returns all records starting from index number Sends data to TR module Returns all system records Number is formatted as four digit HEX value with lower case letters. Data is strictly in binary format. Responses Standard response to record data request (e.g., record = 002f ) may be #002f#060512031245#data# according to data and system record format described on the Data logging page. In some cases, the gateway replies error codes or statements. The complete set of reply codes is listed in the following table. Reply code FF0000000001 FF0000000002 FF0000000003 FF0000000005 FF0000000006 FF0000000007 Interpretation Invalid command Record not found Empty buffer Registration not successful No data to send Data successfully sent Connection termination TCP connection is terminated after 5 seconds of last TCP data packet sent. 2013 MICRORISC s.r.o. www.iqrf.org UG_GW-GSM-02_131016 Page 8

GW-GSM Tool GW-GSM Tool is a PC program for setup, operation, testing and debugging of the GSM part of the gateway. It is free to download from www.iqrf.org/321. First steps Press the power button for at least 3 seconds to wake up the GW (if in sleep mode). Connect the gateway to PC using a USB cable. Install USB driver Custom Class. You can download it from www.iqrf.org/89. This driver is the same also for other IQRF USB devices. See the IQRF Quick start guide www.iqrf.org/235. If the IQRF IDE or another software using the same USB driver (e.g. IQRF UDU) is installed, this step can be omitted. Run the GW-GSM Tool. Caution: No other program communicating with any IQRF device via USB (e.g. IQRF IDE or IQRF UDU) is allowed to run at the same time. Basic setup Settings The tab to configure basic gateway functions. APN Access Point Name obtained from the GSM network operator. PIN - if the SIM card is protected, insert the PIN code and press Update button Time Time in HH.MM.SS format. Date Date in DD.MM.YYYY format. Set Time button sets a new time to the RTCC. Other settings stay unchanged. Once the button is pressed, the time and date are enabled for editing. Another press of the button will launch the RTCC with updatded values. Use SMS Alarm If the box is checked the Send SMS function is enabled. Telephone number must be specified in the box below. The Settings tab Use IP filtering If the box is checked the access restriction function is enabled. Only IP addresses listed in Safe IPs list can communicate with the gateway. Safe IPs To add a new address to the list, enter the address in the box below the list and press the Add button. To remove an address from the list, select it and press the Rem button. Update button - Updates the configuration of the GW-GSM-02. 2013 MICRORISC s.r.o. www.iqrf.org UG_GW-GSM-02_131016 Page 9

Data logging Logs the tab to read system or data records and clear all log memory. Read button loads the entire contents of the internal memory to the list above. Clear Memory button deletes all logs stored in Flash memory Log type selection IQRF To display data records logged from TR module only. System To display records with logged system states and events only. Log display selection ASCII tab - All recorded bytes are interpreted and displayed as ASCII characters. HEX tab - All recorded bytes are displayed in hexadecimal format. Each byte is separated by the dot character. TCP Client TCP client tab to test the gateway. IP address of the gateway must be filled in the box above the Connect button. When the GW-GSM Tool is connected to the gateway via USB cable, the IP address is stated automatically. Port number fixed 10001 value is used. Connect button establishes a TCP connection to the gateway. Send button Sends packet to the gateway containing data from the box above the Send button. This control works only when the client is connected to a TCP server. Data box - This box contains predefined commands for TCP server. Any additional data can be entered into the box. Clear window button - clears the TCP client terminal window. Logs tab - hex format TCP client tab Predefined commands 2013 MICRORISC s.r.o. www.iqrf.org UG_GW-GSM-02_131016 Page 10

Info window This window shows the simplified information from the gateway. Device - Gateway product code Version - Gateway firmware version ID - Unique gateway identification number GSM RSSI - Receive Signal Strength Indicator of GSM network Accu Capacity - Estimated backup battery life Accu Voltage - Actual battery voltage Info window Command window GW status - Current command executing by GSM module GW IP - Gateway IP address Client IP - IP address of connected client Toggle LED - Toggles gateway status LED Reset GSM - Reset GSM module in the gateway GW Sleep - Switches gateway into the sleep mode Command window 2013 MICRORISC s.r.o. www.iqrf.org UG_GW-GSM-02_131016 Page 11

Product information Pack list GW-GSM-02 IQRF GSM gateway, with the accumulator and GSM SMA antenna TR-54DA IQRF TR module (with built-in antenna) inside, demo SW uploaded TY-A6 Power supply (Input: 100 V 240 V AC, EU plug. Output: 5 V DC, 500 ma, USB A connector, cordless.) CAB-USBABMICRO Power supply cord (for TY-A6) with microusb output connector Ordering codes GW-GSM-02 IQRF GSM gateway Requested option SIM card with activated data services from mobile network operator Firmware history v1.00 First release Document history 131016 First release 2013 MICRORISC s.r.o. www.iqrf.org UG_GW-GSM-02_131016 Page 12

Sales and Service Corporate office MICRORISC s.r.o., Prumyslova 1275, 506 01 Jicin, Czech Republic, EU Tel: +420 493 538 125, Fax: +420 493 538 126, www.microrisc.com Partners and distribution Please visit www.iqrf.org/partners Quality management ISO 9001 : 2009 certified Complies with Directive 2002/95/EC (RoHS) Trademarks The IQRF name and logo and MICRORISC name are registered trademarks of MICRORISC s.r.o. PIC, SPI, Microchip and all other trademarks mentioned herein are property of their respective owners. Legal All information contained in this publication is intended through suggestion only and may be superseded by updates without prior notice. No representation or warranty is given and no liability is assumed by MICRORISC s.r.o. with respect to the accuracy or use of such information. Without written permission it is not allowed to copy or reproduce this information, even partially. No licenses are conveyed, implicitly or otherwise, under any intellectual property rights. The IQRF products utilize several patents (CZ, EU, US) On-line support: support@iqrf.org 2013 MICRORISC s.r.o. www.iqrf.org UG_GW-GSM-02_131016 Page 13