10.14.5 Socket Client Sends Data via TCP Connection with URCs. Multi-Tech MTSMC-E, MTCBA-E-EN2, SocketModem EDGE, MultiModem rCell, MTCMR-E, MTCBA-E-U, MultiModem iCell, MTCBA-E, MultiModem EDGE
Advertisement
Advertisement
Chapter 10 – Internet Service Commands
10.14.5 Socket Client Sends Data via TCP Connection with URCs
The example uses service profile 0 configured for Socket service and TCP.
AT^SISO=0
OK
^SISW: 0,1
AT^SISW=0,10
^SISW: 0,10,10
0123456789
OK
^SISW: 0,1
AT^SISW=0,10,1
The host opens service profile 0.
Socket service is ready for upload.
The host requests to write 10 bytes.
Response that 10 bytes can be sent and are unacknowledged.
^SISW: 0,10,20
The URC indicates that the Socket service is ready to transfer more data.
Data of the last AT^SISW command are transferred to the remote host.
The host requests to write next 10 bytes and enables the end-of-data flag to notify that these are the last 10 bytes of the session.
Response that the service accepts 10 bytes and this data and the previously sent data are unacknowledged.
0123456789
OK
------
^SISW: 0,2
AT^SISC=0
OK
Waiting for URC.
Data transfer has been finished.
Closing the Socket service.
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
OK
AT^SISS=0,conid,1
OK
AT^SISS=0,alphabet,1
OK
AT^SISS=0,address,"sockudp://:6666"
OK
Select service type Socket.
Select connection profile 1.
Choose ASCII alphabet.
Specify the local UDP port.
Part 2 - host 2 is configured for use as UDP client:
AT^SISS=0,srvtype,socket
OK
AT^SISS=0,conid,1
OK
AT^SISS=0,alphabet,1
OK
AT^SISS=0,address,"sockudp://
10.10.0.219:6666"
OK
Select service type Socket.
Select connection profile 1.
Choose ASCII alphabet.
Specify the address of host 1.
Multi-Tech Systems, Inc. AT Commands for EDGE Modems (S000371G)
163
Download
Advertisement