INTERFACE




            User Manual
            UM EN PSI-GPRS/GSM-MODEM/
            RS232-QB…

            GPRS/GSM Mo...
INTERFACE


User Manual
GPRS/GSM Modem




                                                                             06...
PSI-GPRS/GSM-MODEM/RS232-QB…


                      Please Observe the Following Notes

                      In order to...
PSI-GPRS/GSM-MODEM/RS232-QB…

            General Terms and Conditions of Use for Technical Documentation
            Phoe...
PSI-GPRS/GSM-MODEM/RS232-QB…

                        Statement of Legal Authority
                        This manual, in...
Table of Contents
1    GPRS/GSM Modem .......................................................................................
PSI-GPRS/GSM-MODEM/RS232-QB…




ii   PHOENIX CONTACT           2548_en_A
GPRS/GSM Modem


1     GPRS/GSM Modem
              1.1        Short Description

              The DIN rail-mountable PSI...
PSI-GPRS/GSM-MODEM/RS232-QB…


                                         1.2       Ordering Data

Modem
Description        ...
GPRS/GSM Modem



GSM
Frequencies                        850 MHz, 900 MHz, 1800 MHz, 1900 MHz (EGSM)
Transmission power   ...
PSI-GPRS/GSM-MODEM/RS232-QB…


General Data
CE conformance                                                                ...
Hardware Installation


2     Hardware Installation

                 2.1          Structure

                 Housing Dim...
PSI-GPRS/GSM-MODEM/RS232-QB…


                              2.2          Operating Elements
                             ...
Hardware Installation


            2.3       Electrical Connections

            DANGER:
            Only qualified perso...
PSI-GPRS/GSM-MODEM/RS232-QB…


                                   2.3.1         Block Diagram

                      COMBI...
Hardware Installation


                        2.3.2       V.24 (RS-232) Interface

                        The modem and...
PSI-GPRS/GSM-MODEM/RS232-QB…



                                     PC/PLC                         Modem
                ...
Hardware Installation


            2.3.3         Antenna

            Antenna Connection
            •     Connect the an...
PSI-GPRS/GSM-MODEM/RS232-QB…


                        2.3.4          SIM Card

SIM card registration   The PSI-GPRS/GSM-M...
Hardware Installation




                                                A
                         SIM
                 ...
PSI-GPRS/GSM-MODEM/RS232-QB…

                         •     Remove the SIM card from the holder on the PCB (see Figure 2-...
Hardware Installation


               24 V     0V             IN1   IN2




                          24V 0V IN1 IN2




...
PSI-GPRS/GSM-MODEM/RS232-QB…




2-12   PHOENIX CONTACT         2548_en_A
Software Installation


3     Software Installation

                  3.1        System Requirements

                  I...
PSI-GPRS/GSM-MODEM/RS232-QB…


                         3.2       PSI-MODEM-CONF Configuration Software

                 ...
Software Installation

Accepting the terms of the
license agreement




                             •   Read the terms of...
PSI-GPRS/GSM-MODEM/RS232-QB…

Selecting shortcuts




                        •   For full installation select “Yes” for b...
Software Installation

Finishing installation




                         •   Exit setup by clicking “Finish”.




2548_e...
PSI-GPRS/GSM-MODEM/RS232-QB…


                        3.2.2        Operation

                        After installation ...
Software Installation

Selecting the language      •      If necessary, set the language to English or German in the “Opti...
PSI-GPRS/GSM-MODEM/RS232-QB…

                        •   Click on the “Read” button to read data from the connected modem...
Software Installation

                    Input 1

Alarm-Reset-Timer   Here you can enter the time for resetting an alarm...
PSI-GPRS/GSM-MODEM/RS232-QB…

Fax




                         •     Select the “Fax” check box to activate the fax functi...
Software Installation

Switching output

                          NOTE:
                          For this function, the ...
PSI-GPRS/GSM-MODEM/RS232-QB…

Message




                         •   Select the “Message” check box to activate the mess...
Software Installation

            Connection Test
            The “Connection Test” function can be used to check the rec...
PSI-GPRS/GSM-MODEM/RS232-QB…

                         GSM+GPRS Configuration

                         •   Click on the “...
Software Installation

Echo           If the echo is on, all characters sent by the PC in command mode are sent back by th...
PSI-GPRS/GSM-MODEM/RS232-QB…

SMS Mode                 When SMS mode is disabled, you can only send SMS messages.
        ...
Software Installation

GPRS Mode                  The settings for the GPRS connection are made here:
                    ...
PSI-GPRS/GSM-MODEM/RS232-QB…

Caller Identification    CLIP (Calling Line Identification Presentation) is the transmission...
Software Installation

              To do this, make the following settings:
              – Address 1: 197.158.1.1
     ...
PSI-GPRS/GSM-MODEM/RS232-QB…




3-20   PHOENIX CONTACT         2548_en_A
AT Commands


4     AT Commands
               The modem stores its operating characteristics in a non-volatile memory (EE...
PSI-GPRS/GSM-MODEM/RS232-QB…


                        4.1        Command Descriptions

AT                      Attention ...
AT Commands

+++         Escape String
            The Escape string can be used to switch the modem from data mode to com...
PSI-GPRS/GSM-MODEM/RS232-QB…

X                       Confirmation Settings
                        The X command can be u...
AT Commands

&K          Enable DTE Flow Control
            The &K command specifies the type of data control that is use...
PSI-GPRS/GSM-MODEM/RS232-QB…

&Zn=x                     Store a Telephone Number in the Permanent Memory
                 ...
AT Commands

*S=x        Store a PIN Code in the Permanent Memory
            The *S=x command stores the PIN code x (four...
PSI-GPRS/GSM-MODEM/RS232-QB…

+CPIN?                   Read PIN Code Authentication
                         +CPIN? can be...
AT Commands

+CREG       Network Status
            The +CREG command enables or disables the confirmation for the network...
User Manual UM EN PSI-GPRS/GSM-MODEM/RS232-ƒ
User Manual UM EN PSI-GPRS/GSM-MODEM/RS232-ƒ
User Manual UM EN PSI-GPRS/GSM-MODEM/RS232-ƒ
User Manual UM EN PSI-GPRS/GSM-MODEM/RS232-ƒ
User Manual UM EN PSI-GPRS/GSM-MODEM/RS232-ƒ
User Manual UM EN PSI-GPRS/GSM-MODEM/RS232-ƒ
User Manual UM EN PSI-GPRS/GSM-MODEM/RS232-ƒ
User Manual UM EN PSI-GPRS/GSM-MODEM/RS232-ƒ
User Manual UM EN PSI-GPRS/GSM-MODEM/RS232-ƒ
User Manual UM EN PSI-GPRS/GSM-MODEM/RS232-ƒ
User Manual UM EN PSI-GPRS/GSM-MODEM/RS232-ƒ
User Manual UM EN PSI-GPRS/GSM-MODEM/RS232-ƒ
User Manual UM EN PSI-GPRS/GSM-MODEM/RS232-ƒ
User Manual UM EN PSI-GPRS/GSM-MODEM/RS232-ƒ
User Manual UM EN PSI-GPRS/GSM-MODEM/RS232-ƒ
User Manual UM EN PSI-GPRS/GSM-MODEM/RS232-ƒ
User Manual UM EN PSI-GPRS/GSM-MODEM/RS232-ƒ
User Manual UM EN PSI-GPRS/GSM-MODEM/RS232-ƒ
User Manual UM EN PSI-GPRS/GSM-MODEM/RS232-ƒ
User Manual UM EN PSI-GPRS/GSM-MODEM/RS232-ƒ
User Manual UM EN PSI-GPRS/GSM-MODEM/RS232-ƒ
User Manual UM EN PSI-GPRS/GSM-MODEM/RS232-ƒ
User Manual UM EN PSI-GPRS/GSM-MODEM/RS232-ƒ
User Manual UM EN PSI-GPRS/GSM-MODEM/RS232-ƒ
Upcoming SlideShare
Loading in …5
×

User Manual UM EN PSI-GPRS/GSM-MODEM/RS232-ƒ

4,346 views

Published on

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
4,346
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
89
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

User Manual UM EN PSI-GPRS/GSM-MODEM/RS232-ƒ

  1. 1. INTERFACE User Manual UM EN PSI-GPRS/GSM-MODEM/ RS232-QB… GPRS/GSM Modem
  2. 2. INTERFACE User Manual GPRS/GSM Modem 06/2008 Designation: UM EN PSI-GPRS/GSM-MODEM/RS232-QB… Revision: A Order No.: This user manual is valid for: Designation Version Order No. PSI-GPRS/GSM-MODEM/RS232-QB-USA 2900059 PSI-GPRS/GSM-MODEM/RS232-QB-CA 2900060 2548_en_A PHOENIX CONTACT
  3. 3. PSI-GPRS/GSM-MODEM/RS232-QB… Please Observe the Following Notes In order to ensure the safe use of the product described, you have to read and understand this manual. The following notes provide information on how to use this manual. User Group of This Manual The use of products described in this manual is oriented exclusively to Phoenix Contact accepts no liability for erroneous handling or damage to products from Phoenix Contact or third-party products resulting from disregard of information contained in this manual. Explanation of Symbols Used and Signal Words This is the safety alert symbol. It is used to alert you to potential personal injury hazards. Obey all safety messages that follow this symbol to avoid possible injury or death. DANGER This indicates a hazardous situation which, if not avoided, will result in death or serious injury. WARNING This indicates a hazardous situation which, if not avoided, could result in death or serious injury. CAUTION This indicates a hazardous situation which, if not avoided, could result in minor or moderate injury. The following types of messages provide information about possible property damage and general information concerning proper operation and ease-of-use. NOTE This symbol and the accompanying text alerts the reader to a situation which may cause damage or malfunction to the device, either hardware or software, or surrounding property. This symbol and the accompanying text provides additional information to the reader. It is also used as a reference to other sources of information (manuals, data sheets, literature) on the subject matter, product, etc. PHOENIX CONTACT 2548_en_A
  4. 4. PSI-GPRS/GSM-MODEM/RS232-QB… General Terms and Conditions of Use for Technical Documentation Phoenix Contact reserves the right to alter, correct, and/or improve the technical documentation and the products described in the technical documentation at its own discretion and without giving prior notice, insofar as this is reasonable for the user. The same applies to any technical changes that serve the purpose of technical progress. The receipt of technical documentation (in particular data sheets, installation instructions, manuals, etc.) does not constitute any further duty on the part of Phoenix Contact to furnish information on alterations to products and/or technical documentation. Any other agreement shall only apply if expressly confirmed in writing by Phoenix Contact. Please note that the supplied documentation is product-specific documentation only and that you are responsible for checking the suitability and intended use of the products in your specific application, in particular with regard to observing the applicable standards and regulations. Although Phoenix Contact makes every effort to ensure that the information content is accurate, up-to-date, and state-of-the-art, technical inaccuracies and/or printing errors in the information cannot be ruled out. Phoenix Contact does not offer any guarantees as to the reliability, accuracy or completeness of the information. All information made available in the technical data is supplied without any accompanying guarantee, whether expressly mentioned, implied or tacitly assumed. This information does not include any guarantees regarding quality, does not describe any fair marketable quality, and does not make any claims as to quality guarantees or guarantees regarding the suitability for a special purpose. Phoenix Contact accepts no liability or responsibility for errors or omissions in the content of the technical documentation (in particular data sheets, installation instructions, manuals, etc.). The aforementioned limitations of liability and exemptions from liability do not apply, in so far as liability must be assumed, e.g., according to product liability law, in cases of premeditation, gross negligence, on account of loss of life, physical injury or damage to health or on account of the violation of important contractual obligations. Claims for damages for the violation of important contractual obligations are, however, limited to contract-typical, predictable damages, provided there is no premeditation or gross negligence, or that liability is assumed on account of loss of life, physical injury or damage to health. This ruling does not imply a change in the burden of proof to the detriment of the user. 2548_en_A PHOENIX CONTACT
  5. 5. PSI-GPRS/GSM-MODEM/RS232-QB… Statement of Legal Authority This manual, including all illustrations contained herein, is copyright protected. Use of this manual by any third party is forbidden. Reproduction, translation, and public disclosure, as well as electronic and photographic archiving or alteration requires the express written consent of Phoenix Contact. Violators are liable for damages. Third-party products are always named without reference to patent rights. The existence of such rights shall not be excluded. How to contact us Internet Up-to-date information on Phoenix Contact products and our Terms and Conditions can be found on the Internet at: www.phoenixcontact.com. Make sure you always use the latest documentation. It can be downloaded at: www.download.phoenixcontact.com. A conversion table is available on the Internet at: www.download.phoenixcontact.com/general/7000_en_00.pdf. Subsidiaries If there are any problems that can´t be solved using the documentation, please contact your Phoenix Contact subsidiary. Subsidiary contact information is available at www.phoenixcontact.com. Published by . PHOENIX CONTACT GmbH & Co. KG Flachsmarkstraße 8 32825 Blomberg Germany Phone +49 - (0) 52 35 - 3-00 Fax +49 - (0) 52 35 - 3-4 12 00 Should you have any suggestions or recommendations for improvement of the contents and layout of our manuals, please send your comments to tecdoc@phoenixcontact.com. PHOENIX CONTACT 2548_en_A
  6. 6. Table of Contents 1 GPRS/GSM Modem ................................................................................................................1-1 1.1 Short Description................................................................................................ 1-1 1.2 Ordering Data ..................................................................................................... 1-2 1.3 Technical Data ................................................................................................... 1-2 2 Hardware Installation ...............................................................................................................2-1 2.1 Structure............................................................................................................. 2-1 2.2 Operating Elements............................................................................................ 2-2 2.3 Electrical Connections........................................................................................ 2-3 2.3.1 Block Diagram .................................................................................... 2-4 2.3.2 V.24 (RS-232) Interface ...................................................................... 2-5 2.3.3 Antenna .............................................................................................. 2-7 2.3.4 SIM Card ............................................................................................. 2-8 2.3.5 Supply Voltage .................................................................................. 2-10 2.3.6 Switching Inputs ................................................................................ 2-11 2.3.7 Switching Output ............................................................................... 2-11 3 Software Installation ................................................................................................................3-1 3.1 System Requirements ........................................................................................ 3-1 3.2 PSI-MODEM-CONF Configuration Software ...................................................... 3-2 3.2.1 Installation ........................................................................................... 3-2 3.2.2 Operation ............................................................................................ 3-6 4 AT Commands.........................................................................................................................4-1 4.1 Command Descriptions ...................................................................................... 4-2 4.2 S Registers ....................................................................................................... 4-19 4.3 Modem Confirmations ...................................................................................... 4-21 5 Configuration Help ...................................................................................................................5-1 5.1 Programming Connection for Phoenix Contact Controllers ................................ 5-1 5.2 Programming Connection to Siemens S7 300/400 Using TeleService Software 5-4 2548_en_A PHOENIX CONTACT i
  7. 7. PSI-GPRS/GSM-MODEM/RS232-QB… ii PHOENIX CONTACT 2548_en_A
  8. 8. GPRS/GSM Modem 1 GPRS/GSM Modem 1.1 Short Description The DIN rail-mountable PSI-GPRS/GSM-MODEM/RS232-QB… GPRS modem is specifically designed to meet industrial requirements for process data acquisition, remote monitoring and alarm generation. It provides global access to machines and systems via GSM connections. A wide range of security functions, such as adjustable selective call acceptance, connection establishment with password protection, call back function, and firewall, protect the system against unauthorized access. The integrated TCP/IP stack even allows the implementation of simple control systems into the GPRS network. No additional PC is needed for logging into the GPRS network. One particularly useful feature for remote system monitoring are the configurable warning or alarm inputs. If these inputs are activated, the modem calls user-defined numbers and sends stored text messages by fax and/or SMS. Using the switching output additional functions can be controlled via SMS messages. To ensure error-free operation even in harsh EMC conditions, the device has high-quality 3-way isolation and integrated surge protection. The modem also features an integrated automatic “Sleep” function to increase battery life and a wide supply voltage range of 10 V to 30 V, making it suitable for universal use. Modem startup is very easy using plug and play and user-friendly configuration software. The modem is approved for operation in 850 MHz, 900 MHz, 1800 MHz, and 1900 MHz GSM networks. – GSM (Global System for Mobile Communication) and GPRS (General Packet Radio Service) – Quad band (850 MHz/900 MHz/1800 MHz/1900 MHz) – Password-protected access/call-back function/selective call acceptance – Firewall – Integrated TCP/IP stack – Virtual permanent line via GPRS – Configurable input and output – Alarm sent directly by SMS, e-mail or fax via the integrated switching input (or via AT commands) – Sends, receives, and evaluates SMS messages – Wide supply voltage range of 10 V DC to 30 V DC – Temperature range of -25°C to +60°C – High-quality electrical isolation (VCC // RS-232) – Integrated surge protection – Easy startup using plug and play and user-friendly configuration software – 3964R compatible 2548_en_A PHOENIX CONTACT 1-1
  9. 9. PSI-GPRS/GSM-MODEM/RS232-QB… 1.2 Ordering Data Modem Description Type Order No. Pcs./Pkt GPRS/GSM modem, DIN rail-mountable, GSM + GPRS, 850 MHz/900 PSI-GPRS/GSM-MODEM/RS232-QB- 2900059 1 MHz/1800 MHz/1900 MHz, V.24 (RS-232) interface, alarm input and output, USA supply voltage 10 V DC ... 30 V DC GPRS/GSM modem, DIN rail-mountable, GSM + GPRS, 850 MHz/900 PSI-GPRS/GSM-MODEM/RS232-QB-CA 2900060 1 MHz/1800 MHz/1900 MHz, V.24 (RS-232) interface, alarm input and output, supply voltage 10 V DC ... 30 V DC Scope of supply: modem, CD with configuration software, and user manual Accessories Description Type Order No. Pcs./Pkt Quad band antenna with omni-directional PSI-GSM/UMTS-QB-ANT 2313371 1 characteristics, Antenna cable with SMA circular connector 2m Degree of protection IP65 Dimensions 76 mm x 20 mm System power supply, MINI-SYS-PS-100-240AC/24DC/1.5 2866983 1 primary switched 45 Hz ... 65 Hz Input voltage range 85 V AC ... 264 V AC Nominal output voltage 24 V DC ±1% Nominal output current 1.5 A DIN rail connector (2 required) ME 17,5 TBUS 1,5/ 5-ST-3,81 GN 2709561 10 DIN rail connector (1 required) ME 22,5 TBUS 1,5/ 5-ST-3,81 GN 2707437 50 V.24 (RS-232) cable, 2 m, to connect the modem 9-pos. D-SUB/ PSM-KA9SUB9/BB/2METER 2799474 1 to a 9-pos. device interface 9-pos. D-SUB (female/female) 1.3 Technical Data Power Supply Supply voltage 10 V DC ... 30 V DC via COMBICON plug-in screw terminal block Frequency DC Current consumption Nominal operation < 100 mA at 24 V Sleep mode (can be configured via software) < 60 mA at 24 V LED indicators VCC (green LED): Flashing: Operation V.24 (RS-232) Interface Connection 9-pos. D-SUB pin strip Device type Data Communication Equipment (DCE) Data format Serial asynchronous UART/NRZ Encoding 7/8 data, 1/2 stop, 1 parity, 10/11-bit character length Serial transmission speed Fixed setting at 300, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200 bps (adjustable via software) Data flow control Software handshake: Xon/Xoff Hardware handshake: RTS/CTS No handshake or 3964R LED indicator/data indicator TD (yellow LED), data to modem (dynamic) RD (green LED), data from modem (dynamic) LED indicator/control signal indicator DTR (yellow LED), Data Terminal Ready DCD (yellow LED), Data Carrier Detect 1-2 PHOENIX CONTACT 2548_en_A
  10. 10. GPRS/GSM Modem GSM Frequencies 850 MHz, 900 MHz, 1800 MHz, 1900 MHz (EGSM) Transmission power 2 W at 850 MHz and 900 MHz 1 W at 1800 MHz and 1900 MHz SIM interface 3 V SIM card Transmission speed Automatic adjustment DCE/DCE 300 baud ... 14.4 kbaud Fax 2400 baud ... 14.4 kbaud GPRS 300 kbps ... 85.6 kbps Compatibility V.34, V.32, V.22bis, V.110 GPRS compatibility GPRS Class 10, Class B Encoding scheme: CS1 ... CS4 4 time slots for receiving data 2 time slots for transmitting data Command set compatibility AT standard command set and extended V.250 basic command set Antenna connection 50 Ω impedance SMA antenna female connector Data indicator OH (green LED), logged into the GSM network – Flashing: Off the hook SIM (red LED) – Steady light: No SIM card present – Flashing: No PIN code entered – OFF: SIM card present and PIN code entered NET (yellow LED) – Steady light: Very good network reception – Flashing: Good network reception – Flashing quickly: Moderate network reception – OFF: No network reception Startup diagnostics Selftest, visualization via LEDs (controller, RAM, EPROM, GSM engine, antenna, EEPROM) Network function The PIN code is saved in the modem. After a voltage interrupt, the modem automatically relogs into the network and logs automatically into the GPRS network. Network check Network bar graph in the configuration software Switching Inputs and Outputs Switching inputs 2 x UN 24 V DC/5 mA, input voltage range 9 V DC ... 48 V DC, floating, activate one or more of the following: – Message to the local V-24 (RS-232) interface – SMS – Fax – Output control at the opposite station (via SMS) Switching output Transistor output to the backplane, activated by: – Input control at the opposite station – SMS – Local AT command Signaling ALR (red LED) – Flashing: SMS/FAX error message to be sent – Steady light: Alarm has been triggered Text and Telephone Number Memory Text memory SMS 160 characters Fax 160 characters Telephone number memory 10 telephone numbers with a maximum of 36 digits 2548_en_A PHOENIX CONTACT 1-3
  11. 11. PSI-GPRS/GSM-MODEM/RS232-QB… General Data CE conformance According to R&TTE directive 1999/5/EC Ambient operating temperature range -25°C ... +60°C Housing ME 35 with 5-pos. bus contact and ground contact Material ABS-V0, green Dimensions (H x W x D) 99 x 22,5 x 114.5 mm Weight of device 209 g Functional earth ground Housing contact with DIN rail Vibration resistance According to EN 60068-2-6 5g, 1.5 h in each x, y, and z direction Shock test According to EN 60068-2-27 Operation 15g, 11 ms, half-sine shock pulse Storage 30g, 11 ms, half-sine shock pulse Free fall According to IEC 60068-2-32 from a height of 1 m (without packaging) Degree of protection IP20 Separate ground levels Power supply // V.24 (RS-232) Test voltage 1.5 kV AC, 50 Hz, 1 min. between all ground levels according to DIN EN 61010-1/VDE 0411-1 and DIN EN 60950 Conformance According to EMC Directive 89/336/EEC Electrostatic discharge (ESD) EN 61000-4-2 Criterion B 8 kV air discharge 6 kV contact discharge Electromagnetic HF field EN 61000-4-3 Criterion A Amplitude modulation 10 V/m Pulse modulation 10 V/m Fast transients (burst) EN 61000-4-4 Signal Criterion A 1 kV/5 kHz Power supply Criterion A 1 kV/5 kHz Criterion B 2 kV/ 5 kHz Surge current load EN 61000-4-5 Criterion B Signal 1 kV Power supply 2 kV Conducted interference EN 61000-4-6 Criterion A 10 V Noise emission EN 55022 + A1 + A2 Limiting curve B Conformance According to R&TTE Directive 1999/5/EC EMC Immunity to interference EN 61000-6-2 Generic standard for the industrial (electromagnetic compatibility) sector Safety Protection of personnel with regard to electrical safety EN 60950 Health Limitation of exposure of the population to electromagnetic fields EC Gazette 1999/519/EC EC Council recommendation of July 12, 1999 Radio Effective use of the frequency spectrum and prevention of radio interference EN 301511 1-4 PHOENIX CONTACT 2548_en_A
  12. 12. Hardware Installation 2 Hardware Installation 2.1 Structure Housing Dimensions 123,5 22,5 PSI-GPRS/GSM- MODEM/RS232-QB Ord.-No. 23 13 106 VCC RD 99 ANT ALR NET DCD SIM RS 232 103239A007 Figure 2-1 Housing dimensions CAUTION: Only mount and remove modules when the power supply is disconnected. • Mount the modem on a 35 mm EN DIN rail (see Figure 2-2). WARNING: The DIN rail must be connected to PE to ensure safe operation. 102678A002 Figure 2-2 Mounting 2548_en_A PHOENIX CONTACT 2-1
  13. 13. PSI-GPRS/GSM-MODEM/RS232-QB… 2.2 Operating Elements 1 2 3 4 PSI-GPRS/GSM- MODEM/RS232-QB Ord.-No. 23 13 106 13 12 VCC 11 RD ANT 5 10 ALR 9 NET DCD 8 SIM 7 RS 232 6 103239A008 Figure 2-3 Operating elements Connection Terminal Blocks 1 24 V supply (10 V DC ... 30 V DC) 2 0 V supply (0 V) 3 IN1 (switching input 1 (10 V DC ... 30 V DC)) 4 IN2 (switching input 2 (10 V DC ... 30 V DC)) Connectors 5 SMA antenna connection 6 V.24 (RS-232) data interface, 9-pos. D-SUB LEDs 7 SIM (Red) No SIM card, flashes when no PIN code has been entered 8 DCD (Yellow) Data carrier detected, connection established with partner 9 NET (Yellow) Steady light for very good network reception Flashes for good network reception Flashes quickly for moderate network reception OFF when there is no or very bad network reception 10 ALR (Red) Steady light when alarm message was sent successfully Flashes when sending the alarm message Flashes quickly when alarm message could not be sent OFF for no alarm 11 TD (Green) Transmit data with reference to the GSM connection 12 RD (Yellow) Receive data with reference to the GPRS connection 13 VCC (Green) Flashes when supply voltage present 2-2 PHOENIX CONTACT 2548_en_A
  14. 14. Hardware Installation 2.3 Electrical Connections DANGER: Only qualified personnel may connect the power, start up, and operate this device. According to the safety instructions in this text, qualified personnel are persons who are authorized to start up, to ground, and to mark devices, systems, and equipment according to the standards of safety technology. In addition, these persons must be familiar with all warning instructions and maintenance measures in this text. Disregarding this warning may result in damage to equipment and/or serious personal injury. 2548_en_A PHOENIX CONTACT 2-3
  15. 15. PSI-GPRS/GSM-MODEM/RS232-QB… 2.3.1 Block Diagram COMBICON 24 V 24 V U 0V 5V - + Backplane Backplane D-SUB9 EEPROM 1 DCD 3 TxD 2 RxD 7 RTS RS-232 IN1 8 CTS Input 6 DSR µC IN2 4 DTR 9 RI Antenna 5 GND GSM SMA Engine 103239A010 Figure 2-4 Block diagram 2-4 PHOENIX CONTACT 2548_en_A
  16. 16. Hardware Installation 2.3.2 V.24 (RS-232) Interface The modem and the PC or another device are connected via the PSM-KA9SUB9/BB/2METER V.24 (RS-232) cable (Order No. 2799474). The cable is an interface cable with 1:1 connected contacts. • Use this interface cable to connect the modem to a free COM interface on the PC. In rare cases, when connecting a PLC or control system, DCE (Data Communication Equipment) may be used instead of DTE (Data Terminal Equipment), which is typical for a PC. If so, the following cables must be crossed (null modem cable): – TxD and RxD – RTS and CTS – DSR and DTR If you do not know which type of interface is connected, determine the correct configuration by testing (crossing cables). Minimum configuration The minimum configuration only requires one connection for TxD, RxD, and GND (software handshake). This does not apply to the 3964R protocol for Phoenix Contact controller boards. Only TxD, RxD, and GND are connected here, but no handshake protocol is selected. NOTE The modem may only be connected to devices, which meet the requirements of EN 60950 (“Safety of Information Technology Devices”). 2548_en_A PHOENIX CONTACT 2-5
  17. 17. PSI-GPRS/GSM-MODEM/RS232-QB… PC/PLC Modem 15 m, D-SUB D-SUB max. 25 9 9 DCD 8 1 1 DCD TxD 2 3 3 TxD RxD 3 2 2 RxD RTS 4 7 7 RTS CTS 5 8 8 CTS DTR 20 4 4 DTR DSR 6 6 6 DSR RI 22 9 9 RI GND 7 5 5 GND 102678A003 Figure 2-5 V.24 (RS-232) interface Table 2-1 Meaning of the terminal designations Designation Meaning DCD (Data Carrier Detect) Data carrier detected, connection established TxD (Transmit Data) Transmit data (refers to PC, PLC, etc.) RxD (Receive Data) Receive data (refers to PC, PLC, etc.) RTS (Request To Send) Request to send CTS (Clear To Send) Clear to send DTR (Data Terminal Ready) Ready (refers to PC, PLC, etc.) DSR (Data Set Ready) Ready (modem) RI (Ring Indicator) Incoming call GND (Signal Ground) Signal ground 2-6 PHOENIX CONTACT 2548_en_A
  18. 18. Hardware Installation 2.3.3 Antenna Antenna Connection • Connect the antenna cable with an SMA connector on the front of the device. A B 103239A004 Figure 2-6 Antenna connection with SMA connector Antenna Installation • Select an antenna position with a good radio network signal. The receive quality can be determined using the “NET” LED. • When using the PSI-GSM/UMTS-QB-ANT antenna (Order No. 2313371) drill a hole with a diameter of 16.5 mm in the top of the control cabinet. Please observe the following during installation: – The antenna has a diameter of 76 mm and is 21 mm high. – The cable is 2 meters long. • Secure the antenna using the washer and nut provided: 102678A005 Figure 2-7 PSI-GSM/UMTS-QB-ANT antenna installation 2548_en_A PHOENIX CONTACT 2-7
  19. 19. PSI-GPRS/GSM-MODEM/RS232-QB… 2.3.4 SIM Card SIM card registration The PSI-GPRS/GSM-MODEM/RS232-QB… includes an unregistered SIM card. The SIM card must be registered to use the device. Registration can be completed at www.phoenix.diversenet.net. A wide variety of plans are available to choose from. When registering, you will be required to provide the ID number of the SIM card. This ID is provided on a label on the side of each modem. SIM Card Label Figure 2-8 SIM card ID label PIN code The SIM card can be protected with a 4-digit PIN code. It is recommended that you enter the PIN code as described in section “PSI-MODEM-CONF Configuration Software” on page 3-2. Opening the housing If necessary for replacement, the SIM card can be removed from the PCB. WARNING: Disconnect the device power supply before opening the housing. The device only supports 3 V SIM cards. • Open the housing to access the PCB inside. Release the tabs on the housing cover (see Figure 2-9). 2-8 PHOENIX CONTACT 2548_en_A
  20. 20. Hardware Installation A SIM DCD NET ALR RD VCC Ord.-No. 23 13 106 MODEM/RS232-QB T PSI-GPRS/GSM- AN B A 103239A011 Figure 2-9 Opening the housing • Separate the upper and lower housing pieces. The PCB is attached to the upper portion of the housing. 2548_en_A PHOENIX CONTACT 2-9
  21. 21. PSI-GPRS/GSM-MODEM/RS232-QB… • Remove the SIM card from the holder on the PCB (see Figure 2-10). . Figure 2-10 Inserting the SIM card • Slide the replacement SIM card into the holder with the contact surface towards the PCB. The angled corner must point towards the back of the PCB. • Reassemble the housing. 2.3.5 Supply Voltage NOTE The PSI-GPRS/GSM-MODEM/RS232-QB… is designed exclusively for SELV operation according to IEC 60950/EN 60950/VDE 0805. The supply voltage must be between 10 and 30 V DC. Connect the 24 V supply voltage to the “24V” and “0V” connection points on the plug-in screw terminal block. 2-10 PHOENIX CONTACT 2548_en_A
  22. 22. Hardware Installation 24 V 0V IN1 IN2 24V 0V IN1 IN2 103239A006 Figure 2-11 Connecting the supply voltage As soon as the “VCC” LED lights up, the modem is ready. 2.3.6 Switching Inputs The switching inputs are connected to the corresponding IN1 and IN2 plug-in screw terminal blocks (see Figure 2-11).. Table 2-2 Switching inputs on the plug-in screw terminal block Connection Meaning IN1 (switching input 1) 10 - 30 V DC IN2 (switching input 2) 0V (on the same potential level as 0 V 0V (supply voltage)) 2.3.7 Switching Output The switching output is located on the backplane and is designed as a transistor output. It is used together with the PSI-MODEM-SPLITTER (Order No. 2708766). 2548_en_A PHOENIX CONTACT 2-11
  23. 23. PSI-GPRS/GSM-MODEM/RS232-QB… 2-12 PHOENIX CONTACT 2548_en_A
  24. 24. Software Installation 3 Software Installation 3.1 System Requirements In principle, any device can be connected to the modem via a free V.24 (RS-232) interface. A terminal program, for example, can be used for configuration. More detailed information can be found in later sections. A PC with one of the following operating systems is required for the PSI-MODEM-CONF configuration software and the plug and play function: – Windows 95, Windows 98, Windows 2000, Windows NT, Windows ME or Windows XP. The installation procedure for the driver varies depending on the operating system. In the following, the driver installation under Windows XP is described as an example. During installation, please always follow the on-screen instructions. If any messages appear informing you that the software does not have a Microsoft digital signature or has not passed the Windows logo test, confirm with “Continue Anyway.” This has absolutely no effect on the operation of the software or PC. 2548_en_A PHOENIX CONTACT 3-1
  25. 25. PSI-GPRS/GSM-MODEM/RS232-QB… 3.2 PSI-MODEM-CONF Configuration Software PSI-MODEM-CONF software is used to configure the PSI-GPRS/GSM-MODEM/RS232- QB… GSM modem. The modem has more functions than can be mapped in the configuration software. To use these functions, enter additional AT commands in the “Additional Settings (AT)” field (see page 3-17). The AT commands and their meanings are described in section “Command Descriptions” on page 4-2. 3.2.1 Installation • Insert the CD-ROM labeled “PSI-MODEM-CONF” in the CD-ROM drive on the PC. • Use Windows Explorer to start the “Setup_Vx.x.xxx.exe” file located in the “...:PSI-CONF” directory. Starting installation • Close all other applications and click “Next”. 3-2 PHOENIX CONTACT 2548_en_A
  26. 26. Software Installation Accepting the terms of the license agreement • Read the terms of the software license agreement thoroughly and click “Yes” to accept them. Now select a specific installation folder. The default path is “C:Program FilesPSI-MODEM-CONF”. Selecting an installation folder • If necessary, select a different folder and click “Next”. 2548_en_A PHOENIX CONTACT 3-3
  27. 27. PSI-GPRS/GSM-MODEM/RS232-QB… Selecting shortcuts • For full installation select “Yes” for both options. • If you do not wish to create any shortcuts on desktop or in the Start menu (quick launch toolbar) select “No”. • Click “Next”. Start copying • Click “Next” to start copying the files. This may take a few seconds depending on the system. 3-4 PHOENIX CONTACT 2548_en_A
  28. 28. Software Installation Finishing installation • Exit setup by clicking “Finish”. 2548_en_A PHOENIX CONTACT 3-5
  29. 29. PSI-GPRS/GSM-MODEM/RS232-QB… 3.2.2 Operation After installation the following shortcut will appear on the desktop: Starting the software • Double-click on this icon to start the PSI-MODEM-CONF configuration software. Figure 3-1 PSI-MODEM-CONF configuration software 3-6 PHOENIX CONTACT 2548_en_A
  30. 30. Software Installation Selecting the language • If necessary, set the language to English or German in the “Options” menu item. Figure 3-2 Select language Configuring the interface Proceed as follows to configure the V.24 (RS-232) interface: • Select the “RS232” function from the “Options” menu (see page 3-7). • Select the interface to which the modem is connected. • Use the following settings for the data connection: – Baud rate: 19200, Parity: NONE, Data bits: 8, Stop bits: 1 Modifying the baud rate is possible only via AT commands (refer to section 4). • Confirm with “OK” to save the settings. 2548_en_A PHOENIX CONTACT 3-7
  31. 31. PSI-GPRS/GSM-MODEM/RS232-QB… • Click on the “Read” button to read data from the connected modem. The software displays the firmware type and version, as well as the serial number of the modem in the status bar. You now have the option of assigning various functions to the integrated modem switching input. 3-8 PHOENIX CONTACT 2548_en_A
  32. 32. Software Installation Input 1 Alarm-Reset-Timer Here you can enter the time for resetting an alarm input. This time (in minutes) must be set separately for each input. Please note that the modem attempts to send an alarm message up to four times. This process can take up to 15 minutes. If, for example, a time of just 5 minutes is entered, the modem cannot utilize all four attempts in the event of an error. • A time of at least 2 minutes should be entered. SMS For this function the modem requires a service provider that supports SMS. The telephone number of the SMS service center must also be stored on the SIM card. • Select the “SMS” check box to activate the SMS function. • Enter the telephone number of the SMS receiver in the white “Number” field. • Write the message in the “SMS Message” field. The text must not exceed 160 characters. • Click on the “Write” button to write the settings to the modem. • To send the SMS message, activate modem switching input 1 (see section “Switching Inputs” on page 2-11). You can send fax and SMS messages simultaneously. 2548_en_A PHOENIX CONTACT 3-9
  33. 33. PSI-GPRS/GSM-MODEM/RS232-QB… Fax • Select the “Fax” check box to activate the fax function. • Enter the telephone number of the fax receiver in the white “Number” field. • Write the message in the “Fax Message” field. The text must not exceed 160 characters. • Click on the “Write” button to write the settings to the modem. • To send the fax message, activate modem switching input 1 (see section “Switching Inputs” on page 2-11). You can send fax and SMS messages simultaneously. 3-10 PHOENIX CONTACT 2548_en_A
  34. 34. Software Installation Switching output NOTE: For this function, the partner modem must be a “PSI-GSM/GPRS-MODEM/RS232” modem (Order No. 2708630). • Select the “Output” check box to activate the switching output function. • Enter the telephone number of the partner in the white “Number” field. • Enter the password for the partner in the “Password” field, as the partner switching output is password-protected. Method of operation The modem responds to a positive edge at the local input by sending an SMS to the partner and setting the partner output. This output can be reset by an AT command (local or remote), an SMS, or by briefly disconnecting the supply voltage. 2548_en_A PHOENIX CONTACT 3-11
  35. 35. PSI-GPRS/GSM-MODEM/RS232-QB… Message • Select the “Message” check box to activate the message function. All messages are then forwarded to the V.24 (RS-232) interface. • Click on the “Write” button to write the settings to the modem. Input 2 Switching input 2 is configured in the same way after selecting the “Input 2” tab. 3-12 PHOENIX CONTACT 2548_en_A
  36. 36. Software Installation Connection Test The “Connection Test” function can be used to check the receive quality of the modem. Precise indication is only possible if the modem is logged into the network. • Click on the “Connection Test” button to start the test indicator. The result of the line test is displayed on the screen. From approximately -105 dBm a connection cannot usually be established. Good connections are usually between -65 and -75 dBm. Default Setting The “Default Setting” function resets the modem to the default settings. • To do this, click on the “Default Setting” button. When the modem is reset to the default setting all passwords and telephone numbers are deleted. File Functions Creates a new project file with the default settings. Opens a saved project file. Saves the current settings. 2548_en_A PHOENIX CONTACT 3-13
  37. 37. PSI-GPRS/GSM-MODEM/RS232-QB… GSM+GPRS Configuration • Click on the “Settings” button. This opens the “GSM+GPRS Configuration” window. Figure 3-3 “GSM+GPRS Configuration” window 3-14 PHOENIX CONTACT 2548_en_A
  38. 38. Software Installation Echo If the echo is on, all characters sent by the PC in command mode are sent back by the modem. The characters can thus be displayed on-screen on the PC. DCD Signal When the partner carrier detect signal is detected, the V.24 (RS-232) interface activates the DCD signal (Data Carrier Detect). Alternatively, this signal can also be permanently switched on. DSR Signal The DSR signal (Data Set Ready) of the V.24 (RS-232) interface can be permanently switched on or switched off in command mode. DTR Signal The modem can process the DTR signal (Data Terminal Ready) as follows: – The modem ignores the DTR signal. This may be necessary when using a PLC, as the V.24 (RS-232) interface of a PLC is often unable to provide a DTR signal. – The modem returns to command mode if there is no DTR signal at the V.24 (RS-232) interface. – The modem hangs up and returns to command mode if there is no DTR signal at the V.24 (RS-232) interface. Flow Control The data flow control of the V.24 (RS-232) interface can be set for various operating modes: – For the “Hardware” setting, the CTS and RTS signals are used for bidirectional data flow control. The CTS signal starts or finishes data transmission from the PC or terminal. The RTS signal control data transmission to the PC or terminal. – For the “Software” setting, the data flow control is bidirectional using Xon and Xoff characters. – For the “Hardware (CTS from DCE)” unidirectional data flow control setting, the CTS signal starts or finishes data transmission from the PC or terminal. The RTS signal is not used. – Data flow control can also be switched off completely. This may be necessary when protocols such as 3964R are transmitted, which control the flow independently. Result Codes The modem is configured so that it outputs alphanumeric responses on the screen. The “Numeric” option can be used if the software package or PLC only supports numeric confirmations. The relevant settings can be found in section “Modem Confirmations” on page 4-21. Auto Answer Automatic call acceptance (Auto Answer) enables you to specify the number of rings after which the modem can automatically respond to incoming calls. Automatic call acceptance is switched off by default upon delivery. 2548_en_A PHOENIX CONTACT 3-15
  39. 39. PSI-GPRS/GSM-MODEM/RS232-QB… SMS Mode When SMS mode is disabled, you can only send SMS messages. When SMS mode is enabled, SMS messages received are output to the V.24 (RS-232) interface. To receive SMS messages, this feature must be supported and enabled by the SMS provider. In control mode the PSI-GPRS/GSM-MODEM/RS232-QB… can be controlled via SMS messages. For example, you can activate the output, reset the alarm or send the status of the modem simply by sending an SMS message. In this mode, the SMS message is not forwarded to the termination equipment, but is evaluated by the modem itself. The SMS message sent to the modem must be structured as follows: #<Password>:<Command> The password is the password stored in the modem (maximum of seven characters). Please note that not all characters can be sent in the SMS message. Choose a password according to the SMS character set. If the password is, e.g., 12345, the message should appear as follows: #12345:<Command> The following control commands are available: RESET Resets the alarm and the switching output (e.g., AT*AR). SET:OUTPUT Activates the switching output (“Output”). CLR:OUTPUT Deactivates the switching output (“Output”). SEND:STATUS Sends a status SMS message to the caller. “Text” Outputs all the characters within the inverted commas to the V.24 (RS-232) interface. Examples #12345:SET:OUTPUT Activates the output. #12345:SEND:STATUS Sends an SMS message (status report) to the sender. #12345:”RST PLC” Sends the text RST PLC to the terminal equipment (V.24 (RS-232) interface). #12345:RESET Resets the alarm function and the switching output. SIM Card PIN Store a PIN Code in the Permanent Memory The PIN code (four numbers) is stored in the permanent memory on the modem. Following a voltage failure the PIN code is automatically entered again and the modem logs into the GSM network. For security reasons, the PIN code cannot be read from the modem by the configuration software. NOTE: Make sure that to use the right SIM card for the PIN code. The PIN code is always re-entered in the event of a voltage failure. If an incorrect PIN code is entered, the SIM card is blocked after three voltage interrupts. 3-16 PHOENIX CONTACT 2548_en_A
  40. 40. Software Installation GPRS Mode The settings for the GPRS connection are made here: • Leave this set to “OFF” if no GPRS connection is required. • If the modem is to establish a connection to various IP addresses, select “Activate context only”. Here, the connection is established using the AT#SKTD AT command (see page 4-18). In order to establish a TCP/IP connection, one device must be a client and the other a server. The client is the initiator and establishes the connection, while the server accepts the connection. • Select “Client” if the modem is to establish a connection to a specific IP address automatically. • Select “Server” if another device is to establish a connection to the modem. Additional Settings (AT) The modem has more functions than can be mapped in the configuration software. To use these functions, enter additional AT commands in the “Additional Settings (AT)” field. The AT commands and their meanings are described in section “Command Descriptions” on page 4-2. Example: The command +CRC=1 enables additional confirmations. Additional settings can be saved in the project file via the “Save” button. However, they are not read from the modem by the configuration software. Telephone Book Store Numbers Ten telephone numbers can be stored in Store Numbers 1 through 10. Service No. Fax The number for the provider's Fax service must be stored in the modem memory. Remote Login Password Mode When password mode is active, the caller must enter a password after the incoming call has been accepted. If the password is invalid or the time allocated for password entry has been exceeded, the caller has two more attempts to enter the correct password. When the correct password is entered, the modem continues to operate as usual, otherwise the connection is aborted. When password mode is active with callback the caller is requested to enter a password. If the password is invalid or the time allocated for password entry has been exceeded, the caller has two more attempts to enter the correct password. When the correct password is entered, the modem aborts the existing connection to dial the number that is stored in the memory under Callback No. The modem has three attempts to establish a connection with the callback number. Automatic call acceptance must be activated for all password-protected functions. Password Enter the password here. The password can contain up to seven characters from the ASCII character set (1 to 127), excluding question marks. The password is not case sensitive. 2548_en_A PHOENIX CONTACT 3-17
  41. 41. PSI-GPRS/GSM-MODEM/RS232-QB… Caller Identification CLIP (Calling Line Identification Presentation) is the transmission of the caller's telephone number (caller ID). If this function is enabled, the GSM modem can detect, output, and evaluate the caller ID. When the caller ID output function is activated in the GSM modem, the caller ID is transmitted after the first ring and the modem does not accept the call until after the second ring. The caller ID is then detected by the GSM modem and output to the V.24 (RS-232) interface as follows: <CRLF>RING<CRLF> +CLIP: “+4952351234...”<CRLF> <CRLF>RING<CRLF> A telephone number is then only output if a valid caller ID has been detected. It is only output once for each call. Selective Call Acceptance If “Selective Answer” is selected, the PSI-GPRS/GSM-MODEM/RS232-QB… automatically checks whether, e.g., the service PC is calling the modem and establishes a connection. Up to two telephone numbers can be stored in the device, which the modem compares and then automatically establishes a connection if they match. The “CallerID 1” and “CallerID 2” fields are reserved for this function. If numbers are stored in these fields and “Selective Answer” is enabled, the PSI- GPRS/GSM-MODEM/RS232-QB… checks each call to see whether one of the saved numbers has been called. If so, the modem accepts the call and establishes a connection, regardless of the settings for automatic call acceptance. The control system therefore does not have to evaluate the caller ID and the modem makes sure that only the service numbers (”CallerID 1” and “CallerID 2”) reach the system, even without a callback function. The telephone number evaluation function has a filter function, which also enables partial evaluation of the telephone number. The evaluation starts with the last digit and is carried out for each stored digit. If, for example, from the telephone number 0123456789 only the digits 56789 have been stored, all telephone numbers that end with these digits are considered as valid. The number of preceding digits is of no importance. The advantage of this is that various formats (e.g., +49 40 xxxxx and 040 xxxxx) can be evaluated. The flashing “AA” LED indicates that this mode is active. The call is only accepted if the stored numbers match. The caller ID is also output. GPRS Settings The following settings must be made for each GPRS connection. Contact the GSM provider for details. • Under “APN” (Access Point Name), enter the name of the provider's access point, e.g., c1.korem2m.com. • Under “User ID”, enter the user ID, e.g., mmustermann@phoenixcontact.com. • Under “Password” enter the corresponding password, e.g., hello. • In the “Socket Port” field, enter the socket port for the TCP/IP connection. For a connection between two modems, enter “1023” (default). GPRS Server Firewall This setting is only required if the modem is set to “Server” GPRS mode (see page 3-17). The firewall is a filter, which only allows specific IP addresses to access the modem. • Under “Address 1”, enter the enabled IP address, e.g., 178.104.112.5. • In the “Mask 1” field, enter the corresponding subnet mask, e.g., 255.255.255.255. You can also enable an entire address area. Example: To enable the address area from 197.158.1.1 to 197.158.255.255. 3-18 PHOENIX CONTACT 2548_en_A
  42. 42. Software Installation To do this, make the following settings: – Address 1: 197.158.1.1 – Mask 1: 255.255.0.0 An alternative entry for the firewall can be entered under address 2 and mask 2. GPRS Client This setting is only required if the modem is set to “Client” GPRS mode (see page 3-17). • Under “Remote Address” enter the IP address of the partner (the server), e.g., 178.104.112.4. A URL can also be entered as an alternative, e.g., test.dyndns.org. • Click on the “Write” button to write the settings to the modem once they have all been entered. 2548_en_A PHOENIX CONTACT 3-19
  43. 43. PSI-GPRS/GSM-MODEM/RS232-QB… 3-20 PHOENIX CONTACT 2548_en_A
  44. 44. AT Commands 4 AT Commands The modem stores its operating characteristics in a non-volatile memory (EEPROM). You can overwrite these characteristics using commands and can thus modify the method of operation of the device. The modem executes commands as long as it is in command mode. The modem is automatically in command mode until you dial a number and establish a connection. You can enter commands for the modem using appropriate communication software (e.g., HyperTerminal). The device supports data transmission speeds of 300, 1200, 2400, 4800, 9600, 19200, 38400, 57600, and 115200 bps. Make sure the baud rate setting for the COM port in the communication software corresponds to one of these speeds. By default upon delivery, the modem is preconfigured with 19200 bps, 8 data bits, 1 stop bit, no parity, no handshake. Modes The modem can be operated in two modes: – Command mode: The modem can be configured and controlled via AT commands. As soon as a connection is established, the modem automatically switches to data mode. – Data mode: In this mode, the modem transmits data to the partner. Command Structure All commands transmitted to the modem must start with AT and must be confirmed by pressing ENTER. The commands can be entered in either upper or lower case, but not a mixture of the two. Spaces may be inserted between the commands so that the command lines are easier to read. AT deletes the last command line executed by the modem (if present) and prepares the modem for the new command line. In addition, AT informs the modem of the transmission speed, parity, and character length. For commands that must be specified by a parameter, a missing parameter corresponds to parameter 0, e.g., ATM = ATM0. Correcting a Typing Error If you make a mistake when entering a command, you can correct it using the backspace key. Pressing the backspace key deletes the last character entered. The AT at the start of the command line is not deleted. 2548_en_A PHOENIX CONTACT 4-1
  45. 45. PSI-GPRS/GSM-MODEM/RS232-QB… 4.1 Command Descriptions AT Attention String AT is the prefix of a command line and must be entered at the start of each command line (except for the A/ command or the +++ Escape string). The Attention characters transmit the transmission speed, character format, and parity of the PC or terminal to the modem. If you attempt to execute a command line that does not start with AT, an error message is generated (except when repeating a command with A/ or using the +++ Escape string). A Manual Answering Use the A command to manually answer a call. The A command can also be used to convert voice communication into data communication: Once you have completed the spoken part of the call, the caller enters the ATD command and ENTER to enable data transmission. The partner responds with the ATA command and ENTER. The modem does not execute any commands that appear after the A in the command line. You must therefore enter all settings before the A command. D Dial The D command instructs the modem to dial a number. Enter the number that you wish to dial after the D command. You can modify the D command with the following additional commands: , Pause This modifier inserts a 2-second pause before dialing. If, for example, the modem is located in a private branch exchange (e.g., in offices), where a number (usually 0) must be dialed for an outside line, insert a comma between the 0 and the actual telephone number you wish to dial. The modem dials 0, waits for two seconds and then dials the telephone number. DL Redial The DL command instructs the modem to redial the last dialed telephone number. E Echo The modem is set by default to display commands on the PC screen in command mode (echo). This feature can only be used if the PC is configured for full duplex mode. Most systems operate in full duplex mode. In this case, enable the echo function with the E1 command. If working in half duplex mode, disable the echo function with the E0 command. 4-2 PHOENIX CONTACT 2548_en_A
  46. 46. AT Commands +++ Escape String The Escape string can be used to switch the modem from data mode to command mode without losing the connection with the partner. When you enter the Escape string, the modem outputs an OK message to inform you that it is in command mode. Enter ATO to return to data mode and confirm by pressing ENTER. Enter ATH to hang up and confirm by pressing ENTER. H Hook (Hang Up) H The modem hangs up. I Identification I0 Display: Modem ID I1 Display: ROM checksum I2 Display: ROM checksum and test I3 Display: Firmware version I4 Display: Modem ID I8 Display: Serial number I9 Display: Plug&Play string Q Modem Messages Q0 Information from the modem about its status and display of confirmations on the PC screen. Q1 Disable confirmations. This may be necessary, e.g., if a PLC is connected to the modem and responses would interfere. Q2 Display confirmations only when the modem has established a connection. Sr? Read the Modem Register The modem has 29 registers (0 through 28), which are used to set the operating parameters. Sr? can be used to read the values set in the registers. Sr=n Set Register Values Sr=n can be used to modify the register values for the modem (see section “S Registers” on page 4-19). V Alpha or Numeric Responses The modem displays responses on-screen (see section “Modem Confirmations” on page 4-21). V0 Display numeric confirmations. This option can be used if the software package or PLC only supports numeric confirmations. V1 Display alpha confirmations (default). 2548_en_A PHOENIX CONTACT 4-3
  47. 47. PSI-GPRS/GSM-MODEM/RS232-QB… X Confirmation Settings The X command can be used to control the way in which the modem responds to specific events. There are five different command sets for answering: X0 Hayes Smart Modem 300-compatible answering/dummy dialing (private branch exchange) X1 As X0 plus all CONNECT answering/dummy dialing (private branch exchange) X2 As X1 plus detection of dial tone/proceed-to-dial tone (outside line) X3 As X1 plus detection of engaged tone/dummy dialing (private branch exchange) X4 All answering and detection of dial tone and engaged tone Y Break Signal Y0 No transmission of break signals and no response to them. Y1 Response to break signals. The device sends a break signal for four seconds before disconnecting. In addition, it aborts an active connection when it receives a break signal for 1.6 seconds from the partner. Z Reset Use the Z command to reset the modem. The modem then hangs up and loads configuration profile 0 or 1. This command must be the last one in the command line. Z0 Reset and activate stored configuration profile 0. Z1 Reset and activate stored configuration profile 1. &C Carrier Detect Signal &C0 Continuous activation of the carrier detect signal for the modem. &C1 Set the RS-232-C carrier detect signal for the modem (DCD) when the modem detects a carrier detect signal from the partner (default). &D Data Terminal (PC) Ready Signal (DTR) &D0 Ignore the status of the DTR signal. The DTR signal is always activated, even when the PC is switched off. &D1 Return to command mode if the modem detects a falling edge on the DTR line. &D2 Hang up and return to command mode if the modem detects a falling edge on the DTR line. &D3 Hang up, reset, and return to command mode if the modem detects a falling edge on the DTR line. &F Factory Configuration The &F command (default) restores the factory settings with enabled hardware flow control. 4-4 PHOENIX CONTACT 2548_en_A
  48. 48. AT Commands &K Enable DTE Flow Control The &K command specifies the type of data control that is used between the modem and the local PC to prevent data loss. The modem supports two types of data flow control. The selected function depends on the requirements of the PC. This command has the same function as the AT+IFC command (see page 4-11). &K0 Disable data flow control. &K3 Use CTS/RTS signals for bidirectional data flow control. The CTS signal starts or finishes data transmission from the PC or terminal. The RTS signal controls data transmission to the PC. If the RTS is disabled, data transmission is finished. If it is enabled, the modem sends data to the PC. &O Local Switching Output &O0 Reset the local switching output &O1 Set the local switching output &S DSR Options &S0 Enable the DSR signal (default). &S1 Enable the DSR signal during the handshake and in data mode and disable it in test or silent mode. The DSR is activated when the carrier detect signal is lost. &V Display Configuration Profile The &V command can be used to view the active configuration profile of the modem. Any commands or registers that appear in the profile, but are not described in this user manual, can be ignored. NOTE: This command cannot be activated when the modem is online. &W Save Active Configuration This command saves the active configuration in the permanent memory. &W0 Store the active settings as configuration profile 0. &W1 Store the active settings as configuration profile 1. &Y Select Active Profile The &Y command specifies which stored profile is loaded when the modem is switched on or reset. &Y0 Use configuration profile 0 (default). &Y1 Use configuration profile 1. 2548_en_A PHOENIX CONTACT 4-5
  49. 49. PSI-GPRS/GSM-MODEM/RS232-QB… &Zn=x Store a Telephone Number in the Permanent Memory The &Zn=x command stores a telephone number (x) (36 digits maximum) in the permanent memory of the modem. The modem can store up to 10 telephone numbers (n = 0 through 10). %G Caller ID %G Disable the caller ID function 0 %G Activate caller ID output. The caller ID is output to the V.24 (RS-232) interface in a 1 specific format %G Activate caller ID evaluation 3 Selective call acceptance: Only calls from the stored caller IDs from &Z12 and &Z13 are accepted, regardless of register S0. %S Callback Security %S0 Disable callback security %S1 Enable callback security with password validation. %S2 Enable password validation. F Display All Stored Telephone Numbers The command displays all stored telephone numbers. S Receive SMS Messages S0 Do not receive SMS messages S1 Receive SMS messages. SMS messages are output to the V.24 (RS-232) interface in a specific format. S3 Control the modem via SMS messages (see “SMS Mode” on page 3-16) *F Reset Modem The AT*F command returns the modem to its default state. NOTE: All settings will be lost (telephone numbers/passwords/configurations). *P=x Store a Password in the Permanent Memory The *P=x command stores the password x (maximum of seven characters from the ASCII character set, excluding question marks) in the permanent memory on the modem. No password is stored on the modem by default. If no password is stored and the %S1 or %S2 command is activated, the modem skips the password request stage. *P? Display Stored Password The *P? command displays the stored password. 4-6 PHOENIX CONTACT 2548_en_A
  50. 50. AT Commands *S=x Store a PIN Code in the Permanent Memory The *S=x command stores the PIN code x (four or five numbers) in the permanent memory on the modem. Following a voltage failure the PIN code is automatically entered again and the modem dials into the GSM network. This command has the same function as the AT$CPIN command (see page 4-14). NOTE: Make sure to use the right SIM card for the PIN code. The PIN code is always re-entered in the event of a voltage failure. If an incorrect PIN code is entered, the SIM card is blocked after three voltage interrupts. All commands beginning with “+C” are temporary only. After a voltage reset, the values will be reset to their default values and cannot be stored by using the &W command. +CBST Modulation Method The +CBST command specifies the modulation method. +CBST=0 Automatic detection (default) +CBST=1 300 bps (V.21) +CBST=2 1200 bps (V.22) +CBST=3 1200/75 bps (V.23) +CBST=4 2400 bps (V.22bis) +CBST=6 4800 bps (V.32) +CBST=7 9600 bps (V.32) +CBST=14 14400 bps (V.34) +CBST=65 300 bps (V.110) +CBST=66 1200 bps (V.110) +CBST=68 2400 bps (V.110) +CBST=70 4800 bps (V.110) +CBST=71 9600 bps (V.110) +CBST=75 14400 bps (V.110) +CBST? Request the set modulation method Answer: +CBST=”Modulation method”,0,1 +CGSN Request the IMEI +CGSN is used to request the IMEI (International Mobile Equipment Identity). +CLIP Caller Identification (CLIP) +CLIP is used to enable or disable Calling Line Identification Presentation (caller ID). Incoming calls receive the following additional message: +CLIP: “Telephone number”, “Type” If the telephone number includes the international dialing prefix “+”, “Type” = 145. Otherwise “Type” = 129. 2548_en_A PHOENIX CONTACT 4-7
  51. 51. PSI-GPRS/GSM-MODEM/RS232-QB… +CPIN? Read PIN Code Authentication +CPIN? can be used to read the status of PIN code authentication. Ready The PIN code has been entered correctly. SIM PIN Enter the PIN code. SIM PUK The PIN code has been entered incorrectly three times. Enter the 8-digit PUK code. +CPIN=x Enter the PIN Code +CPIN=x is used to enter the PIN code (”x” = PIN code). NOTE: The PIN code is not stored using the +CPIN command. Following a voltage loss, the modem cannot automatically dial into the network again. The command to “Store a PIN Code in the Permanent Memory” on page 4-7 can remedy this situation. +CPIN=x,n Enter the PUK Code +CPIN=x,n is used to enter the 8-digit PUK code and the new 4-digit PIN code (”x” = PUK code, “n” = new PIN code). +CRC Additional Confirmations The +CRC command enables or disables additional confirmations for incoming calls. +CRC=0 No additional conformations (default) +CRC=1 Enable additional confirmations +CRC? Request setting +CRING: “Message” is displayed instead of RING. Messages: ”DATA” Data call ”FAX” Fax call ”VOICE” Voice call NOTE: The AT+CRC=1 command can result in connection problems with software that expects a normal RING as confirmation. 4-8 PHOENIX CONTACT 2548_en_A
  52. 52. AT Commands +CREG Network Status The +CREG command enables or disables the confirmation for the network status. +CREG=0 No confirmations for the network status (default) +CREG=1 Enable confirmations for the network status When confirmations for the network status are enabled, one of the following messages is displayed each time the network status changes: +CREG: 0 Not dialed in because an incorrect PIN code was entered or no SIM card present. +CREG: 1 Dialed into the local network +CREG: 2 Not dialed in, searching for network +CREG: 3 Not dialed in because it is not possible to dial into the network. +CREG: 4 Not used +CREG: 5 Dialed into an external network (roaming) These messages can also be requested manually using the +CREG? command. +CSNS Procedure for Single Numbers In the GSM network, call signals usually include additional information indicating whether it is a data or voice call. The network operator also assigns different telephone numbers for data or voice connections. If the network operator (service provider) only uses a single number system, the +CSNS command can be used to specify how the modem should interpret a call without additional information. +CSNS=0 Voice: All calls without additional information are interpreted as voice calls. +CSNS=2 Fax: All calls without additional information are interpreted as fax calls. +CSNS=4 Data: All calls without additional information are interpreted as data calls. +CSNS? Request 2548_en_A PHOENIX CONTACT 4-9

×