Parameters and values, Notes, Examples – Synaccess Networks NP-0801DTM User Manual
Page 225

CUSTOM AT COMMANDS
225
HSPA+ AT Commands Reference Guide
Parameters and Values
Socket connection identifier.
1‐6
Transmission protocol.
0
TCP.
1
UDP.
Remote host port to contact.
1‐65535
String type, address of the remote host. Can be:
any valid IP address in the format: “xxx.xxx.xxx.xxx”.
any host name to be solved with a DNS query.
Socket closure behavior for TCP.
0
Local host closes immediately when remote host has closed. Default: 0.
255
Local host closes after an escape sequence (+++).
UDP connections local port.
1‐65535
Connection mode.
0
Online mode connection. Default: 0.
1
Command mode connection.
Notes
Note: If
entered, with the intermediate result code CONNECT. After the CONNECT you can suspend the direct interface
to the socket connection (the socket stays open) using the escape sequence (+++): the module moves back to
command mode and you receive the final result code OK after the suspension. After such a suspension, it’s
possible to resume it in every moment (unless the socket inactivity timer timeouts, see #SCFG) by using the #SO
command with the corresponding
If you set
remain in command mode and the result code OK appears.
If there are input data arrived through a connected socket and not yet read because the module entered
command mode before reading them (after an escape sequence or after #SD is issued with
command mode connection), these data are buffered and the SRING URC is received. The SRING presentation
format depends on the last #SCFGEXT setting. It is possible to read these data afterwards issuing #SRECV. Under
the same hypotheses it is possible to send data while in command mode issuing #SSEND
Resume of the socket(#SO) after suspension or closure(#SH) has to be done on the same instance on which the
socket was opened through #SD. In fact, suspension is done on the instance itself
Examples
Open socket 1 in online mode
AT#SD=1,0,80,”www.google.com”,0,0,0
CONNECT