Specifications

Chapter 10 – Internet Service Commands
Multi-Tech Systems, Inc. AT Commands for EDGE (E1) Modems (S000474A) 178
10.14.6 Socket Scenario with UDUP Endpoint
The following example shows a communication between a UDP endpoint (host 1) and a UDP client (host 2).
The first part of the example refers to the UDP endpoint and shows the configuration which allows the UDP
endpoint to communicate with any UDP client.
The second part shows the settings of a UDP client.
The third and the fourth part are running in parallel: The third part shows the procedures on the UDP endpoint
side done when communicating with a UDP client.
The fourth part 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:
AT^SISS=0,srvtype,socket Select service type Socket.
OK
AT^SISS=0,conid,1 Select connection profile 1.
OK
AT^SISS=0,alphabet,1 Choose ASCII alphabet.
OK
AT^SISS=0,address,"sockudp://:6666" Specify the local UDP port.
OK
Part 2 - host 2 is configured for use as UDP client:
AT^SISS=0,srvtype,socket Select service type Socket.
OK
AT^SISS=0,conid,1 Select connection profile 1.
OK
AT^SISS=0,alphabet,1 Choose ASCII alphabet.
OK
AT^SISS=0,address,"sockudp://
10.10.0.219:6666" Specify the address of host 1.
OK
Part 3 - host 1 opens the service and communicates with host 2:
AT^SISO=0 Open the service.
OK
^SISW: 0, 1 The URC indicates that host 1 is waiting on UDP port 6666 and can
send data to any UDP client.
^SISR: 0, 1 The URC indicates that host 2 has opened the connection to host 1
and has sent some data.
AT^SISR=0, 100 Host 1 requests to read 100 bytes.
OK
^SISR: 0, 23, 0, 10.10.0.22:6561 Host 1 is reading the text string received from host 2 and gets
information about the remote client, i.e. the address of host 2.
Hello, I'm the client!
OK
AT^SISW=0,1,0,1,"10.10.0.22:6561" Host 1 starts sending a text string to host 2.
^SISW: 0, 1500, 0 Host 1 is sending a text string to host 2. As a result, host 2 is
receiving the URC "^SISR: 0, 1" shown below in part 4 of the
example.
Hi, I'm the UDP endpoint!
OK
^SISW: 0, 1 The URC confirms that host 1 can send data again.
AT^SISC=0 Close the service.
OK