15 socket dial - #sktd – Rainbow Electronics GM862-QUAD-PY User Manual
Page 349

AT Commands Reference Guide
80000ST10025a Rev. 5 - 09/07/08
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved
page 349 of 434
#GPRS - GPRS Context Activation
SELINT 2
AT#SGACT=0,1).
AT#GPRS?
Read command reports the current status of the PDP context #1, in the
format:
#GPRS: <status>
where:
<status>
0 - PDP context #1 deactivated
1 - PDP context #1 activated
2 - PDP context #1 activation pending.
AT#GPRS=?
Test command returns the allowed values for parameter <mode>.
Example
AT#GPRS=1
+IP: 129.137.1.1
OK
Now PDP Context #1 has been activated and our IP is
129.137.1.1
AT#GPRS=0
OK
Now PDP Context #1 has been deactivated, IP is lost.
Note
It is strongly recommended to use the same command (e.g. #GPRS) to
activate the context, deactivate it and interrogate about its status.
3.5.7.5.15 Socket Dial - #SKTD
#SKTD - Socket Dial
SELINT 0 / 1
AT#SKTD
[=<socket type>,
<remote port>,
<remote addr>,
[<closure type>],
[<local port>]]
Set command opens the socket towards the peer specified in the
parameters.
Parameters:
<socket type> - socket protocol type
0 - TCP (factory default)
1 - UDP
<remote port> - remote host port to be opened
0..65535 - port number (factory default is 0)
<remote addr> - address of the remote host, string type. This parameter
can be either:
- any valid IP address in the format: xxx.xxx.xxx.xxx
- any host name to be solved with a DNS query in the format: <host
name>
(factory default is the empty string “”)
<closure type> - socket closure behaviour for TCP
0 - local host closes immediately when remote host has closed (default)
255 - local host closes after an escape sequence (+++) or after an abortive
disconnect from remote.
<local port> - local host port to be used on UDP socket