![Gemalto Cinterion ENS22-E Скачать руководство пользователя страница 125](http://html.mh-extra.com/html/gemalto/cinterion-ens22-e/cinterion-ens22-e_at-command-set_2206709125.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 125 of 189
Part 3 - host 1 opens the service and communicates with host 2:
Part 4 - host 2 opens the service and communicates with host 1:
AT^SISS=1,"address","sockudp://
10.10.0.219:6666"
Specify the address of host 1.
OK
AT^SISO=0
Open the service.
OK
^SIS: 0, 5
URC indicates that host 1 is waiting (on UDP port
6666).
AT^SISO?
Request connection status.
^SISO:
0,"Socket",4,3,0,0,"10.10.0.219:6666","0.0.
0.0:0"
^SISO: 1,""
^SISO: 2,""
^SISO: 3,""
^SISO: 4,""
OK
AT^SISR=0,100
Host 1 requests to read 100 bytes.
OK
^SISR: 0, 22, "10.10.0.222:6561"
Hello, I'm the client!
Host 1 is reading the text string received from host 2
(see part 4 of the example) and gets information
about the remote client, i.e. the address of host 2.
OK
AT^SISW=0,25,"10.10.0.222:6561"
Host 1 starts sending 25 bytes to host 2.
^SISW: 0, 25, 0
Host 1 is sending the message "Hi, I'm the UDP end-
point!" (25 bytes) to host 2. As a result, host 2 is
receiving the URC "^SISR: 1, 1" shown below in part
4 of the example.
OK
^SISW: 0, 1
URC confirms that host 1 can send data again.
AT^SISC=0
Close the service.
OK
AT^SISO=1
Open the service.
OK
^SISW: 1, 1
URC indicates that host 2 can send data.
AT^SISO?
Request connection status.
^SISO: 0,""
^SISO:
1,"Socket",4,2,0,0,"10.10.0.222:6561","10.1
0.0.219:6666"
^SISO: 2,""
^SISO: 3,""
^SISO: 4,""
OK
AT^SISW=1,22
Host 2 starts to write 22 bytes.
^SISW: 1, 22, 0
Host 2 is writing the message "Hello, I'm the client!"
(22 bytes). As a result, host 1 is receiving the URC
"^SISR: 0, 1" shown above in part 3 of this example.
OK
^SISW: 1, 1
URC confirms that host 2 could send data.
^SISR: 1, 1
URC indicates that host 2 has received data from
host 1.
AT^SISR=1,100
Host 2 requests to read 100 bytes.