Cinterion
®
EHS6 AT Command Set
10.15 Examples of how to Configure and Use Internet Service Profiles
EHS6_ATC_V03.001 15/12/3
Confidential / Released
Page 272 of 513
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,srvtype,socket
Select service type Socket.
OK
AT^SISS=1,conid,1
Select connection profile 1.
OK
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=0,1
^SISO:
0,"Socket",4,3,0,0,"10.10.0.219:6666","0.0.
0.0:0"
Request connection status.
OK
^SISR: 0,1
URC indicates that host 2 has opened the connec-
tion to host 1 and has sent some data.
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,0,"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
^SIS: 0,5
URC indicates that host 2 can send data.
AT^SISO=1,1
^SISO:
1,"Socket",4,2,0,0,"10.10.0.222:6561","10.1
0.0.219:6666"
Request connection status.
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.
^SISR: 1,25
Hi, I'm the UDP endpoint!
Response indicates that host 2 has received 25
characters from host 1.