User manual

Confidential, the whole present document is the sole property of Maestro Wireless Solution Ltd.
22
5. AT COMMAND DRIVEN TCP/UDP CONNECTION
This feature let user to make a TCP or UDP connection upon the AT+OTCP or AT+OUDP command.
This socket connection feature does support DLE/ETX character coding.
Make sure you have made the GPRS connection by AT+IPCONNECT command before making socket connection (see
Chapter 24, setup examples).
5.1. AT commands for Auto TCP/UDP connection
5.1.1. AT+DLEMODE command
When performing the AT command driven TCP or UDP socket connection, the attached host has the choice to code or
not the ETX character.
When DLEMODE is set to 0, no specific process is needed on ETX characters. It means that it is not possible for a host
to request a end of connection or to receive a clear indication of end of connection from the TCP/IP stack.
When DLEMODE is set to 1, the ETX character means a request or an indication of end of connection.
As a consequence, ETX characters that belongs to the payload data must be sent by the host on the serial port preceded
by a DLE
character. Similarly ETX characters received by the TCP/IP stack from the Internet are sent to the host through the serial
port preceded by a DLE character
ETXis character hex 03, DLEcharacter is hex 10 (Dec 16)
Default value is 0.
Command Syntax
AT+DLEMODE=<mode>
Response syntax:
+DLEMODE: <mode>
Command
Possible responses:
AT+ DLEMODE =0
OK
Note : disable DLEMODE
AT+ DLEMODE =1
OK
Note: Enable DLEMODE
AT+ DLEMODE?
+DLEMODE : 1
OK
Note: display current status
AT+ DLEMODE =?
+DELMODE : (0-1)
Note : possible argument
Defined Values:
<mode>
1 enable DLEMODE
0 disable DLEMODE
Note :
- DLEMODE is not available for Automatic TCP/UDP connection.