Cinterion
®
ENS22-E AT Command Set
7.14 Examples of how to Configure and Use Internet Service Profiles
ENS22-E_ATC_V01.000
19/02/11
Page 124 of 189
7.14
Examples of how to Configure and Use Internet Service Profiles
Below you can find selective examples of how to configure and use Internet service profiles. To visualize the dif-
ference between URC mode and polling mode the operation of services (after opening with
) is
explained in separate examples for either mode.
For all examples it is assumed that a connection profile has been created as explained in Section
When GSM alphabet is enabled (see
) keep in mind that escape sequences are required for some spe-
cial characters: For example, underscore "_" shall be escaped with \11. See also Section
for more information on character set and escape sequences.
7.14.1
Selecting URC Mode or Polling Mode
To enable or disable the presentation of URCs for the Internet services use the
command, type "TcpIp/
WithURCs" and select "on" or "off" for parameter
.
7.14.2
UDP Scenario
The following example shows a communication between a UDP endpoint (host 1) and a UDP client (host 2).
Part 1 of the example refers to the UDP endpoint and shows the configuration which allows the UDP endpoint to
communicate with any UDP client.
Part 2 shows the settings of a UDP client.
Part 3 and 4 are running in parallel: Part 3 shows the procedures on the UDP endpoint side done when commu-
nicating with a UDP client. Part 4 shows the equivalent steps done by the UDP client when communicating with
the UDP endpoint.
Part 1 - host 1 is configured for use as UDP endpoint:
Part 2 - host 2 is configured for use as UDP client:
at^scfg=tcp/withurcs
Query the current setting.
^SCFG: "Tcp/WithURCs","on"
URC mode is enabled (delivery default).
OK
at^scfg=tcp/withurcs,off
Select polling mode (by switching off URC mode).
^SCFG: "Tcp/WithURCs","off"
Polling mode is accepted.
OK
AT^SISS=0,"srvType","Socket"
Select service type Socket.
OK
AT^SISS=0,"alphabet","1"
The character set of string parameters(ASCII).
OK
AT^SISS=0,"conId",1
Select connection profile 1.
OK
AT^SISS=0,"address","sockudp://:6666"
Specify the local UDP port.
OK
AT^SISS=1,"srvType","Socket"
Select service type Socket.
OK
AT^SISS=1,"alphabet","1"
The character set of string parameters(ASCII).
OK
AT^SISS=1,"conId",1
Select connection profile 1.
OK