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

Page 225

Advertising
background image

CUSTOM AT COMMANDS 

 

 

225 

HSPA+ AT Commands Reference Guide

 

Parameters and Values 

<connId> 

Socket connection identifier. 

1‐6 

 

<txProt> 

Transmission protocol. 

TCP. 

UDP. 

<rPort> 

Remote host port to contact. 

1‐65535 

 

<IPaddr> 

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. 

<closureType> 

Socket closure behavior for TCP. 

Local host closes immediately when remote host has closed. Default: 0

255 

Local host closes after an escape sequence (+++). 

<lPort> 

UDP connections local port. 

1‐65535 

 

<connMode> 

Connection mode. 

Online mode connection. Default: 0

Command mode connection. 

Notes 

„

<closureType> parameter is valid for TCP connections only and has no effect (if used) for UDP connections. 

„

<lPort> parameter is valid for UDP connections only and has no effect (if used) for TCP connections. 

„

Note: If <connMode> is set to online mode connection and the command is successful online data mode is 
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 <connId>. 

„

If you set <connMode> to command mode connection and the command is successful, the socket is opened, you 
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 <connMode> set to 
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

Advertising