Preview only show first 10 pages with watermark. For full document please download

Manual - Insys Icom

   EMBED


Share

Transcript

Manual INSYS GSM/GPRS small Sep-09 Copyright © September 09 INSYS MICROELECTRONICS GmbH Any duplication of this manual is prohibited. All rights on this documentation and the devices are with INSYS MICROELECTRONICS GmbH Regensburg. Trademarks The use of a trademark not shown below is not an indication that it is freely available for use. MNP is a registered trademark of Microcom Inc. IBM PC, AT, XT are registered trademarks of International Business Machine Corporation. INSYS ® is a registered trademark of INSYS MICROELECTRONICS GmbH. Windows™ is a registered trademark of Microsoft Corporation. Linux is a registered trademark of Linus Torvalds. Publisher: INSYS MICROELECTRONICS GmbH Waffnergasse 8 D-93047 Regensburg, Germany Phone: +49 (0)941/56 00 61 Fax: +49 (0)941/56 34 71 e-mail: [email protected] Internet: http://www.insys-tec.de Date: Sep-09 Item: 31-22-03.134 Version: 2.0 Language: EN Contents 1 Safety .................................................................................................................. 6 2 Usage According to the Regulations .................................................................. 8 3 Scope of Delivery ................................................................................................ 9 4 Technical Data................................................................................................... 10 5 6 4.1 Physical Features ..............................................................................................................10 4.2 Technological Features .....................................................................................................11 Display and Control Elements........................................................................... 12 5.1 Displays .............................................................................................................................12 5.2 Operating Elements ..........................................................................................................14 Connections....................................................................................................... 15 6.1 Front Panel Connections...................................................................................................15 6.2 Terminal Connections on the Top ....................................................................................16 6.3 Pin Assignment of the Serial Interface.............................................................................16 7 Functional Overview......................................................................................... 17 8 Meaning of the Symbols and the Formatting in this Manual.......................... 19 9 Installation ........................................................................................................ 20 10 Initial Operation................................................................................................ 24 11 Operating Principle ........................................................................................... 26 11.1 Operation via Terminal Program......................................................................................26 11.2 Operation with HSComm GSM.........................................................................................27 11.3 User Interface of the Software HSComm GSM 4.x / GSM Small .....................................28 12 Functions ........................................................................................................... 31 12.1 Entering the PIN of the SIM Card......................................................................................31 12.2 Inserting and Removing the SIM Card .............................................................................32 12.3 Checking the Status of the GSM Login.............................................................................34 12.4 Checking the GSM Signal Quality.....................................................................................35 12.5 Automatic Baud Rate Detection.......................................................................................36 12.5.1 Serial Connection ............................................................................................................ 36 12.5.2 CSD Data Connection to ISDN/PSTN.......................................................................... 37 12.6 Data Flow Control (Handshake) .......................................................................................38 12.6.1 Hardware Data Flow Control (RTS/CTS).................................................................... 38 12.6.2 Software Data Flow Control (XON/XOFF)................................................................. 39 12.7 Establish or Accept a Data Connection ............................................................................40 12.8 Automatic Call Acceptance...............................................................................................41 12.9 Manual Sending of a Message .........................................................................................42 12.10 Automatic Execution of AT Command .............................................................................43 12.10.1 Automatic PIN Entry and Login after Restart........................................................... 44 12.10.2 Automatic Reset .............................................................................................................. 45 12.10.3 Alarm via DTR Control Line........................................................................................... 46 4 Sep-09 Contents 12.11 Configuration of Energy Conservation Modes and Real-Time Clock ..............................49 12.11.1 Real-Time Clock................................................................................................................ 49 12.11.2 Change between the Energy Conservation Modes................................................ 51 12.11.3 Sleep Modes...................................................................................................................... 52 12.11.4 Power-Down Mode......................................................................................................... 54 12.12 Operation with a PLC ........................................................................................................56 12.13 Using USSD Codes .............................................................................................................56 12.14 Reset of the Device ...........................................................................................................57 13 AT Command Reference ................................................................................... 58 13.1 General Information Regarding the Command Sets .......................................................58 13.2 Short Description AT commands ......................................................................................59 13.2.1 AT Commands According To V.25ter ......................................................................... 60 13.2.2 AT Commands for GSM Connection .......................................................................... 65 13.2.3 AT Commands for SMS .................................................................................................. 66 13.2.4 AT Commands for Energy Conservation Functions................................................ 67 13.2.5 AT Commands for Real-Time Clock Functions......................................................... 68 13.2.6 AT Commands for Automated Functions ................................................................. 68 14 GSM - Service Center Numbers......................................................................... 69 15 Network Provider Codes ................................................................................... 70 16 Declaration of Conformity................................................................................ 74 17 Waste Disposal.................................................................................................. 75 17.1 Repurchasing of Legacy Systems......................................................................................75 18 Tables and Diagrams......................................................................................... 76 18.1 List of Tables .....................................................................................................................76 18.2 List of Diagrams ................................................................................................................76 19 Sep-09 Index.................................................................................................................. 77 5 Safety 1 INSYS GSM/GPRS small Safety Danger! Moisture und liquids from the environment may seep into the interior of the device. Risk of death through shock hazard when touching it! The INSYS GSM/GPRS small may not be used in wet or damp environments, or in or very close to water. Install the device at a dry location, protected from water spray. Switch the power supply off before you do any work on a device which may have been in contact with moisture. Danger! Overvoltage. Fire hazard! The modem must be secured with a suitable fuse against overvoltage. Danger! Overcurrent. Fire hazard! The modem must be secured with a suitable fuse against currents exceeding 1.6 A. Warning! Short circuits and damage due to improper repairs and opening of maintenance areas. Fire, breakdown and risk of injury! Only trained personnel are allowed to open the INSYS GSM/GPRS small and to repair it. Note Damage of the device due to overvoltage! Voltage peaks from the power supply may damage the device. Install suitable overvoltage protection. 6 INSYS GSM/GPRS small Safety Note Damage due to chemicals! Ketones and chlorinated hydrocarbons dissolve the plastic housing and damage the surface of the device. Never let the device come into contact with ketones (e.g. acetone) or chlorinated hydrocarbons, such as dichloromethane. Note Antenna distance to persons! A too close distance of GSM antennas to persons may affect the health. Please observe that a minimum distance of 20 cm between a GSM antenna and a person must be maintained during operation. 7 Usage According to the Regulations 2 INSYS GSM/GPRS small Usage According to the Regulations The INSYS GSM/GPRS small may only be used for the purposes specified in the function overview. In addition, it may be used for the following purposes:  Usage and mounting in an industrial cabinet.  Data transmission functions in machines according to the machine directive 2006/42/EC.  Usage as data transmission device for a PLC. The INSYS GSM/GPRS small may not be used for the following purposes and used or operated under the following conditions: 8  Controlling or switching of machines and systems which do not comply with the directive 2006/42/EC.  Usage, controlling, switching and data transmission in machines or systems which are operated in explosive atmospheres.  Controlling, switching and data transmission of machines, which may involve risks to life and limb due to their functions or when a breakdown occurs. INSYS GSM/GPRS small 3 Scope of Delivery Scope of Delivery The scope of delivery for the INSYS GSM/GPRS small includes all accessories listed below. Please check if all accessories are included in the box. If a part is missing or damaged, please contact your distributor.  INSYS GSM/GPRS small  Cable:  1 serial cable with 9-pin Sub-D connector for the connection to the PC  1 manual Optional Accessories  CD-ROM  GSM antenna  Outside mounted antenna, magnetic base antenna or patch antenna  Configuration software HSComm  AT Command Reference 9 Technical Data INSYS GSM/GPRS small 4 Technical Data 4.1 Physical Features Danger! Overvoltage. Fire hazard! The modem must be secured with a suitable fuse against overvoltage. All specified data was measured with a nominal input voltage, at full load, and an ambient temperature of 25 °C. The threshold value tolerances are subject to typical fluctuations. Physical Feature Value Operating voltage minimum 12 V DC maximum 24 V DC Power input standby max. approx. 500 mW Power input connection max. approx. 2 W Power input power-down max. approx. 200 mW Power input sleep max. approx. 300 mW Minimum operating voltage SIM card 3V Emitted radiation: EGSM 900: Class 4 GSM 1800: Class 1 EGSM 900: Class E2 GSM 1800: Class E2 2W 1W 0,5 W 0,5 W Weight 125 g Dimensions (Width x Depth x Height) 23 x 120 x 75 mm Temperature range -20 °C – 55 °C Maximum allowed humidity 95% non-condensing Protection Class Housing IP40, Terminals IP20 Table 1: Physical Features 10 INSYS GSM/GPRS small 4.2 Technical Data Technological Features Technological Feature Description Data formats of the serial interface 8N1, (7E1, 7O1, 7N2, 8E1, 8O1, 8N2 only GSM small) Fax classes Fax Group 3: Class 1/2 SMS features Text and PDU mode - Mobile Originated (MO) - Mobile Terminated (MT) - Cell Broadcast (CB) GPRS features (only GPRS small) GPRS multislot class 8 (max. 4 R X timeslots and 1 TX timeslot) Coding Scheme CS1 to CS4 (must be supported by the provider) GPRS terminal device class B (no simultaneous CSD and GPRS connect possible) Modulation types V.22bis, V.32 (4800/9600 bps), V.34, V.110 (4800/9600/1400 bps) Serial interface speeds 300, 600, 1220, 2400, 4800, 9600, 14400, 19200, 28800, 38400, 57600, 115200 bps Table 2: Technological Features 11 Display and Control Elements 5 Display and Control Elements 5.1 Displays INSYS GSM/GPRS small Figure 1: LEDs on the front panel Position 1 2 Description Status LED Power/RX/TX LED Table 1: Description of the LEDs on the front panel The right LED (Status) indicates the log-in state into the GSM network as well as an existing data connection. The left LED (Power - RX/TX) indicates the state of the power supply as well as a data transfer. The exact meaning of the display elements is indicated in the following table. 12 INSYS GSM/GPRS small LED Color green Power – RX/TX Display and Control Elements On Power supply present Blinking --- orange Device is in power-down mode --- red --- --- Only with setting AT&C1 (default): green Connection establishment: Remote station has picked up; connection handshake is performed With setting AT&C1 (default): Timing: 600 ms on / 600 ms off Device is not legged in into GSM network (e.g. loss of network, no SIM card inserted or no PIN entered. orange AT&C1 as well as AT&C0: Data connection is established, i.e. DCD is active And with setting AT&C0: Connection establishment: Remote terminal has picked up; connection handshake is performed red --- Off --Data is transferred; LED flashes/flickers in the cycle of incoming/outgoing data --- No power supply present With setting AT&C1 (default): Timing 75 ms on / 3 s off Device is legged in into GSM network. Only with setting AT&C0: If Power – Rx/Tx LED also orange: Device is in power-down mode, otherwise: Status Flashing Timing 75 ms orange / 3 s red Device is legged in into GSM network. Only with setting AT&C0: Timing 600 ms orange / 600 ms rot Device is not legged in into GSM network (e.g. loss of network, no SIM card inserted or no PIN entered. No power supply present Only for INSYS GPRS small (independent of setting AT&C): Timing 75 ms orange / 75 ms red/ 75 ms orange / 3 s red GPRS context active (idle connection) Timing 0.5 s orange 0.5 s red GPRS data transfer active Table 3: Meaning of the LED displays 13 Display and Control Elements 5.2 Operating Elements Figure 2: Operating elements on the bottom Position 1 2 Description Insert for SIM card holder Eject key for SIM card holder Table 4: Description of the operating elements on the bottom 14 INSYS GSM/GPRS small INSYS GSM/GPRS small 6 Connections 6.1 Front Panel Connections Connections Figure 3: Connections on the front panel Position 1 2 Description Serial Interface (RS232 jack) Antenna connection (FME jack) Table 1: Description of the connections on the front panel 15 Connections 6.2 INSYS GSM/GPRS small Terminal Connections on the Top Figure 2: Connections on the top Terminal Description Description 1 12 ... 24 VDC Power supply 12 V – 24 V DC (the voltage values are limit values without tolerances) 2 GND Ground 3 Reset Reset input Table 5: Description of the connections on the top 6.3 Pin Assignment of the Serial Interface Figure 4: 9-pin sub-D jack at the device Pin Signal Description 1 DCD Data Carrier Detect 2 RXD Receive Data 3 TXD Transmit Data 4 DTR Data Terminal Ready 5 GND Ground 6 DSR Data set ready 7 RTS Request to send 8 CTS Clear To Send 9 RI Ring Indication Table 6: Description of the pin allocation of the sub-D jack 16 INSYS GSM/GPRS small 7 Functional Overview Functional Overview The INSYS GSM/GPRS small offers the following functions:  Data buffer for serial data transmission The INSYS GSM/GPRS small has a fast send and receive buffer (cache) to adjust the modem to the operating speed of the application.  Hardware and software data flow control The INSYS GSM/GPRS small can transmit to the application via the control lines of the serial interface to interrupt the dataflow, if the buffers of the INSYS GSM/GPRS small exceed a certain level. An application can also prompt the INSYS GSM/GPRS small via a control line to interrupt the data flow. As an alternative, the INSYS GSM/GPRS small can control the data flow via XOFF/XON characters in the data stream.  Caller ID display The INSYS GSM/GPRS small transmits the caller ID of an incoming call via the serial interface.  Automatic call acceptance for CSD data connections The INSYS GSM/GPRS small can be configured to accept incoming CSD data connections after a certain number of ring tones.  Automatic establishment of CSD data connections via DTR control line The INSYS GSM/GPRS small can establish a CSD data connection to a configured number by activating the DTR control line.  Sending SMS messages after DTR activation The INSYS GSM/GPRS small can send a predefined message to a predefined recipient by activating the DTR control line.  Integrated real-time clock The integrated real-time clock can be used to execute AT commands timecontrolled and to leave the Power-Down mode time-controlled.  Reset terminal The INSYS GSM/GPRS small can be reset by connecting the reset terminal to ground. All stored settings are maintained.  Automatic reset The INSYS GSM/GPRS small can perform an automatic reset after a defined number of operating hours. The reset ensures a regular GSM network logout and login again and therefore a reliable availability in the GSM network. 17 Functional Overview  INSYS GSM/GPRS small Sleep modes and Power-Down mode The INSYS GSM/GPRS small provides several modes, which turn the INSYS GSM/GPRS small into a state with reduced energy consumption. Depending on the mode, the INSYS GSM/GPRS small can be “called up”, i.e. changed into normal state, by an incoming call, an AT command, an incoming SMS, a reset, or other possibilities.  GPRS functions The INSYS GPRS small provides the possibility to establish packet-based IP connections via GPRS in addition. 18 INSYS GSM/GPRS small 8 Meaning of the Symbols and the Formatting in this M l Meaning of the Symbols and the Formatting in this Manual This section describes the definition, formatting and symbols used in this manual. The various symbols are meant to help you read and find the information relevant to you. The following text is structured like a typical operating instruction of this manual. Bold print: This will tell you what the following steps will result in After that, there will be a detailed explanation why you could perform the following steps to be able to reach the objective indicated first.  An arrow will indicate prerequisites which must be fulfilled to be able to process the subsequent steps in a meaningful way. You will also learn which software or which equipment you will need. 1. One individual action step: This tells you what you need to do at this point. The steps are numbered for better orientation.  A result which you will receive after performing a step will be marked with a check mark. At this point, you can check if the previous steps were successful.  Additional information which you should take under consideration are marked with a circled "i". At this point, we will indicate possible error sources and tell you how to avoid them.  Alternative results and steps are marked with an arrow. This will tell you how to reach the same results performing different steps, or what you could do if you didn't reach the expected results at this point. 19 Installation 9 INSYS GSM/GPRS small Installation This chapter describes how to mount the INSYS GSM/GPRS small to a DIN rail, connect it to the power supply and disassemble it again. Danger! Exposed electrical components! Risk of death through electric shock hazard! Prior to the installation, switch the power of the cabinet off and secure it against being switched on again. Danger! Moisture und liquids from the environment may seep into the interior of the INSYS GSM/GPRS small. Risk of death through shock hazard when touched! The INSYS GSM/GPRS small may not be used in wet or damp environments, or in or very close to water. Install the device at a dry location, protected from water spray. Switch the power supply off before you do any work on a device which may have been in contact with moisture. Note The device could be destructed if the wrong power supply is used. If the INSYS GSM/GPRS small is used with a power supply which has a larger voltage than the allowed operational voltage of the INSYS GSM/GPRS small, the device is destroyed. Make sure that you use the suitable power supply. The Chapter "Technical Data" has the information about the correct voltage range for the INSYS GSM/GPRS small. 20 INSYS GSM/GPRS small Installation Mount the device to the DIN rail Instructions on how to mount the INSYS GSM/GPRS small to a DIN rail. 1. Position the device at the DIN rail as seen in the following diagram. There are two snap-in hooks at the outer edge of the DIN rail groove of the INSYS GSM/GPRS small. Hook them into place behind the upper edge of the DIN rail when connecting the device. 2. Lift the INSYS GSM/GPRS small perpendicular to the DIN rail until the plastic spring of the third, flexible snap-in hook engages in the DIN rail.  The INSYS GSM/GPRS small is now completely mounted. Connecting the power supply  The device has already been mounted to the DIN rail.  The power supply is connected and switched off. 1. Connect the ground lead of the power supply to the terminal "GND". 2. Connect the plus pole of the power supply to the terminal for the power supply. 21 Installation INSYS GSM/GPRS small Disassemble the device from the DIN rail Instructions on how to disassemble the INSYS GSM/GPRS small from a DIN rail in a cabinet:  You will need a flat tip screwdriver with a 4.5 mm blade.  The power supply of the cabinet is switched off and secured against being switched off accidentally.  All cables at the INSYS GSM/GPRS small are disconnected. Danger! Exposed electrical components! Risk of death through electric shock hazard! Prior to the installation, switch the power of the cabinet off and secure it against being switched on again. 22 1. Insert the flat tip screwdriver into the flexible snap-in hook of the INSYS GSM/GPRS small as shown in the diagram. 2. Turn the flat tip screwdriver into the direction of the INSYS GSM/GPRS small as shown in the diagram. INSYS GSM/GPRS small  Installation The plastic spring of the snap-in hook is pulled apart. 3. While you hold the plastic spring of the snap-in hook stretched apart, pull the INSYS GSM/GPRS small away from the DIN rail. 4. Unhook the INSYS GSM/GPRS small and take it off, perpendicularly to the DIN rail. 23 Initial Operation 10 INSYS GSM/GPRS small Initial Operation This chapter describes how to commission the INSYS GSM/GPRS small, i.e. how to connect the INSYS GSM/GPRS small to a PC, to log it into a mobile phone network, and how to test it. Connect the INSYS GSM/GPRS small to a PC How to connect the INSYS GSM/GPRS small to a PC via a serial interface.  You will need the 9-pin serial cable.  You will need a free serial interface at the PC.  Use preferably serial interfaces which are actually at the PC as "real" hardware. Virtual serial interfaces or USB-to-Serial solutions often cause problems. 1. Connect the 9-pin serial cable with the INSYS GSM/GPRS small and fasten the connection screws. 2. Connect the 9-pin serial cable to a free serial interface of your PC.  Note or remember to which interface (COM1 or COM2) you connected the INSYS GSM/GPRS small at the PC. Insert a SIM card into the INSYS GSM/GPRS small  You will need a SIM card  Please observe the notes in the Enter PIN of the SIM Card section of the Functions chapter concerning the PIN entry before inserting the SIM card to avoid an unintentional locking of the SIM card. 2. Insert the SIM card into the INSYS GSM/GPRS small and proceed as described in the Insert and Remove SIM Card section of the Functions chapter. Connect a GSM antenna to the INSYS GSM/GPRS small  You will need a suitable GSM antenna 1. Connect the GSM antenna with the FME connection on the front of the INSYS GSM/GPRS small. Test the INSYS GSM/GPRS small 24  The INSYS GSM/GPRS small is connected to the PC.  The power supply of the INSYS GSM/GPRS small is switched on (refer to the Installation section for the connection of the power supply).  A GSM antenna is connected.  A terminal program such as TeraTerm or HSComm (contains a terminal INSYS GSM/GPRS small Initial Operation program) is installed at the PC.  The Power LED light up green. 1. Open your terminal program. 2. Open the serial interface, to which the INSYS GSM/GPRS small is connected.  The baud rate and protocol settings in the terminal program must correspond with the settings of the INSYS GSM/GPRS small. The INSYS GSM/GPRS small is configured to 19200 Baud, 8 data bits, 1 stop bit and no parity (8N1) by default. 3. Enter AT into your terminal program and confirm with the Enter key.      The response will be OK. If you don't receive the response OK, check the connection and if the INSYS GSM/GPRS small receives power. Repeat the test. The RX/TX LED light up while you type. If the RX/TX LED at the INSYS GSM/GPRS small does not light up, while you type AT and receive an OK, the reason may be that you are connected to another modem (e.g. with the modem integrated in the laptop or the PC). In this case, check to which interface your INSYS GSM/GPRS small is actually connected and repeat the test. The INSYS GSM/GPRS small is successfully installed and ready for operation. 25 Operating Principle 11 INSYS GSM/GPRS small Operating Principle This chapter describes the basis procedures to operate and configure a INSYS GSM/GPRS small. It will also give you an overview of the control elements of the software HSComm. You have two possibilities to operate and configure the INSYS GSM/GPRS small. In general, the INSYS GSM/GPRS small is configured and operated via AT commands. You can enter these commands yourself with the help of a terminal program and the AT Command Reference. As an alternative, you can enter the most important functions easily with the help of the configuration software HSComm. 11.1 Operation via Terminal Program In general, any terminal program may be used. We recommend the program TeraTerm by T. Teranishi. It is available free of cost on the Internet at http://hp.vector.co.jp/authors/VA002416/teraterm.html. Configuration and settings of the INSYS GSM/GPRS small with a terminal program How to configure and operate the INSYS GSM/GPRS small with a terminal program.  The INSYS GSM/GPRS small is connected to the PC and switched on.  A terminal program is installed on the PC. 1. Start your terminal program. 2. Open the serial port, to which you connected the INSYS GSM/GPRS small.  COM1 under Windows corresponds to /dev/ttyS0 under Linux. 3. Type the character string AT into the terminal program. Complete the entry by pressing the Enter key.  Each command input starts with AT und is completed with the Enter key.  26 The INSYS GSM/GPRS small responds with OK:  If the INSYS GSM/GPRS small does not respond, this may have several possible reasons: a) The INSYS GSM/GPRS small is switched off b) The INSYS GSM/GPRS small is connected to a different serial port. c) Baud rate and/or data format are configured inconsitently. Check it and repeat step 3. 4. Configure the INSYS GSM/GPRS small with the help of the AT commands. INSYS GSM/GPRS small Operating Principle  A reference of the AT commands can be found in the AT Command Reference chapter. 5. Save your entries with AT&W.  Not all settings at the INSYS GSM/GPRS small must be actively stored by entering AT&W. Some settings are automatically saved immediately. We still recommend sending the command AT&W to the INSYS GSM/GPRS small as your last configuration step to ensure that all settings are stored safely and are available for the next restart. 11.2 Operation with HSComm GSM Use the software HSComm to easily configure the INSYS GSM/GPRS small. HSComm offers an interface for the parameters of the most important AT commands of the INSYS GSM/GPRS small. The operation is mostly self-explanatory. You can download the software from the INSYS MICROELECTRONICS homepage (www.insys-tec.de). Configuration and setting of the INSYS GSM/GPRS small with HSComm How to configure the INSYS GSM/GPRS small with the software HSComm.  The INSYS GSM/GPRS small is connected to the PC and switched on.  The software HSComm GSM is installed on the PC. 1. Start the program HSComm GSM 4.x / GSM Small.   The program starts. A process bar appears in the field on the right if the automatic recognition at program start is activated in the program settings of HSComm.  If this option is not activated, the settings can be read out with the Read settings button (Figure 5, page 28, position 16).  The program will now search for a connected INSYS GSM/GPRS small and will attempt to read the settings.  After a short time, the settings are read out. A status message "Settings read." appears.  If the settings cannot be read out, try to synchronize the serial interface by selecting the Synchronize RS232 button (Figure 5, page 28, position 19). 2. Click OK in the status message. 27 Operating Principle INSYS GSM/GPRS small 3. Enter the required settings. 4. Afterwards, click on the button Send settings (Figure 5, page 28, position 15).  A process bar appears above the button.  The entered settings are sent to the INSYS GSM/GPRS small and stored.  A dialog box with the message "transmission finished" is displayed. 5. Click OK in the status message. 11.3 User Interface of the Software HSComm GSM 4.x / GSM Small In the following, the user interface of the software is displayed. These illustrations should help you find the different software settings. 1 2 3 4 5 6 7 8 9 10 11 26 12 25 24 13 23 14 22 15 16 17 18 19 20 21 Figure 5: HSComm GSM - Tab Basic Settings 28 INSYS GSM/GPRS small Position 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 Operating Principle Function/Description Save and load settings in files. Configure the serial interface of the PC. Configure the device behaviour; enable or disable auto-recognition at program start or log all commands. Status of the PIN request between device and SIM, indication of the login state into the GSM network. Button to activate the integrated terminal. Configure interface language (German / English / Czech). Load or store special settings for the operation with a PLC. Display the configuration overview. Protocol of the settings, sent and received by HSComm. Program version information. Online program help. Enable and configure the scheduled reset of the INSYS GSM/GPRS small. Setting the transmit protocols for CSD connections. Entry field for an additional AT command for initialization (“Initialization string”) of the INSYS GSM/GPRS small. Button for sending the settings to the INSYS GSM/GPRS small. Button for reading the settings from the INSYS GSM/GPRS small. Button for sending the default settings to the INSYS GSM/GPRS small. Button for resetting the INSYS GSM/GPRS small. Button for synchronizing the serial interface of the INSYS GSM/GPRS small with the serial interface at the PC. Button for terminating the reading or sending of settings. Status line; shows status and settings of the used serial PC interface. Button for reading out the GSM field strength. Enable and disable the automatic call acceptance. Entry field for the SMS Service Center Number. Configuring a new SIM PIN or deleting the old SIM PIN when sending the settings. Tab to select the different configuration areas. Table 7: Description of the functions on the HSComm GSM tab "Basic Settings" 29 Operating Principle INSYS GSM/GPRS small 1 2 3 4 8 7 6 5 Figure 6: HSComm GSM - Tab Serial interface Position 1 2 3 4 5 6 7 8 Function/Description Handshake settings for the INSYS GSM/GPRS small. Configure behaviour when activating the DTR control line. Configure the result report form. Configure target number and message text (if applicable) for SMS dispatch or data connection after DTR activation. Configure behaviour when deactivating the DTR control line. Enable command echo. Configure data format for serial transfer. Configure baud rate for serial transfer. Table 8: Description of the functions on the HSComm tab "Serial interface" 30 INSYS GSM/GPRS small Functions 12 Functions 12.1 Entering the PIN of the SIM Card The INSYS GSM/GPRS small requires a SIM card as well as the PIN belonging to the SIM card to be able to log into a GSM network. The PIN is necessary that the device is able to use the SIM card for logging into the GSM network. You may enter the PIN into the INSYS GSM/GPRS small without inserting the SIM card. If the SIM card requires no PIN, you don’t have to enter a PIN in the INSYS GSM/GPRS small. If you enter a PIN, it will be transmitted to the SIM card with every login attempt. Note Loss of function of the SIM card! A falsely entered PIN may lock the SIM cars directly after switching on the INSYS GSM/GPRS small, when the device has tried to log into the GSM network for more than three times. Take care, that the SIM PIN configured in the INSYS GSM/GPRS small corresponds with the SIM card or disable the PIN request of the SIM card. A possibly false configured PIN has no effect if the PIN request is disabled. Configuration with HSComm In order to enter the already existing PIN of the used SIM card, use the „PIN“ entry field (Figure 5, page 28, position 25) in the „GSM Connection“ panel on the „Basic Settings“ tab. In order to use a new PIN in the INSYS GSM/GPRS small, activate the check box „new PIN“ (Figure 5, page 28, position 25). Then enter a new PIN into the entry field (Figure 5, page 28, position 25). In order to delete the PIN in the INSYS GSM/GPRS small, activate the check box „delete PIN“ (Figure 5, page 28, position 25). Transmit your entries using the button „Send settings“ (Figure 5, page 28, position 15), that they become effective. Configuration with AT commands The configuration of the PIN entry is described in detail in the Automatic Processing of AT command section. In order to check the status of the PIN request between device and SIM card, use the command AT+CPIN? The following replies inform about the status of the PIN request: No entry required READY 31 Functions 12.2 INSYS GSM/GPRS small PIN of the SIM card missing SIM PIN PUK entry required (after repeated incorrect entry of the PIN) SIM PUK SIM carte not or not correctly inserted ERROR Inserting and Removing the SIM Card A SIM card must be inserted that your INSYS GSM/GPRS small is able to log into the GSM network and transmit data. Moreover, the PIN of the SIM card must be entered into the INSYS GSM/GPRS small. Insert SIM card How to insert the SIM card into the INSYS GSM/GPRS small.  You will need a SIM card.  You will need a pointed tool, e.g. a ball pen refill. 1. Disconnect the power supply of the INSYS GSM/GPRS small. 2. Press onto the SIM card holder eject key using the pointed tool.  32 The SIM card holder will be ejected. 3. Remove the SIM card holder. 4. Insert the SIM card into the SIM card holder. 5. Insert the SIM card holder with the inserted SIM card with the SIM card contacts facing left into the INSYS GSM/GPRS small. INSYS GSM/GPRS small   Functions The SIM card can now be used by the INSYS GSM/GPRS small. Take care that the correct PIN in configured in the INSYS GSM/GPRS small. A wrong PIN may lead to the SIM card being locked after switching on the INSYS GSM/GPRS small. Remove SIM card How to remove the SIM card from the INSYS GSM/GPRS small.  You will need a pointed tool, e.g. a ball pen refill. 1. Disconnect the power supply of the INSYS GSM/GPRS small. 2. Press onto the SIM card holder eject key using the pointed tool.  The SIM card holder will be ejected. 3. Remove the SIM card holder. 4. Remove the SIM card from the SIM card holder. 5. Insert the SIM card holder back into the INSYS GSM/GPRS small. 33 Functions INSYS GSM/GPRS small 12.3 Checking the Status of the GSM Login The INSYS GSM/GPRS small logs in into the GSM network automatically with each restart of the device. The login status into the GSM network may be requested for test purposes. Then, you can see, whether the INSYS GSM/GPRS small is logged out at the moment, whether a network search is performed, whether a login has been refused by the GSM network, or whether the device is logged in into a foreign network via roaming. Configuration with HSComm The Login state is indicated in text form in HSComm on the „Basic Settings“ tab in the panel „GSM Connection“ (Figure 5, page 28, position 4). Configuration with AT commands In order to request the Status of the GSM login, use the command AT+CREG? The Status is indicated in the reply by the second number following the comma. Reply example <+CREG: 0,3> The following status replies are possible: 34 Not logged in, no GSM network search 0 Logged in with the standard provider 1 Not logged in, INSYS GSM/GPRS small searches for GSM network 2 GSM network refuses a login 3 Logged into a foreign network via roaming 5 INSYS GSM/GPRS small 12.4 Functions Checking the GSM Signal Quality You can check the signal field strength at the location of the INSYS GSM/GPRS small. The signal quality has an essential effect on data transmission speed. If the signal field strength is too low, the transmission speed may drop too much or the connection may be terminated completely. The signal field strength is visible for you in several ways: via HSComm or via an AT command. Configuration with HSComm In order to open a dialog window with the current signal field strength, click the „detect GSM intensity“ button (Figure 5, page 28, position 22) on the „Basic Settings“ tab. Configuration with AT commands In order to display the signal field strength, use the command AT+CSQ The signal quality is indicated in the response by the first digit before the comma. Response example <+CSQ: 13,0> The value of the signal quality means here: 0..10 poor reception, change position 11..31 good reception 99 cannot be detected The value behind the comma indicates the bit failure rate. 35 Functions INSYS GSM/GPRS small 12.5 12.5.1 Automatic Baud Rate Detection Serial Connection Note Functional reliability! Undefined settings of baud rate and data format may affect a reliable function. It is recommended to select a fix baud rate and thus deactivating the automatic baud rate detection for a reliable operation. The automatic baud rate detection enables a continuous automatic adjustment of all parameters (baud rate, (data format only GSM small)) of the serial interface at the INSYS GSM/GPRS small. The device will detect during operation, which baud rate and which data format is applied to the serial interface. With each incoming AT command (according to the character string "AT"), the parameters for the interface of the INSYS GSM/GPRS small will be checked and adjusted, if necessary. Automatic baud rate detection does not work for baud rates below 1200 baud. Configuration with HSComm In order to enable the automatic baud rate detection, select on the „Serial interface“ tab in the „Baud rate“ field the „Autobaud“ setting (Figure 6, page 30, position 8). Configuration with AT commands To set the baud rates, enter one of the following baud rates for : 300, 600, 1200, 2400, 4800, 9600, 14400, 19200, 28800, 38400, 57600, 115200, or 230400 bps. If “0” is configured for here, automatic baud rate detection is enabled. 36 AT+IPR= INSYS GSM/GPRS small 12.5.2 Functions CSD Data Connection to ISDN/PSTN For a data connection with a device outside the GSM network (PSTN or ISDN TA) the right protocol has to be selected. This setting is not important for data connections with a GSM device. The automatic negotiation of the connection protocol enables the INSYS GSM/GPRS small to negotiate the largest possible connection speed to the remote terminal while the connection is established. The speed depends on the settings and the abilities of the modem at the remote terminal. Via the connection protocol, the connection speed can be set through the phone line. If nothing is defined, the INSYS GSM/GPRS small will automatically try to determine the optimum connection parameters. Configuration with HSComm In order to configure the protocol, select on the „Serial interface“ tab in the „Protocol“ field the respective setting (Figure 6, page 30, position 13). Configuration with AT commands To configure the modulation standard and thus the connection speed, use the command: AT+CBST= Please find the possible parameters for this command in the AT Command reference chapter. To display the current settings: AT+CBST? For a list of possible parameter of the command, enter: AT+CBST=? 37 Functions INSYS GSM/GPRS small 12.6 Data Flow Control (Handshake) The data flow control ensures that the data transfer is interrupted as soon as the modem buffer exceeds a certain level. Two data flow control options are available: Via the control lines RTS and CTS, or via the control characters XON/XOFF which are inserted into the data stream. 12.6.1 Hardware Data Flow Control (RTS/CTS) The hardware data flow control works in two directions. When the critical buffer level is exceeded, the modem will set the CTS line to "low" and will thus indicate to the application to interrupt the dataflow. When the buffer is emptied sufficiently for the INSYS GSM/GPRS small to be able to receive data again, the CTS line is set to "high". Reversely, the application can also indicate to the INSYS GSM/GPRS small to interrupt the data flow. This is done via the RTS line. If it is set to "low", the modem will interrupt the data flow to the application. The application will set it to "high" to request data from the INSYS GSM/GPRS small. The data flow control with RTS/CTS behaviour is active by default. Configuration with HSComm Select the type of data flow control or switch it off completely on the "Serial interface" tab in the "Handshake" panel (Figure 6, page 30, position 1). Configuration with AT commands 38 In order to enable the data flow control and to set the type to RTS/CTS, use the command AT\Q3 In order to disable the data flow control, use the command AT\Q0 INSYS GSM/GPRS small 12.6.2 Functions Software Data Flow Control (XON/XOFF) When the input buffer of the modem exceeds a certain fill state, the modem will insert an XOFF character into the data stream to the application. This character will cause the application to send no more data. It will depend on the according application software if the XON/XOFF data flow control is supported. After the input buffer of the modem is emptied so much that data can be received again, the modem will send an XON character to the application. This character will cause the application to send data to the modem again. Analogously, the application can insert XON/XOFF characters into the data stream to switch the data flow on and off. The XON/XOFF data flow control is only available when the transmitted data do not contain the characters XON or XOFF, which usually appear only in actual ASCII texts (7 bit). When binary data (programs, etc.) are transmitted, or in the XMODEM transmission protocol, for example, occasionally appearing XON or XOFF characters would disturb the operation. Configuration with HSComm Select the type of data flow control or switch it off completely on the "Serial interface" tab in the "Handshake" panel (Figure 6, page 30, position 1). Configuration with AT commands In order to enable the data flow control and to set the type to XON/XOFF, use the command AT\Q1 In order to disable the data flow control, use the command AT\Q0 39 Functions INSYS GSM/GPRS small 12.7 Establish or Accept a Data Connection The INSYS GSM/GPRS small can call another modem via the GSM network and establish a data connection. After dialling a number, the INSYS GSM/GPRS small synchronizes with the called modem and opens a data connection with the transmission speed, allowed by the GSM network. Usually, this is 9600 bit/s. The speed, which is configured at the serial interface of the INSYS GSM/GPRS small at the time of connection establishment, will not be changed. All incoming characters are transmitted to the called modem during an active data connection. Therefore, AT commands are not processed during a connection. The INSYS GSM/GPRS small must be switched to command mode using the „Escape sequence“ that it is able to process AT commands during an active data connection again. Then, the local INSYS GSM/GPRS small processes the entered characters as AT commands and does not transmit it top the remote station. In the same way, the INSYS GSM/GPRS small can accept an incoming connection. It picks up after the configured number of rings and opens a connection. Configuration with AT commands In order to establish a data connection with the INSYS GSM/GPRS small, use the command ATD Replace with the phone number of the remote station. If another modem accepts the connection, the INSYS GSM/GPRS small reports CONNECT If the remote station is busy, the INSYS GSM/GPRS small reports BUSY If no connection with the remote station can be established, the INSYS GSM/GPRS small reports NO CARRIER An incoming call is signalled by RING In order to change into command mode, use the escape sequence Before and after, no data may be transmitted for 1 second that the INSYS GSM/GPRS small changes into command mode. In order to change back from command mode to regular data transmission, use the command 40 +++ ATO INSYS GSM/GPRS small In order to accept an incoming connection, use the command Functions ATA In order to configure the number of ring tones, after which the INSYS GSM/GPRS small picks up and accepts the connection, use the command ATS0= Replace with the number of ring tines ( = 2…255, = 0 disables the function). In order to terminate a connection and make the INSYS GSM/GPRS small hang up, use the command 12.8 ATH Automatic Call Acceptance With the automatic call acceptance, the INSYS GSM/GPRS small accepts every call after the configured number of ring tones. Configuration with HSComm In order to enable the automatic call acceptance, activate the check box „auto answer“ (Figure 5, page 28, position 23) on the „Basic settings“ tab. Configure the desired number of ring tones (Figure 5, page 28, below position 23), after which the INSYS GSM/GPRS small picks up. Configuration with AT commands In order to enable the automatic call acceptance, use the command ATS0=1 In order to disable the automatic call acceptance, use the command ATS0=0 In order to configure the number of ring tones, after which the INSYS GSM/GPRS small accepts the call, use the command ATS= Replace with the number of ring tones ( = 2…255). 41 Functions INSYS GSM/GPRS small 12.9 Manual Sending of a Message The INSYS GSM/GPRS small can be used to send an SMS manually. Configuration with HSComm A manually triggered dispatch of a message is not possible with the HSComm software. Configuration with AT commands In order to configure the SMS text mode, use the command AT+CMGF=1 In order to configure the number of the Short Message Service Center, use the command Replace with the number of the Short Message Service Center (SMS Center) in international format in quotation marks (for example „+49172…“). AT+CSCA=<“SMSCno“> In order to send the SMS message, enter the target number using the command Finish the entry of the target number in international format in quotation marks with the Enter key . After the prompt > appears, enter the text of the SMS message and finish the entry with CTRL-Z (not with the Enter key!). AT+CMGS=<“targetno“> >SMS text The INSYS GSM/GPRS small starts to send the SMS now. 42 INSYS GSM/GPRS small 12.10 Functions Automatic Execution of AT Commands The command AT^SCFG allows to execute functions (AT commands) time-controlled or via activating the DTR control line. Up to 3 actions can be configured for time-controlled processes. One action can be configured for triggering via DTR. In case of time-controlled functions, the internal timers start over after a restart or reset. This is also valid when entering ATZ or AT&F! The most important functions for an application are explained with examples in the following. These examples are also used in the HSComm for GSM;  Automatic PIN entry and login after restart  Automatic reset  Alarm via DTR control line If all functions are configured in the configuration software HSComm, all memory locations are occupied.  The settings of this command are only stored by the command AT^SMSO. This command shuts the {{{PRODUKTBEZEICHNUNG}}} down. It can be restarted by briefly disconnecting the power supply. 43 Functions INSYS GSM/GPRS small 12.10.1 Automatic PIN Entry and Login after Restart This function allows a login into the GSM network and the transfer of the PIN by the INSYS GSM/GPRS small. Configuration with HSComm The simplified PIN entry via the software HSComm is described in the Entering the PIN of the SIM card section. Configuration with AT commands In order to configure an automatic login into the GSM network, use the command Replace