INSYS EDGE 5.0, GPRS 5.0 Series Series Manual

Page 1
INSYS GPRS/EDGE 5.0
serial
Manual
Page 2
Page 3
Copyright © September 10 INSYS MICROELECTRONICS GmbH
Any duplication of this manual is prohibited. All rights on this documentation and the devices are with INSYS MICROELECTRONICS GmbH Regensburg.
Trademarks The use of a trademark not shown below is not an indication that it is freely available for
use.
MNP is a registered trademark of Microcom Inc.
IBM PC, AT, XT are registered trademarks of International Business Machine Corporation.
INSYS ® is a registered trademark of INSYS MICROELECTRONICS GmbH.
Windows™ is a registered trademark of Microsoft Corporation.
Linux is a registered trademark of Linus Torvalds.
Publisher: INSYS MICROELECTRONICS GmbH Waffnergasse 8 D-93047 Regensburg, Germany Phone: +49 (0)941/56 00 61 Fax: +49 (0)941/56 34 71 E-mail: insys@insys-tec.de Internet: http://www.insys-tec.de
Date: Sep-10 Item: 31-22-03.136 Version: 1.1 Language: EN
Page 4
Contents
1 Scope of Delivery ................................................................................................ 7
2 General................................................................................................................ 8
2.1 Function Overview..............................................................................................................8
2.2 Application Example...........................................................................................................9
2.3 History...............................................................................................................................10
3 Utilization Notes............................................................................................... 11
4 Mounting .......................................................................................................... 12
4.1 Front Panel ........................................................................................................................12
4.2 Top.....................................................................................................................................13
4.3 Bottom ..............................................................................................................................13
4.4 HSComm GPRS ..................................................................................................................14
4.5 Initial Operation................................................................................................................15
4.5.1 Installation........................................................................................................................15
4.5.2 Driver Installation ........................................................................................................... 16
4.5.3 Entering the SIM PIN into the Device......................................................................... 17
4.5.4 Inserting the SIM Card...................................................................................................18
4.5.5 Checking the Settings.................................................................................................... 19
4.5.6 Checking the Field Strength of the GSM Signal......................................................20
4.5.7 Setting the GPRS APN (Access Point Name) Dial-In Parameters ........................21
4.5.8 Connection to the Application..................................................................................... 22
4.6 Operating Modes ..............................................................................................................23
4.6.1 Command Mode.............................................................................................................. 23
4.6.2 Connection Mode............................................................................................................ 23
5 Connection ........................................................................................................ 24
5.1 Logging into the GSM Network........................................................................................24
5.2 TCP Transparent (GPRS/EDGE Modem Emulation) ..........................................................27
5.2.1 General............................................................................................................................... 27
5.2.2 Defaults.............................................................................................................................. 28
5.2.3 Settings for Leased Line................................................................................................. 30
5.2.4 Settings for TCP Listen (Incoming TCP Connections)............................................. 32
5.2.5 Manual Connection Setup............................................................................................34
5.2.6 Automatic Connection Setup (Leased Line) .............................................................34
5.2.7 Connection Acceptance................................................................................................. 35
5.2.8 During the Connection.................................................................................................. 37
5.2.9 Termination......................................................................................................................38
5.3 GSM Data Connection (CSD Call)......................................................................................39
5.3.1 Connection Setup............................................................................................................ 39
5.3.2 Incoming Connections................................................................................................... 39
5.3.3 Termination......................................................................................................................40
5.3.4 Connection to Analogue Modems..............................................................................41
5.3.5 Connections to ISDN TAs............................................................................................... 41
5.4 Direct GPRS/EDGE Connection via PPP.............................................................................41
5.4.1 GPRS/EDGE APN (PDP context).................................................................................... 42
5.4.2 PPP Authentication Type............................................................................................... 42
5.4.3 GPRS/EDGE Connection Setup..................................................................................... 42
5.4.4 GPRS/EDGE Connection Termination........................................................................43
5.5 Setup and Disconnetction of a TCP Connection...............................................................44
5.5.1 Overview............................................................................................................................ 44
5.5.2 Connection Setup Possibilities.....................................................................................45
5.5.3 Connection Termination............................................................................................... 45
4 Sep-10
Page 5
Contents
6 Functions........................................................................................................... 46
6.1 Access Control...................................................................................................................46
6.1.1 Password Protection....................................................................................................... 46
6.1.2 Selective Call Answer ..................................................................................................... 47
6.2 Establishing a Connection by Callback.............................................................................49
6.3 Defined Termination of GPRS Connections for Incoming CSD Calls ("CSDPRIO")...........53
6.3.1 CSD Priority with Caller Authentication.................................................................... 54
6.3.2 CSD Priority without Caller Authentication.............................................................55
6.4 Automatic Logout and Login or Restart of the Device ....................................................55
6.4.1 Automatic Login at Restart........................................................................................... 56
6.4.2 Periodic Logout and Login or Restart of the Device............................................... 56
6.5 Automatic SMS Processing ...............................................................................................58
6.5.1 Activation.......................................................................................................................... 58
6.5.2 Reading Interval............................................................................................................... 59
6.5.3 Syntax................................................................................................................................. 59
6.5.4 Access Protection............................................................................................................ 60
6.5.5 SMS Storage Locations...................................................................................................61
6.6 Manually Dispatching SMS...............................................................................................61
6.7 Digital Inputs and Potential-Free Outputs.......................................................................62
6.7.1 Automatic SMS Dispatch Via Switch Input..............................................................62
6.7.2 Connection Setup via Switch Input............................................................................65
6.7.3 Transmitting Input States to Another INSYS GPRS/EDGE 5.0 serial (IO
Tunnelling)........................................................................................................................ 66
6.8 Remote Configuration ......................................................................................................71
6.9 Firmware Update ..............................................................................................................71
6.10 Virtual COM Port...............................................................................................................72
7 Short Description INSYS AT Commands ........................................................... 74
7.1 Overview...........................................................................................................................74
7.2 Availability/Storage..........................................................................................................77
8 GSM, GPRS, and EDGE General ......................................................................... 78
8.1 Application Notes .............................................................................................................78
8.1.1 GSM..................................................................................................................................... 78
8.1.2 GPRS and EDGE................................................................................................................78
8.2 Network Design ................................................................................................................79
8.3 TCP Transparent................................................................................................................80
8.4 IP Addresses/Accessibility ................................................................................................81
8.4.1 Fixed IP Address and VPN Connection....................................................................... 82
8.5 Data Rates.........................................................................................................................82
8.6 Quality of Service (QoS)....................................................................................................84
8.7 Delay Times.......................................................................................................................84
8.8 Calculation Examples for Data Transmission via GPRS ...................................................85
8.8.1 Application Description................................................................................................. 85
8.8.2 General Data Amount.................................................................................................... 86
8.8.3 Calculation Example....................................................................................................... 88
9 Sending SMS as Fax or E-Mail........................................................................... 90
9.1 SMS as Fax.........................................................................................................................90
9.2 SMS as E-Mail....................................................................................................................90
Sep-10 5
Page 6
Contents
10 GPRS Dial-In Parameters................................................................................... 91
11 FAQ .................................................................................................................... 92
12 Technical Data................................................................................................... 97
12.1 General 97
12.2 Mechanical Features.........................................................................................................97
12.3 Power Supply ....................................................................................................................98
13 Connections, Display and Control Elements .................................................... 99
13.1 Serial Interface................................................................................................................100
13.2 SIM Card 100
13.3 Internal Design................................................................................................................101
14 Standards and Directives ................................................................................102
15 Declaration of Conformity.............................................................................. 103
16 International Safety Instructions ................................................................... 105
16.1 Safety Precautions..........................................................................................................105
16.2 Compliance with FCC Rules and Regulations.................................................................106
6 Sep-10
Page 7
INSYS GPRS/EDGE 5.0 serial Scope of Delivery
1 Scope of Delivery
Before you begin with the initial operation, please check if all accessories are in­cluded in the box.
INSYS GPRS/EDGE 5.0 serial PC connection cable 9/9-pin (RS232 cable) User Guide
Please contact your supplier if the content is not complete. Please also check the modem for shipping damage. Please also refer to your supplier if anything is dam­aged.
Please keep the packaging material for possible future shipping or storage.
Optional accessories
GSM antenna: Wall-mounted antenna, magnetic base antenna or patch antenna CD-ROM with configuration software and manuals
7
Page 8
General INSYS GPRS/EDGE 5.0 serial
2 General
This manual describes two different devices, which differ in the supported mobile phone standards. These are
INSYS GPRS 5.0 serial INSYS EDGE 5.0 serial
These two devices are referred to as INSYS GPRS/EDGE 5.0 serial in this manual. The EDGE version also supports EDGE functions in addition to all GSM, SMS and GPRS functions. Both DIN rail devices for industrial applications have the follow­ing characteristics in common:
2.1 Function Overview
The INSYS GPRS/EDGE 5.0 serial is a DIN rail device for industrial applications. It has a compact design, a robust plastic housing and offers the following charac­teristics:
Quadband GSM engine for all four frequency ranges: 850 / 900 / 1800 / 1900
MHz (The INSYS GPRS/EDGE 5.0 serial can be used worldwide)
Before using the INSYS GPRS/EDGE 5.0 serial you should check the certi-
fication requirements in the country of deployment, see Chapter 14.
Integrated TCP/IP and PPP stack for transparent modem emulation via GRPS
(GRPS modem emulation)
GSM services: GSM/CSD data connection, SMS, GPRS Class 12, EDGE Class 12
(only INSYS EDGE 5.0 serial)
Support for the virtual COM port driver VCOM from INSYS MICROELECTRONICS
GmbH
Integrated TCP/UP stack for modem-compatible behavior with transparent
transfer of data from and to the serial interface (“TCP transparent”).
Active dialing of IP addresses or domain names with TCP connections to a
server
Accepts TCP connections ("TCP Listen")
Dedicated line function (leased line); design as CSD or TCP/IP possible; intelli-
gent re-dialing time-outs for TCP/IP cost cutting; configurable substitute ac­cess for redundant paths.
Callback function for incoming calls; callback as CSD or “TCP transparent" pos-
sible
Defined termination of GPRS connections for incoming CSD calls ("CSDPRIO") Access protection via phone number analysis (CLIP) for incoming CSD calls, in-
coming SMS, when starting a callback, and when the priority for CSD calls is set.
8
Page 9
INSYS GPRS/EDGE 5.0 serial General
Password protection for remote configuration and configuration via SMS Storage of the SIM card PIN enables automatic login into the GSM network af-
ter reset/restart
Timer-controlled logout and login into the GSM network or restart of the de-
vice, to prevent undefined login states in the GSM network
Automatic dispatch of a predefined SMS when the switch input is activated. Advance switch input functionality: Connection setup and "IO tunneling"
(transmitting the input states via a TCP connection)
Standard AT command set according to GSM 07.05 and GSM 07.07 Extended AT command set (INSYS AT command for additional functions) Automatic processing of incoming SMS for configuration or connection setup,
also during existing connections
Firmware update of the µ controller (locally and remote) Integrated SIM reader and external SIM interface for 3V / 1.8 V SIM cards Hardware watchdog Extended data formats for the serial interface Hardware and software handshake at the serial interface Field strength of the GSM network, status display of the INSYS GPRS/EDGE 5.0
serial
2.2 Application Example
Controller
GPRS/EDGE 5.0 serial
INSYS
Internet GPRS
Control center
9
Page 10
General INSYS GPRS/EDGE 5.0 serial
2.3 History
Version Additional functions
1.00
2.001
2.100
Redesign Further development:
Accepts incoming TCP connections ("TCP
Listen"), replacement destinations for AutoDial
Substitute access for TCP Leased Line Termination of GPRS connections for in-
coming CSD calls ("CSDPRIO")
Software handshake at serial interface Automatic dispatch of an SMS via switch
input
Extensions:
CSDPRIO without CLIP IO tunneling via TCP/IP Advanced IO functions: Connection setup
and SMS dispatch triggered via second switch input
2.200
PPP user name extended to 38 characters New baud rate 28800
Extensions:
Baud rate 14400 configurable Effect of ATV and ATQ also for self-defined URCs TSC/IPT telegram receive terminal Maintaining the GPRS/EDGE connection after
terminating a TCP/TSC/IPT leased line connec­tion
Incrementation of the delay between leased line
dial-up attempts
Remote configuration of the automatic call ac-
ceptance
AT commands AT+IPR, AT**BAUD,
AT**IPTTIMEOUT, AT**LLWAITRST, AT**LLWAIT, AT**S0 extended or changed
10
Page 11
INSYS GPRS/EDGE 5.0 serial Utilization Notes
3 Utilization Notes
This manual uses the symbol for especially important notes. Further notes will
be marked accordingly.
All factory settings are marked “default”. In Chapters 4.6 to 7 the description consists of two columns. Individual functions
are described on the left side. The according AT commands and the modem re­sponses can be found in the right column.
Function description AT command
Example: Dialing IP 192.168.0.2 and port 1234 ATD192.168.0.2:1234
All AT commands start with the letters AT and end with a “Return” (Carriage Re­turn - CR). AT commands can be entered in capital or small letters. The command is processed after the modem received a CR input.
In the following, the used syntax is explained:
ATD AT command (font: Courier, bold) <expression> Input of a parameter
(font: Courier, bold)
[expression] Input of an optional parameter
(font: Courier, bold)
expression Response from the modem
(font: Italic)
Examples:
ATD<ip>:<port> Dialing the IP address <ip>:<port> ATD192.168.0.1:1234 Dialing the IP address 192.168.0.1 and
the IP port 1234
AT**CALLBACK=0,2,0 The phone number that was stored with
AT**CLIP2 is assigned the action “IP Call-
back”.
AT+COPS=<n>[,<format>,<oper>]
Select network provider and login AT+COPS=0 Select network provider automatically and
login
11
Page 12
Mounting INSYS GPRS/EDGE 5.0 serial
4 Mounting
4.1 Front Panel
INSYS
Power
Status
SIM
Connect
RX/TX
Signal
Reset
10 Base-T
Ant.
RS 232
GPRS
The INSYS GPRS/EDGE 5.0 serial has five LEDs for the operating state:
Name Colour LED off LED on LED blinks LED flashes
Power
Status
Connect
Green
Yellow
Yellow
No supply volt­age
GSM engine not logged into network
No connection is established
Supply voltage available
TCP connection to the remote ter­minal has been established
The connection to the remote ter­minal is estab­lished (Carrier detected)
Slow flashing (100 ms on, 1900 ms off): INSYS
GPRS/EDGE 5.0 serial logged into the GSM network
Initialization phase
Fast flashing (100 ms on, 900 ms off): PPP
dial-up successful, IP address received from provider; in the operat­ing mode "TCP Listen", this is the normal state
12
Page 13
INSYS GPRS/EDGE 5.0 serial Mounting
Name Colour LED off LED on LED blinks LED flashes
RX/TX (Receive / Transmit)
Green
No data ex­change
Date is exchanged via the modem
Blinking interval depending on GSM signal (field strength):
ON 25 .. 31 60 ms 23 .. 24 140 ms 21 .. 22
Signal
Green
GSM signal (field strength) too low
Best GSM signal (field strength)
260 ms 19 .. 20 380 ms 17 .. 18 500 ms 15 .. 16 1000 ms 13 .. 14 OFF 0 .. 12, 99
4.2 Top
Terminal Meaning
1
2
3
4
5
6
7
8
9
10
1
GND
2
X1
3
10...60 VDC
4
GND
5
GND
6
Reset
7
GND
8
Input 1
9
Input 2
10
GND
supply
Power
Reset
Ext.
IN 1
IN 2
1 GND Ground 2 X1 Reserved 3 10..60V DC Power supply 10V - 60V DC 4 GND Ground 5 GND Ground 6 Reset Reset input 7 GND Ground 8 Input 1 Alarm input 1 9 Input 2 Alarm input 2
10 GND Ground
4.3 Bottom
OUT 1-NC
11
12
13
14
15
16
17
18
19
20
11
OUT 1
12
OUT 1-NO
13
OUT 2-NC
14
OUT 2
15
OUT 2-NO
16
17
18
19
20
Terminal Meaning
11 OUT1-NC Output 1 normally closed 12 OUT1 Output 1 13 OUT1-NO Output 1 normally open 14 OUT2-NC Output 2 normally closed 15 OUT2 Output 2 16 OUT2-NO Output 2 normally open
13
Page 14
Mounting INSYS GPRS/EDGE 5.0 serial
4.4 HSComm GPRS
The configuration of the INSYS GPRS/EDGE 5.0 serial takes place via AT commands which are entered by a terminal program or a control program in the form of char­acter sequences. For a simpler set-up, all basic functions of the INSYS GPRS/EDGE
5.0 serial can be entered without knowing the individual AT commands and their parameters, using the configuration software HSComm GPRS.
The software can be installed on the operating systems Microsoft Windows 2000 and Microsoft Windows XP. A terminal window to enter commands directly is available (menu item “Terminal”).
In Chapter 5 - Connections - and Chapter 6 - Functions -, the HSComm GPRS or an­other terminal program can be used for the configuration. The AT commands can be directly entered into the HSComm GPRS at the menu item “Terminal”.
The HSComm GPRS checks the connected device during startup. By default, only those settings can be selected which are implemented in the identified device.
The buttons in the right column can be used to select the current settings, to re­start (reset) the device, or to set the factory settings (default).
The current can be saved as a file at the menu item "File" in the main menu at the top window border, and reloaded at a later date.
The selected configuration of the parameters is only sent to the INSYS
GPRS/EDGE 5.0 serial after you click on the button Send settings.
14
Page 15
INSYS GPRS/EDGE 5.0 serial Mounting
4.5 Initial Operation
4.5.1 Installation
Caution - Electric shock hazard
Do not touch live parts when connecting the device.
Make sure that the power supply of the switch board or the system where the device will be installed is switched off during installation, and that it is secured against being switched on accidentally.
This section applies only to the initial startup of the device with factory settings.
1. Have the SIM card and the according PIN ready.
2. Install the device on a DIN rail.
3. Connect the power supply.
First, connect the ground connection.
4. Connect a suitable power supply (10..60V DC).
Note: The minimum supply voltage value is 10V DC. The maxi-
mum supply voltage value is 60V DC.
5. Connect the antenna.
Use a suitable GSM antenna. You can obtain suitable GSM antennas as accessories for this
device from INSYS.
6. Switch the power supply on.
The power LED will light up.
7. Wait until the device has powered up.
The status LED blinks during the boot process.
15
Page 16
Mounting INSYS GPRS/EDGE 5.0 serial
The signal LED blinks when the process is completed.
8. Connect the device to the PC.
Connect the 9-pin jack at the device with the serial interface of
your computer.
9. Install the configuration software HSComm GPRS and/or your terminal
program.
10. Start the program HSComm GPRS on the PC.
11. Synchronize the serial interfaces of the PC and the INSYS GPRS/EDGE 5.0
serial
At delivery, the serial interface settings of the INSYS GPRS/EDGE
5.0 serial are as follows: 8 data bits, no parity, 1 stop bit, data rate 19,200 Bits/s.
To synchronize the interfaces in the Software HSComm GPRS,
use the button "Synchronise RS232".
For the configuration, the settings of the serial interface of the PC and the
INSYS GPRS/EDGE 5.0 serial must always be identical!
4.5.2 Driver Installation
The installation of a driver is not required when using a terminal program or the software HSComm GPRS. When using another application, a driver may be neces­sary. Please find our current drivers at http://www.insys-tec.de/ or install the standard modem 336 under Windows.
16
Page 17
INSYS GPRS/EDGE 5.0 serial Mounting
4.5.3 Entering the SIM PIN into the Device
1. Start the program HSComm GPRS.
2. Read out the settings.
3. Enter the PIN of the SIM card you are using.
4. Transmit the value to the INSYS GPRS/EDGE 5.0 serial.
Use the button "Send settings".
17
Page 18
Mounting INSYS GPRS/EDGE 5.0 serial
4.5.4 Inserting the SIM Card
Caution – Danger of short-circuit for your SIM card!
A short-circuit may occur due to sliding contacts when the card is removed.
When inserting the SIM card, interrupt the supply voltage to pre­vent damaging the card when sliding it along the card reader con­tacts and creating a short-circuit.
1. Disconnect the power supply.
The LEDs of the INSYS GPRS/EDGE 5.0 serial will go out.
2. Remove the SIM card holder.
Press the sunken button (see image) above the SIM card holder
using a pointed object and remove the card holder.
18
Page 19
INSYS GPRS/EDGE 5.0 serial Mounting
3. Insert the SIM card into the card holder.
4. Reinsert the SIM card holder into the SIM card reader.
Insert the card holder. The contacts of the SIM card must point
to the left when looking at it from the front of the device.
5. Switch the power supply on.
The device will boot, the power LED will light up continuously, and the
status LED will blink.
6. Wait until the boot process is completed.
The Status LED goes out which indicates that the boot process is com-
pleted.
The signal LED is blinking.
4.5.5 Checking the Settings
1. Read out the settings.
Click on the button "Read settings" in the software HSComm
GPRS.
A symbol next the entry field of the PIN will show, if the INSYS
GPRS/EDGE 5.0 serial has been registered.
19
Page 20
Mounting INSYS GPRS/EDGE 5.0 serial
4.5.6 Checking the Field Strength of the GSM Signal
2. Read out the GSM field strength.
Use the button "GSM signal" in HSComm GPRS.
The field strength is displayed.
The response should be a field strength of at least 12 – other-
wise the antenna location needs to be changed to ensure fault­less communication.
20
Page 21
INSYS GPRS/EDGE 5.0 serial Mounting
4.5.7 Setting the GPRS APN (Access Point Name) Dial-In Parameters
1. Click on the tab "GSM/GPRS" in the program HSComm GPRS.
see also Chapter 11 - GPRS Dial-in Parameters -
2. Enter the GPRS Access Point Name in the software HSComm GPRS or se-
lect it from the list.
Your mobile network provider will inform you about the name
of your APN. Please find an overview of the APNs of some mobile network providers in the attachment to this manual.
For some network providers, PAP authentication is required. See
also Chapter 10: Dial-in parameter.
21
Page 22
Mounting INSYS GPRS/EDGE 5.0 serial
If your provider requires PAP authentication, select the required field be-
low the GPRS AN input field and enter the PAP user data.
3. Send the values to the INSYS GPRS/EDGE 5.0 serial.
Use the button "Send settings" in the program HSComm GPRS.
4. Perform a restart.
Use the reset key at the front of the device or disconnect the de-
vice from the power supply for a short time.
4.5.8 Connection to the Application
For the operation, the application settings and the settings of the INSYS
GPRS/EDGE 5.0 serial for baud rate, data format and handshake must be identical.
Application {{{PRODUKTBESCHREIBUNG}}}
22
Page 23
INSYS GPRS/EDGE 5.0 serial Mounting
P
4.6 Operating Modes
4.6.1 Command Mode
4.6.1.1 Offline
The offline command mode is the state after the GSM/GPRS engine was booted and initialized, or after a reset of the {{{PRODUCT DESCRIPTION}}}. During the offline command mode the {{{PRODUCT DESCRIPTION}}} can be addressed via AT commands.
Note
Please note that in the operating mode "TCP List" not all AT com­mands may be used. See Chapters 5.2.7 and 7.
4.6.1.2 Online
The {{{PRODUCT DESCRIPTION}}} can be switched to online command mode during a data connection (CSD, GPRS, “TCP transparent”). After switching from data mode to online command mode, the connection will remain established, but no data is transmitted to the remote terminal. The online command mode is also entered by DTR drop (setting AT&D1) or by activating the reset input twice within 10 seconds.
Note: Terminating connections, see Chapters 5.2.9
- Connection termination - and 5.2.9– GPRS Connection termination -
4.6.1.3 Remote
Note: See Chapter 6.8 "Remote Configuration"
4.6.1.4 SMS Configuration
Note: See Chapter 6.5 "Automatic SMS Processing"
4.6.2 Connection Mode
<1 Sek. +++ <1 Sek. Pause>
ause>
Depending on the connection type, the data is transformed unaltered from and to the application (CSD call, GPRS call) or processed by inte­grated TCP/IP stacks of the µcontroller (TCP transparent).
23
Page 24
Connection INSYS GPRS/EDGE 5.0 serial
5 Connection
Connection See
Chap.
TCP transparent (mo­dem emulation)
CSD
GPRS/EDGE direct (via PPP)
5.3 TCP/IP GPRS
0
5.4
Target Bearer Trigger
AT command
EDGE GSM
Modem
ISDN
GSM
TCP/IP GPRS
GSM
EDGE
Incoming con-
nection request
SMS Callback Leased Line Switch input AT command SMS Callback Leased Line Incoming call AT command
5.1 Logging into the GSM Network
To enable the device to log into the GSM network, the PIN of the SIM card must be entered in the device.
Click on the tab “GSM/GPRS”.
Note: see also Chap. 4.5 – Installation -
Automatic login (one-time configuration) Entering the PIN is only required for new devices or after the SIM card was
switched.
24
Page 25
INSYS GPRS/EDGE 5.0 serial Connection
Note
As default, the INSYS GPRS/EDGE 5.0 serial will login to the strong­est available GSM network.
In regions close to borders, registering into the desired network is not always suc­cessful. Manually selecting the exclusively preferred network will correct this problem.
In the first step, the display of all available network providers would be a plus.
Click on the desired network provider in the display. In our example, the available network provider is T-Mobile – correct description: T-Mobile D
The selected network provider is stored as the preferred network.
25
Page 26
Connection INSYS GPRS/EDGE 5.0 serial
Transfer the current settings to the INSYS GPRS/EDGE 5.0 serial. Afterwards, the device must be reset. After the current settings have been read out, the INSYS GPRS/EDGE 5.0 serial is registered.
If the device is preconfigured for another country, a search for the desired net­work provider will be useful.
In our example, we search for Vodafone in England (UK).
Mark and then apply the selection.
26
Page 27
INSYS GPRS/EDGE 5.0 serial Connection
Alternatively, the settings can be entered or modified using the terminal pro­gram.
Enter PIN
If manual network provider selection is required, the network provider identifi­cation number must be determined. You will find a chart for the INSYS GPRS/EDGE 5.0 serial with identification numbers and names in the AT com­mand overview – available at no charge from INSYS. In our example, the Ger­man network T-Mobile with the identi­fication number 26201 is used.
Network provider selection for T-Mobile in Germany
Perform a RESET to use the PIN.
Manual registration after each reset
AT**PIN
AT**PROVIDER=2,1,26201
AT**RESET
If the module is started and logged in from an external application, this applica­tion may request a manual login. In this case, the following method should be used:
Enter the PIN (when the PIN is entered via this command, it must be re-entered for each reset).
Prompt manual registering (this command may trigger a waiting period of several sec­onds)
AT+CPIN=<PIN>
AT+COPS=0
5.2 TCP Transparent (GPRS/EDGE Modem Emulation)
5.2.1 General
In this mode, user data is transmitted transparently via the serial interface and in TCP/IP packets via the GSM/GPRS/EDGE network. The INSYS GPRS/EDGE 5.0 serial will act like a conventional modem at the serial interface.
The remote terminal for this connection type receives the TCP/IP data and evalu­ates them directly, or has a virtual COM port driver (see Chap. 6.10 - Virtual Com Port -) to unpack it.
27
Page 28
Connection INSYS GPRS/EDGE 5.0 serial
5.2.1.1 Outgoing TCP Connections
The INSYS GPRS/EDGE 5.0 serial will address the remote terminal either directly via the IP address (e.g. 212.77.161.1) or via the domain name (e.g. www.insys- tec.de).
5.2.1.2 Incoming TCP Connections
The INSYS GPRS/EDGE 5.0 serial is addressed via its IP address. Its IP address must be routable. The IP address may be static or dynamic. For dynamic IP addresses, the INSYS GPRS/EDGE 5.0 serial supports the function to communicate the IP ad­dress it received during the dial-up into the GPRS/EDGE network to a remote ter­minal (see Chapter VCOM).
The GPRS/EDGE modem emulation - TCP transparent - can be set using HSComm. Click on the tab “GSM/GPRS”.
5.2.2 Defaults
For the operation within the GPRS network an APN (Access Point Name) must be selected.
In HSComm, we prepared numerous European APNs for selection.
According to the APN, PPP authentication is required. The necessary infor­mation can be obtained from the customer service center of your provider.
When using VPN or "FIX IP" solutions, authentification must in general al­ways be used.
On the basis of the entered APNs you can determine if a user name or a password is required.
28
Page 29
INSYS GPRS/EDGE 5.0 serial Connection
user:<username> or pw:<password>
PAP authentification, user name or password is required as stated.
user: or pw:
No authentication, user name or password is required.
user:[any] or pw:[any]
PAP authentification, any user name or any password is required.
Alternatively, the settings can be entered or modified using the terminal pro­gram.
Enter the Access Point Name (APN) GPRS/EDGE dial-in for the integrated
AT**GPRSAPN=<apn> AT**DIALIN=1
TCP/IP stack
GPRS/EDGE dial-in number for the inte­grated TCP/IP stack
Enter the user name
Enter the password Enter the authentification type (usually
PAP) for the integrated TCP/IP stack
Save settings
Perform RESET, accept all parameters
AT**DIALINNR=*99***1#
AT**PPPUSER=<user>
AT**PPPPW=<pw> AT**PPPAUTH=<auth>
AT**SAVE
AT**RESET
29
Page 30
Connection INSYS GPRS/EDGE 5.0 serial
5.2.3 Settings for Leased Line
The INSYS GPRS/EDGE 5.0 serial will automatically establish a leased line after the device is switched on, or after a reset. The connection is monitored and re­established after interruptions.
For the implementation the selection of the remote terminal – CSD, IP or URL – is required as a first step. In our example, we selected an IP address as remote ter­minal. Click on the tab “Connections”.
In a second step, the IP address of the remote terminal must be stated together with the according port. In our example, this is the IP 192.168.100.1 with port 80.
30
Page 31
INSYS GPRS/EDGE 5.0 serial Connection
Alternatively, the settings for the leased line operation can be entered or modi­fied using the terminal program.
Connection to an IP address
Setting for leased line function Remote terminal IP address Remote terminal TCP port Save settings Perform RESET,
AT**LL=2 AT**AUTOIP=<ip> AT**AUTOPORTIP=<port> AT**SAVE AT**RESET
accept all parameters
Connection to a domain name
Setting for leased line function Remote terminal IP address Remote terminal TCP port Save settings Perform RESET,
AT**LL=3 AT**AUTOURL=<url> AT**AUTOPORTURL=<port> AT**SAVE AT**RESET
accept all parameters
Alternative Access for leased line:
For applications which require high availability even if a remote terminal server fails, a alternative access may be set.
It is based on the following mechanism: If the INSYS GPRS/EDGE 5.0 serial is restarted in leased line operation, the pre-
defined AutoDial default destination is dialed after 20 seconds. If the connection setup fails, the device will attempt to dial the AutoDial alternative destination. If the connection setup to the AutoDial alternative destination fails as well or if no AutoDial alternative destination was entered, the dialing attempt will be repeated after a waiting period has expired. First the default destination will be attempted to read, and in case of a failure, the alternative destination. After each failed dial­ing attempt (this includes both destinations), the waiting period is increased (in steps of 40, 80, 320, 180 and 3600 seconds). The maximum waiting period is 3600 seconds. After the waiting period has expired, the device will again attempt to es­tablish a connection to one of the two destinations. The command AT**LLWAITRST defines the maximum number of failures. If this maximum number of failed connection attempts is reached, the device will be restarted. Only the failed connection attempts to the main destination are rated. The desti­nation, with which a successful connection is established, will be used as new AutoDial standard destination until the device is restarted.
31
Page 32
Connection INSYS GPRS/EDGE 5.0 serial
The alternative destination is specified with the following settings:
Connection to an IP address as alternative access
Setting for leased line function Remote terminal IP address Remote terminal TCP port Save settings Perform RESET,
AT**LL2=2 AT**AUTOIP2=<ip> AT**AUTOPORTIP2=<port> AT**RESET AT**SAVE
accept all parameters
Connection to a domain name as alternative access
Setting for leased line function Remote terminal domain name Remote terminal TCP port Save settings Perform RESET,
AT**LL2=3 AT**AUTOURL2=<url> AT**AUTOPORTIP2=<port> AT**SAVE AT**RESET
accept all parameters
The successfully established connection is indicated by the control signal DCD and the message CONNECT.
5.2.4 Settings for TCP Listen (Incoming TCP Connections)
The function TCP Listen allows the acceptance of incoming TCP connections. The device will dial into the GPRS/EDGE network und wait for incoming TCP connec­tions.
Enter the following settings for the operating mode TCP Listen:
32
Page 33
INSYS GPRS/EDGE 5.0 serial Connection
Alternatively, the settings for TCP Listen can be entered using the terminal pro­gram.
Automatic Connection acceptance Save this setting
ATS0=2 AT&W
Set the TCP data port Activate TCP Listen Save settings Perform RESET,
AT**TCPLISTENPORT=1234 AT**TCPLISTEN=1 AT**SAVE AT**RESET
accept all parameters
The successful dial-up into the GPRS/EDGE network is displayed after the startup with the message +PPP-IP SETUP; the INSYS INSYS GPRS/EDGE 5.0 serial can now be reached via its IP address.
If the connection can not be established (network failure, etc.) or if the connection is terminated, the INSYS GPRS/EDGE 5.0 serial will automatically start reconnect­ing.
To limit the connection costs for failed connection setups (for each connection setup data packets are created and billed), the delay time will increase for every new repeated attempt.
20 seconds after restart or if the last connection setup was successful 80 seconds after the first failure 320 seconds after the second failure 1280 seconds after the third failure 1 hour for each additional failure
33
Page 34
Connection INSYS GPRS/EDGE 5.0 serial
For TCP Listen mode, the number of dialing attempts until a device is restarted can be limited with the command AT**TCPLISTENWAITRST=<n>. For example, the INSYS GPRS/EDGE 5.0 serial is restarted with AT**TCPLISTENWAITRST=3 after the third dialing attempt (20s+80s+320s). This will restart the dialing cycle. The default value for this setting is 255.
5.2.5 Manual Connection Setup
Establish a connection to an IP address or a host with domain name. IP address <ip> with port <port>
Domain Name <domain> with the port <port>
Response:
The call was accepted; the transfer of data can begin.
5.2.6 Automatic Connection Setup (Leased Line)
With the leased line function, a preset destination is automatically dialed.
The connection setup and the connection itself are monitored.
If the connection can not be established (network failure, remote system does not respond) or if the connection is terminated, the INSYS GPRS/EDGE 5.0 serial will automatically start reconnecting.
To limit the connection costs for inaccessible remote terminals (for each connec­tion setup data packets are created and billed), the delay time will increase for every new repeated attempt.
ATD<ip>:<port> ATD<domain>:<port>
Connect
20 seconds after restart or if the last connection setup was successful 80 seconds after the first failure 320 seconds after the second failure 1280 seconds after the third failure 1 hour for each additional failure
34
Page 35
INSYS GPRS/EDGE 5.0 serial Connection
The number of dialing attempts for the leased line mode can be limited with AT**LLWAITRST=<n>. For example, the INSYS GPRS/EDGE 5.0 serial is restarted with AT**LLWAITRST=3 after the third dialing attempt (20s+80s+320s). This will restart the dialing cycle. The default value for this setting is 255.
Note
This setting increases the availability of the INSYS GPRS/EDGE 5.0 serial and its application. However, due to the increased number of dialing attempts that are performed shortly one after the other, higher connection costs may occur. This depends on the terms of the contract with the mobile network provider.
5.2.7 Connection Acceptance
Use the function TCP listen to accept incoming TCP connections.
Alternatively, the settings can be entered or modified using the terminal pro­gram.
Incoming connections are indicated in the terminal program.
The connection acceptance takes place ei­ther automatically or after a set number <n> of ring signals
or manually.:
The connection was accepted.
As soon as the INSYS GPRS/EDGE 5.0 serial has displayed the message PPP-IP SETUP, it can be reached by incoming TCP connections, i.e. it is in Listen mode at the TCP port which has been set with the command AT**TCPLISTENPORT.
Outgoing TCP connections can still be established.
Please note: Not all AT commands can be used in the operating mode "TCP Listen".
RING
ATS0=<n>
ATA
CONNECT
35
Page 36
Connection INSYS GPRS/EDGE 5.0 serial
Please find an overview in the Chapter "7. AT commands".
The INSYS GPRS/EDGE 5.0 serial is able to independently and periodically check its status in the GPRS/EDGE network and thus its availability. Use the command AT**PPPIPCHECK.
If the test is successfully performed, the message "+PPP-IP OK" is displayed.
If the test fails, the GPRS/EDGE connection is terminated (message +PPP-IP RE­LEASE) and the TCP Listen mode is reestablished.
To save costs if there is a problem with availability, the waiting time between the repeat attempts will grow for each subsequent attempt.
20 seconds after restart or if the last connection setup was successful 80 seconds after the first failure 320 seconds after the second failure 1280 seconds after the third failure 1 hour for each additional failure
The number of dialing attempts for the TCP Listen operation can be limited with AT**TCPLISTENWAITRST=<n>. For example, the INSYS GPRS/EDGE 5.0 serial is restarted with AT**TCPLISTENWAITRST=3 after the third dialing attempt (20s+80s+320s). This will restart the dialing cycle. The default value for this set­ting is 255.
Note
This setting increases the availability of the INSYS GPRS/EDGE 5.0 serial and its application. However, the increased number of dialing attempts that are performed shortly one after the other, higher connection costs may occur. This depends on the terms of the con­tract with the mobile network provider.
The INSYS GPRS/EDGE 5.0 serial offers systems with dynamic IP addresses the op­tion to communicate the IP addresses allocated by the provider during the current GPRS dial-up into TCP Listen ((+PPP-IP SETUP) to a server. More in Chapter "6.10 Virtual COM Port".
36
Page 37
INSYS GPRS/EDGE 5.0 serial Connection
5.2.8 During the Connection
5.2.8.1 Keep Alive
The data transfer via GPRS/EDGE is packet-oriented. If no side of the TCP connec­tion sends data, there will be no traffic via the transmission link. This also means that it can not be determined if the remote terminal has disappeared without properly terminating the connection (e.g. due to a failure of the radio network or a failure of the remote terminal).
It can also occur that GPRS/EDGE network providers terminate connections them­selves to be able to offer the resources to other participants, if there is no data transfer for an extended period of time.
For these cases, TCP offers a suitable accessory by sending Keep Alive messages. The period between two monitoring packets can be set to 1 minute steps (or be turned off completely).
If three successive monitoring packets are not responded to, the connection is re­garded as terminated, and the INSYS GPRS/EDGE 5.0 serial returns to offline mode. If the device is configured as a leased line device, the connection will then be re-established. Keep Alive will mostly be used for leased lines, because the application on location is usually not able to assume the connection control and monitoring.
Alternatively, the settings can be entered or modified using the terminal pro­gram.
TCP Keep Alive Timer is set to 10 minutes Save changes Changes take effect with a restart of the de-
vice
Note
Keep Alive creates traffic, as each Keep Alive packet is in principle an empty TCP/IP message which must be confirmed by the remote terminal. For a Keep Alive, two empty TCP/IP messages with 40 byte each are sent.
When selection the TCP aggregation timeouts, the rate and the bill­ing type in your GPRS/EDGE contract must be considered as well.
See also Chapter 8.8
5.2.8.2 Forming Data Packets
For a TCP/IP-based transmission such as the “TCP transparent” connection, the transmit­ted amount of data consists not only of the sum of all user data of the application and the required TCP/IP headers.
AT**KEEP=10 AT**SAVE AT**RESET
37
Page 38
Connection INSYS GPRS/EDGE 5.0 serial
Each TCP/IP message has a protocol over­head of 40 bytes. For each message there is also a confirmation message from the re­mote terminal with 40 bytes as well.
A selection of parameters, adjusted to the application, for forming TCP packets in the integrated TCP/IP stack helps prevent un­necessary high costs for the data transmis­sion.
The INSYS GPRS/EDGE 5.0 serial sends a data packet to the remote terminal when:
The maximum set value (default: 512
byte) has been reached
Since the preset waiting time (default:
100 ms) no character has been sent via the serial interface, and data is already waiting in the send buffer
(see Chapter 8.8)
AT**TCPBLOCK= <block-size>
AT**TCPAGG=<agg-time>
5.2.9 Termination
Connections can be terminated as follows:
Manual termination using the ATH command in online command mode By DTR drop (for the setting AT&D2) If the remote terminal hangs up
After switching from data mode to online mode, the connection will remain estab­lished. However, data is no longer transmit­ted to the remote terminal. The online command mode is also activated by DTR drop with the setting AT&D1, or by activat­ing the reset input twice within 10 seconds.
The connection was terminated
Data traffic <1 Sec. Pause>
+++ <1 Sec. Pause> ATH
Ok
38
Page 39
INSYS GPRS/EDGE 5.0 serial Connection
5.3 GSM Data Connection (CSD Call)
CSD is the simple modem-like data connection in the GSM network, without using the GPRS/EDGE service. Remote terminals for the connection can be analogue modems, ISDN adapter, or GSM devices.
With the help of HSComm GPRS/EDGE, the INSYS GPRS/EDGE 5.0 serial can auto­matically accept the CSD call. Click on the tab “GSM/GPRS”.
5.3.1 Connection Setup
Dial the number to which a connection is to be set up (always with area code, except for special provider numbers).
After the call was accepted; the transfer of data can begin (e.g. connection with 9600 bps). The successfully established connec­tion is indicated by the control signal DCD and the message CONNECT.
Note
For an active TCP Listen mode, no outgoing CSD connection can be established.
5.3.2 Incoming Connections
ATD<phone number>
Connect 9600/RLP
The connection acceptance takes place either automatically, or after a set number of ring signals, or manually with ATA.
To accept a call manually with ATA, "0" must be set for "Ring tones until going off- hook".
The transmission rate is set for outgoing connections from the device. For incoming connections to the device, the transmission rate is set automatically
depending on the calling remote terminal.
Alternatively, the settings can be entered or modified using the terminal pro­gram.
39
Page 40
Connection INSYS GPRS/EDGE 5.0 serial
Incoming connections are indicated in the
RING
terminal program. The connection acceptance takes place ei-
ATS0=<n>
ther automatically, or after a set number <n> of ring signals, or manually with the command ATA.
The indicator for incoming connections can in addition display also the connection type (data, voice) (AT+CRC=1) and the phone number of the caller (AT+CLIP=1) as an option. Accepting incoming CSD connections for an active TCP Listen mode is only possible when the function CSDPRIO is used.
Note
In contrast to earlier versions, setting the ring tones until the call acceptance (S0 registry) with the command ATS0=<n> can only be performed after a valid PIN was entered.
5.3.3 Termination
Connections can be terminated as follows:
Manual termination using the ATH command in online command mode By DTR drop (for the setting AT&D2) If the remote terminal hangs up
After switching from data mode to online mode, the connection will remain estab­lished. However, data is no longer transmit­ted to the remote terminal. The online command mode is also entered by DTR drop (setting AT&D1) or by activating the reset input twice within 10 seconds.
Hang up (terminate connection to the other party)
<1 Sec. Pause> +++ <1 Sec. Pause>
ATH
The connection was terminated
OK
40
Page 41
INSYS GPRS/EDGE 5.0 serial Connection
5.3.4 Connection to Analogue Modems
Alternatively, the settings can be entered or modified using the terminal pro­gram.
To call an analogue modem, an analogue protocol must be set. While doing so it must be observed that the remote terminal has to work with the same protocol as well.
The protocol V.32 with a data rate of 9600 baud.
5.3.5 Connections to ISDN TAs
Alternatively, the settings can be entered or modified using the terminal pro­gram.
To call an ISDN TA it is necessary to set the ISDN protocol V.110. While doing so it must be observed that the remote terminal has to work with the same protocol as well.
E.g.: The protocol V.110 with a data rate of 9600 baud.
AT+CBST=<n>
AT+CBST=7
AT+CBST=<n>
AT+CBST=71
5.4 Direct GPRS/EDGE Connection via PPP
When the GPRS/EDGE functionality of the built-in GSM/GPRS/EDGE engine of the INSYS GPRS/EDGE 5.0 serial is used directly, the INSYS GPRS/EDGE 5.0 serial pro­vides only raw PPP data after dial-up into the GPRS/EDGE network. In this case, the application must perform the required protocol stacks (PPP, TCP/IP) for the application. In this mode, the TCP/IP stack of the INSYS GPRS/EDGE 5.0 serial is not active.
Example: Connection via the RDT network of a PC. The INSYS GPRS/EDGE 5.0 serial is the PPP server in this mode. The direct utilization of GPRS/EDGE connections via PPP is not possible if the de-
vice is in active TCP Listen mode.
41
Page 42
Connection INSYS GPRS/EDGE 5.0 serial
5.4.1 GPRS/EDGE APN (PDP context)
E.g.: The Vodafone APN address is WEB.vodafone.DE.
There is basically the option to define several PDP contexts. This one is stored as context "1".
Note
The PDP context can not be stored permanently; it must be re­entered every time the device is restarted,
5.4.2 PPP Authentication Type
To adjust the authentification type to the one used by the PPP client of the appli­cation, the INSYS GPRS/EDGE 5.0 serial offers two possibilities:
No authentication PAP authentication
AT+CGDCONT=1,IP,”WEB .vodafone.DE”
AT^SGAUTH=0 AT^SGAUTH=1
According to the APN, PPP authentication is required. The necessary information can be obtained from the customer service center of your provider.
5.4.3 GPRS/EDGE Connection Setup
Modem-compatible GPRS/EDGE connection setup When dialing this special number, the GPRS/EDGE service is activated.
If a PDP context (AT+CGDCONT) is defined, such as: the PDP context no. 1, the AT com­mand will be
The successfully established connection is indicated by the control signal DCD and the message CONNECT.
After the GPRS/EDGE connection has been successfully established, the protocol stacks of the application can start: First the PPP session is started, and then it can be used for TCP/IP data traffic.
ATD*99***<cid>#
ATD*99***1#
42
Page 43
INSYS GPRS/EDGE 5.0 serial Connection
5.4.4 GPRS/EDGE Connection Termination
Connections can be terminated as follows:
Manual termination using the ATH command in online command mode By DTR drop (for the setting AT&D2)
After switching from data mode to online mode, the connection will remain estab­lished. However, data is no longer transmit­ted to the remote terminal. The online command mode is also entered by DTR drop (setting AT&D1) or by activating the reset input twice within 10 seconds.
Hang up (terminate connection to the other party)
The connection was terminated
+++
ATH
OK
43
Page 44
Connection INSYS GPRS/EDGE 5.0 serial
5.5 Setup and Disconnetction of a TCP Connection
5.5.1 Overview
A connection with the APN (access point to the GPRS/EDGE network) is required for a TCP communication in the GPRS/EDGE network (only the GPRS network is mentioned in the following for reasons of simplicity) first; this is called “GPRS At­tach”. An IP address is assigned with the GPRS Attach. Then, the connection be­tween application client and server will be established; this is called “TCP Con­nect”. It is now possible to transmit data. After the data transmission is finished, the TCP connection can remain established or be disconnected. The disconnection performs a “TCP Disconnect” first to disconnect the TCP connection. Then, the connection to the GPRS network can also be disconnected; this is called “GPRS De­tach”. The following figure shows the different levels of the connection setup and disconnection:
GPRS Attach
The connection to the APN is established. An IP address is assigned and the charge counter (charge counter fort he incurred data volume) is started.
TCP Connect
The TCP connection between application client and server is established.
TCP Disconnect
The TCP connection between application client and server is disconnected.
GPRS Detach
The GPRS connection is disconnected. The IP address is returned and the charge counter is stopped. The used volume will be rounded to the next data block. For a data block size of 100 kB for example, 100 kB will be charged, even if only 10 kB have been transmitted.
GPRS Attach
TCP Connect
Communication
TCP Connection
GPRS Connection
TCP Disconnect
GPRS Detach
44
Page 45
INSYS GPRS/EDGE 5.0 serial Connection
5.5.2 Connection Setup Possibilities
Manual connection setup
In case of a manual connection setup (command ATD<IP address>:<port> or ATD<“domain name“>:<port>), a connection to the GPRS network (GPRS At-
tach) is performed first. After the connection with the GPRS network has been es­tablished, a TCP connection to the specified IP address or domain will be estab­lished via the specified port.
Leased line connection
In leased line operation, a connection with the GPRS network (GPRS Attach) will be performed after starting the device. After the connection with the GPRS network has been established, a TCP connection to the configured remote terminal will be established. The behaviour in case of an unsuccessful connection setup is con­trolled by the parameter <mode> of the command AT**LLWAITRST=<attempts>,<mode>. If the mode = 1, only the TCP connec­tion will be disconnected following each unsuccessful connection setup. The GPRS connection remains established, the IP address remains valid and the data volume incurred will not be charged and summed up. When reaching the maximum number of attempts (parameter <attempts>), the device will be restarted. If the mode = 0, the TCP connection and the GPRS connection will be disconnected fol­lowing each unsuccessful connection setup. The IP address will be returned and the data volume incurred will be rounded to the full data block and charged. When reaching the maximum number of attempts (parameter <attempts>), the device will be restarted
TCP listen operation
In TCP listen operation (AT**TCPLISTEN=1), a connection to the GPRS network will be established after starting the device (GPRS Attach). After the connection with the GPRS network has been established and an IP address has been assigned, the TCP port will be monitored for a connection request with the own IP address. If this connection request is detected, a TCP connection will be established.
5.5.3 Connection Termination
In case of an intended connection termination, the TCP connection and the GPRS connection will always be disconnected.
45
Page 46
Functions INSYS GPRS/EDGE 5.0 serial
6 Functions
6.1 Access Control
Password protection and selective call acceptance can be set us­ing HSComm.
6.1.1 Password Protection
The password consists of a maximum of 16 characters and pro­tects
switching into remote configuration during a data connec-
tion (CSD or “TCP transparent”)
accepting SMS for activated, automatic SMS processing.
Click on the "GSM/GPRS” tab.
Click on “set password” in HSComm.
In the next window, you can setup a new password or change or delete an exist­ing password.
The password is deleted if no new password is entered.
46
Page 47
INSYS GPRS/EDGE 5.0 serial Functions
Alternatively, a new password can be set or an old password can be changed or deleted using the terminal program.
Setup new password
Change password
Delete password
6.1.2 Selective Call Answer
If this function is activated, only connections which originate from the released phone numbers (1 to 3) are accepted. To use this func­tion, the caller himself has to activate the calling line identification presentation (CLIP).
The selective call acceptance applies to data and voice connections as well as incoming SMS commands.
It is furthermore the basic requirement for the callback func­tion and the function CSDPRIO.
AT**PASSC=<newPW>,<newPW>
AT**PASSC=<old PW>,<newPW>, <newPW>
AT**PASSC=<old PW>
Click on the "Connections” tab.
Enter a phone number to activate the selective call acceptance in HSComm.
47
Page 48
Functions INSYS GPRS/EDGE 5.0 serial
Alternatively, the access control can be set using the terminal program:
Activating selective call acceptance Deactivating selective call acceptance
AT**CLIP=1 AT**CLIP=0
Note: The settings are only changed after they were
saved and the device has been reset.
Incoming calls of numbers which are not allowed are displayed until the caller ends the signalling. They can
AT**SAVE AT**RESET
ATA
neither be accepted manually. The caller receives the signal BUSY.
For each incoming call, the phone number is displayed as well.
BUSY
RING
+CLIP: „+49941586920“,1 45,,,,0
The released number has to be configured in exactly the same format as for a call.
AT**CLIP1= +49941586920
Note: The transmitted format of the number depends on
the provider – e.g. the leading “+49” may be replaced by “0049”. We urgently recommend
AT**CLIP1= +499415869**
verifying the number by placing a test call.
It is possible to allow whole blocks of numbers: The wild­card character „*“ replaces exactly any single digit.
48
Page 49
INSYS GPRS/EDGE 5.0 serial Functions
6.2 Establishing a Connection by Callback
The callback function enables the INSYS GPRS/EDGE 5.0 serial to establish a con­nection to one of the previously defined remote terminals, when calling from a certain phone number. The remote terminal can be a phone number, an IP address or a hostname with domain. The callback is triggered as soon as a call from a pre­viously defined phone number is indicated at the device.
Permitted phone numbers are stored and linked to a destination address (IP ad­dress, domain name or phone number) in the configuration.
In connection with the function CSDPRIO (see Chapter 4.3), it is also possible to trigger a callback if the called INSYS GPRS/EDGE 5.0 serial has a TCP connection or is dialed into the GPRS network in the operating mode TCP Listen during the call.
The connection setup can be set with a call using the HSComm. Click on the "Connections” tab.
The callback function can be activated via the HSComm by enter­ing the phone number and selecting “Callback”.
In the next figure, as an example, the number 1 to trigger the calling back of a callback number (see AutoDial destinations), the number 2 of an IP address with port information, and the num­ber 3 of an URL with port information is allocated.
See also: see Chapter 5.2.2 - Defaults
49
Page 50
Functions INSYS GPRS/EDGE 5.0 serial
Alternatively, the access control can be set using the terminal program:
Default:
For the operation within the GPRS network, an Access Point and the GPRS access data must be selected.
Activate selective call acceptance
Enter allowed phone number 1
Enter allowed phone number 2
Enter allowed phone number 3
Store possible connection destinations:
IP address and port
Domain name and port
GSM data connection (CSD)
Store the callback connection type (IP, domain name, CSD) for the three phone numbers
Save settings
Perform RESET, accept all parameters
AT**CLIP=1
AT**CLIP1=<nr1>
AT**CLIP2=<nr2>
AT**CLIP3=<nr3>
AT**AUTOIP=<ip> AT**AUTOPORTIP=<port>
AT**AUTOURL=<domain> AT**AUTOPORTURL=<port>
AT**AUTOCSD=<phone number>
AT**CALLBACK= <n1>,<n2>,<n3>
AT**SAVE
AT**RESET
For IP and domain name destinations it is also possible to enter a substitute access, it is therefore possible to enter different destina­tions of the same kind for the different numbers. Example: for CLIP1 a callback to the IP address 1.2.3.4, and for CLIP2 a callback to the IP address 5.6.7.8.
50
Page 51
INSYS GPRS/EDGE 5.0 serial Functions
Example:
A “TCP transparent” connection from the INSYS GPRS/EDGE 5.0 serial to the service center must be es­tablished, controlled by a call (Callback).
In addition, the existing possibility to directly call from the service center for emergencies (GPRS failure, per­formance problems) should be maintained. Only the number of the modem connection for the service center should be made available for this call.
For a call from the Clip number 2 (mobile phone), a “TCP transparent” connection to the service center must be established.
The service center has a normal modem connection with the number 04989949494. A service mobile phone with the number 01711253456 exists. Furthermore, the service center has a fixed internet connection with the IP address: 200.12.0.120; the TCP port 10000 was en­abled for connections to the INSYS GPRS/EDGE 5.0 se­rial.
Click on the "Connections” tab.
The selective call acceptance/callback must be set in our example as follows:
51
Page 52
Functions INSYS GPRS/EDGE 5.0 serial
In a second step, the IP target for the callback must be entered.
Afterwards, the automatic call acceptance after 2 ring tones is required.
Alternatively, our example can be set using the terminal program:
In general, activate selective call acceptance
AT**CLIP=1
Enter allowed phone number 1
Enter allowed phone number 2 Store destination IP for callback
Store destination TCP port for callback
AT**CLIP1=
+494989949494.
AT**CLIP2= +491711253456 AT**AUTOIP=
200.12.0.120
AT**AUTOPORTIP= 10000
Store callback settings
AT**CALLBACK= 0,2,0
No callback action for call from phone num-
ber 1
IP callback for call from phone number 2 No callback action for call from phone num-
ber 3
Save the extended functions
Automatic acceptance of an incoming CSD call (for the call of a service center modem)
Save setting for ATS0
Perform RESET, accept all parameters
AT**SAVE
ATS0=2
AT&W
AT**RESET
52
Page 53
INSYS GPRS/EDGE 5.0 serial Functions
Note
A connection can be established independent from the callback set­tings via SMS command (provided that the sender number is stored at AT**CLIP<index>=<n>).
6.3 Defined Termination of GPRS Connections for Incoming
CSD Calls ("CSDPRIO")
For different applications, it is necessary to access them with CSD data connections, al­though the normal operation runs with TCP connections.
The reasons may be as follows:
To perform time-critical applications (e.g. software updates from controllers). To enable service technicians to access the application or the INSYS GPRS/EDGE
5.0 serial, which are not integrated in the communication system based on TCP connections.
To still have remote access to the application in case the GPRS network fails. To still have remote access to the application in case the TCP infrastructure of the
control center fails.
The basic requirement for the utilization of CSDPRIO is the support of the selective
call acceptance (AT**CLIP=1). Two modes are available: In the first mode (AT**CSDPRIO=1), only authorized calls may trigger this function and terminate the connection. In the second mode (AT**CSDPRIO=2), any caller may terminate the connection.
If during the CSD call the following applies:
o A TCP connection is established: It will be terminated (NO CARRIER); some
topics must be observed due to the nature of this:
In some cases (depending on the provider), the TCP RST which the
INSYS GPRS/EDGE 5.0 serial creates in this case to terminate, the connection will be sent to the remote terminal only after the CSD connection is ended.
If data is transmitted via GPRS during the CSD call (e.g. via a TCP
connection), it may occur that the caller receives the BUSY signal. In this case, the dial-in should be repeated. The rule of thumb would be that the CSD call will be forwarded after a minimum of approxi­mately 30 seconds after the last data byte was transmitted via GPRS.
o A GPRS dial-in (TCP Listen mode, waiting for incoming TCP connection): In
this case, the TCP Listen mode is terminated for the duration of the CSD call (+PPP-IP RELEASE), and restarted afterwards (+PPP-IP SETUP).
53
Page 54
Functions INSYS GPRS/EDGE 5.0 serial
Due to the additional time which is required to terminate the TCP or the GPRS connec­tion, the caller must be prepared for a slightly longer waiting period until the connection is accepted. Example: If the INSYS GPRS/EDGE 5.0 serial is set using ATS0=2 for accepting CSD connections after two ring tones, in general actually 5 to 6 ring tones (RINGs) are required. Please set the number of rings to a minimum of three rings to ensure full func­tionality, if you want to use automatic call answering.
6.3.1 CSD Priority with Caller Authentication
Alternatively, our example can be set using the terminal program:
In general, activate selective call acceptance
AT**CLIP=1
Enter allowed phone number 1
AT**CLIP1=+49941586920
Activate CSDPRIO
AT**CSDPRIO=1
Save settings
AT**SAVE
Perform RESET, accept all parameters
AT**RESET
54
Page 55
INSYS GPRS/EDGE 5.0 serial Functions
6.3.2 CSD Priority without Caller Authentication
This function makes it possible that each caller can terminate the existing data connec­tion. In this case, the phone numbers must not be entered. Phone numbers that were entered anyhow will not be rated.
Alternatively, the function can be set using the terminal program:
In general, activate selective call acceptance (To activate the call signals or enable them to
be processed by the INSYS GPRS/EDGE 5.0 se­rial, this setting must be entered.)
Activate CSDPRIO without phone number au­thentication
Save settings
Perform RESET, accept all parameters
AT**CLIP=1
AT**CSDPRIO=2
AT**SAVE
AT**RESET
Note
Regardless of the authentication settings, a callback number can be stored.
6.4 Automatic Logout and Login or Restart of the Device
Scheduled logout/login or a device restart can be activated using the HSComm. Click on the “GSM/GPRS” tab.
55
Page 56
Functions INSYS GPRS/EDGE 5.0 serial
6.4.1 Automatic Login at Restart
The INSYS GPRS/EDGE 5.0 serial can store the SIM card PIN internally, which enables it to log into the GSM network after each restart and reset, without user intervention.
All four globally used frequency ranges 850 MHz, 900 MHz, 1800 MHz and 1900 MHz are supported. At the respective lo­cation, the INSYS GPRS/EDGE 5.0 serial will automatically op­erate with the frequency range provided by the network pro­vider.
Before using the INSYS GPRS/EDGE 5.0 serial, you
should check the certification requirements in the country of deployment.
Note: As default, the INSYS GPRS/EDGE 5.0 serial will
login to the strongest available GSM network. If required, a preferred network can be pre-selected with the command AT**PROVIDER, if necessary.
AT**PIN=<pin>
AT**PROVIDER= <mode>[,<form at>[,<oper>]]
6.4.2 Periodic Logout and Login or Restart of the Device
For function support even after infrastructure changes and net­work software updates by the network providers, the INSYS GPRS/EDGE 5.0 serial can be logged out of the GSM network via a timer. The timer can be set by the hour up to a maximum of 99 hours and starts when the device is switched on. A few minutes after the module logged out it will automatically log back in. The timer restarts.
If a TCP transparent or a data connection (CSD or GPRS) is estab­lished at the time of the logout, the logout will wait until the connection is terminated.
As an option, there is also the possibility to perform a complete restart of the device after the timer has expired. The INSYS GPRS/EDGE 5.0 serial will start automatically with the stored set­tings.
6.4.2.1 Conditional Restart:
If a TCP transparent or a data connection (CSD or GPRS) is estab­lished at the time of the logout, the restart will wait until the connection is terminated.
6.4.2.2 Unconditional Restart:
The device is restarted in any case.
56
Page 57
INSYS GPRS/EDGE 5.0 serial Functions
Examples:
In our example 1, the INSYS GPRS/EDGE 5.0 serial will be logged out and back in every 3 hours.
Alternatively, the scheduled logout/login can be set, changed or deleted using the terminal program.
AT**LOGOUT=<n>[,<mode>]
Our example – 3 hrs.
AT**LOGOUT=3
In our example 2, the INSYS GPRS/EDGE 5.0 serial performs a re­start every 3 hours.
Alternatively, the scheduled logout/login can be set, changed or deleted using the terminal program.
AT**LOGOUT=<n>[,<mode>]
Our example – 3 hrs.
AT**LOGOUT=3,2
57
Page 58
Functions INSYS GPRS/EDGE 5.0 serial
6.5 Automatic SMS Processing
Note: The sending time of an SMS from the sender to a re-
cipient depends on the pertinent provider of the service number. Due to the network load and the time of day, the time required for sending an SMS may change.
The automatic processing of SMS messages can be set using the HSComm. Click on the “GSM/GPRS” tab.
6.5.1 Activation
Activation in HSComm is done by clicking the automatic SMS processing.
Each incoming SMS is deleted after it has been processed. Each SMS with an INSYS AT command is processed. Any other SMS is immediately deleted.
If other SMS messages are required for processing with the appli­cation, the field “Leave remote SMS in SIM buffer” must also be clicked.
The “remote SMS messages” must be read out regularly.
58
Page 59
INSYS GPRS/EDGE 5.0 serial Functions
Alternatively, automatic SMS processing can be set, changed or deleted using the terminal program.
Each incoming SMS is deleted after it has been processed.
AT**SMSRX=1
Only incoming SMS messages with a command to the INSYS GPRS/EDGE 5.0 serial are deleted, remote SMS are left in the
AT**SMSRX=2
buffer.
6.5.2 Reading Interval
The reading interval can be set from 20 to 60 seconds.
Alternatively, the GSM reading interval can be changed using the terminal program.
6.5.3 Syntax
SMS intended for the INSYS GPRS/EDGE 5.0 serial must have the following syntax:
[<password>,]<command>[,CN: [<callbacknumber>]]
AT**GSMREQ=<n>
Note
Due to different GSM/GPRS network structures it may occur that the provider cannot deliver any SMS to the GSM/GPRS engine while data packets are sent/received via GPRS (this relates to standard GPRS calls and “TCP transparent” calls via GPRS).
Experience shows that an SMS is only sent during data transmission breaks longer than 30 seconds.
59
Page 60
Functions INSYS GPRS/EDGE 5.0 serial
Detailed explanation:
Configuration via SMS, without reply
Note: See also Chapters
Kap. 6.1.1 - Password Protection
and
Kap. 6.1.2 - Selective Call Answer
Configuration via SMS,with acknowledgement:
Note: Between CN: <phonenumber> a space must be
entered. If no phone number is entered after CN: the response returns automatically to the sender.
Configuration via SMS, if the INSYS GPRS/EDGE 5.0 serial is protected by a password.
Configuration via SMS, if the INSYS GPRS/EDGE 5.0 serial is protected by a password and a confirmation is desired.
Note: Between CN: <phonenumber> a space must be
entered. If no phone number is entered after CN: the response returns automatically to the sender.
<command>
<command>, CN:
[<phonenumber>]
<password>, <command>
<password>, <command>, CN: [<phonenum-
ber>]
6.5.4 Access Protection
To protect against unauthorized configuration or attempts to es­tablish a connection, two protection mechanisms are available which are also used for incoming SMS.
Configuration password
Note: See also Chapter 6.1.1 - Password Protection
Selective call answer
Note: See also Chapter 6.1.2 - Selective Call Answer
Depending on the settings, SMS from unauthorized senders or with an invalid password are either
Deleted immediately, or Stored in the memory and not processed
AT**PASSC=<pw>
AT**CLIP=1
AT**SMSRX=1 AT**SMSRX=2
60
Page 61
INSYS GPRS/EDGE 5.0 serial Functions
6.5.5 SMS Storage Locations
The automatic processing of an incoming SMS takes place via an independent, module-internal interface and has usu­ally no effect on the communication between the applica­tion and the GSM/GPRS engine.
Only when the SMS memory is accessed (especially reading
and deleting), it can happen that the µcontroller accesses the SMS storage location at the same time. In this case, the application would receive ERROR as response. The applica-
tion should therefore execute the command once more, if necessary.
The INSYS GPRS/EDGE 5.0 serial evaluates all SMS storage locations made available by the GSM/GPRS engine (storage locations of the SIM card and storage locations in the engine itself).
The SMS settings for the module-internal interface used for proc­essing are independent from the interface settings for the applica­tion (text mode, used storage locations).
6.6 Manually Dispatching SMS
Note
The sending time of an SMS from the sender to a recipient depends on the pertinent provider of the service number. Depending on the network load and the time of day, an SMS may be on the way for an extended period.
Due to the limited availability of AT commands in the operat­ing mode "TCP Listen", no manual sending of SMS is possible when the TCP Listen mode is active.
Set SMS text mode
The SMS service center number of the network provider may be omitted if the number is stored on the SIM card.
Enter the destination phone number
Wait for the prompt “>”, enter the text
The SMS is dispatched using the key combination Ctrl and Z.
Prior to the confirmation message you will be informed about the amount of SMS that have already been sent.
AT+CMGF=1
AT+CSCA=<nr>
AT+CMGS=<nr>
><text><Ctrl+Z >
CMGS: <Num> ok
61
Page 62
Functions INSYS GPRS/EDGE 5.0 serial
Note:
The service center phone number must be written in international format, e.g. for a German provider starting with “+49”.
6.7 Digital Inputs and Potential-Free Outputs
The INSYS GPRS/EDGE 5.0 serial has digital inputs and outputs. The outputs can be switched via AT commands to control external functions. The inputs can be used to trig­ger an action of the INSYS GPRS/EDGE 5.0 serial. The inputs can be used to dial a connec­tion to an AutoDial destination or to send an SMS. The action is triggered through a change of the input from HIGH (inactive) to LOW/GND (active). The level change is ac­cepted after 0.3 seconds, i.e. the input is debounced. In addition, there is the possibility for IO tunnelling, i.e. transmit the input states via a TCP connection to another INSYS GPRS/EDGE 5.0 serial or a server.
6.7.1 Automatic SMS Dispatch Via Switch Input
Note
To enable the automatic sending of SMS messages, the device must know the number of a SMS service center. Make sure that the ser­vice center number is entered and stored in the device via AT com­mands.
The INSYS GPRS/EDGE 5.0 serial can send a predefined SMS via a level change of the digi­tal inputs UI. The SMS is triggered through the connection of the input with ground (GND). The alarm input is on HIGH potential by a pull-up resistor in open state (inactive).
The SMS is triggered through a change of the input from HIGH (inactive) to LOW/GND (active). The level change is accepted after 0.3 seconds (debounce).
To resend the SMS, the input must be set to HIGH (inactive). If the input state at both inputs changes at the same time, the input state 1 will be evaluated first. If the state changes at the other input while a state change at one input is being processed, the event is stored and processed later.
62
Page 63
INSYS GPRS/EDGE 5.0 serial Functions
63
Page 64
Functions INSYS GPRS/EDGE 5.0 serial
Alternatively, our example can be set using the terminal program:
In this example, you must note the order of the AT commands!
AT**INPUT1=1
Automatic activation of SMS dispatch
AT**INPUT1=2
AT**INPUT1=1 for input 1; if you want to use only 1
switch input, use input 1.
AT+CPMS=MT,MT,MT
AT**INPUT2=1 for input 2.
Set SMS storage locations
Activate SMS text mode
Delete SMS storage location 1 preliminary,
AT+CMGD=2 for storage location 2. You must delete this storage location, if you want to trigger an SMS via the second input.
The SMS service center number of the network provider (may be omitted if the number is stored on the SIM card).
Enter the destination phone number
Wait for the prompt “>”, enter the text
The SMS is saved using the key stroke combination Ctrl+Z.
If you trigger an SMS via input 2, you continue entering the text for the SMS 2.
With AT+CMGL=ALL, you can check if the messages were stored correctly and in the correct order.
AT+CMGF=1
AT+CMGD=1 AT+CMGD=2
AT+CSCA=<SCNR>
AT+CMGW=<nr>
> <text message 1>
<Ctrl+Z> OK
AT+CMGW=<nr>
> <text message 2>
<Ctrl+Z> OK
64
Page 65
INSYS GPRS/EDGE 5.0 serial Functions
Save settings for advanced functions Save settings for SMS commands Perform RESET, accept all parameters
AT**SAVE AT&W AT**RESET
6.7.2 Connection Setup via Switch Input
By changing the input states, connections can be established to the predefined AutoDial destinations automatically. The inputs are debounced.
At the time of events at the switching inputs, existing connections are terminated. In TCP Listen mode, the TCP Listener is closed as well. The connection is re-established after all the events have been processed, if Leased Line or TCP Listen mode is active.
65
Page 66
Functions INSYS GPRS/EDGE 5.0 serial
Alternatively, the function can be configured using the terminal program:
Automatic activation of the connection setup for Auto­Dial destination <n> via input 1.
AT**INPUT1=<n>
The command to set the input behaviour is
AT**INPUT2=<n> for input 1.
AT**INPUT2=<n> for input 2.
Use the parameter <n> to set the destination, which will be dialled for an event at the input. Values for <n>:
2: IP connection to AT**AUTOIP/AUTOPORTIP 3: IP connection to AT**AUTOURL/AUTOPORTIP 5: IP connection to AT**AUTOIP2/AUTOPORTIP2 6: IP connection to AT**AUTOURL2/AUTOPORTURL2
Example: Connection to predefined IP via event at input 2:
AT**INPUT2=2
6.7.3 Transmitting Input States to Another INSYS GPRS/EDGE 5.0 serial (IO
Tunnelling)
The INSYS GPRS/EDGE 5.0 serial can transmit its input states to another, remote INSYS GPRS/EDGE 5.0 serial or to a server via a TCP/IP connection. The second INSYS GPRS/EDGE 5.0 serial can output the transmitted states at the outputs. The second de­vice can output the states of its inputs at the outputs of the first device as well. The "Leased Line" function must be active at the INSYS GPRS/EDGE 5.0 serial so it can estab­lish a permanent connection to the other INSYS GPRS/EDGE 5.0 serial. The second device uses the TCP Listen function to accept the connection of the first device. The states are transmitted periodically, i.e. after a set time or immediately during the change of a state.
The transmission of the states consists of the following sequence: 0x1B<out1><out2> 0x1B = ESC character <out1>= Value for state 0: 0x30. Value for state 1: 0x31. Example =0x1B 0x30 0x31 sets output 1 to 0 and output 2 to 1.
The transmission can take place "in-band", i.e. during a running data transmission. For this purpose, the Escape character is doubled from the sending INSYS GPRS/EDGE 5.0 serial. This means that two Escape characters are sent. This prevents the misinterpreta­tion of the Escape characters in the data stream.
66
Page 67
INSYS GPRS/EDGE 5.0 serial Functions
Configuration of the first device:
67
Page 68
Functions INSYS GPRS/EDGE 5.0 serial
Configuration of the second device:
68
Page 69
INSYS GPRS/EDGE 5.0 serial Functions
Alternatively, this function can be set using the terminal program:
Configuration of the first device:
Enter the output device as AutoDial address:
AT**LL=2
Activate the leased line operation to the IP address of the other device
AT**AUTOIP=100.1
20.32.5
Define the transmission port:
AT**AUTOIOPPORT= 1234
Activate the change transmission for input 1:
AT**INPUT1=8
Activate the change transmission for input 2:
AT**INPUT2=8
Set the transmission behaviour:
-for the transmission when the level is changed:
AT**INPUTCHANGE=
-for the transmission after a certain time (in minutes):
1
Values for <n>: 1-255 (minutes) The option AT**INPUTTIMEOUT Option can be used si-
multaneously with AT**INPUTCHANGE. AT**INPUTTIMEOUT prevents the provider from termi­nating the unused, open connection.
Save the settings. Reset the device.
AT**INPUTTIMEOUT =<n>
AT**SAVE AT**RESET
Configuration of the second device:
Activate TCP Listen:
AT**TCPLISTEN=1
Set the port to accept the connection
AT**TCPLISTENPOR T=1234
Activate the automatic connection acceptance after 2 "rings",
ATS0=2
Activate the change transmission for input 1:
AT**INPUT1=8
Activate the change transmission for input 2:
AT**INPUT2=8
Set the transmission behaviour:
-for the transmission when the level is changed:
AT**INPUTCHANGE= 1
-for the transmission after a certain time (in minutes):
69
Page 70
Functions INSYS GPRS/EDGE 5.0 serial
Values for <n>: 1-255 (minutes)
The option AT**INPUTTIMEOUT Option can be used si­multaneously with AT**INPUTCHANGE. AT**INPUTTIMEOUT prevents the provider from termi­nating the unused, open connection.
Save the settings. Save the standard settings. Reset the device.
AT**INPUTTIMEOUT =<n>
AT**SAVE AT&W AT**RESET
70
Page 71
INSYS GPRS/EDGE 5.0 serial Functions
6.8 Remote Configuration
During a CSD or “TCP transparent” data connection, the INSYS GPRS/EDGE 5.0 serial can be switched to remote command mode by entering the escape sequence via the data connection from the remote terminal.
Note: After the 4 escape characters were entered at the local de-
vice (1 second pause before and after the entry, no re­turn - <CR> -), the remote configuration at the remote terminal is activated. The data connection is main­tained in the background. The 4 escape characters must be entered within 1 second.
If this was configured, the configuration password is queried be­fore the switching to the remote command mode occurs.
Note: See also Chapter 6.1.1 - Password Protection
After the escape sequence is detected, the prompt for entering the password appears.
If no valid password is entered within 30 seconds (attention: complete the entry with line end character), the configuration mode will be exited with the following message
A valid password is acknowledged with OK; now the AT com­mands released for remote configuration can be entered.
<pause> **** <pause>
CONFIG PASSWORD:
ERROR
OK
Terminate configuration
Note: Due to the sometimes long packet run times for TCP
connections, the escape character **** must be sent in one TCP packet. Otherwise the pauses between the in­dividual characters get too large and the reception of the sequence is terminated.
6.9 Firmware Update
The firmware of the µcontroller can be loaded locally (via the serial
interface), and remote (CSD or "TCP transparent" connection).
Before the firmware is updated, hardware handshake must
always be activated ((INSYS GPRS/EDGE 5.0 serial and re­mote terminal).
The process is started. The device prepares itself for receiving the new firmware.
AT**EXIT
AT**FLASH
Send *.HEX file now
71
Page 72
Functions INSYS GPRS/EDGE 5.0 serial
After the response, the firmware (file with the ending *.hex) is sent as a text file.
After the file has been received, the device needs up to 60 seconds to complete the upload. Afterwards, the (INSYS GPRS/EDGE 5.0 se­rial will automatically perform a restart.)
Note
After an update, the settings are reset to the factory defaults. The SIM card PIN (AT**PIN) and the standard command settings of
the GSM/GPRS engine are maintained, which means that if auto­matic call acceptance (e.g. ATS0=2) is activated, the device can still be accessed from outside to enable the re-configuration of the ex­tended functions per CSD call via remote configuration.
6.10 Virtual COM Port
Applications, which up to now communicated with the end devices via a modem connection or directly via a serial interface, will not function directly with TCP connections.
A virtual COM port is required, which will process TCP connections on one side and make a COM port to the operating system avail­able on the other side. Click on the “Serial/VCom” tab.
INSYS MICROELECTRONICS GmbH offers a free virtual COM port for the operating systems Windows XP/2000.
The virtual COM port provides the following functions:
6.10.1.1 Authentication for Outgoing TCP Connection:
Notification about a unique device ID via a UDP packet prior to the actual TCP connection, or directly at the beginning of a TCP connection.
6.10.1.2 Information about New IP Address:
This setting will only apply to the operating mode TCP Listen. It is used to communicate the just allocated IP address together with a unique device
72
Page 73
INSYS GPRS/EDGE 5.0 serial Functions
ID to the server (IP address or domain name), when IP addresses are dy­namically allocated.
6.10.1.3 Authentication for Incoming TCP Connection:
This setting will only apply to the operating mode TCP Listen. A TCP con­nection is only accepted if the "caller" has sent a valid authentication via a UDP packet in advance. This function is also used to terminate a "hanging" TCP connection for the INSYS GPRS/EDGE 5.0 serial (e.g. due to a network failure or a crash of the remote terminal). When a valid UDP packet is re­ceived, the existing TCP connection is terminated to be able to accept the new connection.
Please request more information about the virtual COM port VCOM from insys@insys-tec.de.
73
Page 74
Short Description INSYS AT Commands INSYS GPRS/EDGE 5.0 serial
7 Short Description INSYS AT Commands
7.1 Overview
Implementation possible
Offline local for
Command Short description
Establish CSD or “TCP
ATD
ATH
ATA
AT**AUTOCSD
AT**AUTOIP
AT**AUTOPORTIP
AT**AUTOURL
AT**AUTOPORTURL
AT**BAUD
AT**CALLBACK
AT**CLIP
AT**CSDPRIO
AT**DEFAULT
AT**DIALIN
AT**DIALINNR
AT**EXIT
AT**FLASH
AT**FORMAT
AT**GPRSAPN
AT**GSMNET
AT**GSMREQ
AT**IMEI
transparent” connec­tions
Terminate CSD or “TCP transparent” connec­tions
Accept CSD or “TCP transparent” connec­tions
AutoDial CSD destina­tion number
AutoDial destination: IP address
AutoDial destination port for destination IP
AutoDial destination: domain name
AutoDial destination port for domain name
Baud rate of the serial interface
AutoDial function callback
Selective call answer X
Termination of GPRS connections for incom­ing CSD calls
Factory settings of the INSYS AT commands
Dial-in type for inte­grated TCP/IP stack
Dial-in number for integrated TCP/IP stack
Exit remote command mode
Firmware update of the µcontroller
Data format of the serial interface
GPRS-APN for inte­grated TCP/IP stack
Display of GSM network parameters
Query interval for automatic SMS process­ing and reading the network parameters
Display of device IMEI X
Offline
local
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
active PPP con-
nection (TCP
Listen)
X X
X X X
X
X X X X
X X X X
X X X X
X X X X
X X X X
X X
X X X X
X X X X
X X X X
X X X X
X X X
X X X X
X
X X
X X X X
X X X X
X X X X
X X X X
Online
local
Remote SMS
X X X X
74
Page 75
INSYS GPRS/EDGE 5.0 serial Short Description INSYS AT Commands
Implementation possible
Offline local for
Command Short description
AT**IMSI
AT**IN
AT**INPUT
AT**INPUTCHANGE
AT**INPUTTIMEOUT
AT**KEEP
AT**LASTCON
AT**LL
AT**LLWAITRST
AT**LLWAIT
AT**LOGOUT
AT**OUT
AT**PASSC
AT**PIN
AT**PPPAUTH
AT**PPPPW
AT**PPPUSER
AT**PPPIPCHECK
AT**PROFILE
AT**PROVIDER
AT**RESET
AT**S0
AT**SAVE
AT**SCN
AT**SIGNAL
AT**SMSRX
Display of SIM-IMSI X
Query of the switch inputs
Determine event han­dling for inputs
Transmitting the input state for changes at the input level
Periodic transmission of the input states
TCP Keep Alive X
Display of information about the last connec­tion
AutoDial function leased line
Number of failed dialup attempts until reset in Leased Line mode
Incrementation of the waiting period between leased line dial-up attempts
Timer-controlled log­out/login
Set/reset the switch outputs
Configuration password X
SIM card PIN X
PPP authentification type for integrated TCP/IP stack
PPP password for inte­grated TCP/IP stack
PPP user name for integrated TCP/IP stack
PPP connection check for operating mode TCP Listen
Display settings X
GSM network provider selection
Restart X
Number of ring tones before automatic call acceptance
Save the extended INSYS settings
SMS service center number
GSM signal field strength
Automatic SMS recep­tion processing
Offline
local
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
active PPP con-
nection (TCP
Listen)
X X X X
X X X X
X X X X
X X X X
X X X X
X X X X
X X X X
X X X
X X X X
X X X X
X X X X
X X X X
X X X X
X X X X
X X
X X X X
X X X X
X
X
X X X
X X X X
X X X X
X X X X
X X X X
X X X X
X X X X
X X X X
Online
local
Remote SMS
75
Page 76
Short Description INSYS AT Commands INSYS GPRS/EDGE 5.0 serial
Implementation possible
Offline local for
Command Short description
TCP block formation
AT**TCPAGG
AT**TCPBLOCK
AT**TCPLISTEN
AT**TCPLISTENPORT
AT**TCPLISTENWAITRST
AT**VCOM
AT**VCOMPORT
AT**VCOMIP
AT**VCOMURL
AT**VCOMTIMEOUT
AT**VERSION
timer of the integrated TCP/IP stack:
TCP block size of the integrated TCP/IP stack
Operating mode TCP Listen
TCP data port for in­coming TCP connec­tions in the operating mode TCP Listen
Number of failed dialup attempts until reset in TCP Listen mode
Support of the INSYS virtual COM port driver
UDP destination port for the information about the IP address for TCP Listen
UDP destination IP address for the infor­mation about the IP address for TCP Listen
UDP destination URL for the information about the IP address for TCP Listen
Timeout for TCP variant for authentification at the virtual COM port
Display of the software version
Offline
local
X
X
X
X
X
X
X
X
active PPP con-
nection (TCP
Listen)
X X X X
X X X X
X X X X
X X X X
X X X X
X X X X
X X X X
X X X X
Online
local
Remote SMS
X
X
X
X X X X
X X X X
X X X X
X = implemented/enabled
76
Page 77
INSYS GPRS/EDGE 5.0 serial Short Description INSYS AT Commands
7.2 Availability/Storage
The following INSYS AT commands are saved immediately after they are entered without AT**SAVE, but only activated after a restart.
AT**PROVIDER AT**PIN AT**GPRSAPN AT**PPPAUTH
The following settings are immediately saved when entered, and active:
AT**BAUD AT**FORMAT
The other settings are immediately accepted and first stored permanently with AT**SAVE.
77
Page 78
GSM, GPRS, and EDGE General INSYS GPRS/EDGE 5.0 serial
8 GSM, GPRS, and EDGE General
8.1 Application Notes
8.1.1 GSM
The provider enables the requested services. A SIM card can be enabled for voice and data services at the same time. The following table lists the usually available cards and contracts.
Function Prepaid card Contract for voice
transmission
Outgoing data con­nection (mobile originated CSD call)
Incoming data con­nection (mobile terminated CSD call)
SMS
Voice connection -
- -
Contract for data transmission
Contract for voice and data transmis­sion
(call at data phone number required)
(call at voice phone number required)
8.1.2 GPRS and EDGE
When using data services via GPRS/EDGE, providers offer various contract options, especially regarding the pricing (basic price, basic data volume, billing unit). Please contact your provider for further information.
In general, GPRS/EDGE providers bill every time a connection is terminated and daily at midnight (the provider will terminate the connection at this time), and all accumulated data are rounded to the billing unit.
We therefore recommend selecting a rate which offers the smallest possible bill­ing unit.
Many GSM/GPRS providers offer so-called M2M rates, which have an exact 1 kb billing matrix.
78
Page 79
INSYS GPRS/EDGE 5.0 serial GSM, GPRS, and EDGE General
r
A
r
A
Note
The transmitted amounts of data consist of the sum of application user data and the TCP packet data. The information from the TCP/IP packets also represents a network load and will add to the total costs.
For the entire data amount it is also important to select parameters adjusted to the application to form TCP packets. These parameters consist of:
The maximum set block value (default: 512 byte) (see AT**TCPBLOCK)
The maximum waiting period (AT**TCPAGG).
As for GPRS, EDGE offers an always available connection for users as well; trans­mission rates of up to 230 kbps (upload and download) are possible. Price struc­tures, which are not time-based, make this technology suitable for regular re­quests of plant data as well as transmission of large data amounts (e.g. video im­ages).
8.2 Network Design
The GPRS system is intended as additional service within the scope of the GSM system. The GPRS data exchange (GPRS = General Packet Radio Services) runs packet-oriented, based on the Internet Protocol (IP).
The following figure shows the basic design, where the application has to provide the TCP/IP/PPP stacks. This is required when using the standard GPRS functional­ity of the INSYS GPRS/EDGE 5.0 serial.
pplication
Mobile application
TCP
PPP/IP
PPP/IP
IP
GPRS carrier
GPRS engine
IP
GPRS carrier
Route
(GGSN)
IP IP
Remote terminal
pplication serve
TCP
IP
GPRS network radio components and internal GPRS network
79
Page 80
GSM, GPRS, and EDGE General INSYS GPRS/EDGE 5.0 serial
8.3 TCP Transparent
This function represents the main characteristic of the extended function. By means of the integrated TCP/IP stacks, the INSYS GPRS/EDGE 5.0 serial functions as “modem emulation” for the application; the user data are provided transpar­ently via the serial interface ("TCP transparent" connection).
There is no need for the application to process any additional protocol stacks.
To establish TCP connections to the INSYS GPRS/EDGE 5.0 serial, it is necessary to ac­cess the IP address of the GPRS device. This function must be supported by the net­work operator or the provider.
80
Note
The integrated TCP/IP stack will establish a new GPRS connection for each “TCP transparent” connection, i.e. after the end/termination of the “TCP transparent” connection follows the calculation of the GPRS provider, where the data accumulated until then is rounded to the next billing unit.
This does not apply if the operating mode TCP Listen is activated; in this case, the GPRS context is preserved after the TCP connection is terminated, which means that the billing takes place only for a so­called forced billing by the provider (once a day) or during a con­trolled termination of the GPRS context by the device itself (periodic login/logout or device restart, termination of the connection and reconnection due to failed PPPIPCHECK, or deactivation of TCP Lis­ten).
Page 81
INSYS GPRS/EDGE 5.0 serial GSM, GPRS, and EDGE General
8.4 IP Addresses/Accessibility
The IP address of the GPRS terminal is dynamically allocated by the provider and therefore only temporary. During the next dial-in at the provider, a new IP ad­dress is allocated.
In almost all GPRS networks the IP address can not be accessed from outside as the providers perform the addressing for the switch from GPRS networks to the “normal Internet” via a NAT table (Network Address Translation) to manage the address area limited by IPV4.
These firewalls prevent the GPRS device or its IP address from being accessed by so-called "scanners". As GPRS is billed by the amount of data, this prevents un­wanted and costly data traffic.
This also means that the following functions may not be possible:
Pinging the GPRS device from outside Establishing TCP/IP connections to the GPRS device from outside Sending UDP/IP packets to the GPRS device from outside
All connections (channels) must be opened starting with the GPRS device. This means that the GPRS device or the application behind it can only react as CLIENT.
Exceptions to this restriction will be provided by the according provider, if avail­able. Please also contact your provider to clarify if it is possible to use a VPN (Vir­tual Private Network) for possibly required server functionality.
81
Page 82
GSM, GPRS, and EDGE General INSYS GPRS/EDGE 5.0 serial
8.4.1 Fixed IP Address and VPN Connection
The service provider mdex (http://www.mdex.eu) offers the service "fixed.IP". With this service, one or more devices in a virtual private network can be ad­dressed. SIM cards are thus grouped to form a closed network with a private IP address area. Connections from the company network to the devices will then be established via a VPN tunnel.
Internet-PC
Internet-PC
Web-Server
Web-Server
Rest der
Welt
Internet
GPRS-Netz
mobile und dezentrale GPRS-Adapter
The service fixed.IP from mdex will enable GPRS devices to communicate with each other as well as with computers in the Internet via a VPN connection.
8.5 Data Rates
The INSYS GPRS/EDGE 5.0 serial has the following characteristics:
GPRS Multislot class 12, Coding Scheme 1 to 4 EDGE multislot class 12, Modulation and Coding Scheme 1 to 9 (optional) GPRS End device class B PBCCH Support
GPRS/EDGE has several classes (Multislot classes) which are relevant for the transmission speed. The classes provide the maximum transmission speed for up­link and downlink.
The table below shows the number of time slots for the classes, which can be used for uplink, downlink, and for the device altogether.
GPRS/EDGE devices support all variants up to their own Multislot class.
geschlossene
Benutzergruppe
Firmennetzmobiler Arbeitsplatz
82
Page 83
INSYS GPRS/EDGE 5.0 serial GSM, GPRS, and EDGE General
Multislot class Downlink slots Uplink slots Active slots
8 4 TS 1 TS 5 TS
9 3 TS 2 TS 5 TS 10 4 TS 2 TS 5 TS 11 4 TS 3 TS 5 TS 12 4 TS 4 TS 5 TS
The maximum possible data rate therefore depends on the Multislot class of the device. The above table shows the available time slots (TS) of a device; the table below shows the maximum data rate. The data rate, on the other hand, depends on the used coding scheme (CS) for GPRS or Modulation and Coding Scheme (MCS) for EDGE. This information is unfortunately not available for the user. The network providers use different coding schemes according to the reception situa­tion.
2 TS 3 TS 4 TS
1 TS
CS1 CS2 CS3 CS4
GPRS data rates of PC data only (without GPRS control data)
MCS1 MCS2 MCS3 MCS4 MCS5 MCS6 MCS7 MCS8 MCS9
EDGE data rates of PC data only (without EDGE control data)
8 16 24 32 12 24 36 48
14.4 28.8 43.2 57.6 20 40 60 80
1 TS 2 TS 3 TS 4 TS
8.8 17.6 26.4 35.2
11.2 22.4 33.6 44.8
14.8 29.6 44.4 59.2
17.6 35.2 52.8 70.4
22.4 44.8 67.2 89.6
29.6 59.2 88.8 118.4
44.8 89.6 134.4 179.2
54.4 109.6 163.2 219.2
59.2 118.4 177.6 236.8
Note: The above mentioned values represent the theoretically maximum possible
values.
In practice, the following applies: GPRS/EDGE will not provide guaranteed data rates or bandwidths for the applica-
tion. The values allocated by the network provider (coding scheme and time slots to be used) can change dynamically during a connection and, among other things, depend on the current amount of connections in the GSM cell.
83
Page 84
GSM, GPRS, and EDGE General INSYS GPRS/EDGE 5.0 serial
In the device class B, the INSYS GPRS/EDGE 5.0 serial supports the GSM services EDGE (optional), GPRS, CSD and voice. However, only one service can be executed at a time.
8.6 Quality of Service (QoS)
The above mentioned characteristics data rates (in the form of values such as “data amount per hour” and maximum data amount) and delay times are, among others, a part of the Quality of Services.
Theoretically, there is a possibility for requesting a certain QoS profile from the provider during the connection setup via AT commands (AT+CGQREQ) or to define a minimum profile (AT+CGQMIN) which must exceeded by the QoS offered by the provider, in order to enable the device to establish the connection.
Experience has shown that these settings will not show any success regarding performance improvement, as the providers always supply "Best Effort” as QoS, i.e. the best values according to the current network load during the moment of the connection setup.
8.7 Delay Times
The data delays in the GSM radio network are longer than in wire-based net­works.
Typical ping times (disconnect time for 1 short request and answer) are:
GSM / CSD: 500 ms GPRS: 700 ms EDGE: 350 ms
The applications at the GPRS/EDGE end terminals should therefore be configured to maximum delay times if possible.
84
Page 85
INSYS GPRS/EDGE 5.0 serial GSM, GPRS, and EDGE General
8.8 Calculation Examples for Data Transmission via GPRS
8.8.1 Application Description
8.8.1.1 Design of the Entire System
The system consists of a data logger with 8 digital inputs and 4 analogue inputs. The received data can be output in adjustable intervals at the RS232 interface.
The evaluation software at the control center computer will either communicate directly with the data logger via the RS232 interface, or via leased line modems for remote applications.
To save investment and maintenance costs (rent ...) when using leased line mo­dems, the connection should be made via a transparent GPRS modem.
This is what the INSYS GPRS/EDGE 5.0 serial is used for. It is also used for leased line operation, i.e. after being switched on it will automatically attempt to estab­lish a connection with the remote terminal, the INSYS virtual COM port. As soon as the connection is established, all user data from and to the data logger are transmitted via a transparent TCP/IP connection. No adjustment is required for the data logger and the control center computer.
85
Page 86
GSM, GPRS, and EDGE General INSYS GPRS/EDGE 5.0 serial
8.8.1.2 Data Logger User Data
A data logger message has the following setup: Device ID 4 byte 2 x 8 bit for the digital inputs 2 byte 4 x 16 bit for the analogue inputs 8 byte Checksum 1 byte
Total 15 byte
8.8.1.3 User Data Acknowledge of the Control Center
As an option, the data logger/control center software can be configured so that for a data logger message an acknowledging message of the control center (user data acknowledge) is sent.
Set-up: Command (e.g. ACK) 1 byte Checksum 1 byte
Total 2 byte
8.8.2 General Data Amount
For GPRS, such as for all IP-based transmission methods, the user data of the ap­plication are packed into a TCP/IP message and sent to the remote terminal (PUSH); the TCP/IP stack of the remote terminal (e.g. Windows) must acknowledge each received TCP/IP message.
With GPRS, all data accumulated by the user from the IP level (incoming and out­going) are calculated.
8.8.2.1 Transmission of User Data without User Data Acknowledge of the Remote Ter-
minal
Applikation
Total: 95 byte
/
GPRS Modem
Leitstelle
N
u
t
z
d
a
t
e
n
:
1
T
C
P
/
I
P
z
t
u
N
P
I
/
P
C
T
5
P
U
S
H
:
4
0
0
:
n
e
t
a
d
0
4
:
K
C
A
86
Page 87
INSYS GPRS/EDGE 5.0 serial GSM, GPRS, and EDGE General
8.8.2.2 Transmission of User Data with User Data Acknowledge of the Remote Terminal
Applikation
/
GPRS Modem
Leitstelle
N
u
t
z
d
a
t
e
n
:
1
T
C
P
/
I
P
z
t
u
N
P
I
/
P
C
T
a
d
z
t
u
N
P
I
/
P
C
T
N
u
t
z
T
C
P
/
I
P
5
P
U
S
H
:
4
0
0
:
n
e
t
a
d
e
t
d
0
4
:
K
C
A
2
:
K
C
A
n
0
4
:
H
S
U
P
a
t
e
n
:
0
A
C
K
:
4
0
Total: 177 byte
8.8.2.3 TCP Keep Alive
Some GPRS providers terminate the connections when they are inactive. Voda­fone, for example, terminates the connection after approximately 30 minutes without data transfers. For this reason, applications that exchange data in larger intervals should consider a Keep Alive timer. The TCP stack generates an empty TCP message in adjustable intervals which the TCP remote terminal responds to. This will satisfy the expectations of the provider regarding the amount of data. The INSYS GPRS/EDGE 5.0 serial will provide this function.
The application will not notice this action.
Applikation
/
GPRS Modem
Total: 80 byte
Leitstelle
N
u
t
z
d
a
t
e
n
:
T
C
P
/
I
P
t
u
N
I
/
P
C
T
0
P
U
SH
:
4
0
0
:
n
e
t
a
d
z
N
P
0
4
:
K
C
A
87
Page 88
GSM, GPRS, and EDGE General INSYS GPRS/EDGE 5.0 serial
8.8.3 Calculation Example
We assume a GPRS rate for data with a 1kilobyte billing matrix, as offered by T­Mobile and Vodafone as M2M rate.
Usually, GPRS network providers bill once daily, e.g. once a day the sum of all ac­cumulated data since the last billing is rounded to the next billing unit (here: 1 ki­lobyte).
Example T-Mobile: Contract M2M Connect (Date: September 2005)
Basic fee: 3.95 Euro / month Data extension M2M Data 1 for 1 Mb free volume: 2.95 Euro / month Data extension M2M Data 2 for 2 Mb free volume: 3.95 Euro / month Data extension M2M Data 5 for 5 Mb free volume: 4.95 Euro / month Data extension M2M Data 10 for 10 Mb free volume: 6.95 Euro / month
The following examples show merely the pure data transmission. When a TCP/IP connection is established via the INSYS GPRS/EDGE 5.0 serial, data is also gener­ated (128 byte). The INSYS GPRS/EDGE 5.0 serial will not terminate a once estab­lished connection automatically, i.e. the amount of data for the connection setup may be ignored.
However, the following may occur:
The remote terminal can no longer be reached (power failure in the control
center, system crash, new IP address for the control center, …)
The GSM/GPRS network breaks down temporarily The GPRS modem has a power cut
In all cases, the INSYS GPRS/EDGE 5.0 serial will automatically attempt a new con­nection setup to guarantee the availability of the application (attempts in inter­vals of 20s, 80s, 320, 1280s, 1h, 1h, 1h, …).
For the M2M rates, for each (failed) connection setup attempt 1kilobyte amount of data may be assumed (at a 1 kilobyte matrix); it is therefore recommended to plan a reserve of 30 to 50 kb up to the according upper limit of the rate.
88
Page 89
INSYS GPRS/EDGE 5.0 serial GSM, GPRS, and EDGE General
Transmission of values every 15 minutes
Without user data acknowledge
95 byte / 15 min 380 byte / 1 h 9120 byte / 24 h rounded to 9 kb / day
270 kb / month
The contract M2M Connect with M2M Data 1 is sufficient; at all events, there
is enough reserve available.
The monthly costs would be 3.95 + 2.95 = 6.90 Euro.
With user data acknowledge
177 byte / 15 min 708 byte / 1 h 16992 byte / 24 h rounded to 17 kb /
day 510 kb / month
The contract M2M Connect with M2M Data 1 is sufficient; at all events, there
is enough reserve available.
The monthly costs would be 3.95 + 2.95 = 6.90 Euro.
89
Page 90
Sending SMS as Fax or E-Mail INSYS GPRS/EDGE 5.0 serial
9 Sending SMS as Fax or E-Mail
Overview of network providers for German speaking countries (D, A, CH). All nec­essary information is available from the customer service center of the provider. (Subject to change)
9.1 SMS as Fax
Network Pro­vider
T-Mobile (D1) D +49 171 076 0000
D2 Vodafone D +49 172 227 0333
E-Plus (E1) D +49 177 061 0000
T-Mobile A
Swisscom CH +41 79 499 9000
Swisscom CH +41 79 499 8123
Coun
try
Service center
Phone number
99 + dialing code + Phone number 99 + dialing code + Phone number 151 + dialing code + Phone number 6762 + dialing code + Phone number Dialing code + Phone number Dialing code + Phone number
9.2 SMS as E-Mail
Network Pro­vider
T-Mobile (D1) D +49 171 076 0000 8000
Coun try
Service center
Phone number
Example Format
990941586920 This is a test
990941586920 This is a test
1510941586920 This is a test
67620941586920 This is a test
0941586920 *FAX#This is a test
0941586920 *FAX#This is a test
SMS format E-mail address Example
D2 Vodafone D +49 172 227 0333 3400
E-Plus (E1) D +49 177 061 0000 7676245
T-Mobile A +43 676 021 6761
Swisscom CH +41 79 499 9000 555
Swisscom CH +41 79 499 8123 555
90
E-mail address + space + text
abc@defg.de
abc*defg.de This is a test
Page 91
INSYS GPRS/EDGE 5.0 serial GPRS Dial-In Parameters
10 GPRS Dial-In Parameters
Overview of network providers for German speaking countries (D, A, CH). All neces­sary information is available from the customer service center of the provider.
Note: In HSComm we prepared numerous European APNs for selection. (See also Chapter 5.2 - TCP Transparent (GPRS Modem Emulation))
Network Provider
T-Mobile (D1)
Germany
D2 Vodafone
Germany
E-Plus (E1)
Germany
O2 (E2)
Germany
T-Mobile
Austria
Swisscom
Switzerland
mdex
*) not required. **) any password required
APN
AT**GSMAPN=<apn>
internet.t-d1.de
Internet.t-mobile.de
web.vodafone.de **) **)
internet.eplus.de eplus gprs
surf.xxl.interkom.de
netcompany.interkom.de
gprsinternet GPRS *)
gprs.swisscom.ch gprs Gprs
mdex.ic.t-mobile.de see contract data see contract data
User name
AT**PPPUSER=<user>
Password
*) *)
*) *)
AT**PPPPW=<pw>
91
Page 92
FAQ INSYS GPRS/EDGE 5.0 serial
11 FAQ
Problem: Possible cause: Remedy
The INSYS GPRS/EDGE 5.0 serial does not log in:
No reaction to AT com­mands.
The location of the GSM antenna is incorrect.
PIN incorrect Use the HSComm to delete the PIN and to
The SIM card is blocked because the PIN was en­tered incorrectly three times.
The SIM card is not en­abled.
The power supply is not sufficient.
The wrong interface has been selected in the set­tings for the serial inter­face.
There is another program running in the background which accesses the same serial interface.
Check the signal quality of the GSM net­work. For low field strength – below 12 – the antenna location should be changed.
enter the correct PIN.
A PUK must be entered to enable the card. Switch to the terminal program to enter the PUK
and enter the following command: AT+CPIN=<PUK>,<new PIN>
Please contact the contact center of your provider.
Check the voltage supply using the in­formation from Chapter 12 – Technical Data.
Check the interface settings
with the used COM port.
Terminate all programs running in the background.
92
Page 93
INSYS GPRS/EDGE 5.0 serial FAQ
Problem: Possible cause: Remedy
No reaction to AT com­mands.
The serial interface settings at INSYS GPRS/EDGE 5.0 serial and at the application are not identical.
The INSYS GPRS/EDGE 5.0 serial and the application (configuration PC or control­ler) must be operated at the serial inter­face with the same settings for baud rate and data format.
Check the settings of both interfaces!
Settings INSYS GPRS/EDGE 5.0 serial:
Setting of the application - in our exam­ple a PC with the HSComm GPRS:
93
Page 94
FAQ INSYS GPRS/EDGE 5.0 serial
Problem: Possible cause: Remedy
The manual selection of
ATD<ip>:<port> or ATD<domain>:<port>
is not possible. After a few seconds, the messages No Carrier or No Dialtone are displayed.
The GPRS dial-in parame­ters have not been set cor­rectly.
Step 1:
Read out all data using the button “Read settings” from the device and check the settings.
Step 2:
On the tab "GSM/GPRS" check the selec­tion of the network provider.
For some network providers, PAP authen­tication is required.
Please find a selection of network provid­ers for German speaking countries (Ger­many, Austria, Switzerland) in Chapter 11 “GPS Dial-in Parameters” or ask the cus­tomer center of your provider for the cor­rect settings.
Step 3:
Change the settings, if necessary and restart the INSYS GPRS/EDGE 5.0 serial.
Step 4:
Switch to the terminal program
The manual selection of
ATD<ip>:<port> or ATD<domain>:<port>
is not possible. After a few seconds, the messages No Carrier or No Dialtone are displayed.
The modem has not been registered in the GPRS net­work or the SIM card has not been activated for the GPRS service.
and manually dial into the GPRS network. Enter the AT command ATD*99***1#. The successful connection setup is con­firmed with the message Connect.
Check the GPRS registration with the help of the terminal program.
Switch to the terminal program
Enter the AT command AT+CGATT=1. Afterwards, query the network registra­tion status with AT+CGATT?.
If the INSYS GPRS/EDGE 5.0 serial re­sponds as follows:
+CGATT: 1 the device is registered
in the GPRS network.
+CGATT: 0 the device could not be
registered in the GPRS network.
Please contact the customer care center of your provider.
94
Page 95
INSYS GPRS/EDGE 5.0 serial FAQ
Problem: Possible cause: Remedy
The remote terminal (IP address or URL) can not be reached.
Use another remote terminal for testing purposes. Manually select
ATD<ip>:<port> or ATD“<domain>“:<port>
You may also use the URL
www.insys-tec.de“:80 as
„ remote terminal. (see also Chapter 4.5
– Installation – No. 16)
The virtual COM port from INSYS should be used. The device can not be accessed via the virtual COM port.
GPRS dialup fails; output NO CARRIER or ERROR.
A GPRS dialup may fail. As a symptom, a new GPRS dialup will generate the response NO CARRIER or ERROR. The extended error message displays the text "unspeci­fied GPRS error". This state may end after a few sec­onds or minutes, or last longer.
(AT+CMEE=2)
The virtual COM port is not activated.
Error during interplay be­tween engine and network.
The reason is unknown and is most probably due to some error in the interplay between the engine and the network, or directly in the network.
Check the settings for the virtual COM port driver on the tab “Serial/Vcom”.
Completely terminate the GPRS connec­tion, use the command ATCGATT=0.
A counter for dialling attempts is set via the commands
AT**LLWAITRST and
AT**TCPLISTENWAITRST. By de-
fault, the counters are set to 255 and mirror the currently known behaviour: With each failure, only the redialling time period is extended 20s, 80s, 320s, 640s,
1280s, 3600s, 3600s, 3600s,.....). If, for
example, is set, then the device is re­started after the third dialup attempt (20 + 80 + 320 s) and the dialling cycle re­starts.
This function may be used to increase the availability. Faster performed dialling attempts may also incur higher costs.
How to recognize if data is transmitted via an EDGE­connection?
--- Display the cell information table using
the command AT^SMONG and check the value in column G:
G
0 GPRS / EDGE not possible
1 GPRS usage possible
2 GPRS is used
3 EDGE usage possible
4 EDGE is used
95
Page 96
FAQ INSYS GPRS/EDGE 5.0 serial
Problem: Possible cause: Remedy
Existing GPRS connection ceases.
Some providers disconnect connections with no traffic for an extended period.
An incoming call during an active GPRS connection interrupts the data flow.
Such disconnections can be prevented using the TCP keep-alive ( and PPP check ( functions.
The transmission continues after the call is finished. It may happen for extended disconnections that the connection must be re-established again.
AT**PPPIPCHECK)
AT**KEEP)
96
Page 97
INSYS GPRS/EDGE 5.0 serial Technical Data
12 Technical Data
12.1 General
GPRS Multislot class 12
GPRS data transmission
Coding scheme 1 to 4
EDGE data transmission
Mobile Station Class B
Support PBCCH
CSD Data transmission V.21 (300 bps), V.22 (1200 bps), V.22bis (2.400 bps), V.32 (4.800/9.600
Fax Group 3, class 1
SMS MO and MT text und PDU mode, and automatic MT SMS processing;
Baud rates 300, 600, 1.200, 2.400, 4.800, 9.600, 19.200, 28.800, 38.400, 57.600,
Data formats 8N1, 8E1, 8O1, 8N2, 7E1, 7O1, 7N2, 7E2, 7O2
I/O 2 digital inputs (pull-up), 2 digital outputs
EDGE Multislot class 12
Modulation and coding scheme 1 to 9
bps), V.34 (14400 bps), V.110 (300/1.200/2.400/4.800/9.600/14.400)
automatic dispatch of a predefined SMS when the switch input is acti­vated.
115.200,
The input UE can be used to send a predefined SMS. Switch output, max. switching voltage 30 V (DC) / 42 V (AC) Switch output, max. switching current 1 A (DC) / 0.5 A (AC)
Temperature range -20 °C to 55 °C
Output power EGSM 850 and 900: Class 4 (2 W)
GSM 1800 and 1900:
Class 1 (1 W)
12.2 Mechanical Features
INSYS GPRS/EDGE 5.0 serial
250 g
Weight
Dimensions (maximum) w x d x h = 55 x 110 x 75 mm
IP protection class Housing IP 40/ Terminal IP 20
Humidity 0 - 95% non-condensing
97
Page 98
Technical Data INSYS GPRS/EDGE 5.0 serial
12.3 Power Supply
All specified technical data was measured with a nominal input voltage, full load, and an ambient temperature of 25.0 °C. The threshold value tolerances are sub­ject to typical fluctuations. A maximum of one value may be operated in the threshold value range.
The values were determined for a GSM receiving field strength of 16. For lower field strengths on site, the values will increase, especially for CSD or GPRS/EDGE data transmissions.
The current consumption during data transmissions may also increase if the an­tenna is not adjusted correctly.
This can occur when:
The antenna and/or the antenna cable are not adjusted to 50 impedance. The antenna that is being used is misaligned due to the situation at the instal-
lation site (metal parts …).
To operate the INSYS GPRS/EDGE 5.0 serial, a suitable device protection must be used.
Power supply: 10.0.60 V DC
Current consumption - during normal operation -:
Supply Voltage 10V 24V 36V
Field strength 26 26 26
Standby 140 mA 60 mA 42 mA
CSD Data transmission 195 mA 84 mA 60 mA
GPRS/EDGE Data transmission 290 mA 84 mA 60 mA
Note: Average values during data transmission and switched-on relay
(AT**OUT1=close, AT**OUT2=close).
98
Page 99
INSYS GPRS/EDGE 5.0 serial Connections, Display and Control Elements
13 Connections, Display and Control Elements
Position Description
1 Antenna connection 2 RS232 interface connection 3 LEDs 4 SIM card slot 5 SIM card eject button 6 - not used ­7 Reset key
99
Page 100
Connections, Display and Control Elements INSYS GPRS/EDGE 5.0 serial
13.1 Serial Interface
Layout of the 9-pin D-SUB jack
Description of the signals on the 9-pin D-SUB connector on DCE side:
9-pin D-Sub DCE
Pin No.
1 DCD Data Carrier Detect 109 CF M5 O 2 RXD Receive Data 104 BB D2 O 3 TXD Transmit Data 103 BA D1 I 4 DTR Data Terminal Ready 108 CD S1 I 5 GND Ground 102 AB E2 6 DSR Data set ready 107 CC M1 O 7 RTS Request to send 105 CA S2 I 8 CTS Clear To Send 106 CB M2 O 9 RI Ring Indication 125 CE M3 O
13.2 SIM Card
The INSYS GPRS/EDGE 5.0 serial requires a 3V/1.8V SIM card from a GSM provider for operation. The SIM card is the identification for the network provider.
The SIM card must be placed into the carrier with the contacts downward to en­sure that the contacts are on top of each other.
Description Function CCITT
V-24
EIA
RS232
DIN
66020
E/A DCE to DTE
Change the SIM card only when the device is switched off.
100
Loading...