Manual INSYS GSM 4.
Copyright © December 06 INSYS MICROELECTRONICS GmbH Any duplication of this manual is prohibited. All rights on this documentation and the devices are with INSYS MICROELECTRONICS GmbH Regensburg. Restrictions of guarantee This handbook contains a concise description. The compilation of the text has been made with the utmost care. Despite all efforts, there may be deviations compared with the actual functions. No guarantee can therefore be given for the accuracy of the contents.
Contents 1 INTRODUCTION.......................................................... 7 2 OVERVIEW................................................................ 10 2.1 INSYS GSM 4.2 I4 ................................................................. 11 2.2 DATA SERVICES ........................................................................ 11 2.2.1 2.2.2 Data services via the serial interface................................................11 Data Connection via the GSM network....................
Contents 4 3.5 INITIAL CONFIGURATION ............................................................ 22 3.5.1 3.5.2 Initial configuration via HSComm GSM 4.2.x I4...............................22 Initial configuration with AT commands..........................................24 3.6 RESTART ................................................................................. 24 3.6.1 Procedure: Insert SIM card................................................................24 3.7 CONNECTION TEST ..........
Contents 6 FUNCTIONS AND THEIR CONFIGURATION ............... 36 6.1 PROCEDURES: CONFIGURE THE BASIC SETTINGS ............................. 36 6.1.1 6.1.2 6.1.3 6.1.4 6.1.5 6.1.6 6.1.7 6.1.8 6.1.9 6.1.10 GSM connection ................................................................................36 DTMF tone processing.......................................................................38 Connection attempts ........................................................................38 Auto answer.....
Contents 6 6.5 AUDIO INTERFACE AND VOICE CONNECTIONS ............................... 61 6.6 FLASH UPDATE ......................................................................... 61 6.7 OPERATION WITH PLCS ............................................................. 62 7 AT COMMAND SETS ................................................. 65 7.1 SHORT DESCRIPTION INSYS AT COMMANDS ............................... 67 8 TABLE: GSM - SERVICE CENTER NUMBERS ...............
INSYS GSM 4.2 I4 1 Introduction Introduction Validity range of the manual This user manual applies to the device INSYS GSM 4.2 I4. Purpose This manual is directed primarily at technical staff, in particular: Programmers Implementers Required basics General knowledge regarding communication technologies is required. Safety Instructions This manual includes notes which must be observed in order to avoid material damage.
INSYS GSM 4.2 I4 Introduction Emphasis Representation "Basic settings" AT [expression] OK Meaning Software HSComm GUI texts, e.g. button, entry field, tab description AT command Entering of the parameter for an AT command Entering of the optional parameter for an AT command Response of an AT command Notes for entering AT commands AT command descriptions are displayed in two columns. The function is described on the left side; the AT commands and responses are described on the right side.
INSYS GSM 4.2 I4 Introduction Taking back legacy systems According to the new WEEE guidelines, the taking back and recycling of legacy systems for our clients is regulated as follows: Please send those legacy systems to the following address, carriage prepaid: Frankenberg-Metalle Gärtnersleite 8 D-96450 Coburg This regulation applies to all devices which were delivered after August 13, 2005.
INSYS GSM 4.2 I4 2 Overview Overview The INSYS GSM 4.2 I4 is a terminal device according to ETSI GSM Phase 2/2+ for the transmission of the following: Data Voice Fax group 3 SMS messages In dual band GSM networks: Class 4 (2W @ 900Mhz) Class 1 (1W @ 1.800MHz) Fields of application The device offers several options for transmitting data via the GSM network. You may use it to implement data connections or, for example, a messaging system with preconfigured message texts.
INSYS GSM 4.2 I4 2.1 INSYS GSM 4.2 I4 2.2 Data Services Overview 2.2.1 Data services via the serial interface The serial interface is available for the configuration of the device or for the data connection to the terminal device. The serial interface has the following characteristics: Interface terminal adapter (TA) – terminal station (terminal equipment, TE) Compatible with RS232 (V.24/V.
INSYS GSM 4.2 I4 Overview Voice connection HR, FR, EFR Fax transparent Group 3: Class 1 and Class 2 SMS services 2.
INSYS GSM 4.2 I4 2.4 Overview Technical Data 2.4.1 Mechanical characteristics INSYS GSM 4.2 I4 Weight 270 g Dimensions in mm (w x l x h) 55 x 110 x 75 Protection class cover front IP 40 Protection class terminals IP 20 2.4.2 Power supply The device requires a power supply of 10 to 60 V (DC) at a maximum of 5% ripple. Caution - No overvoltage protection! The device does not have a fuse. Surges and excessive voltages may result in the destruction of the device.
INSYS GSM 4.2 I4 Overview 2.4.3 Serial interface RS232 (V.24) Pin layout of the serial interface RS232, 9-pin SUB-D connector with threaded joint: Pin Description Function CCITT EIA DIN V.
INSYS GSM 4.2 I4 Overview 2.4.5 Audio interface Pin layout, 4-pin RJ45 phone plug: Pin Usage 1 Microphone (-) 2 Speaker (-) 3 Speaker (+) 4 Microphone (+) Reference type: Handset Siemens-Gigaset 2.4.6 Antenna interface The antenna connector at the front of the device has the type FME (male). All commercial GSM antennas with a female FME connector can be used as antennas.
INSYS GSM 4.2 I4 Overview 2.4.8 Terminal Layout Top Terminal 1 GND Ground 2 X1 reserved 3 10..60VDC 4 GND Voltage Supply 10V - 60V DC Ground 5 GND Ground 6 Reset Reset 7 GND Ground 8 Input 1 Alarminput 1 9 Input 2 Alarminput 2 10 GND Ground INSYS GSM 4.2 I4 Bottom Terminal 11 NC Not connected 12 NC Not connected 13 GND Ground 14 GND Ground 15 Input 3 Alarminput 3 16 Input 4 Alarminput 4 INSYS GSM 4.
INSYS GSM 4.2 I4 2.5 Overview Environmental Conditions The following environmental conditions must be observed for the device. Caution - Wet environment! The device may not be used in wet environments. INSYS GSM 4.2 I4 Humidity 0 - 95% non-condensing Temperature range 2.6 0°C to 55°C Certifications The device bears the CE symbol of conformity.
INSYS GSM 4.2 I4 2.7 Overview Interfaces, Display and Control Elements The device has 6 LEDs for status displays and one reset key on the front. 2.7.1 Display elements Each device has 6 LEDs on the front.
INSYS GSM 4.2 I4 Overview 2.7.2 Reset key Use the reset key to re-initialize the device or to load the factory settings. Procedure: Reset 1. Press the reset key briefly. The device is returned to its initial state. This process takes approximately 30 seconds. The LED Status blinks during this period. This corresponds to the command AT**RESET. Procedure: Load factory settings 1. Press the reset key more than 25 seconds. 2.
INSYS GSM 4.2 I4 Initial Operation 3 Initial Operation 3.1 Check the scope of delivery Check the scope of delivery before initial operation: INSYS GSM 4.2 I4 9-pin serial cable for the connection between the PC and the device (RS232 cable) Printed manual (German/English). The latest editions of the manual and the AT command set are available for download at our website: http://www.insys-tec.de. Contact your supplier if the content is not complete.
INSYS GSM 4.2 I4 Initial Operation The serial interface (RS232) of the device and the configuration PC are connected for initial operation and configuration. For data communication during operation, connect the terminal device with the application (e.g. a PLC) via the serial interface with the INSYS GSM 4.2.x I4 (dashed line). 3.3 Implementation Overview The following steps are required for the implementation: 1. Switch the device on and test it. 2. Initial configuration using HSComm or AT commands. 3.
INSYS GSM 4.2 I4 3.5 Initial Operation Initial Configuration You can perform the initial configuration as follows: User-friendly with the configuration software HSComm under Windows. By directly entering AT commands in a terminal program. Suitable terminal programs: TeraTerm, HyperTerminal, or the HSComm terminal window. 3.5.1 Initial configuration via HSComm GSM 4.2.x I4 You can perform the initial configuration alternatively with AT commands as described in the following chapter. 1.
INSYS GSM 4.2 I4 Initial Operation 2. Select the following standard setting for the serial interface in the menu “Interface” at the configuration PC: 3. If the device is in an undefined state, reset it first optionally to the factory settings using the button "Send default settings"). 4. If the device does not respond to the transmission of commands, select the button "Synchronize RS232" to adapt the baud rate and the data format automatically. 5.
INSYS GSM 4.2 I4 Initial Operation 3.5.2 Initial configuration with AT commands You can perform the initial configuration alternatively with the software HSComm as described in the previous chapter. 1. Start your terminal program or the terminal window of HSComm. 2. Set the serial interface settings to the standard values: 19200 baud, 8 data bits, 1 stop bit, no parity: AT**BAUD=19200 AT**FORMAT=8N1 3.
INSYS GSM 4.2 I4 Initial Operation The slot for the SIM card is on the front of the device. Unlocking the card reader: 1. Turn the power supply off. 2. To unlock the cardholder, press the sunken, yellow button on the card reader. 3. Remove the cardholder. 4. Insert the SIM card into the cardholder with the contacts facing upwards. 5. Push the cardholder back into the card reader (contacts of the SIM card to the left), until the cardholder is flush with the housing top. 6.
INSYS GSM 4.2 I4 Initial Operation Note Make sure that your SIM card is enabled for incoming data connection if required (see Chap. 2.4.4). 3.8 Causes of Error during Implementation Device does not react to commands Possible cause: The settings of the serial interface of the device and the terminal device do not match. Remedy: In the HSComm, synchronize the RS232 interface using the button "Synchronize RS232". Adjust the settings.
INSYS GSM 4.2 I4 Blinking interval LED signal Always on 16.7 Hz 7.1 Hz 3.8 Hz 2.6 Hz 2 Hz 1 Hz Always off Initial Operation Response from AT**SIGNAL? or Read field strength now (HSComm) 25 .. 31 23 .. 24 21 .. 22 19 .. 20 17 .. 18 15 .. 16 13 .. 14 0 .. 12 99 Signal quality Optimum Very good Good Sufficient Not sufficient Improve location Not detectable Note After changing the antenna location, wait 5 to 10 seconds. Only now will the device display the field strength correctly. 3.
INSYS GSM 4.2 I4 Initial Operation The status of the login state is indicated by the 2nd parameter of the response (in the following: “3” = rejected). Overview of responses The following table shows the possible responses for the validity of the PIN and the login state.
INSYS GSM 4.2 I4 4 Operating Modes Operating Modes You can operate the device in the following three operating modes: Connection mode (online) Command Mode Alarm State Note The configuration mode of previous versions is no longer in use since the integration of the extended INSYS AT** commands. 4.1 Connection mode (online) In connection mode, the asynchronous byte stream between the serial interfaces of the device and the remote terminal is exchanged transparently.
INSYS GSM 4.2 I4 Operating Modes Connections can be terminated as follows: Manually by the ATH command in online command mode If the remote terminal hangs up By idle connection control By activating an alarm input By DTR drop 4.2 Command Mode 4.2.1 Offline command mode The offline command mode is the state after switching on or resetting the device. You can address the device during offline command mode using AT commands. 4.2.
INSYS GSM 4.2 I4 Operating Modes The data connection remains established, while the entered extended INSYS AT** commands are processed at the remote device. The device changes back to connection mode with AT**EXIT. If it has been set, the remote configuration password is queried before changing to the remote configuration mode. 4.2.4 SMS configuration You can also send the extended INSYS AT** commands to the device via SMS. (see Chap. 6.2.
INSYS GSM 4.2 I4 5 Configuration Software HSComm GSM Configuration Software HSComm GSM The software HSComm provides the opportunity to configure the INSYS GSM under Windows without explicit knowledge of the AT commands. The free configuration software HSComm can be downloaded at: http://www.insys-tec.de. 5.1 Help The context sensitive help is available any time via the key F1 or the "Help" menu. Help also contains the complete command reference for the extended INSYS AT commands. 5.
INSYS GSM 4.2 I4 Configuration Software HSComm GSM File Use the menu item "File" to save the current settings as shown in the HSComm user interface as a file, or to re-read the settings. Interface Use the menu item "Interface" to set the serial interface of the configuration PC. Note The interface parameters of the configuration PC must match the interface parameters of the INSYS GSM.
INSYS GSM 4.2 I4 Configuration Software HSComm GSM You can adjust the default settings for the initialization and communication strings. Changes will not be saved. Overview Use the "Overview" to display all current HSComm settings transparently. The output extends over several screen pages. You may save the overview as text file. Note Have the overview available when you call the hotline! Send/receive log See advanced logging at the menu item "Program settings". 5.2.
INSYS GSM 4.2 I4 Configuration Software HSComm GSM Send settings Use the button "Send values" to transmit the current settings in the HSComm to the INSYS GSM. Note The settings for the menu item PLC may only be transmitted using the buttons "Configure GSM device at the PLC" or "Configure PC modem". Read settings Use the button "Read settings" to read the current settings from the INSYS GSM. The current settings are displayed in the HSComm.
INSYS GSM 4.2 I4 6 Functions and their configuration Functions and their configuration The functions of the device can be configured easily using the configuration software HSComm, or directly via AT commands. 6.1 Procedures: Configure the basic settings The basic settings can be configured in the Software HSComm on the tab "Basic settings". 6.1.1 GSM connection PIN You can save the SIM card PIN in the device. The device will automatically dial into the GSM network during startup.
INSYS GSM 4.2 I4 Functions and their configuration Idle detection The device can terminate hanging connections, over which no data is exchanged anymore, automatically after a specified waiting period. Each character, which is sent via the serial interface (both directions), restarts the timer. You may enter a waiting time of up to 255 seconds. To deactivate idle detection enter a waiting time of 0 seconds.
INSYS GSM 4.2 I4 Functions and their configuration 6.1.2 DTMF tone processing DTMF tones (e.g. from a touch-tone phone) can be used via a voice connection to query alarm inputs. Requirements: The number for voice connections has been dialed. The automatic processing of DTMF tones is enabled. Incoming voice calls are automatically accepted for enabled DTMF processing. These functions are optionally protected with a PIN (see Chap.6.3.9).
INSYS GSM 4.2 I4 Functions and their configuration Connection set-up for alarm messages via a data connection Connection set-up for security callback Possible values are 1 to 12, default value is 3. The dispatch will only be attempted once for an acknowledgement SMS after a configuration via SMS.
INSYS GSM 4.2 I4 Functions and their configuration Note If an alarm occurs during periodic logout/login at an external alarm input, or if a periodic alive SMS is due, the device will immediately re-login by itself. If the logout time has not expired yet, the device logs out again afterwards. If a data connection exists, the device will postpone the logout procedure. A voice connection and a communication in AT command mode will interrupt the device immediately when logging out.
INSYS GSM 4.2 I4 Functions and their configuration Pertinent AT commands AT**LOGOUT Timer-controlled logout/re-login or device reset AT**ALIVE Periodic alive SMS AT**DIAL Dial-up attempts for periodic alive or alarm messages AT**POWER Power up SMS 6.1.6 Date/Time You can set the date and the time of the real time clock of the device to an available time or set it to the system time of the configuration PC using the button "System time (PC)".
INSYS GSM 4.2 I4 Functions and their configuration Pertinent AT commands AT**BAUD Baud rate of the serial interface AT**FORMAT Data format of the serial interface ATE Set command echo 6.1.8 Protocol For a data connection with a device outside the GSM network (analog modem or ISDN TA), the right protocol has to be selected. This setting is not important for data connections to a GSM device. Enter the requested protocol in the group "Protocol (not GSM)". 6.1.
INSYS GSM 4.2 I4 Functions and their configuration when the DTR signal is missing, e.g. when the terminal device (PC, control) is disconnected. Note You must deactivate the DTR behavior of the serial interface in the following cases: The device is operated as a stand-alone device, i.e. it is not connected via the serial interface. The device is operated at a device which does not support hardware handshake. No DTR behavior The device does not utilize the DTR signal.
INSYS GSM 4.2 I4 Functions and their configuration 6.2.2 Receiving SMS SMS are stored at the SMS storage locations in the SIM card. You can read out the number of all available SMS storage locations on the SIM card using the tab "Basic settings" in the HSComm software in the group "GSM connection" and the button "Locate SIM SMS storage locations now".
INSYS GSM 4.2 I4 Functions and their configuration SMS messages, where the content is an alarm message saved in the device (acknowledgement of alarms). If the SMS message can not be used by the device, the device will immediately delete it from the memory. The GSM engine is operated in the operation mode AT+CMGF=1 (SMS text mode).
INSYS GSM 4.2 I4 Functions and their configuration Meaning: Parameters: Password for remote configuration and SMS query. If no password is set, the separating comma is dropped also. Extended AT** command with parameters Optional phone number, to which the response is sent via SMS. After "CN:" a space character must be entered. Examples for alarm inputs: [Password], AT**INPUT[,CN: +491601498456] The status of the alarm inputs is sent to the given phone number. 6.2.
INSYS GSM 4.2 I4 Functions and their configuration 6.2.7 Send and receive SMS The device can create as well as receive SMS messages via AT commands. The respective commands and parameters are listed in the separate document "AT Command Set For GSM 4.2" at http://www.insys-tec.de. Note For activated, automatic SMS processing, the device reads the SMS messages once every minute. After that it edits the SMS messages and deletes them.
INSYS GSM 4.2 I4 Functions and their configuration 6.2.8 SMS Dispatch to fax and e-mail An SMS can also be sent to a fax device or an e-mail address with support of the GSM provider. Examples: 1. In order to transmit a message via SMS from the T-D1 network to the fax number 0123/456789 select the following settings: Meaning: Parameters: SMS service center: +491710760000 Phone number: 990123456789 Message: 140 text characters max. Message 2.
INSYS GSM 4.2 I4 Functions and their configuration 6.2.9 Example: Free SMS dispatch via AT commands You can use the device via the serial interface to send text messages. The example shows the process - logged in a terminal window. 1.
INSYS GSM 4.2 I4 6.3 Functions and their configuration Alarm Functionality The device has four independent digital inputs for alarm detection. Alarms are triggered by connecting an alarm input to ground. The alarm input is on HIGH potential by a pull-up resistor in open state. During an alarm, the device can send an alarm message The alarm inputs are buffered, i. e. it is possible that up to five events per alarm input are temporarily saved and processed separately by the device.
INSYS GSM 4.2 I4 Functions and their configuration Simple alarm A simple alarm is triggered by changing the alarm input from HIGH to LOW/GND. The alarm is accepted after 0.3 seconds. Even if it is configured as pulse input, a simple alarm is triggered as soon as the input is connected to ground for at least 4 seconds – irrespective of the prior history. You can assign a message with a message text of max. 140 characters to the single alarm.
INSYS GSM 4.2 I4 Functions and their configuration Alarm transmission medium Simple alarm Establishing a "Long data connection" Pulse alarm – Sending an alarm message as SMS (see Chap. 6.2.6) Establishing a voice connection – The data connection will be terminated in the following cases: The alarm input is no longer active.
INSYS GSM 4.2 I4 Functions and their configuration If during the alarm processing of one input the other input is activate, the device stores the second alarm state. The device will first complete the processing of the first alarm before processing the second alarm (in chronological order). If no connection can be established, the device attempts as many dial-ups as configured in the basic settings, in intervals of approximately 60 seconds (see Chap. 6.1.3).
INSYS GSM 4.2 I4 Functions and their configuration Example: Input of pulse messages: 1. 2. Switch to any “Alarm tab, e.g. "Alarm1" or "Alarm2". Define the alarm type in the field "Alarm trigger". 3. Depending on the alarm type you can only enter one message. For a pulse alarm, you can enter the collective message and 10 individual messages. Define the transport medium in the field "Medium for alarm transport". 4. 5. 6. Enter the message text in the field "Message text".
INSYS GSM 4.
INSYS GSM 4.2 I4 Functions and their configuration Access Control You can protect the device from unauthorized access. The following options are available: Selective Call Answer Passwords and DTMF PIN Security callback You can configure the access protection in the HSComm in the tab "Access control". 6.3.8 Selective call answer When this option is activated, the device will only accept connections from the specified phone numbers.
INSYS GSM 4.2 I4 Functions and their configuration Configure selective call acceptance 1. 2. 3. In the tab "Access control" in the group "Selective call acceptance", activate the control box "Only accept calls from these numbers". Enter the requested numbers in the entry fields. Perform a reset. (see Chap. 2.7.
INSYS GSM 4.2 I4 Functions and their configuration Query via DTMF The DTMF PIN controls the access to query the inputs via DTMF tones during a voice connection. The DTMF PIN consists of 4 digits. Configure the passwords and the DTMF PIN 1. Start the HSComm and switch to the tab "Access control". 2. To configure a password, click on the button "Set password" in the group "Password for" at the desired password. 3. A dialog box to enter the password is opened. Enter the password.
INSYS GSM 4.2 I4 Functions and their configuration 4. If the remote terminal is busy, the device will redial according to the setting "Dialing attempts". (see Chap. 4.1) The LED Status is flashing during the security callback process. The security callback number is independent from the caller number, which triggers the security callback. Outgoing calls from the device are not affected. Activate security callback 1. Start the HSComm and switch to the tab "Access control". 2.
INSYS GSM 4.2 I4 Functions and their configuration Meaning of the entries: Reason Detail Meaning SYSTEM RTC ERROR RTC RESET Internal real time clock is faulty (time stamp empty) The internal real time clock has been reset as the gold cap was discharged (power reserve used up). Time stamp: 00:00:00 01.01.03 Instruction from controller to GSM engine could not be processed correctly (e.g.
INSYS GSM 4.2 I4 Functions and their configuration Date/Time Time stamp of the internal clock Pertinent AT commands AT**HISTORY 6.5 Read out history list Audio Interface and Voice Connections The device has a standard RJ45 phone plug at the front to connect a phone handset of reference type Handset Siemens Gigaset (see Chap. 2.4.5).
INSYS GSM 4.2 I4 Functions and their configuration Perform flash update: Entry in terminal AT**FLASH The flash update process starts if the ESC character key is pressed within 60 seconds. This prompt also appears for every restart (with a timeout of 2 seconds). Start Update with Esc, Reset with @ Prompt for sending Expecting download with 8N1 Send the firmware as *.MHX file.
INSYS GSM 4.2 I4 Functions and their configuration For setting the PLC data, two modem settings are available: Configure PC modem When you activate the entry "Configure PC modem", the modem will be configured at the PC (e.g. at the control center) for the according PLC. Configure the GSM device at the PLC When you activate the entry "Configure GSM device at PLC" , the modem will be configured directly at the PLC.
INSYS GSM 4.2 I4 Functions and their configuration The device has been tested for the most common PLC systems on the market. The documentation regarding the required settings for the according PLC is available from INSYS MICROELECTRONICS (mailto: insys@insys-tec.de).
INSYS GSM 4.2 I4 AT Command Sets 7 AT Command Sets You can configure and control the INSYS GSM with two AT command sets: Standard AT commands The standard AT commands control the GSM engine to establish data connections using the GSM network. Extended INSYS AT** commands The extended INSYS AT** commands control the extensions implemented by INSYS for the digital inputs, alarm functions, security functions and timer-controlled functions.
INSYS GSM 4.2 I4 AT Command Sets 7.
INSYS GSM 4.
INSYS GSM 4.2 I4 8 Table: GSM - Service Center Numbers Table: GSM - Service Center Numbers In the following, you will find an overview of the most important mobile providers in Germany, Austria, and Switzerland (2002). No responsibility is assumed for the correctness and completeness of this information. The given numbers may only be valid for particular contracts with the network provider. Please find the current data for your SIM card in your contract documents.