Home
GSM Modem Configuration Manual
Contents
1. lt PAD destination port gt N A N A Destination IP for PAD data PAD data is sent to and received from this IP A destination IP address of 0 will allow PAD access from any IP destination and will cause all locally generated PAD data to be sent to the IP address associated with the last remotely received PAD data Destination port for PAD data PAD data is sent to and received from this port A destination port of 0 will allow PAD access from any port and will cause all locally generated PAD data to be sent to the port associated with the last remotely received PAD data A value of 0 will allow any IP port access to the TCP PAD If populated and in passive server mode AT ACTIVE 0 the TCP PAD will limit access to the IP port defined ECN 956 MAN4005 04 EN GPRS GSM MODEM Configuration PAGE 55 18 PADSRC PAD Source Port PADSRC Command Function Command Functional Group Command Format Query Response Write Format Response Read Format Response Execution Format Response Parameter Values lt PAD source port gt 19 ACTIVE TCP PAD State ACTIVE Command Function Command Functional Group Command Format Query Response Write Format Response Read Format Response Execution Format Response Parameter Values lt state gt Notes Page 55 of 62 PAD Source Port This command allows the user to query set the API PAD source port Remote data received from a valid destination addres
2. SMS Receive Messages Allowed Groups SMS Template fNotfyWariable L ck Message MAINTENANCE Shutdown for Preventive Maintenance KL 5 2 6 Outgoing Messages Settings SEND Messages sent from the controller to Groups Note Before creating send or receive messages a directory needs to be created After the directory is created configure the following screen SMS Send Messages Modify Click Add New Message to add a new message Click Modify Message to edit a message that is already on the list Either double click the row or highlight the row and click Modify Message e Click Delete Message to remove a message after highlighting the row Page 36 of 62 ECN 956 MAN4005 04 EN GPRS GSM MODEM Configuration PAGE 37 Configured Send Messages List SMS Text SendGrop Add New Message Modify Message Delete Message Cancel When Add New Message or Modify Message is clicked the following screen appears In this example the screen is already configured for a SEND message 5 2 7 SMS Message Configuration SMS Message Configuration xi m Trigger Variable Settings Address 2721 rem Name SS pe Message Attributes Send Groups MAINTENANCE v SMS Message Configuration HE l HE Current Data Field Leng
3. Set Screen Removable Media Page 7 of 62 ECN 956 PAGE 8 GPRS GSM MODEM Configuration MAN4005 04 EN H Install a modem in the PC e Open the Add Target dialog by selecting Tools Editor Options Communications Port and then click Configure gt gt from the Main Menu e Select the installed modem and enter GSM data no of the SIM connected to the device and press OK Target Name elt m Connection Medium 2 1 E Com Port Ethernet 192 168 Mode GPRS Mode Can Interface z Installed Modem Sottva2 Data Fax Modem DI Phone Number 0013179164274 m Connected Device Connected Device Target Node ID i m Connection Settings Maximum Baud Rate 3500 Timeout 5000 ms OK Cancel Note The status of the connection will be updated in the CsCAN Status Register specified in the GSM GPRS SMS Configuration window Various status values are detailed in section 4 3 1 1 3 Send Receive SMS SMS configuration for sending receiving SMS is detailed in section 5 2 Page 8 of 62 ECN 956 MAN4005 04 EN GPRS GSM MODEM Configuration PAGE 9 2 GPRS General Packet Radio Service Functionality A GPRS network can be used to establish communication between OCS and any other communicating devices having unique IP address and port configuration e GPRS can be used to establish connectivity with e remote servers for exchanging register data e Cscape for do
4. lt lac gt lt ci gt 0 not registered ME is not currently searching a new operator to register to 1 registered home network 2 not registered but ME is currently searching a new operator to register to 3 registration denied 4 unknown 5 registered roaming string type two byte location area code in hexadecimal format e g 00C3 equals 195 in decimal string type two byte cell ID in hexadecimal format Operator Selection Write command forces an attempt to select and register the GSM network operator lt mode gt is used to select whether the selection is done automatically by the ME or is forced by this command to operator lt oper gt it shall be given in format lt formats gt If the selected operator is not available no other operator shall be selected except lt mode gt 4 The selected operator name format shall apply to further read commands COPS also lt mode gt 2 forces an attempt to deregister from the network The selected mode affects to all further registration e g after lt mode gt 2 ME shall be unregistered until lt mode gt 0 or 1 is selected Read command returns the current mode and the currently selected operator If no operator is selected lt format gt and lt oper gt are omitted Test command returns a list of quadruplets each representing an operator present in the network Quadruplet consists of an integer indicating the availability of the ECN 956 PAGE 46 GPRS GSM MODEM C
5. Insert Value Field Value Variable Settings Enter a register reference where the data embedded in the message to send will be stored An I O au H name can be entered or selected in the Name field Select Register Width Select or enter the data type in the Display Format field In the Decimal Position field click the position of the decimal point Click the number of digits in the Number of Digits Example xx xx shows that the decimal is in the 3rd position and the total number of digits Other Settings including the decimal is 5 Click the Fill Zeroes box and the Left Justified or Right Justified box if desired Page 38 of 62 ECN 956 MAN4005 04 EN GPRS GSM MODEM Configuration PAGE 39 Click OK and you are returned to the SMS Configuration screen If satisfied with the message Click OK 5 2 9 SMS Send Message SMS Send Messages sl Configured Send Messages List Trigger Variable SMS Text SendGroup RO002 1 Boiler Pressure High MAINTENANCE Add New Message Modify Message Delete Message Ge 5 2 10 Rules for SMS Send and Receive Messages 1 Upto 160 characters can be used in each SMS Message 2 Upto 20 data register value fields can be included in each message 3 When the SMS Configuration dialog is closed if a send message or receive message is found to have been associated with a non existing contact information group then the user will be notified about the error and provided with an op
6. g i Protocol Configuration GSM GPRS SMS Configuration Datalog Configuration jee 1 0 Names Element Usage Setpoints Br Error Check gt EI Download Options e Select the Enable SMS Configuration checkbox and then click SMS Configuration to begin SMS configuration GSM GPRS SMS Configuration I Enable GSM Data Connection I Enable GPRS Data Connection IV Enable SMS Configuration SMS Configuration r Service Provider I Manual Network Selection Get Service Provider Name from Register Address wm Name Y r Signal Strength Register Address R0045 Name z r Esten Status Heaister Address R0046 ES Name Y Wate Nrensmisston Settings GPRS Configuration JV Disconnect and Semice SMS when connection is Idle die State Timeout Jeo DE 240 Seconds et Page 27 of 62 ECN 956 PAGE 28 GPRS GSM MODEM Configuration MAN4005 04 EN 5 2 1 GSM Modem Settings SMS Configuration e inthis example the screen is already configured The SMS Configuration screen has several sections that require configuration SMS Status Register Configuration gt SMS Message Buffer Configuration Address ZR50 een X4 Address EDD sen X 80 Name SMS_STATUS_REGISTER Name f Ms MESSAGE BUGGER SMS Configuration Parameters Center Number ISS SIM Pin Code mr Command Interval fo Sec Additional SMS Configu
7. 1 111 15 where 111 is the string to request balance remaining in SIM and may vary depending on the service provider Port MJi ComOption zl Operation Initialize Modem zl El UI Ge Tone TER Init String f cusD t 1118 15 O Status Address 1 R0065 Name Modem Status DI Client Mode C Server Mode OK Cancel Page 23 of 62 ECN 956 PAGE 24 GPRS GSM MODEM Configuration MAN4005 04 EN 4 3 Modem Status Register value definitions 65535 Modem is inactive OxFFFF Disabled Modem De and waiting for ete Disabled Modem is not a Command MEN Disabled kiadem Command sucsssded 0 0x0 Enabled Only in case of SC modem command else Modem is connected to destination server 1 0x1 Enabled Modem is Ringing i e incoming call 2 0x2 Disabled Modem detected no lost carrier 3 0x3 Disabled Modem command syntax error 4 0x4 Disabled SMS functionality is Active 5 0x5 Disabled Modem in Listen Server Mode 6 0x6 Disabled Note e _ The status values are same for all GSM and GPRS modes i e Cscape connectivity or data exchange However different status registers should be used for different modes e Status of 6 indicates Mode is waiting for connection request from specified client and it is applicable in case of GPRS server mode e When the modem returns status Connected then TX RX or another communications ladder block can be used to exchange data with a destination server according to proto
8. can have up to 160 characters Message Buffer Register Settings Enter the starting register location where the latest SMS message string is stored This is a block of Address 80 registers that are consecutive in memory For example if you are using R101 R180 you need to enter the starting register address as RO101 Enter or select an I O Name SMS Configuration Parameters Configuration Parameters If required select the box and type in Center number up to 16 digits The Center Number uses Center Number numbers 0 9 and these special characters If required select the box and type Pin number up to 4 digits SIM Pin Code can have only digits 0 9 Command Interval This is the interval of time in seconds that the OCS poll for messages valid range 1 100 SIM Pin Code Note SMS service center number should be configured correctly to send a SMS successfully Page 29 of 62 ECN 956 PAGE 30 GPRS GSM MODEM Configuration MAN4005 04 EN Additional SMS Settings Be sure to click each button and perform the configuration procedures associated with each button Modem Initialization Settings Configure this screen to select the type of Modem Initialization that is going to be used Modem Initialization Settings xi Modem Initialization Type User Initialization Script m Initialization Status Register Settings Address R0301 eer X10 Name v User Specific Modem Initializ
9. 2 dB 900 MHz Pal Hower class measured at the antenna port Frequency Sensitivity Mode 1900 MHz Receive Power 1800 MHz 106 dBm typical GPRS Coding Scheme 1 CS1 850 MHz 106 dBm typical a 900 MHz GPRS Coding Scheme 1 CS1 Regulatory Agency approvals Operating amp Storage temperature Relative humidity Air pressure altitude Page 40 of 62 ECN 956 MAN4005 04 EN GPRS GSM MODEM Configuration PAGE 41 7 Installation Safety IN Warning Electrical When found on the product the Shock Hazard following symbols specify Warning Consult ZN WARNING To avoid the risk of electric shock or burns always connect the safety or earth ground before making any other connections WARNING To reduce the risk of fire electrical shock or physical injury it is strongly recommended to fuse the voltage measurement inputs Be sure to locate fuses as close to the source as possible WARNING Replace fuse with the same type and rating to provide protection against risk of fire and shock hazards WARNING In the event of repeated failure do not replace the fuse again as a repeated failure indicates a defective condition that will not clear by replacing the fuse WARNING Only qualified electrical personnel familiar with the construction and operation of this equipment and the hazards involved should install adjust operate or service this equipment Read and understand this manual and other applicable manuals
10. 56 22 PADTO PAD Timeout Value rrrnrrrnnnvrnnnvrrnnvrrnnarrrnnnvrrnnvrranavnrnnnvenonvrssavnssnnvnnsnvnsssnnessannnnnnnne 57 23 DP Dial Command for UDP DAD 57 24 DT Dial Command for TCP DAD 58 25 CGPCO Set Type of Authentication Username and Password 59 26 AREG Auto Registration cccecccececececeeceeeceeeceeeceeeeeeaeceaeseeeeeeseeeeseeeesaeesaeeseeseaessaeesnaeeaaes 60 27 HOSTIF Configure Host to Modem Interface 60 INDEX TE NE EE REES NN NEO 61 Page 4 of 62 ECN 956 MAN4005 04 EN GPRS GSM MODEM Configuration PAGE 5 GSM Modem GSM is a network used for connecting two devices and exchanging data It can be used by an OCS with an internal modem HE GSMO04A to communicate to other devices connecting to an Internet GSM PSTN network To install a GSM modem option card in an XLe XLt XL6 OCS open the back cover of the OCS and connect the Modem HE GSMOAA and then connect the antenna to the modem INSTALLATION PROCEDURE 1 Disconnect all power from the XLe XLt XL6 OCS Operator Control Station unit including I O power 2 Remove the four screws on the back of the XLe XLt XL6 unit and remove the back cover The back cover will be replaced with the extended back cover that ships with the communication add on Screws are re used Figure 1 3 Plug the communication board onto the 24 pin connector Make sure all the pins are properly aligned Figure 2 4 Place the extended back cover onto the unit It can be he
11. 9600 bps V 32 12 9600 bps V 34 14 14400 bps V 32 65 300 bps V 110 66 1200 bps V 110 68 2400 bps V 110 or X 31 flag stuffing 70 4800 bps V 110 or X 31 flag stuffing 71 9600 bps V 110 or X 31 flag stuffing 75 14400 bps V 110 or X 31 flag stuffing 0 none 0 transparent non transparent both transparent preferred Q N both non transparent preferred Non transparent 9600 bps V 32 ECN 956 MAN4005 04 EN GPRS GSM MODEM Configuration PAGE 45 3 AT CREG Network Registration Info Command Function Command Functional Group Command Format Query Response Write Format Response Read Format Response Execution Format Response Parameter Values lt n gt lt stat gt lt lac gt lt ci gt 4 AT COPS Operator Selection AT COPS Command Function Page 45 of 62 Write command controls the presentation of an unsolicited result code CREG lt stat gt Read command returns the status of result code which shows whether the network has currently indicated the registration of the ME Network Information AT CREG CREG 0 2 OK AT CREG lt n gt OK AT CREG CREG lt n gt lt stat gt lt lac gt lt ci gt OK N A N A 0 disable network registration unsolicited result code 1 enable network registration unsolicited result code CREG lt stat gt enable network registration and location information unsolicited result code CREG lt stat gt
12. Message to add a new message Click Modify Message to edit a message that is already on the list Either double click the row or highlight the row and click Modify Message e Click Delete Message to remove a message after highlighting the row In this example the screen is already configured for a RECEIVE message SMS Message Configuration EG Notify Variable Settings Address feria m Name x m Message Attributes Allowed Group MAINTENANCE x IV Ack Message SMS Message Configuration Current Data Field Length DVR F2 Insert Field F3 Insert Char cane Page 34 of 62 ECN 956 MAN4005 04 EN GPRS GSM MODEM Configuration PAGE 35 SMS Message Configuration Enter a bit reference in the Address field that will be set to high by the system when a valid Notify Variable Settings SMS message associated with the variable is received from the specified Group member UO name can be entered or selected in the Name field Message Attributes Allowed Group MAINTENANCE IV Ack Message Message Attributes Enter or select the group that can send an SMS message to the controller Select the Ack Message check box if you want to send an acknowledgement to the user that the controller has received the message Messages can contain text and register data values that approved group members can read and write into the controller s data registers at runtime See R
13. OK AT CSMP lt fo gt lt vp gt lt pid gt lt dcs gt OK AT CSMP CSMP 17 167 0 0 OK N A N A depending on the command or result code first octet of GSM 03 40 SMS DELIVER SMS SUBMIT default 17 or SMS COMMAND de fault 2 in integer format depending on SMS SUBMIT lt fo gt setting GSM 03 40 TP Validity Period either in integer format default 167 in time string format refer lt dt gt or if is supported in enhanced format hexadecimal coded string with quotes Protocol Identifier in integer format default 0 refer GSM 03 40 SMS Data Coding Scheme default 0 or Cell Broadcast Data Coding Scheme in integer format depending on the command or result code GSM 03 38 ECN 956 PAGE 50 GPRS GSM MODEM Configuration MAN4005 04 EN 10 AT CNMI New Message Indication to TE Message Receiving and Reading Commands 2 5 3 1 AT CNMI New Message Indication to TE Command Function Selects how incoming messages from the network are indicated to the TE when the TE is active Command Functional Group Short Message Services Command Format Query AT CNMI Response CNMI 0 2 0 3 0 2 0 1 0 1 OK Write Format AT CNMI lt mode gt lt mt gt lt bm gt lt ds gt lt bfr gt Response OK Read Format AT CNMI Response CNMI 1 1 0 0 0 OK Execution Format N A Response N A Parameter Values lt mode gt 0 Buffer unsolicited result codes in the TA 1 Discard indication and reject new received message uns
14. PAGE 15 e Add anew device by selecting New Device from the Edit submenu in KEPServerEX lt KEPServerEx C Program Fi View Users Tools Help Di Undo Ctrl Z New Channel New Tag Group New Tag Alias Map Cut Ctri Copy Ctrl C Paste Ctrl Delete Del Properties e After naming choose Modbus from the Device Model menu New Device Model The device you are defining uses a device driver that supports more than one model The list below shows all supported models Select a model that best describes the device ou are defining Device model Modbus X Page 15 of 62 es ae ECN 956 PAGE 16 GPRS GSM MODEM Configuration MAN4005 04 EN In the New Device ID dialog set the Device ID IP address of the sim card used The last digit of the Device ID is a modbus slave ID and it should match the settings from CSCAPE 2 as mentioned in the sample program New Device ID The device you are defining may be multidropped as part of a network of devices In order to communicate with the device it must be assigned a unique ID our documentation for the device may refer to this as a Network ID or Network Address Device ID 255 255 255 255 0 Clicking Next gt opens the New Device TCP IP dialog box New Device TCP IP Specify the TCP IP port this device will be using Valid ports for this device are 0 to 65535
15. SMS Settings hee Advantages of using SMS nennen ATE command Failed nenne nenn Auto Answer modem Option LC Auto Dial modem Option C Cell phone Center Number CMGF Command Failed sat CNMI Command Failed rrrrrrnrrrrrrnrrrnrnnvrensnnvrrnnnrvrnnnnrnnnnn COM Port Configuration Gettings eee 34 COM Port Settings 34 Command Interval 32 communication operation ladder blocks 0 7 Configuration Parameters 91 Configure Sever Client IP address 13 Configuring KEPServerEX for Data Exchange tal Connectivity with CSCape ce eeeeeeeeeeeeeeeee 13 COPS Command Failed 91 CPEE command Failed 31 CPIN Command Failed sawai CREG Command Falle 31 CSCA service center number command Failed 31 CSQ Command Failed nenne 31 D BEI e ER EEN Data Transfer Example eee ecee eee eeneeeeee Data Transmission Settings Delete Contact Device In WEE E EditisubMe nu EE 17 Enable Diagnostics Enable SMS Conttguraton eeaeee eenean 7 21 ENEE 13 16 G GPRS General Packet Radio Service Functionality 10 GPRS GSM Modem Specifications rrnrrrnnnrrrnnnrrrnnnn 43 GPRS Configuration cccceecceceeeeeeeeneeeeeeeeeeseeeeeaes 10 12 GPRS Connectivity eessenssennnensnnnnnennnnnnnennnnnnnnnnnn 5 GPRS latency 13 GPRS network 10 Group Name 1 36 GSM Configuration 6 GSM connectivi
16. The default port is 502 The IP Protocol can be changed to UDP if your device supports it Port Number fi ood IP Protocol TCP IP S Fa Dis e Enter the correct port number the same as in Cscape configurator and TCP IP protocol and continue with other default settings Note The port number should be configured as 10001 if Cscape connectivity is also required Page 16 of 62 ECN 956 MAN4005 04 EN GPRS GSM MODEM Configuration PAGE 17 To be able to read and change internal registers tags have to be created Select New Tag from the Edit drop down on the KEPServerEx main menu lt KEPServerEx C Program File asia view Users Tools Help C Undo Ctrl Z E New Channel New Device New Tag Group Alias Map e The following Tag Properties dialog box show entries for register R900 Likewise other tags can be created General Scaling Identification wp gf ee oe r Data properties Data type Client access Read Write DI Scanrate 100 milliseconds Page 17 of 62 ECN 956 PAGE 18 GPRS GSM MODEM Configuration MAN4005 04 EN After creating a new tag this screen will show all the tags created with Tag Name Address Data Type Scan Rate Scaling and Description KEPServerEx C Program Files KEPServerEx Projects KEPServerEX_Modbus_demo opf Demo Expires 01 42 19 File Edit View Users Tools Help Da vM
17. in their entirety before proceeding Failure to observe this precaution could result in severe bodily injury or loss of life All applicable codes and standards need to be followed in the installation of this product Adhere to the following safety precautions whenever any type of connection is made to the module Connect the safety earth ground on the power connector first before making any other connections When connecting to electric circuits or pulse initiating equipment open their related breakers Do not make connections to live power lines Make connections to the module first then connect to the circuit to be monitored Route power wires in a safe manner in accordance with good practice and local codes Wear proper personal protective equipment including safety glasses and insulated gloves when making connections to power circuits Ensure hands shoes and floor are dry before making any connection to a power line Make sure the unit is turned OFF before making connection to terminals Make sure all circuits are de energized before making connections Before each use inspect all cables for breaks or cracks in the insulation Replace immediately if defective 8 Technical Support For assistance contact Technical Support at the following locations EUROPE USA Email tech support hornerirl ie Email techsppt heapg com Fax 353 0 21 4321 826 Fax 1 317 916 4274 Tel 353 0 21 4321 26
18. to be given SIM PIN2 ME is waiting SIM PIN2 to be given this lt code gt is recommended to be returned only when the last executed command resulted in PIN2 authentication failure i e CME ERROR 17 if PIN2 is not entered right after the failure it is recommended that ME does not block its operation SIM PUK2 ME is waiting SIM PUK2 to be given this lt code gt is recommended to be returned only when the last executed command resulted in PUK2 authentication failure i e CME ERROR 18 if PUK2 and new PIN2 are not entered right after the failure it is recommended that ME does not block its operation PH NET PIN ME is waiting network personalization password to be given PH NET PUK ME is waiting network personalization unblocking password to be given PH NETSUB PIN ME is waiting network subset personalization password to be given PH NETSUB PUK ME is waiting network subset personalization unblocking password to be given PH SP PIN ME is waiting service provider personalization password to be given PH SP PUK ME is waiting service provider personalization unblocking password to be given PH CORP PIN ME is waiting corporate personalization password to be given PH CORP PUK ME is waiting corporate personalization unblocking password to be given ECN 956 PAGE 48 GPRS GSM MODEM Configuration MAN4005 04 EN 6 AT CSQ Signal Quality and Bit Error Rate AT CSQ Command Function Command Functional Group Command Format Query R
19. 6 Tel 1 317 916 4297 Website http www horner apg com Website http www heapg com Page 41 of 62 ECN 956 PAGE 42 GPRS GSM MODEM Configuration MAN4005 04 EN 9 Appendix A SIM Card Features GSM e Data enabled SIM e Voice number can be disabled for the SIMs taken for this purpose It will take out the possibility of any disconnection if someone tries to dial the voice number GPRS GPRS enabled static SIM semi static SIM with VPN connectivity Voice number can be disabled for the SIMs taken for this purpose It will take out the possibility of any disconnection if someone tries to dial the voice number Page 42 of 62 ECN 956 MAN4005 04 EN GPRS GSM MODEM Configuration PAGE 43 B AT Command Set 1 ATD Dial command Command Function Command Functional Group Command Format Query Response Write Format Response Read Format Response Execution Format Response Parameter Values lt n gt lt cmod gt lt gt Modem Responses NO DIALTONE NO CARRIER CONNECT lt value gt BUSY OK Example ATD5551212I This command is used to setup an outbound voice or data call Call Control N A N A N A N A N A N A ATD1234567 NO DIALTONE or NO CARRIER or CONNECT value gt or BUSY or OK V 25ter Dialing Digits 0 39 A B C V 25ter Dialing Modifiers comma T P W GSM Modifier Characters I Restrict CLI i Allow CLI Sem
20. BENEN is incremented within 10 seconds if Send Receive failure This count is incremented whenever modem initialization Bit 57 Bit 64 Re initialization count fails The modem re initializes itself if the send receive command fails for 10 consecutive times Page 28 of 62 ECN 956 MAN4005 04 EN GPRS GSM MODEM Configuration PAGE 29 Status Bits for Siemens Modems amp Internal Modem CPIN Command Failed This command is used to unlock the SIM This bit will be set if supplied PIN is invalid or SIM is blocked or modem fails to respond within 2 sec of sending this command This command is NOT executed if SIM Pin code is not enabled CSCA service center number command Failed This command is used to set the SMS service center number This bit will be set if setting SMS service center number command fails or modem fails to respond within 2 sec of sending this command This command is NOT executed if Service center number is not provided CREG Command Failed This command is used to register mobile device to the GSM network This bit will be set if registration fails or modem fails to respond within 2 sec of sending this command CMGF Command Failed SMS format selection command This bit is set if modem returns Error response to this command or modem fails to respond within 2 sec of sending this command CNMI Command Failed Command used to check newly received SMS message This bit is set if modem returns Error response t
21. D BY HE APG THE TERM ORIGINAL PURCHASER AS USED IN THIS WARRANTY SHALL BE DEEMED TO MEAN THAT PERSON FOR WHOM THE GPRS module IS ORIGINALLY INSTALLED THIS WARRANTY SHALL APPLY ONLY WITHIN THE BOUNDARIES OF THE CONTINENTAL UNITED STATES In no event whether as a result of breach of contract warranty tort including negligence or otherwise shall HE APG or its suppliers be liable of any special consequential incidental or penal damages including but not limited to loss of profit or revenues loss of use of the products or any associated equipment damage to associated equipment cost of capital cost of substitute products facilities services or replacement power down time costs or claims of original purchaser s customers for such damages To obtain warranty service return the product to your distributor with a description of the problem proof of purchase post paid insured and in a suitable package ABOUT PROGRAMMING EXAMPLES Any example programs and program segments in this manual or provided on accompanying diskettes are included solely for illustrative purposes Due to the many variables and requirements associated with any particular installation Horner APG cannot assume responsibility or liability for actual use based on the examples and diagrams It is the sole responsibility of the system designer utilizing the GSM GPRS module to appropriately design the end system to appropriately integrate the GSM GPRS module and to ma
22. Dial Command for UDP PAD This command is used to invoke the UDP PAD via a dial command Enfora Specific N A N A atdp lt IP ADDRESS gt lt UDP Port Number gt Connect N A N A N A N A IP Address of the destination host UDP Port number If no UDP port number is required a value zero 0 should be specified here This command will override the AT PADDST settings for the current connected session atdp123 456 789 1 0 atdp123 456 789 2 3000 ECN 956 PAGE 58 GPRS GSM MODEM Configuration MAN4005 04 EN 24 DT Dial Command for TCP PAD DT Command Function Command Functional Group Command Format Query Response Write Format Response Read Format Response Execution Format Response Parameter Values lt IP_ADDRESS gt lt TCP Port Number gt Notes Example Page 58 of 62 Dial Command for TCP PAD This command is used to invoke the TCP PAD via a dial command Enfora Specific N A N A atdt lt IP_ADDRESS gt lt TCP Port Number gt Connect N A N A N A N A IP Address of the destination host TCP Port number If no TCP port number is required a value zero 0 should be specified here This command will override the AT PADDST settings for the current connected session atdt123 456 789 1 0 atdt123 456 789 2 3000 ECN 956 MAN4005 04 EN GPRS GSM MODEM Configuration PAGE 59 25 CGPCO Set Type of Authentication Username and Password CGPCO Command Function Command
23. EM Configuration PAGE 25 4 4 Signal Strength e GSM GPRS signal strength value is updated in 16bit long register The 16bit long value consists of 2 fields as below o Bit 1 to 8 represents Bit Error rate Possible values are Value 0 to 7 value 99 63h Not known or Not detectable o Bit9 to 16 represents Received Signal Strength Indication Possible values are 0 i 113dBm or less Very Poor signal Strength 1 111dBm or less Poor signal Strength 30 1Eh 109 to 53 dBm Good signal Strength 31 1Fh 51dBm or greater Very Good signal Strength 99 63h Not known or Not detectable Page 25 of 62 ECN 956 PAGE 26 GPRS GSM MODEM Configuration MAN4005 04 EN 5 SMS Communications 5 1 Overview SMS Short Message Service is a type of communications process that enables the transmission of short text messages and data transfers to and from mobile devices such as cell phones Messages are usually limited from 140 to 160 characters in length and are stored and forwarded at SMS centers This allows messages and data transfers to be retrieved immediately or at a later time via an SMS center Advantages of using SMS SMS communications provide an affordable and convenient means to send and receive data using mobile devices such as cell phones Businesses and industry often require 24 hour coverage of their operations and have personnel who are on call after normal work hours to handle work related issues and emergencies Th
24. Functional Group Command Format Query Response Write Format Response Read Format Response Execution Format Response Parameter Values lt Input format gt lt Authentication data gt Set Type of Authentication Username and Password This command sets the type of Authentication username and password for GPRS context activation Enfora Specific AT CGPCO CGPCO 0 0 251 1 2 OK AT CGPCO lt Input format gt lt Authentication data gt lt cid gt OK AT CGPCO CGPCO 0 lt PCO Hex string gt 1 CGPCO 0 lt PCO Hex string gt 2 OK AT CGPCO CGPCO 1 lt Username Password gt 1 CGPCO 1 lt Username Password gt 2 OK N A N A 0 Inputs specified in Hexadecimal 1 Inputs specified in ASCII Authentication data ASCII lt username gt lt password gt where Username Maximum 64 bytes ASCII string Password Maximum 64 bytes ASCII string Authentication data Hexadecimal Protocol Configuration Option specified in Hex value maximum size is equal to 251 bytes 0 The new username and password is to be applied to all context Activation en 1 The new username and password is to be applied to Context identifier 1 2 The new username and password is to be applied to Context identifier 2 Notes If CGPCO is set with the input format of 0 hexadecimal then the setting of AT CGPPP will be ignored Username and Password are case sensitive CGPCO Set Type of Authe
25. HORNER APG GSM GPRS Modem Configuration User Manual GSM GPRS 1 April 2009 MAN4005 04 EN PAGE 2 GPRS GSM MODEM Configuration MAN4005 04 EN GSM GPRS Modem Configuration HORNER User Guide LIMITED WARRANTY AND LIMITATION OF LIABILITY Horner APG LLC HE APG warrants to the original purchaser that the GSM GPRS module manufactured by HE APG is free from defects in material and workmanship under normal use and service The obligation of HE APG under this warranty shall be limited to the repair or exchange of any part or parts which may prove defective under normal use and service within two 2 years from the date of manufacture or eighteen 18 months from the date of installation by the original purchaser whichever occurs first such defect to be disclosed to the satisfaction of HE APG after examination by HE APG of the allegedly defective part or parts THIS WARRANTY IS EXPRESSLY IN LIEU OF ALL OTHER WARRANTIES EXPRESSED OR IMPLIED INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR USE AND OF ALL OTHER OBLIGATIONS OR LIABILITIES AND HE APG NEITHER ASSUMES NOR AUTHORIZES ANY OTHER PERSON TO ASSUME FOR HE APG ANY OTHER LIABILITY IN CONNECTION WITH THE SALE OF THIS GPRS module THIS WARRANTY SHALL NOT APPLY TO THIS GPRS module OR ANY PART THEREOF WHICH HAS BEEN SUBJECT TO ACCIDENT NEGLIGENCE ALTERATION ABUSE OR MISUSE HE APG MAKES NO WARRANTY WHATSOEVER IN RESPECT TO ACCESSORIES OR PARTS NOT SUPPLIE
26. M MODEM Configuration MAN4005 04 EN 20 PADBLK PAD Block Size PADBLK Command Function Command Functional Group Command Format Query Response Write Format Response Read Format Response Execution Format Response Parameter Values lt block size gt 21 PADFWD PAD Forward Character PADFWD Command Function Command Functional Group Command Format Query Response Write Format Response Read Format Response Execution Format Response Parameter Values lt backspace character gt Page 56 of 62 PAD Block Size This command allows the user to query set the PAD block size Enfora Specific AT PADBLK PADBLK 3 512 OK AT PADBLK lt block size gt OK AT PADBLK PADBLK lt block size gt N A N A PAD data will be created at the requested PAD block size number of bytes unless an enabled forward character or PAD timeout forces the data to be sent out at a smaller block size Block size does NOT include the IP or TCP UDP header size PAD Forward Character This command allows the user to query set the PAD forward character If PAD forward is enabled via AT PADCMD receipt of this character will immediately forward all currently buffered PAD data Enfora Specific AT PADFWD PADFWD 0 ff OK AT PADFWD lt forward character gt OK AT PADFWD PADFWD lt forward character gt N A N A Hex representation of user selected forward character Default forward cha
27. OCS firmware is designed to initialize a GSM modem to establish a GSM data call e In order to establish GSM data call connectivity using Horner OCS follow these steps e Select Program and GSM GPRS SMS Configuration from the Main Menu Cscape untitled1 B Fie Edit Program Controller Debug Tools Screens Network Configuration i Protocol Configuration Datalog Configuration L Kl 170 Names Element Usage E Setpoints 87 Eror Check Et Uploa El Download Download Options e Select the Enable GSM Data Connection checkbox in the GSM GPRS SMS Configuration window GSM GPRS SMS Configuration IV Enable GSM Data Connection I Enable GPRS Data Connection GPRS Configuration I Enable SMS Configuration m Service Provider IV Manual Network Selection IV Get Service Provider Name from Register Address neen Name D r Signal Strength Register Address ROD45 DS Name v CsCAN Status Register Address RO046 DS Name v Wate liransmission Settings SMS Configuration JV Disconnect and Service SMS when connection is idle dle State Timeout Jeo 10 gt 240 Seconds SR Page 6 of 62 ECN 956 MAN4005 04 EN GPRS GSM MODEM Configuration PAGE 7 e f an SMS transmission needs to be carried out when the GSM connection is active then additional Data Transmission Settings need to be entered for servicing SMS If SMS needs to be serviced wh
28. ain Phone Number Phone numbers can not have characters other than Numbers 0 through 9 and these special characters Phone numbers must not be more than 16 characters in length In SMS configuration user can configure max 32 numbers 32 Tx messages and 32 Rx messages Phone Numbar Name Ee a register address in the Phone Number field you can give the phone number Add details for clarification e Click Modify Contact and Delete Contact buttons as needed e Click OK to see the contacts on the directory The following screen shows examples of contacts added to the directory SMS Target Directory xi Configured Contact Information List Group Name Phone Number Phone Number Name Comments MAINTENANCE 001317 916 4274 TI Fixed Maintenance Phone number MAINTENANCE R0340 Dperator Modifiable Maintenance Phone No ll Add Contact Modify Contact Delete Contact With the directory created you may begin creating send and receive messages Page 33 of 62 ECN 956 PAGE 34 GPRS GSM MODEM Configuration MAN4005 04 EN 5 2 5 Incoming Messages Settings RECEIVE Messages sent from Groups to the controller Before creating send or receive messages a directory needs to be created After the directory is created configure the following screen SMS Receive Messages EG Configured Receive Messages List Allowed Groups SMS Template Notify Variable Add New Message Modify Message Click Add New
29. ation Script AT CSCA vill Cancel Configuration of Initialization Status Register Settings and User Specific Modem Initialization Script in the above screen is required when User Initialization Script is selected Modem Initialization Settings The following options are available No Initialization Modem Preconfigured No initialization of GSM modem will be done Select this option if the attached GSM modem is pre configured and does not require initialization Internal Modem Initialization Select this option if you have an XLe XLt XL6 with internal modem Modem Initialization i Type Siemens TC Modem Initialization In case of external GSM modem select this option User Initialization Script To use your own initialization script select User Initialization Script When User Initialization Script is selected the internal initialization of the device is not performed It is necessary to configure initialization status register and provide initialization script The type of Modem Initialization used affects various settings that are available on the COM Port screen Enter the starting register address location used to store the additional modem initialization script s Address latest command executed This is a block of 10 registers that are consecutive in memory For example if you are using R301 to R310 you need to enter the starting register address as R301 Enter or select the O Name User Specific Modem Enter y
30. col e Disabling the Modem Control ladder block input will disconnect GPRS service The Status Register value changes to 65534 OxFFFE i e indicates waiting for modem response for disconnect command and then to 65535 OxFFFF It can be used to trigger SMS sending on an alarm e SMS functionality works based upon Data Transmission Settings in the SMS configuration window while the GSM GPRS connection is active Connecting to a GPRS network and establishing connection with remote server may require 3 to 4 minutes Breaking connection with a remote server may take 10 to 20 seconds e f a continuous error response is seen in the status register or OxFFFE response while connecting the modem as the default programming port then please check the following GPRS configuration parameters in case of GPRS connection GSM Signal strength Proper insertion of SIM card in modem Is the SIM enabled for a given service i e GPRS or GSM data call Antenna connected properly antenna connection VPN connectivity SEI e If the default programming port is switched to the default serial port option from GSM GPRS then the port should be released after 20 to 30 seconds after complete GPRS connection drop e Only one modem control block in specific mode Initialize Auto Dial Auto Answer can be used in ladder More than one modem control block can be used in ladder if they are in different modes Page 24 of 62 ECN 956 MAN4005 04 EN GPRS GSM MOD
31. e GPRS packet size in number of bytes Timeout Period Transmission of GPRS packet to destination address will take place on occurrence of timeout mentioned M Forward Character Transmission of GPRS packet will take place on finding character configured here This value is to be entered in Hex value of ASCII character For example if OD is configured the GPRS packet is transmitted when Line Feed character is put in the transmit buffer This feature can be used to implement custom protocol over GPRS such that the GPRS packet is sent after putting this character in the transmit buffer M Send Forward character If this checkbox enabled forward character will be sent together with GPRS packet Additional ladder programming must be written to establish connection with remote server client over GPRS service using communication operation ladder blocks Page 11 of 62 ECN 956 PAGE 12 GPRS GSM MODEM Configuration MAN4005 04 EN 2 2 Connectivity with Cscape e GPRS configuration must be downloaded into the OCS e Configure Sever Client IP address in the OCS Main Menu gt Dit Pom Port gt GPRS e This is valid for port MJ1 only MAIN MENU SUB MENU View I O Slots ppt MIL 232 MJ1 232 View Protocols MJ1 RS455 Bias No d Set Fkeys Mode MIZ R5485 Bias No Set Serial Ports Set Time Date Set Screen Removable Media ESC to Exit e Select the default programming port as GPRS in the System Menu e The con
32. ead Format Response Execution Format Response Parameter Values lt cid gt lt PDP_type gt lt APN gt lt PDP_addr gt lt d_comp gt lt h_comp gt Notes Page 53 of 62 Delete Message Deletes message from preferred storage location Short Message Services N A N A N A N A N A N A AT CMGD lt index gt OK Integer value of memory location If there is no message stored in the selected index an error will be returned Define PDP Context Specifies PDP context parameter values for a PDP context identified by the local context identification parameter lt cid gt GPRS Commands AT CGDCONT CGDCONT 1 2 IP 0 1 0 1 OK AT CGDCONT lt cid gt lt PDP_ Type gt lt APN gt lt PDP_ADDR gt lt d_comp gt lt h_comp gt OK AT CGDCONT CGDCONT lt cid gt lt PDP Type gt lt APN gt lt PDP_ADDR gt lt d_comp gt lt h_comp gt OK N A N A PDP Context Identifier pr Access Point Name Identifies the MT in the address space 0 off 1 on 0 off 1 on AT CGDCONT must be entered before Context activation AT CGDCONT 1 IP 0 0 may be entered for networks that dynamically assign the APN Contact your service provider for correct APN information ECN 956 PAGE 54 GPRS GSM MODEM Configuration MAN4005 04 EN 16 UDPAPI Modem API Address UDP API Commands UDPAPI Command Function Command Functional Gro
33. en a GSM connection is active select Enable SMS Configuration This will enable Data Transmission Settings Select the checkbox and set the idle time after which SMS should be serviced i e if 10 secs is configured in this field when the connection is idle status 6 for 10 secs SMS send received Status 5 would be serviced If the checkbox is not selected SMS will not be serviced GSM GPRS SMS Configuration IV Enable GSM Data Connection I Enable GPRS Data Connection IV Enable SMS Configuration SMS Configuration r Service Provider IV Manual Iv GERS Configuration Address Name DI m Signal Strength Register Address ABIT Name D CsCAN Status Register Address 16 87 Name D Data Transmission Settings IV Disconnect and Service SMS when connection is Idle Idle State Timeout fio 10 240 Seconds coms e Additional ladder programming must be written to answer or to make GSM data call using communication operation ladder blocks Use of Communication blocks for GSM GPRS connectivity is detailed in section 4 1 1 2 Connectivity with Cscape e On the device Change the default programming port to GSMGPRS from the system menu serial port option i e OCS system menu gt Set Serial Ports gt Dflt Pom Port gt GSM for MJ1 MAIN MENU SUB MENU View I O Slots eee Merge 11T 1 232 MJ1 232 View Protocols MJ1 RS485 Bias No M MIZ RS485 Bias No
34. ere are employees who are responsible for the proper functioning of equipment and processes at remote sites Managers need to be notified of significant events Using SMS Communications with Horner Controllers The SMS feature in selected Horner controllers provides the capability of sending and receiving text messages and register data values using mobile devices such as a cell phone Depending upon the configuration approved group members can read and write values into the controller s data registers This kind of communication is referred to as a data transfer Data Transfer Example po Maintenance Group Messagessentand received on Cell Phone o Motor 1 stops Data is sent to a register in the OCS controller XLe XLt XL6 o The OCS reads the data register value indicating Motor 1 has stopped A message is sent to the cell phone of a Maintenance Group member via SMS Communications Transmissions are routed through an SMS center o The Maintenance Group member receives the following message on a cell phone o Motor 1 speed is 0 o The Maintenance Group member sends the following message back to the OCS using a cell phone via SMS communications o Motor 1 Start Speed is 1800 o The OCS reads the register containing the data value sent from the Maintenance Group member and responds as programmed o The OCS sends a signal to start Motor 1 o Motor 1 re starts and normal operation is restored SMS Security Meas
35. esponse Write Format Response Read Format Response Execution Format Response Parameter Values lt rssi gt lt ber gt in percent 7 AT CMGF SMS Format AT CMGF Command Function Command Functional Group Command Format Query Response Write Format Response Read Format Response Execution Format Response Parameter Values lt mode gt Notes Page 48 of 62 Signal Quality and Bit Error Rate Execution command returns received signal strength indication lt rssi gt and channel bit error rate lt ber gt from the ME Phone Control AT CSQ CSQ 2 31 99 99 OK N A N A N A N A AT CSQ CSQ lt rssi gt lt ber gt OK 0 113 dBm or less 1 111 dBm 2 30 109 53 dBm 31 51 dBm or greater 99 not known or not detectable 0 7 as RXQUAL values in the table in GSM 05 08 20 subclause 8 2 4 99 not known or not detectable SMS Format Set command tells the TA which input and output format of messages to use lt mode gt indicates the format of messages used with send list read and write commands and unsolicited result codes resulting from received messages Mode can be either PDU mode entire TP data units used or text mode headers and body of the messages given as separate parameters Short Message Services AT CMGF AT CMGF 0 1 OK AT CMGF lt mode gt OK AT CMGF CMGF 1 OK N A N A 0 PDU mode 1 Text mode Use of PDU mode requires an in depth
36. for details GSM GPRS SMS Configuration I Enable GSM Data Connection IV Enable GPRS Data Connection GPRS Configuration J Enable SMS Configuration Service Provider V Manual Network Selection IV Get Service Provider Name from Register Address 168 Name v m Signal Strength Register Address weem Name CsCAN Status Register Address weem Name v Wate liransmission settings SMS Configuration I Disconnect and Service SMS when connection is Idle die State Timeout 175 MOTZ Seconds cat Page 9 of 62 ECN 956 PAGE 10 GPRS GSM MODEM Configuration MAN4005 04 EN e Click on the GPRS Configuration settings button to configure GPRS according to the information obtained by the Network Service Provider GPRS Configuration Page 10 of 62 ECN 956 MAN4005 04 EN GPRS GSM MODEM Configuration PAGE 11 GPRS Configuration GPRS Access Point Configuration The GPRS Access Point Configuration is mandatory and the fields are to be filled according to the information obtained by your Network Service Provider Select Get Access Point Configuration checkbox configure registers instead of fixed values GPRS Packet Assembler Disassembler Configuration Client mode In this mode the OCS behaves as client and connects to a specific server Server IP Port address to be specified in modem ladder block input Server mode In
37. h Auto Answer option is used for receiving connection requests from a remote server or device o Number of rings after which connection request is accepted is entered in the text box provided o Configure the status register to show the status of the connection The status values are detailed in section 4 3 Comm Modem Control MI Com Option Auto Answer i RO UD Page 22 of 62 ECN 956 MAN4005 04 EN GPRS GSM MODEM Configuration PAGE 23 e Initialize modem Option o Modem Control block with Initialize Modem option is used for execution of modem specific AT commands o Modem specific AT command to be executed is to be entered in Init String text box provided in control o If AT command execution is successful then Modem Control block output is enabled if not the output is disabled o The status register is updated depending upon the response from the modem o The response from the modem is stored in consecutive register locations starting from status register 1 address Example o Modem control block with Initialize Modem option is used for balance of minutes remaining from your service provider o The service provider balance request string is entered in the Init String box together with CUSD AT command o The response from the service provider is stored in consecutive register locations starting from Status Address 1 Note The command to be sent for balance inquiry is CUSD
38. icolon after dialing string or modifier indicates voice call and forces TA into command mode after successful completion if no dial tone is detected if call cannot be set up when connected in a non voice call data mode lt value gt dependent on ATX setting if dialed number is busy when successful voice call or TA ends current call and returns to command mode The TA will dial the number 5551212 and will block the CLI when made Page 43 of 62 ECN 956 PAGE 44 GPRS GSM MODEM Configuration MAN4005 04 EN 2 AT CBST Select Bearer service type AT CBST Command Function Command Functional Group Command Format Query Response Write Format Response Read Format Response Execution Format Response Parameter Values lt baud rate gt lt name gt lt ce gt Example AT CBST 7 0 1 Bo Page 44 of 62 Select Bearer service type This command is used to select the bearer service with data rate and the connection element to be used when data calls are originated Call Control AT CBST CBST 0 7 12 14 65 66 68 70 71 75 0 1 0 3 AT CBST lt baud rate gt lt name gt lt ce gt OK ERROR AT CBST CBST 7 0 1 N A N A 0 Autobauding automatic selection of the speed this setting is possible in case of 3 1 kHz modem and non transparent service 300 bps V 21 1 2 1200 bps V 22 3 1200 75 bps V 23 4 2400 bps V 22bis 5 2400 bps V 26ter 6 4800 bps V 32 7
39. ke safety provisions for the end equipment as is usual and customary in industrial applications as defined in any codes or standards which apply Note No part of this publication may be reproduced without the prior agreement and written permission of Horner APG Inc Information in this document is subject to change without notice Cscape SmartStack SmartStix and CsCAN are trademarks of Horner APG KEPServerEX is trademark of Kepware Technologies Inc Page 2 of 62 ECN 956 MAN4005 04 EN GPRS GSM MODEM Configuration PAGE 3 Table of Contents GSM Modem E 5 1 GSM Functionality eege dee ed take Ee ee EE 5 US GSM Configuration cate aia eee I RER ed ee 6 1 1 1 Peer to peer communication uusernnneennnnnnnnnennnnnnnnnnnnnnnnnnnnnnnennnnnnnnnnnnnnnennnnnnnennnnnnnen nenn 6 1 1 2 Connectivity with GScaper Hunua Her ums endrende 7 1 1 3 Send Receive SMS EE 8 2 GPRS General Packet Radio Service Functionality rrrarrrnnnnnvovnnnnnvnvennnnvnvnnnnnnnvennnnnnvennnnnnvennnner 9 2 1 GPRS Contiguration ET 9 2 2 Connectivity with Cecape nen 12 2 3 Configuring KEPServerEX for Data Exchange 13 24 Send Receive SMS einen nen iae TAANE aae AEAEE Eaa a EENE TAANE S 19 Data Transmission Settings srrnsnvrnnnvnnnnnvnnnnnnnnnvvnnnnvnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnennnnnnnnnnnnnnnnnnnnnnnnnnnnnnneenn 19 A Data Transfer using Communication BlockS errnsnvrnnnvnnnnnvnnnnnnnnnnnnnnnvennnnvnnnnnnnnnnvnnnnnnnnnnnnn
40. lpful to tip it at an angle so the connector on the COM board passes through the opening on the back cover 5 Place the screw back into the hole and turn the screw slowly counter clockwise until it clicks into the threads This prevents the screw from being cross threaded Now turn the screw clock wise until the cover is firmly secured Repeat this process for all four 4 screws 001XLE058 INSTALL COM BOARD BY ALIGNING CONNECTOR AND SEATING BOARD FULLY ON STANDOFFS REMOVE FOUR SCREWS AS SHOWN AND REMOVE BACK COVER DISCARD BACK COVER ONLY DO NOT DISCARD SCREWS INSTALL NEW BACK COVER RE USING THE FOUR SCREWS Figure 1 Removing Back Cover of the XLE Figure 2 Installing the COM Board in the XLE With the GSM modem option card the Data Exchange and Connectivity with Cscape can be established in the following two ways e GSM connectivity e GPRS connectivity Cscape configuration is explained in the following sections 1 GSM Functionality e GSM data call can be used for e Peer to peer communication between two devices for exchanging register data e Connect to Cscape for downloading uploading and debugging the application e Send receive configured SMS messages e GSM data call connects at 9600bps only e GSM data call requires data call enabled SIM Page 5 of 62 ECN 956 PAGE 6 GPRS GSM MODEM Configuration MAN4005 04 EN 1 1 GSM Configuration 1 1 1 Peer to peer communication e Horner
41. lpha gt lt scts gt lt tooa toda gt lt length gt lt CR gt lt LF gt data OK See Notes Memory location integer Status of message REC UNREAD REC READ STO UNREAD STO READ ALL destination address alphanumeric representation of lt da gt or lt oa gt corresponding to the entry found in MT phonebook Service center time stamp Address Type of Address octet in integer format Length of message in octets Above settings for lt stat gt assume AT CMGF 1 text mode For AT CMGF 0 PDU mode the following lt stat gt values are supported 0 1 2 3 4 Parameters in may or may not be reported dependent upon the setting of AT CMGF 0 Rec Unread 1 Rec Read 2 Sto Unsent 3 Sto Sent 4 ALL ECN 956 PAGE 52 GPRS GSM MODEM Configuration MAN4005 04 EN 12 AT CMGR Read Message AT CMGR Command Function Command Functional Group Command Format Query Response Write Format Response Read Format Response Execution Format Response Parameter Values lt stat gt lt 0a gt lt scts gt lt tooa gt lt fo gt lt pid gt lt SCa gt lt tosca gt lt length gt Notes Read Message Read stored messages Short Message Services N A N A N A N A N A N A AT CMGR lt index gt CMGR lt stat gt lt oa gt lt scts gt lt tooa gt lt fo gt lt pid gt lt sca gt lt tosca gt lt length gt lt CR g
42. n AREG 2 If PIN is enabled the modem will not complete the auto registration process until after the PIN has been entered AT CPIN 27 HOSTIF Configure Host to Modem Interface HOSTIF Command Function Command Functional Group Command Format Query Response Write Format Response Read Format Response Execution Format Response Parameter Values lt host interface gt Page 60 of 62 Configure Host to Modem Interface This command allows the user to configure the desired Host to Modem interface This parameter determines the behavior of the ATD command Enfora Specific AT HOSTIF 0 3 AT HOSTIF lt host interface gt OK AT HOSTIF HOSTIF lt host interface gt N A N A 0 Establish normal external Dial up networking modem to network connection 1 Establish UDP PAD session Upon establishment of a network activation a CONNECT message will be displayed No Carrier or error will indicate failed or terminated UDP PAD session 2 Establish TCP PAD session Upon establishment of a network activation a CONNECT message for at active 1 or a LISTEN message for at active 0 will be displayed No Carrier or error will indicate failed or terminated TCP PAD session 3 Establish non GPRS PPP connection ECN 956 MAN4005 04 EN GPRS GSM MODEM Configuration PAGE 61 INDEX A ABOUT PROGRAMMING EXAMPLES sssssnesnaeenieeneeaee 2 Add Contact Additional
43. nectivity with Cscape over GPRS can be established only when the modem is configured in server mode en Configure gt gt e Open the Add Target dialog by selecting Tools Editor Options Communications Port and then click from the Main Menu Editor Options EG Editor Options Ladder Ladder Numbering Colors Communications Port Comm Ports Target IP Address 164 112 154 168 Timeout 25000 Se COMS cesta AA ACOM10 GPRS Mode v ACOM11 zl Cancel Apply Help e Select Ethernet as the communications port COMM Ports and GPRS mode e Specify modem IP address and timeout e The communication timeout for Cscape should be increased to take care of the GPRS latency typically 30 to 40 seconds e The status of the connection will be updated in CsCAN Status Register specified in the GSM GPRS SMS Configuration window Various status values are described in the Section 4 3 Modem Status Register Value Definitions table The same table can be used for the CsCAN Status Register When the modem status value is 6 communications can be established Page 12 of 62 ECN 956 MAN4005 04 EN GPRS GSM MODEM Configuration PAGE 13 2 3 Configuring KEPServerEX for Data Exchange KEPServerEX is the latest generation of Kepware s OPC server technology The KEPServerEX gets the device and system data It then translates it into a standard communication protocol OPC or DDE that all clients can receive and unders
44. nfiguration Service Provider IV Manual Network Selection IV Get Service Provider Name from Register Address ween Name v m Signal Strength Register Address MBIT Name v CsCAN Status Register Address Bit Name DI r Data Transmission Settings IV Disconnect and Service SMS when connection is Idle Idle State Timeout 50 10 240 Seconds coms Select the checkbox Disconnect and Service SMS when connection is Idle to enable the Idle State Timeout Enter the time duration from 10 to 240 seconds Page 19 of 62 ECN 956 PAGE 20 GPRS GSM MODEM Configuration MAN4005 04 EN 4 Data Transfer using Communication Blocks For exchanging data over GSM GPRS communications block are required to be configured as follows 4 1 Open Port Open Comm Port MJ1 Com Option When using the internal GSM modem Mode should be specified GSM Quad The Protocol can be selected as CsCAN Generic or Modbus For Modbus Slave or Master block should be used Page 20 of 62 ECN 956 MAN4005 04 EN GPRS GSM MODEM Configuration PAGE 21 4 2 Modem Control Block Note To use modem control block the com port is to be opened first e Auto Dial modem Option e GSM data call o Modem Control block with Auto Dial option is used for calling remote device server o Remote device data number must be entered in Number text box o Select type of dialing i e Pulse
45. nnnvnnnnnnn 20 AAS Open POM EE 20 d Modem Control BlO CK eaaet a a EAI ERATE E EAE EE ALERE AR 21 4 3 Modem Status Register value definitions rs440srsnnennnnennnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn 24 4 4 ASIQMalvStre EE EE 25 5 SMS Communications 1 2 ENEE EEN 26 Bl COVO N erai eerie try EA ertr ees irr trr ce trier eeh de 26 e Elle Ee IT RTE 26 Using SMS Communications with Horner Controllers ccccccceceeeeeeeeeeeeeeeeeeeaeeeeaeeseeeeesaeeseeeeeeeeee 26 E e Tute TE Le EEN 27 5 2 1 GSM Modem Settings SMS Confiouraiton nn 28 52 2 COM Port E ne EE 31 5 2 3 SMS Target Directory Settings 0rsnnsrsnnnnnnnnnnnnnnannnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn nn 32 5 2 4 New Contact Information eenei rania ri E AER vaai apana ip Taai EE aE AUE AEN 32 5 2 5 Incoming Messages Settings RECEIVE Messages sent from Groups to the controller 34 5 2 6 Outgoing Messages Settings SEND Messages sent from the controller to Groups 36 5 2 7 SMS Message Confouration nenn 37 5 2 8 Insert Value Fields a de Sent GA aie at 38 5 2 9 SMS Send Message 39 5 2 10 Rules for SMS Send and Receive Messages 39 6 GPRS GSM Modem Specifications rrrnvrnnnnvnnnnnvnnnnnnnnnvnnnnnvnnnnnnnnnnvnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn 40 T Installation Sate ty esoe sine sah ih 41 8 Technical Support 22 41 ke e It E 42 EHM 42 B AT G mmand TEE 43 1 ATD AUER lr
46. ntication Username and Password continued Example Example of ASCII input parameters AT CGPCO 1 username password 1 AT CGPCO CGPCO 1 username password 1 PAP 80C023160101001608757365726E616D65087061 737 776F72648021 1001010010810600000000830600000000 Example of Hex input parameters AT CGPCO 0 80C023160101001608757365726E616D65087061 7373 776F 72648021 1001010010810600000000830600000000 1 Page 59 of 62 ECN 956 PAGE 60 GPRS GSM MODEM Configuration MAN4005 04 EN 26 AREG Auto Registration AREG Command Function Command Functional Group Command Format Query Response Write Format Response Read Format Response Execution Format Response Parameter Values lt state gt Notes Auto Registration This command sets the auto registration state of the modem Enfora specific AT AREG AREG 0 2 OK AT AREG lt state gt OK AT AREG AREG lt state gt OK N A N A 0 Autoreg off Autoreg on 2 Auto GPRS Activation on Power up for hostif 1 and 2 MT will perform GPRS activation and go into PAD data mode For Hostif 0 and 3 MT will perform GPRS activation but remain in AT command mode This command sets GMS registration state When set to 1 upon power on the modem will automatically register on the GSM network To set the modem to automatically attach to the GPRS network on power on see AT CGAATT command AT CGDCONT must be entered and saved before MT is placed i
47. numbers should be created Configure the following screen to build a directory Click Add Contact to add a member See the following screen New Contact Information Click Modify Contact if a member is already added in the directory To modify the member listing either double click the row or highlight the row and click Modify Contact The Modify Contact Information screen appears and is configured as the New Contact Information screen shown below e Click Delete Contact to remove a listing after highlighting the row 5 2 4 New Contact Information New Contact Information Fixed Maintenance Phone number Page 32 of 62 ECN 956 MAN4005 04 EN GPRS GSM MODEM Configuration PAGE 33 New Contact Information Enter or select a Group Name 1 It can contain characters A Z a z 0 9 and the _ underscore character 2 The first character must be A Z a z or the _ underscore character 3 Do not use spaces or special characters Group Name 4 Do not use two consecutive underscore characters Note In SMS configuration max 32 Group names can be configured Enter a phone number or enter a register where the phone number is stored e If you want to change the phone number at runtime you should enter a register address The register address points to the location where you can dynamically change the phone number without having to perform the SMS configuration procedures ag
48. o this command or modem fails to respond within 2 sec of sending this command CSQ Command Failed This command is used to get signal strength This bit is set if modem returns Error response to this command or modem fails to respond within 2 sec of sending this command COPS Command Failed This command is used to select and register to a GSM network operator This bit is set if modem returns Error response to this command or modem fails to respond within 2 sec of sending this command CPEE Command Failed This command CMEE is used to disable mobile equipment ME error indication This bit is set if modem returns Error response to this command or modem fails to respond within 2 sec of sending this command ATE Command Failed This bit will be set if Echo off command to Modem returns Error or modem fails to respond within 2 sec of sending this command CSMP Command failed This bit will set if Set SMS text mode parameter command to Modem returns error or Modem fails to respond within 2 Sec of sending this command Status Bits for User Specific Initialization If command s fails in the user script a corresponding bit is set indicating failure For example Bit 1 is SE set when the first command in the script fails Bit 2 is set when the 2nd command in the script fails SMS Message Buffer Register Settings The Message Buffer Register holds the latest SMS message string sent or received by the controller An individual SMS message
49. odem on a known PLMN To read operator information AT COPS AT COPS 1 2 Xxxxx COPS 2 Voicestream Vstream 31022 L PLMN L PLMN Numeric format Short format Manually register Long format State current Page 46 of 62 ECN 956 MAN4005 04 EN GPRS GSM MODEM Configuration PAGE 47 5 AT CPIN Enter PIN AT CPIN Command Function Command Functional Group Command Format Query Response Write Format Response Read Format Response Execution Format Response Parameter Values lt code gt Page 47 of 62 Enter PIN Set command sends to the ME a password that is necessary before it can be operated SIM PIN SIM PUK PH SIM PIN etc If no PIN request is pending no action is taken towards ME and an error message CME ERROR is returned to TE If the PIN required is SIM PUK or SIM PUK2 the second pin is required This second pin lt newpin gt issued to replace the old pin in the SIM Phone Control AT CPIN OK AT CPIN lt pin gt lt newpin gt AT CPIN CPIN lt code gt OK or CME ERROR lt err gt N A N A READY ME is not pending for any password SIM PIN ME is waiting SIM PIN to be given SIM PUK ME is waiting SIM PUK to be given PH SIM PIN ME is waiting phone to SIM card password to be given PH FSIM PIN ME is waiting phone to very first SIM card password to be given PH FSIM PUK ME is waiting phone to very first SIM card unblocking password
50. olicited result codes when TA TE link is reserved 2 Buffer unsolicited result codes in the TA when TA TE link is reserved and flush them to the TE after reservation lt mt gt Receiving procedure for different message data coding schemes refer GSM 03 38 2 no class as in GSM 03 38 but use lt mem3 gt as preferred memory class 0 as in GSM 03 38 but use lt mem3 gt as preferred memory if message is tried to be stored class 1 as in GSM 03 38 but use lt mem3 gt as preferred memory class 2 as in GSM 03 38 class 3 as in GSM 03 38 but use lt mem3 gt as preferred memory message waiting indication group discard message as in GSM 03 38 but use lt mem3 gt as preferred memory if message is tried to be stored message waiting indication group store message as in GSM 03 38 but use lt mem3 gt as preferred memory as lt mt gt 0 but send indication if message stored successfully 2 no class route message to TE class 0 as in GSM 03 38 but also route message to TE and do not try to store it in memory class 1 route message to TE class 2 as lt mt gt 1 class 3 route message to TE message waiting indication group discard message as in GSM 03 38 but also route message to TE and do not try to store it in memory message waiting indication group store message as lt mt gt 1 3 class 3 route message to TE others as lt mt gt 1 0 No CBM indications are routed to the TE lt bm gt 1 If CBM is stored into ME TA indicati
51. on of the memory location is routed to the TE using unsolicited result code CBMI lt mem gt lt index gt New CBMs are routed directly to the TE using unsolicited result code Class 3 CBMs are routed directly to TE using unsolicited result codes defined in lt bm gt 2 If CBM storage is supported messages of other classes result in indication as defined in lt bm gt 1 lt ds gt 0 No SMS STATUS REPORTs are routed to the TE 1 SMS STATUS REPORTs are routed to the TE using unsolicited result code lt bfr gt 0 TA buffer of unsolicited result codes defined within this command is flushed to the TE when lt mode gt 1 2 is entered TA buffer of unsolicited result codes defined within this command is 1 cleared when lt mode gt 1 2 is entered Page 50 of 62 ECN 956 MAN4005 04 EN GPRS GSM MODEM Configuration PAGE 51 11 AT CMGL List Messages AT CMGL Command Function Command Functional Group Command Format Query Response Write Format Response Read Format Response Execution Format Response Parameter Values lt index gt lt stat gt lt do oa gt lt alpha gt lt scts gt lt tooa toda gt lt length gt Notes Page 51 of 62 List Messages List messages from storage Short Message Services AT CMGL CMGL REC UNREAD REC READ STO UNSENT STO SENT ALL OK N A N A N A N A AT CMGL lt stat gt CMGL lt index gt lt stat gt lt da oa gt lt a
52. onfiguration MAN4005 04 EN operator lt stat gt long and short alphanumeric format of the name of the operator and numeric format representation of the operator Any of the formats may be unavailable and will then be an empty field The list of operators comes in the following order Home network networks referenced in SIM and other networks Command Functional Network Information Group Command Format Query AT COPS Response COPS 2 31022 3 310380 OK Write Format AT COPS lt mode gt Response L lt format gt oper gt OK or CME ERROR lt err gt Read Format AT COPS Response COPS 0 OK Execution Format N A Response N A Parameter Values 0 automatic lt oper gt field is ignored 1 manual lt oper gt field shall be present 2 deregister from network set only lt format gt for read command COPS do not attempt 3 registration deregistration lt oper gt field is ignored this value is not applicable in read command response 4 manual automatic lt oper gt field shall be present if manual selection fails automatic mode lt mode 0 is entered 0 long format alphanumeric lt oper gt lt format gt 1 short format alphanumeric lt oper gt 2 numeric lt oper gt GSM Location Area Identification Number lt oper gt operator in format as in per lt format gt lt stat gt 0 Unknown 1 Available 2 Current 3 Forbidden Example To manually register the m
53. oos e st zb is Modbus Ethernet MM xte 0 2 Date Time User Name Source Event i 07 08 2007 17 51 45 Default User KEPServerEx SattBus device driver loaded successfully 07 08 2007 17 51 45 Default User KEPServerEx Siemens 57 200 device driver loaded successfully 07 08 2007 17 51 45 Default User KEPServerEx Siemens TCP IP Unsolicited Ethernet device driver loaded successfully e Torun OPC client select Launch OPC Quick Client from Tools on the KEPServerEx main menu lt KEPServerEx C Program Files KEPServerEx Project File Edit View Users GME Help Event Log gt Modbus Ethernet m XLe ID 2 Launch OPC Quick Client Launch DCOM Configuration Launch Data Exchange Client Launch Data Logger Configuration Create Startup Shortcut Options When a connection is made the status register specified in the modem block will change to a 1 Test the data exchange Page 18 of 62 ECN 956 MAN4005 04 EN GPRS GSM MODEM Configuration PAGE 19 2 4 Send Receive SMS SMS configuration for sending receiving SMS is detailed in section 5 2 3 Data Transmission Settings If SMS needs to be serviced when a GSM GPRS connection is active then additional Data Transmission Settings are needed Select the Enable SMS Configuration checkbox with GSM or GPRS GSM GPRS SMS Configuration I Enable GSM Data Connection V Enable GPRS Data Connection GPRS Configuration V Enable SMS Configuration SMS Co
54. or Tone o Configure the status register to show the status of the connection The status values are detailed in section 4 3 e GPRS connectivity o Modem Control block with Auto Dial option is used to connect to remote server client using the GPRS service o Remote server IP and Port address must be entered in Number text box in the format IP Address Port o In case of device acting as client the IP address of the server needs to be mentioned here o In case of device acting as server the IP address can be given as 0 0 0 0 to accept connection from any client or IP address of the client can also be mentioned to accept connection only from that specific IP address for added security o Select type of protocol UDP or TCP over IP o Configure the status register to show the status of the connection The status values are detailed in section 4 3 o Ifthe modem ladder block input is enabled then the modem tries establishing connection with a remote server in client mode or waits for a connection request from the client in server mode Part MJ1 Com Option sl Operation JautoDil x Pulse UDP Tone TCP Number IP Port Address f10111 6411000 ts Use Register for Phone Number IP Port Status Address amp RO050 Name DI Client Mode Server Mode Cancel Page 21 of 62 ECN 956 PAGE 22 GPRS GSM MODEM Configuration MAN4005 04 EN e Auto Answer modem Option e GSM data call o Modem Control block wit
55. our script in this box Initialization Script Page 30 of 62 ECN 956 MAN4005 04 EN GPRS GSM MODEM Configuration PAGE 31 5 2 2 COM Port Settings Note Before configuring this screen you need to configure the Modem Initialization Settings screen The type of Modem Initialization used affects various settings that are available on the COM Port screen such as the Port Baud Rate and Mode After configuring the Modem Initialization Settings configure the port to be used for communications COM Port Configuration EN Pot mstsComOpion xl Baud Rate s20 d Parity None Data Bits Stop Bits Handshake Mode Je Afs Cancel The following selections must match the default settings of the modem you are using COM Port Configuration Settings Select the desired port The number of ports varies depending on the controller used For an XLe XLt XL6 internal modem MI should be selected Select the connection mode The drop down list changes according to the port selection For an XLe XLt XL6 internal modem this selection should be GSM QUAD For an external GSM Modem RS 232 should be selected Select Baud Rate Parity Data Bits Stop Bits and Handshake settings as per the default settings Comm Settings of the modem being used Page 31 of 62 ECN 956 PAGE 32 GPRS GSM MODEM Configuration MAN4005 04 EN 5 2 3 SMS Target Directory Settings Before creating Send or Receive messages a directory of phone
56. portunity to fix the same Page 39 of 62 ECN 956 PAGE 40 GPRS GSM MODEM Configuration MAN4005 04 EN 6 GPRS GSM Modem Specifications HE GSM04 SPECIFICATIONS Antenna Interface Female SMA Frequency bands EGSM 900 DCS 1800 and PCS 1900 GSM 850 capability GSM GPRS features Provides for all GSM GPRS authentication encryption and frequency hopping algorithms GPRS Coding Schemes CS1 CS4 supported supported Multi Slot Class 10 4RX 2TX Max 5 Slots GCF Type Approval PTCRB Type Approval FCC Certification Part 24 RTTE CE European Community Certification IC Industry Canada Approval Mobile originated and mobile terminated SMS messages up to 140 bytes or up to 160 GSM 7 bit ASCII characters Reception of Cell Broadcast Message SMS Receipt acknowledgement GSM GPRS Circuit Switched Data Transparent amp Non transparent up to 9 6 Kbps Functionality Voice EFR FR HR Supports Unstructured Supplementary Service Data USSD Multi Slot Class 10 Supported 4Rx 2TX 5 Slot Max PBCCH PCCCH Supported 3 V Mini Subscriber Identity Module SIM compatible Size Lx W 82 3 mm x 34 6 mm x 3 1 mm Weight Less than 80 grams 0 C to 60 C Operating 10 C to 85 C Storage 5 95 70 kPa to 106 kPa 400 m to 3000 m Frequenc Power Class Transmit Power 1900 MHz GSM Power Class 1 1 W conducted power maximum 30 dBm 2 dB measured at the Transmit Power 1800 MHz antenna port 850 MHz 2 W conducted power maximum 33 dBm
57. racter is OD Carriage return ECN 956 MAN4005 04 EN GPRS GSM MODEM Configuration PAGE 57 22 PADTO PAD Timeout Value PADTO Command Function Command Functional Group Command Format Query Response Write Format Response Read Format Response Execution Format Response Parameter Values lt PAD timeout gt 23 DP Dial Command for UDP PAD DP Command Function Command Functional Group Command Format Query Response Write Format Response Read Format Response Execution Format Response Parameter Values lt IP_ADDRESS gt lt UDP Port Number gt Notes Example Page 57 of 62 PAD Timeout Value This command allows the user to query set the PAD timeout value Data will be forwarded to the PAD destination even if the PAD block size has not been reached if lt pad timeout gt period has elapsed since the last PAD character was received from the local host Enfora Specific AT PADTO PADTO 0 65535 OK AT PADTO lt PAD timeout gt OK AT PADTO PADTO lt PAD timeout gt N A N A The number of tenths of seconds to wait for the receipt of more PAD data before forwarding the currently accumulated PAD buffer to the PAD destination A value of zero disables the PAD timeout feature If the PAD timeout feature is disabled no data will be forwarded to the destination until either an enabled forward character is received or the selected PAD buffer size is reached 50 5 seconds
58. ration r SMS Message Configuration COM Port Configuration Outgoing Messages Modem Initialization Incoming Messages OK Cancel Status Register Settings Enter the starting register location to indicate the status of the SMS communication This is a block of four Address registers that are consecutive in memory For example if you are using R31 R34 you need to enter the starting register address as R0031 Enter or select an UO Name The Status Register contains a status bit indicating the condition of the SMS communication The following table contains the meaning of each status bit SMS Status Bits Description Bit 13 Receive response failed Set within 10 seconds if Read SMS command fails Bit 14 Initialization Failed Set after 1 min of entering into RUN mode if Modem initialization fails Bit 15 Transmit Failed Set within 10 seconds if SMS Transmit fails Bit 16 Communication Failed Set within 10 seconds if communication with modem fails Bit 17 Bit 24 Bit Error Rate value See section 4 4 for details Updated within 30 sec after entering into RUN mode Bit 25 Bit 32 Receive level value See section 4 4 for details Updated within 30 sec after entering into RUN mode Count is incremented whenever a message is received from BIS EN Invalid message count not configured sender or in not configured message format e Incremented every time when send Receive of SMS fails It MB re E
59. s to this source port will be processed as incoming PAD data This port is also used as the source port for all data sent to the PAD destination This value must be different than the UDPAPI port Enfora Specific AT PADSRC PADSRC 0 65535 OK AT PADSRC lt PAD source port gt OK AT PADSRC PADSRC lt PAD source port gt N A N A PAD source port is used as the source port in all outgoing PAD data messages The remote host must use this port number as the destination port for PAD data sent to the device TCP PAD State This command determines the active or passive state of the TCP PAD connection Enfora Specific AT ACTIVE ACTIVE 0 1 OK AT ACTIVE lt state gt OK AT ACTIVE ACTIVE lt state gt N A N A 0 TCP PAD passive server mode 1 TCP PAD active client mode If passive is chosen the PAD will be in server mode and listen for inbound TCP connection requests If active is chosen the PAD will be in client mode and will initiate a connection based on the ATDT command or if atd 99 is used to initiate a GPRS connection the values populated in AT PADDST A value of 0 indicates passive server mode of operation A value of 1 indicates active client mode of operation ATDT will be used to initiate the passive server mode functionality If ATDTXxx XXX XXX XXX XXXX IS used it will override the passive mode and replace the AT PADDST parameters as it does in UDP PAD mode ECN 956 PAGE 56 GPRS GS
60. t lt LF gt lt data gt OK Status of message Rec Read Rec Unread Sto Unsent Sto Sent Originating address Service center time stamp Originating address type of address First octet Protocol identifier Service center address Type of address Length of message in octets The above parameters are for text mode 13 AT CMGS Send Message Message Sending and Writing Commands AT CMGS Command Function Command Functional Group Command Format Query Response Write Format Response Read Format Response Execution Format Response Parameter Values lt da gt lt mr gt Notes Page 52 of 62 Send Message Sends message from the TE to the network Short Message Services N A N A N A N A N A N A AT CMGS lt da gt lt toda gt Enter text lt cntl Z gt CMGS lt mr gt OK Destination address Message reference The example provided is for text mode AT CMGF 1 An in depth understanding of PDU messages is required for PDU mode ECN 956 MAN4005 04 EN GPRS GSM MODEM Configuration PAGE 53 14 AT CMGD Delete Message 2 5 4 4 AT CMGD Command Function Command Functional Group Command Format Query Response Write Format Response Read Format Response Execution Format Response Parameter Values lt index gt Notes 15 CGDCONT Define PDP Context CGDCONT Command Function Command Functional Group Command Format Query Response Write Format Response R
61. tand The following dialog gives details about the version of KEPServerEX with which the GPRS connectivity has been tested About KEPServerEx A KEPware Enhanced OPC DDE Server V4 264 401 U Copyright 1996 2007 Kepware Inc Versions To configure KEPServerEX a new channel is to be configured followed by a new device and tags for data mapping Create a new channel by selecting New Channel from the Edit drop down on the KEPServerEX main menu View Users Tools Help Di ER New Channel New Device Alias Map Cut CtrlH X Copy Ctrl C Delete Del Properties Page 13 of 62 ECN 956 PAGE 14 GPRS GSM MODEM Configuration MAN4005 04 EN e After selecting name choose the Modbus Ethernet option from the Device driver drop down New Channel Device Driver Select the device driver you want to assign to the channel The drop down list below contains the names of all the drivers that are installed on your system Device driver a8 Bulletin 300 D a e Select the Enable Diagnostics check box and continue with other default settings Page 14 of 62 New Channel Device Driver Select the device driver you want to assign to the channel The drop down list below contains the names of all the drivers that are installed on your system Device driver Modbus Ethernet z IV Enable diagnostics ma DS zl ECN 956 MAN4005 04 EN GPRS GSM MODEM Configuration
62. th OVR F3 Insert Char OK Cancel Page 37 of 62 ECN 956 PAGE 38 GPRS GSM MODEM Configuration MAN4005 04 EN An event is needed to trigger a SMS communication from the controller to the member s of a Group Enter a bit reference in the Address field that when set to HIGH causes the SMS Trigger Variable Settings message associated with the trigger to be sent to the specified Group member s The application code should make the bit high It will be made low by the firmware once the SMS send request is serviced An I O name can be entered or selected in the Name field Message Attributes Enter or select the group that the SMS message is sent to Messages can contain text and register data values that approved group members can read and write into the controller s data registers at runtime See Rules for Send and Receive Messages SMS Message Configuration e The text of the message is entered starting in the upper most left block of the text input field shown in green In order to edit add register data values click F2 Edit Field button and configure the Insert Value Field screen shown below 5 2 8 Insert Value Field A Insert Yalue Field EG Value Variable Settings Address 22 1 Register Width fis Bits D Name D Other Settings Display Format INT v Decimal Position RE Number of Digits 5 FillZeroes C LeftJustified Right Justified Cancel
63. this mode the OCS behaves as server and accepts connection requests from specified client Client IP addresses are to be specified in modem ladder block input e For added security the IP address for Cscape connectivity with a single device can also be specified Enter the IP address of the device to connect to for CSCAN connectivity directly in CsCAN Source IP Addr field or select the Get Source IP Address from Register checkbox and specify a R register Address 32bit When the IP address is mentioned Cscape will connect to only that address and will reject connection requests from all other IP addresses Note If the CsCAN Source IP Addr is 0 0 0 0 then the connection from any address will be accepted Note Server mode of operation is supported only when SIM with a static IP address or SIM having semi static IP address with VPN is used e CsCAN Source Port When the modem is configured in server mode the incoming connection request from any client will be accepted only via this port address For Cscape connectivity this should be configured as 10001 This can be set to any value for peer to peer and data exchange provided the Server Client port number is same If Cscape connectivity is also required with data exchange peer to peer connectivity set this port to 10001 Transmission of GPRS packet can take place on reaching packet size or occurrence of timeout or when forward character is found in the internal transmit buffer Block Siz
64. tna e 20 Open Port a Outgoing Messages Settings enenneennennnnen 39 GET LEN ROR RE 28 Pally aiheina mekke see Rn Peer to peer communication arrnsnvnnnvrnnnvnnnnrennvnnnvrennvnnsvenrn Phone Number Program and GSM GPRS Config Protocol eege ebe Sel ECN 956 PAGE 62 GPRS GSM MODEM Configuration MAN4005 04 EN Register Value senennnennannonernannransnnonnannsnnsenenavnranneenenr Rules for SMS Send and Receive Messages Select BaudRateiu s nennen 34 Send Receive SMS Short Message Service Siemens TC Modem Initialization S M CA A sera SIM Pin Code SMS confiouration SMS Configuration ae nahe SMS Configuration Parameters SMS functionality is Active u SMS Message Buffer Register Gettings 31 SMS Message Configuration ee SMS Security Measures SMS Status Bits SMS Target Directory Settings s pe Status Bitss iLnn AAEE TETE Page 62 of 62 Status Bits for Siemens Modems amp Internal Modem 31 Status Bits for User Specific Initialization 31 Status Register Settings 30 status values 13 tee 34 T Tag Properties unnarennet 19 TCP IP 18 Technical Suppott 44 Trigger Variable Settings nennen 38 U ECN 956
65. ty md GSM Functionality 5 GSM Modem aD GSM Modem Settings SMS Contouraton ee 30 GSM GPRS SMS Configuration window 6 9 13 Page 61 of 62 H Handshake au Seege nna Annika nie a 34 HE GSMO4A sense nem 5 l Idle Stat Timeout en 21 Incoming Messages Settings 37 Initialization Status Register Settings cK Initialize modem Option 25 Insert Value Field 38 41 Installation Safety sorrnrnnrnnrornrnnrrenrnnrnrnrrnvnrnernvnrnnrneenne 44 INSTALLATION PROCEDURE sssssssneseesnnennensrnrrnsrrerrerneee 5 Internal Modem Initialization orerrrrrrronrrrrrrrrrrrnnnnrrenr 33 K kEbGenvert 2 15 17 L LIMITED WARRANTY AND LIMITATION OF LIABILITY 2 M Message Attributes uuussensnnennnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn Message Buffer Register Settings Mobile Communications Modbus nenn Modem Command eucceecded Modem command syntax error Modem Control Block Modem detected no lost carrier Modem in Listen Server Mode Moden Initialization Settings Modem is connected Modem is inactive Modem is not responding Modem is PHimgoing Modem Status Register value definitions Modify Contact 35 36 N New Contact Intormatton 35 36 New Device New Ta PE iaa igina ihanan ni OPC Quick Client easan a
66. ules for Send and Receive Messages SMS Message Configuration The text of the message is entered starting in the upper most left block of the text input field shown in green In order to display register data values click F2 Edit Field button and configure the Insert Value Field screen shown below Insert Yalue Field xi Value Variable Settings Address pi Register Width fis Bits DI Name DI Other Settings Display Format INT Decimal Position jo Number of Digits 5 I FillZeroes C Left Justified e Right Justified Cancel Insert Value Field Enter a register reference where data embedded in the received message will be stored Select Value Variable Settings Register Width Select or enter the data type in the Display Format field In the Decimal Position field click the position of the decimal point Click the number of digits in the Number of Digits Example xxxxx shows that there is no decimal and the total number of digits is 5 Other Settings If there had been a decimal point in the example the decimal would have counted as one digit and would be included as part of the total number of digits Click the Fill Zeroes box and the Left Justified or Right Justified box if desired Page 35 of 62 ECN 956 PAGE 36 GPRS GSM MODEM Configuration MAN4005 04 EN Click OK and you will be returned to the SMS Configuration screen If satisfied with the message click OK
67. un Le DEE EE 43 2 AT CBST Select Bearer service Ivpe 44 3 AT CREG Network Registration Info cccceeeeceeeeeeeceeeeeeeeeeeeeeeeeaeeeeeaaeeeeeeeseaeeesaeeeeaaeseeeeeeaas 45 4 AT COPS Operator Selection urrrrnannrnnnnnvnrrrrrnnnrrnnnnvnnenrennnnrnnannnnnenrnnnnrnnannvnnnnvenenrrnennnnsennene 45 5 ATCPIN Enter PIN edd een a ar u elle ae 47 6 AT CSQ Signal Quality and Bit Error Hate 48 LN RE Ee We TE GE 48 8 AT CSCA Service Center Address Message Configuration Commande sesesesesesreseeeees 49 9 AT CSMP Set Text Mode Parameters ccccccccccssscececssceeeeesseeeeseeeeeeessseseeeessneeeesseeeaeesseneaees 49 Page 3 of 62 ECN 956 PAGE 4 GPRS GSM MODEM Configuration MAN4005 04 EN 10 AT CNMI New Message Indication to TE Message Receiving and Reading Commands 50 11 AT CMGL List Messages 51 12 AT CMGR Read Message nenn 52 13 AT CMGS Send Message Message Sending and Writing Commande sesseesse esseen 52 14 AT CMGD Delete Message nenn 53 15 CGDCONT Define PDP Context nuuurseennsneennnnnennnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn 53 16 UDPAPI Modem API Address UDP API Commande sssnsssssnsnesnnennsnnesnnrnestnrnnsrnrnrsernrnn ne 54 17 PAD COMM ANS a ee ea rn ann ee an dr and drain 54 18 PADSRC PAD Source Port 55 19 ACTIVE TCP PAD Gate 55 20 PADBLK PAD Block Gtze ttnn ttnt nn tnt nn srann nran nn annn nn nEn 56 21 PADFWD PAD Forward Characher
68. understanding of PDU message and header formats ECN 956 MAN4005 04 EN GPRS GSM MODEM Configuration PAGE 49 8 AT CSCA Service Center Address Message Configuration Commands AT CSCA Command Function Command Functional Group Command Format Query Response Write Format Response Read Format Response Execution Format Response Parameter Values e SCH lt tosca gt Notes 9 AT CSMP Set Text Mode Parameters AT CSMP Command Function Command Functional Group Command Format Query Response Write Format Response Read Format Response Execution Format Response Parameter Values lt fo gt lt vp gt lt pid gt lt dcs gt Page 49 of 62 Service Center Address Set command updates the SMSC address through which mobile originated SMs are transmitted Short Message Services AT CSCA OK AT CSCA lt sca gt lt tosca gt CSCA lt sca gt lt tosca gt OK AT CSCA CSCA 12063130004 145 OK N A N A SMSC Address SC address Type of Address The service center address must be present to complete delivery of SMS Most SIMs are delivered from the service provider with a service center already programmed into the SIM A should be entered in front of the sms address but is not required by all operators Set Text Mode Parameters Selects additional values needed when the SIM is sent to the network or placed in storage Short Message Services AT CSMP
69. up Command Format Query Response Write Format Response Read Format Response Execution Format Response Parameter Values lt API IP gt lt API port gt 17 PAD Commands PADDST Command Function Command Functional Group Command Format Query Response Write Format Response Read Format Response Execution Format Response Parameter Values lt PAD destination IP gt lt PAD destination port gt Notes Page 54 of 62 Modem API Address This command allows the user to query set the API IP address and port number Any UDP packet received from a local host and addressed to the modem API IP and port will be intercepted and processed as a modem API request Any UDP packet received from a remote server and addressed to the modem API port will be intercepted and processed as a modem API request Enfora Specific AT UDPAPI UDPAPI 0 255 0 255 0 255 0 255 0 65535 OK AT UDPAPI lt API IP gt lt API port gt OK AT UDPAPI UDPAPI lt APIIP gt lt API port gt N A N A IP address for local API access Udp port number for local and remote API access PAD Destination IP Port This command allows the user to query set the PAD destination IP and port address Enfora Specific AT PADDST PADDST 0 255 0 255 0 255 0 255 0 65535 OK AT PADDST lt PAD destination IP gt lt PAD destination port gt OK AT PADDST PADDST lt PAD destination IP gt
70. ures As part of the SMS configuration a list of approved phone numbers and authorized messages that will be used for SMS communications must be provided Because the SMS feature allows users to read and write to controller registers it is important to follow good standard security practices to safeguard systems Whether users are allowed to write to registers or not ensure that security is in place to protect against unauthorized inputs to registers Page 26 of 62 ECN 956 MAN4005 04 EN GPRS GSM MODEM Configuration PAGE 27 5 2 SMS Configuration Cscape software is used to configure the necessary attributes in selected Horner controllers such as the XLe XLt XL6 to send and receive short text messages and data transfers using SMS communications After the SMS configuration is completed and downloaded into the controller approved group members can send and receive a variety of information such as register values and emergency alerts using cell phones and other mobile devices Refer to SMS Communications for more information on SMS and its capabilities e Select the desired controller This feature is available on OCS types XLe XLt and XL6 and requires Cscape 8 1 or higher for SMS configuration See How to Select a Controller Model if needed e Click Program and then select the GSM GPRS SMS Configuration tab on the Cscape main menu Cscape untitled1 File Edit Program Controller Debug Tools Screens Network Configuration
71. wnloading uploading and debugging the application using redirector software e GSM network for sending receiving configured SMS messages e peer to peer communications D Static SIM with VPN functionality is required Static IP SIM or Semi static IP SIMs with VPN are required for this functionality e GPRS service must be enabled in SIM Auto dial blocks of modem are required on both server and client See section 4 2 for details 2 1 GPRS Configuration Horner OCS firmware is designed to initialize the GSM modem to establish GPRS connectivity This configuration needs to be done for connectivity with remote server as well as for connectivity with Cscape e Open the GSM GPRS SMS Configuration by selecting Program GSM GPRS SMS Configuration from the Main Menu e Select the Enable GPRS Data Connection check box e Configure Service Provider Optional If checked the modem will get connected to the network provider mentioned here A register address can also be given here where the service provider name can be mentioned in registers If the register option is selected the service provider name should be terminated with a null Only the first part of the name of network service provider can also be mentioned i e instead of 02 IRELAND only 02 can also be mentioned e Configure a register address to store Signal strength Optional See section 4 4 for details e Configure Status register for CSCAN communication Optional See section 4 3
Download Pdf Manuals
Related Search
Related Contents
MINERSOL - Quimivisa MÓDULO DE CONTROL DE ASISTENCIA CFA 100 A+ Philips SatinPerfect Epilator HP6581/00 アップデートデバイスキットの使用方法(Windows Vista版) La mairie - Boulogne USER GUIDE IML = ∆ k Q P Handbuch ioCONTROLLER A PROFINET Copyright © All rights reserved.
Failed to retrieve file