Socket Client Sends Data Via Tcp Connection With Urcs; Socket Scenario With Udup Endpoint - Multi-Tech MultiModem EDGE Reference Manual

Wireless edge modems
Table of Contents

Advertisement

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
^SISW: 0,10,20
0123456789
OK
------
^SISW: 0,2
AT^SISC=0
OK

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
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
Multi-Tech Systems, Inc. AT Commands for EDGE Modems (S000371G)
Chapter 10 – Internet Service Commands
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.
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.
Waiting for URC.
Data transfer has been finished.
Closing the Socket service.
Select service type Socket.
Select connection profile 1.
Choose ASCII alphabet.
Specify the local UDP port.
Select service type Socket.
Select connection profile 1.
Choose ASCII alphabet.
Specify the address of host 1.
163

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the MultiModem EDGE and is the answer not in the manual?

Table of Contents