![Gemalto Cinterion ENS22-E Скачать руководство пользователя страница 126](http://html.mh-extra.com/html/gemalto/cinterion-ens22-e/cinterion-ens22-e_at-command-set_2206709126.webp)
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 126 of 189
7.14.3
Creating Transparent UDP Socket Client
7.14.4
Opening and Closing Transparent UDP Service
^SISR: 1, 25
Hi, I'm the UDP endpoint!
Response indicates that host 2 has received 25
characters from host 1.
OK
AT^SISC=1
Close the service.
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
AT^SISS=1,"address","sockudp://
10.10.0.110:9996;etx=26;timer=200"
Specify server address. Add "etx" parameter to set
Transparent mode.
OK
AT^SISO=1
Open Transparent UDP service.
OK
^SISW: 1, 1
URC indicates that Transparent UDP service is
ready.
at^sist=1
Open transparent access mode.
CONNECT
Service is ready to send or receive data.
Client is sending data, e.g Good Morning (not visible
in example).
Client types +++ to return to AT command mode
(+++ not visible in example).
OK
at^sisi=1
Check the service state of service profile 1.
^SISI: 1,4,0,16,0,0
Service is in state "Up" (4). 0 bytes received, 16
bytes sent.
OK
AT^SISO?
Check the service state of service profile 1.
^SISO: 0,""
^SISO:
1,"Socket",4,2,0,16,"10.10.0.200:1024","10.
10.0.108:65532"
Service is in state "Up" (4). Socket is assigned. 0
bytes received, 16 bytes sent. Local and remote IP
address are assigned.
^SISO: 2,""
^SISO: 3,""
^SISO: 4,""
^SISO: 5,""
^SISO: 6,""
^SISO: 7,""
^SISO: 8,""
^SISO: 9,""
OK
AT^SISC=1
Close the service.
OK
at^sisi=1
Check the service state of service profile 1.
^SISI: 1,2,0,0,0,0
Service profile 1 is in state "Allocated" (2).
OK