1 / 17

GPRS functionality overview in Horner OCS

GPRS functionality overview in Horner OCS. Agenda. GPRS functionality Peer to Peer communication over GPRS CSCAPE connectivity over GPRS Data exchange using KEP server. (Eric) SMS over GPRS. GPRS functionality. GPRS is used to establish connectivity with remote server or client.

talasi
Télécharger la présentation

GPRS functionality overview in Horner OCS

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. GPRS functionality overview in Horner OCS

  2. Agenda • GPRS functionality • Peer to Peer communication over GPRS • CSCAPE connectivity over GPRS • Data exchange using KEP server. (Eric) • SMS over GPRS

  3. GPRS functionality • GPRS is used to establish connectivity with remote server or client. • GPRS is used for peer to peer communication. • SIM must be enabled for GPRS. • SIM card must have static IP address. Static IP: 10.111.64.2 Static IP: 10.111.64.1

  4. GPRS Connection Configuration in Horner OCS • Horner OCS firmware is designed to initialize GSM modem to establish GPRS connectivity. • GPRS in Horner OCS can be used for data exchange with other PLC(OSC) or for Cscape connectivity • In order to establish GPRS connectivity using Horner OCS following settings needs to be done. • Enable GPRS transmission mode in GSM/GPRS configuration window. • Configure different GPRS parameter under ‘GPRS Configuration’ • If SMS is to be serviced when GPRS connection is active then additional ‘Data Transmission Settings’ needs to be done. • Additional ladder program must be written to connect to remote server over GPRS service using ‘communication operation’ ladder blocks.

  5. GPRS Connection Configuration in Horner OCS – GPRS Config • ‘GPRS Configuration ’ needs to be done before establishing GPRS connectivity with server which are as follows. • User Name: GPRS network user name .Mandatory field to connect to GPRS network. • Password: GPRS network password. Mandatory field to connect to GPRS network. • APN: Access Point Name for GPRS access. • GPRS Mode : Client or Server Mode of operation • CsCAN Source IP Address :IP address of client for Cscape connectivity. • CsCAN Source Port: Send-receive TCP/UDP port address of the modem. • Block Size: GPRS packet size in number of bytes. • Timeout Period: Packet timeout in 100ms.. • Either reaching Packet Size (block size) or occurrence of timeout will result in transmission of GPRS packet to destination address. • Forward Character: Transmission of GPRS packet can take place on reception of PAD character configured in this window. This is Hex value of ASCII character. • For e.g.: In above window ‘0D’ is configured, which results in transmission of GPRS packet when Line Feed character is received. • Send Forward character: If enabled then forward character will be sent together with GPRS packet.

  6. GPRS modem status register value definitions Modem Status Register value definitions

  7. Cscape connectivity over GPRS • GPRS configuration is required in order to support GPRS as default programming port. • Configure different GPRS parameter in ‘GPRS configuration window’ (as shown). i.e. User Name, Password and APN address. Only GPRS Server mode will support Cscape connectivity. Provide IP address of client (i.e.Cscape console) or 0.0.0.0 in CsCAN Source IP address. Provide CsCAN source port as 10001 (fixed in Cscape). • The connection status and signal strength are updated in register address provided in GSM/GPRS/SMS configuration. • Cscape connectivity can be established in both RUN and IDLE modes. • Modem ladder block in application program can override GPRS default programming port. i.e. Modem ladder block will have higher priority than GPRS default programming. If modem ladder block is activated in Run mode, then it will disconnect active GPRS default programming port connection.

  8. Cscape connectivity over GPRS – System Menu • Selecting GPRS as default programming port under OCS System Menu -> Set Serial Ports -> Dflt Pgm Port to ‘GPRS’ put modem in Listen Mode. MAIN MENU SUB-MENU View I/O Slots View Protocols Set Fkeys Mode Set Time/Date Set Screen Removable Media (ESC to Exit) MJ1-232 MJ1 RS485 Bias No MJ2 RS485 Bias No Dflt Pgm Port MJ1-232 GPRS Set Serial Ports • The connection status is updated in CsCAN status register.

  9. Cscape connectivity over GPRS • Connecting to remote unit over GPRS requires VPN setup and running (as shown). • Check the allocated IP address for the VPN, it should be same as entered in CcCAN Source IP address field in GPRS configuration (as shown). If they are different then Cscape connectivity cannot be established. • Configure communication port in Cscape, enter static IP address of SIM, select GPRS mode and keep higher timeouts . • Establishing connection might take around 25 sec. • After establishing connection any of Cscape operation can be performed .

  10. SMS Over GPRS • Select ‘Enable SMS Configuration’ option in GSM/GPRS/SMS configuration to enable SMS over GSM/GPRS. • SMS will be serviced only if GSM/GPRS is inactive . While servicing SMS enabling GSM/GPRS ladder block or switching to GSM/GPRS default programming port will complete current SMS service and then switch to requested service. While servicing SMS module the GSM/GPRS status register will display status 5 (i.e. SMS active). • If SMS needs to serviced when there is no data exchange over current established GSM/GPRS connection, then the option in configuration ‘Disconnect and Service SMS when connection is idle’ needs to be selected. Which holds current GSM data call or disconnect GPRS connection to service SMS. While servicing SMS, GSM/GPRS status register value will be 5.

  11. Signal Strength Value Representation • GSM/GPRS signal strength value is updated in 16bit long register. The 16bit long value consists of 2 fields as below. • Bit 0 to 7 represents Bit Error rate • Possible values are • Value 0 to 7 • Value 99 (63h) : Not known or Not detectable. • Bit 8 to 15 represents Received Signal Strength Indication Possible values are 0 : -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.

  12. Modem control block to find left balance in Pre-Paid SIM • Modem control block with ‘Initialize Modem’option is used to get left balance string from service provider. • The service provider balance request string is entered in ‘Init String’ box together with CUSD AT command. As shown below in screen shot. +CUSD = 1,”*111#”,15 “*111#” is string to request left balance in SIM depends on service provider. • The response from service provider is stored in consecutive register locations starting from ‘Status Address + 1’.

  13. Data Exchange over GPRS • Data exchange can only be possible when OCS is in run mode and power to communication ladder block is enabled. • Open communication ladder block is used to open communication channel between OCS and internal GSM/GPRS modem, the setting will remain same as in GSM mode. • Protocols over GPRS can be used are CsCAN, Generic, Modbus RTU or Modbus ASCII. • GPRS service can be used in server or client mode. GPRS server mode and peer to peer communication over GPRS requires Static IP SIM card. • Initialize modem ladder block is used to send the specified Initialization String to the modem (Similar as in GSM mode).

  14. Data Exchange over GPRS – Client Mode • Data exchange over GPRS in client mode. • Select ‘Client Mode’ Radio button in GSM/GPRS/SMS configuration. • Use Modem ladder block with ‘Auto Dial’ option to connect to remote server. • Provide server IP address/port address as shown. • Select type of protocol required over IP i.e. TCP or UDP. • Specify Status register address. • Input power to Modem block will initialize GSM modem for GPRS communication and tries to connect to specified server. The connection status is updated in status register. Different modem status register values are listed in slide 12 . • Modem Output power gets enabled only after successful connection with specified server.

  15. Data Exchange over GPRS – Server Mode • Data exchange over GPRS in server mode. • Select ‘Server Mode’ Radio button in GSM/GPRS/SMS configuration. • Use Modem ladder block with ‘Auto Dial’ option to receive connection from specified remote client or any client (under VPN). • Provide client IP address or enter ‘0.0.0.0’ to accept connection request from any client (under VPN). • Select type of protocol required over IP i.e. TCP or UDP. • Specify Status register address. • Input power to Modem block will initialize GSM modem for GPRS communication and status turns ‘6’ indicating ready to accept connection request from specified client. Different modem status register values are listed in slide 12 • Modem Output power gets enabled when specified (any) client connects to server.

  16. Data Exchange over GPRS (Continued) • Sample ladder for data exchange over GPRS in server or client mode using Modbus RTU protocol • Peer to Peer communication over GPRS requires one unit in Server and other in client mode. The Server IP address should be static.

  17. Data Exchange over GPRS – KEP Server • Setting up KEP server for data exchange over GPRS using Modbus Protocol. • Setup and Run VPN (if present). • Run KEP server, open new channel and select Device Driver as Modbus Ethernet • Select Network adapter as VPN (if VPN is present). • Add device to given channel with device ID as unit ‘static IP address.Modbus Id’ • Keep higher connection timeout (e.g. 30sec) • Set Port number and select protocol as TCP/IP. • Insert Tags and run OPC client.

More Related