![Gemalto Cinterion ENS22-E Скачать руководство пользователя страница 92](http://html.mh-extra.com/html/gemalto/cinterion-ens22-e/cinterion-ens22-e_at-command-set_2206709092.webp)
Cinterion
®
ENS22-E AT Command Set
7. Internet Service Commands
ENS22-E_ATC_V01.000
19/02/11
Page 92 of 189
7.
Internet Service Commands
Cinterion
®
ENS22-E has an embedded TCP/IP stack that is driven by AT commands and enables the host
application to easily access the Internet. The advantage of this solution is that it eliminates the need for the
application manu-facturer to implement own TCP/IP, thus minimizing cost and time to integrate Internet
connectivity into a new or existing host application. This chapter is a reference guide to all the AT commands
and responses defined for use with the TCP/IP stack.
The embedded TCP/IP stack provides the following services:
1.
Socket Services:
- UDP Client in Non-Transparent or Transparent Mode
- Non-Transparent UDP Endpoint
Please note that a total number of 5 sockets is available for usage.
Step-by-step overview of how to configure and use TCP/IP communications with
Cinterion
®
ENS22-E:
• Select URC mode or polling mode as described below.
• First of all, create a GPRS connection profile with
. The connection profile is a set of basic param-
eters which determines the type of connection to use for an Internet service. The connection type is also
referred to as bearer. Up to 5 connection profiles can be defined, each identified by the
.
• Secondly, use
to create a service profile based on one of the connection profiles. Up to 5 service
profiles can be defined, each identified by the
. The service profile specifies the type of
Internet service to use, e.g., Socket. To assign a connection profile to a service profile, the
must be entered as "conId" value of the
parameter
This offers great flexibility to combine connection profiles and service profiles.
• Once the connection profile and the service profile are created, an Internet session can be opened by entering
the
A URC indicates how to proceed. The "
" URC means that data can be sent. The "
" URC means
that received data are available for reading. If an error occurs the "
" URC is delivered instead.
• The next steps differ depending on the service type and the transfer mode (Non-Transparent or Transparent).
• Once a service is opened, the
command shall be used to monitor the progress of the session. The
command reports the service state of the used service profile and indicates the number of bytes received, the
number of bytes sent.
• If an error occurs during a session you can enter the
command and the
to iden-
tify the reason. This is especially important in polling mode.
command can be used any time to query the current status of one or all connection profile(s).
• Finally, to close an opened service, enter the
write command and the
.
and
are volatile. To store the settings to non-volatile memory and
load the stored profiles
can be used.
Transparent Mode or Non-Transparent Mode:
•
Transparent Mode
is stream-oriented, i.e. a single data stream can be sent, and another single data stream
can be received. Packetizing of data is done automatically by the embedded TCP/IP stack.
Transparent Mode is activated with
and then indicated by the "CONNECT" result code. The mode
and
read and write sequences.
•
Non-Transparent Mode
is packet oriented, i.e. data is transferred in separate packets. Maximum packet size
is 1358 bytes for UDP. To read and write data
sequences shall be used.
To send or receive more than 1358 bytes, the read or write action shall be repeated until the data transfer has
completed. Each read or write action requires that the command response (of
) con-
firms that the service is ready to send or receive data. The read/write cycles can be controlled by URCs or
polling. For details see below section "URC mode and polling mode".
• UDP Endpoint employ Non-Transparent Mode.
UDP client can employ both modes, and may even mix both modes in the same connection.