iWOW TR-800 Installation manual

inspiring the
World Of Wireless…
TR-800 GSM/GPRS Module
TCP/IP AT Commands Guide
(for firmware version AB_02_00_28N_DEF001)
Date : 15 August 2006
Document Version : 1.1
Our eference : 02000C05
CONFIDENTIAL

TR-800 TCP/IP AT Commands Guide
(for firmware version AB_02_00_28N_DEF001)
02000C05 • v1.1
Confidential
All specifications are correct at the time of release. iWOW Connections owns the proprietary rights to the information contained herein this
document. It may not be edited, copied or circulated without prior written agreement by iWOW Connections Pte Ltd.
© 2006 iWOW Connections Pte Ltd
1
Document Information
Version Date Document History Associated Firmware
Version
0.10 7 Sept 2005 Initial document AMB_02_00_20T_00 and
later
0.11 12 Sept 2005
Minor revisions, open-close quotes to
certain commands were added AMB_02_00_20T_00 and
later
0.12 21 Sept 2005
CME Error codes were added AMB_02_00_20T_00 and
later
0.13 15 Nov 2005 AT Commands were updated AB_02_00_22T_DEF001
and later
1.0 23 Feb 2006
AT-Command were updated, including
Data Mode TCP/IP communication
Introduction to TCP/IP AT-Commands
were added
AB_02_00_25N_DEF001
and later
1.1 15 Aug 2006
New AT-commands added:
AT$SENDMODE, AT$DLEMODE,
AT$TCPSEND, +++ and ATO
Implemented online and offline toggling
feature with ‘+++’ and ‘ATO’
Amended Usage examples
Updated CME Error Codes
AB_02_00_28N_DEF001
For enquiries, please contact:
iWOW Connections Pte Ltd
1 Lorong 2 Toa Payoh #04-01 Yellow Pages Building Singapore 319637
Office: (65) 6748 8123
Fax : (65) 6748 2668
http://www.iwow.com.sg

TR-800 TCP/IP AT Commands Guide
(for firmware version AB_02_00_28N_DEF001)
02000C05 • v1.1
Confidential
All specifications are correct at the time of release. iWOW Connections owns the proprietary rights to the information contained herein this
document. It may not be edited, copied or circulated without prior written agreement by iWOW Connections Pte Ltd.
© 2006 iWOW Connections Pte Ltd
2
GENERAL NOTE
The aim of this document is to support the application and engineering efforts of iWOW customers
that use iWOW’s products. This document is intended for testing, evaluation, integration, and
information purposes.
iWOW makes every effort to ensure that the quality of the information is available. The content of this
documentation is provided on an “as is” basis and may contain deficiencies or inadequacies.
iWOW disclaims any warranty and all responsibility for the application of the device(s) that is made in
relation to the accuracy, reliability or contents of this document. iWOW is not liable for any injury, loss
or damage of any kind incurred for the use of or reliance upon information.
iWOW reserves the right to make any modifications, additions and deletions to this document due to
typographical errors, inaccurate information, or improvements to products at any time and without
notice.

TR-800 TCP/IP AT Commands Guide
(for firmware version AB_02_00_28N_DEF001)
02000C05 • v1.1
Confidential
All specifications are correct at the time of release. iWOW Connections owns the proprietary rights to the information contained herein this
document. It may not be edited, copied or circulated without prior written agreement by iWOW Connections Pte Ltd.
© 2006 iWOW Connections Pte Ltd
3
Contents
1. Introduction ...............................................................................................................4
2. GPRS Dialing Service ...............................................................................................4
2.1. APN server: $APNSRV..................................................................................................................4
2.2. APN username: $APNUSR............................................................................................................4
2.3. APN password: $APNPASS ..........................................................................................................5
2.4. GPRS CID: $GPRSCID..................................................................................................................6
2.5. Listing GPRS parameters: $LSTGPRS..........................................................................................6
3. GSM Dialing Services ...............................................................................................7
3.1. Dialing number: $DIALNUM...........................................................................................................7
3.2. Username: $ISPUSR .....................................................................................................................7
3.3. Password: $ISPPASS....................................................................................................................8
3.4. Listing GSM dial-up parameters: $LSTPPP...................................................................................8
4. Connection Services.................................................................................................9
4.1. Connection Mode: $BEARER ........................................................................................................9
4.2. Starting a bearer: $CONNSTART..................................................................................................9
4.3. Ending a bearer connection: $CONNSTOP.................................................................................10
5. TCP Socket Services...............................................................................................11
5.1. Configuring data-mode or command-mode data transfer: $SENDMODE...................................11
5.2. Data Link Escape mode: $DLEMODE.........................................................................................11
5.3. Setting a TCP server: $TCPSRV .................................................................................................12
5.4. Setting a TCP port: $TCPPORT ..................................................................................................13
5.5. Listing TCP parameters: $LSTTCP..............................................................................................13
5.6. Opening a TCP connection: $TCPOPEN ....................................................................................14
5.7. Sending/Receiving data using command-mode: $TCPSEND.....................................................14
5.8. Toggling between online and offline mode during data mode: +++/ATO ....................................15
6. Usage Example........................................................................................................16
6.1. TCP Connection via GPRS for command-mode..........................................................................16
6.2. TCP Connection via GPRS for data-mode...................................................................................16
7. Appendix..................................................................................................................18
7.1. CME Error Codes.........................................................................................................................18
8. Support ....................................................................................................................19

TR-800 TCP/IP AT Commands Guide
(for firmware version AB_02_00_28N_DEF001)
02000C05 • v1.1
Confidential
All specifications are correct at the time of release. iWOW Connections owns the proprietary rights to the information contained herein this
document. It may not be edited, copied or circulated without prior written agreement by iWOW Connections Pte Ltd.
© 2006 iWOW Connections Pte Ltd
4
1. INTRODUCTION
This document presents iWOW’s AT-commands dedicated to IP connectivity implemented in the TR-
800 GSM/GPRS module.
The commands shown in this document applies to firmware revision AMB_02_00_28N_DEF001.
2. GPRS DIALING SERVICE
2.1. APN server: $APNSRV
Definition: This parameter is provided by the GSM operator for access to GPRS. The values for this
command is savable using AT$W (refer to TR-800 ATC Guide for AT$W).
▪
Setting/Getting:
Set value: AT$APNSRV = “<value>”
Get value: AT$APNSRV? or AT$LSTGPRS
▪
Legal values:
Alphanumeric ASCII text string up to 20 characters
▪
Default value:
There is no default value for this parameter.
▪
Command Syntax:
Command Possible response(s)
AT$APNSRV=”sunsurf” OK
AT$APNSRV?
$APNSRV: “sunsurf”
OK
AT$APNSRV?
$APNSRV: “”
OK
2.2. APN username: $APNUSR
Definition: This parameter is provided by the GSM operator for access to GPRS. The values for this
command is savable using AT$W (refer to TR-800 ATC Guide for AT$W).
▪
Setting/Getting:
Set value: AT$APNUSR = “<value>”
Get value: AT$APNUSR? or AT$LSTGPRS
▪
Legal values:
Alphanumeric ASCII text string up to 20 characters

TR-800 TCP/IP AT Commands Guide
(for firmware version AB_02_00_28N_DEF001)
02000C05 • v1.1
Confidential
All specifications are correct at the time of release. iWOW Connections owns the proprietary rights to the information contained herein this
document. It may not be edited, copied or circulated without prior written agreement by iWOW Connections Pte Ltd.
© 2006 iWOW Connections Pte Ltd
5
▪
Default value:
There is no default value for this parameter.
▪
Command Syntax:
Command Possible response(s)
AT$APNUS=”user” OK
AT$APNUSR?
$APNUSR: “user”
OK
AT$APNUSR?
$APNUSR: “”
OK
2.3. APN password: $APNPASS
Definition: This parameter is provided by the GSM operator for access to GPRS. The values for this
command is savable using AT$W (refer to TR-800 ATC Guide for AT$W).
▪
Setting/Getting:
Set value: AT$APNPASS = “<value>”
Get value: AT$APNPASS? or AT$LSTGPRS
▪
Legal values:
Alphanumeric ASCII text string up to 20 characters
▪
Default value:
There is no default value for this parameter.
▪
Command Syntax:
Command Possible response(s)
AT$APNPASS=”password” OK
AT$APNPASS?
$APNPASS: “password”
OK
AT$APNPASS?
$APNPASS: “”
OK

TR-800 TCP/IP AT Commands Guide
(for firmware version AB_02_00_28N_DEF001)
02000C05 • v1.1
Confidential
All specifications are correct at the time of release. iWOW Connections owns the proprietary rights to the information contained herein this
document. It may not be edited, copied or circulated without prior written agreement by iWOW Connections Pte Ltd.
© 2006 iWOW Connections Pte Ltd
6
2.4. GPRS CID: $GPRSCID
Definition: This command is used to specify active PDP context.
▪
Setting/Getting:
Set value: AT$GPRSCID = <value>
Get value: AT$GPRSCID? or AT$LSTGPRS
▪
Legal values:
Numeric value 1 or 2.
▪
Default value: 1
▪
Command Syntax:
Command Possible response(s)
AT$GPRSCID=1 OK
AT$GPRSCID?
$GPRSCID: 1
OK
2.5. Listing GPRS parameters: $LSTGPRS
Definition: This command directs the TCP/IP to display all the AT$ parameters related to the GPRS
connection configuration.
▪
Command Syntax:
Command Possible response(s)
AT$LSTGPRS
$APNSRV: “sunsurf”
$APNUSR: “user123”
$APNPASS: “pass123”
$GPRSCID: 1
OK
AT$LSTGPRS
$APNSRV: “”
$APNUSR: “”
$APNPASS: “”
$GPRSCID: 1
OK
▪
List of parameters:
APNSRV
APNUSR
APNPASS
GPRSCID

TR-800 TCP/IP AT Commands Guide
(for firmware version AB_02_00_28N_DEF001)
02000C05 • v1.1
Confidential
All specifications are correct at the time of release. iWOW Connections owns the proprietary rights to the information contained herein this
document. It may not be edited, copied or circulated without prior written agreement by iWOW Connections Pte Ltd.
© 2006 iWOW Connections Pte Ltd
7
3. GSM DIALING SERVICES
3.1. Dialing number: $DIALNUM
Definition: ISP provided dial-up phone number that is used to connect with local ISP. Length depends
on country.
▪
Setting/Getting:
Set value: AT$DIALNUM = “<value>”
Get value: AT$DIALNUM?
▪
Legal values:
Decimal phone numbers
▪
Default value:
There is no default value for this parameter.
▪
Command Syntax:
Command Possible response(s)
AT$DIALNUM=”96162531” OK
AT$DIALNUM?
$DIALNUM: ”96162531”
OK
AT$DIALNUM?
$DIALNUM: ””
OK
3.2. Username: $ISPUSR
Definition: ISP account username that must be provided to ISP upon successful establishment of the
physical layer.
▪
Setting/Getting
Set value: AT$ISPUSR = “<value>”
Get value: AT$ISPUSR?
▪
Legal values
Alphanumeric ASCII text string up to 64 characters.
▪
Default value
There is no default value for this parameter.
▪
Command Syntax
Command Possible response(s)
AT$ISPUSR=”username” OK
AT$ISPUSR?
$ISPUSR: ” username”
OK
AT$ISPUSR?
$ISPUSR: ””
OK

TR-800 TCP/IP AT Commands Guide
(for firmware version AB_02_00_28N_DEF001)
02000C05 • v1.1
Confidential
All specifications are correct at the time of release. iWOW Connections owns the proprietary rights to the information contained herein this
document. It may not be edited, copied or circulated without prior written agreement by iWOW Connections Pte Ltd.
© 2006 iWOW Connections Pte Ltd
8
3.3. Password: $ISPPASS
Definition: ISP account password that must be provided to ISP upon successful establishment of the
physical layer.
▪
Setting/Getting:
Set value: AT$ISPPASS = “<value>”
Get value: AT$ISPPASS?
▪
Legal values:
Alphanumeric ASCII text string up to 64 characters.
▪
Default value:
There is no default value for this parameter.
▪
Command Syntax:
Command Possible response(s)
AT$ISPPASS=”password” OK
AT$ISPPASS?
$ISPPASS: ” password”
OK
AT$ISPPASS?
$ISPPASS: ””
OK
3.4. Listing GSM dial-up parameters: $LSTPPP
Definition: This command directs the TCP/IP to display all the AT$ parameters related to the PPP
connection configuration.
▪
Command Syntax
Command Possible response(s)
AT$LSTPPP
$DIALNUM: “1234567”
$PPPUSR: “user123”
$PPPPASS: “pass123”
OK
AT$LSTPPP
$DIALNUM: “”
$PPPUSR: “”
$PPPPASS: ””
OK
▪
List of parameters:
DIALNUM
PPPUSR
PPPPASS

TR-800 TCP/IP AT Commands Guide
(for firmware version AB_02_00_28N_DEF001)
02000C05 • v1.1
Confidential
All specifications are correct at the time of release. iWOW Connections owns the proprietary rights to the information contained herein this
document. It may not be edited, copied or circulated without prior written agreement by iWOW Connections Pte Ltd.
© 2006 iWOW Connections Pte Ltd
9
4. CONNECTION SERVICES
4.1. Connection Mode: $BEARER
Definition: This command is used to choose active connection mode (GSM or GPRS).
▪
Setting/Getting:
Set value: AT$BEARER= <value>
Get value: AT$BEARER? or AT$LSTGPRS
▪
Legal values:
0: GSM
1: GPRS
▪
Default value: 1
▪
Command Syntax:
Command Possible response(s)
AT$BEARER=1 OK
AT$BEARER?
$BEARER: 1
OK
4.2. Starting a bearer: $CONNSTART
Definition: This command is used to dial out and establish connection to the internet using context
defined by $BEARER.
Upon receiving this instruction, the TCP/IP stack initiates a complete session according to the
following:
•
In GSM mode, the TCP/IP stack will establish a GSM data connection with DIALNUM,
PPPUSR, and PPPPASS parameters.
•
In GPRS mode, the TCP/IP stack will establish a GPRS session using APNUSR, APNPASS,
and GPRSCID parameters. Successful GPRS link indicates that the device is connected to the
Internet. The AT$CONNSTOP command closes the connection.
▪
Command Syntax:
Command Possible response(s)
AT$CONNSTART
Note: Connect Ok_Info_GprsActivation
EXT: 0
OK

TR-800 TCP/IP AT Commands Guide
(for firmware version AB_02_00_28N_DEF001)
02000C05 • v1.1
Confidential
All specifications are correct at the time of release. iWOW Connections owns the proprietary rights to the information contained herein this
document. It may not be edited, copied or circulated without prior written agreement by iWOW Connections Pte Ltd.
© 2006 iWOW Connections Pte Ltd
10
4.3. Ending a bearer connection: $CONNSTOP
Definition: This command directs the TCP/IP stack to end a GPRS or GSM connection previously
established with the $CONNSTART command.
▪
Command Syntax:
Command Possible response(s)
AT$CONNSTOP
Note: Disconnect Ok_Info_GprsDeactivation
EXT: 0
OK
Note: Phone line is released.

TR-800 TCP/IP AT Commands Guide
(for firmware version AB_02_00_28N_DEF001)
02000C05 • v1.1
Confidential
All specifications are correct at the time of release. iWOW Connections owns the proprietary rights to the information contained herein this
document. It may not be edited, copied or circulated without prior written agreement by iWOW Connections Pte Ltd.
© 2006 iWOW Connections Pte Ltd
11
5. TCP SOCKET SERVICES
5.1. Configuring data-mode or command-mode data transfer: $SENDMODE
Definition: This command is used to define what mode (data-mode or command-mode) to employ
when sending/receiving data through a TCP socket. The values for this command is savable
using AT$W (refer to TR-800 ATC Guide for AT$W).
▪
Setting/Getting:
Set value: AT$SENDMODE = <mode>
Get value: AT$SENDMODE?
▪
Legal values:
0: Mode 0, Using command-mode for data sending and receiving.
1: Mode 1, Using data-mode for data sending and receiving.
▪
Default value:
Mode=1
▪
Command Syntax:
Command Possible response(s)
AT$SENDMODE? $SENDMODE: 1
OK
AT$SENDMODE=0
Note: Enable command-mode data
sending/receiving
OK
Note: This command is not allowed when TCP socket is established.
5.2. Data Link Escape mode: $DLEMODE
Definition: This command is used by the user to decide whether to code the ETX (End of Text)
character when opening a TCP socket.
▪
Setting/Getting:
Set value: AT$DLEMODE = <mode>
Get value: AT$DLEMODE?
▪
Legal values:
0: Mode 0, 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 an end of connection or to receive a clear
indication of end of connection from the TCPIP stack.
1: Mode 1, When DLEMODE is set to 1, the ETX character means a request or an indication or
end of connection. As a consequence, ETX characters that belong 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.

TR-800 TCP/IP AT Commands Guide
(for firmware version AB_02_00_28N_DEF001)
02000C05 • v1.1
Confidential
All specifications are correct at the time of release. iWOW Connections owns the proprietary rights to the information contained herein this
document. It may not be edited, copied or circulated without prior written agreement by iWOW Connections Pte Ltd.
© 2006 iWOW Connections Pte Ltd
12
▪
Default value:
Mode=1
▪
Command Syntax:
Command Possible response(s)
AT$DLEMODE? $DLEMODE: 1
OK
AT$DLEMODE=0 OK
5.3. Setting a TCP server: $TCPSRV
Definition: This command is used to define the IP address of the remote TCP server (or host) when
using a TCP connection.
▪
Setting/Getting:
Set value: AT$TCPSRV = <mode>, “<value>”
Get value: AT$TCPSRV?
▪
Legal values:
0: Mode 0, the value is a 32-bit number in dotted-decimal notation (i.e. xxx.xxx.xxx.xxx)
1: Mode 1, the alphanumeric ASCII text string up to 120 characters
▪
Default value:
There is no default value for this parameter.
▪
Command Syntax:
Command Possible response(s)
AT$TCPSRV? $TCPSRV: “0.0.0.0”
OK
AT$TCPSRV=0,”111.222.111.222”
OK
AT$TCPSRV?
$TCPSRV: “111.222.111.222”
OK
Note: The command would use the latest server IP/name entered despite the mode used. This
means that it is possible to set a server name different from the server IP you entered, but the TCP/IP
stack would always use the last setting entered. $LSTTCP can be used to check settings.

TR-800 TCP/IP AT Commands Guide
(for firmware version AB_02_00_28N_DEF001)
02000C05 • v1.1
Confidential
All specifications are correct at the time of release. iWOW Connections owns the proprietary rights to the information contained herein this
document. It may not be edited, copied or circulated without prior written agreement by iWOW Connections Pte Ltd.
© 2006 iWOW Connections Pte Ltd
13
5.4. Setting a TCP port: $TCPPORT
Definition: This command is used to define the port number of the remote TCP server (or host) when
using a TCP connection.
▪
Setting/Getting:
Set value: AT$TCPPORT = <value>
Get value: AT$TCPPORT? Or AT$LSTTCP
▪
Legal values:
Numbers 0 to 65535.
▪
Default value: 0
▪
Command Syntax:
Command Possible response(s)
AT$TCPPORT?
$TCPPORT: 0
OK
AT$TCPPORT=1111 OK
AT$TCPPORT?
$TCPPORT: 1111
OK
5.5. Listing TCP parameters: $LSTTCP
Definition: This command directs the TCP/IP to display all the AT$ parameters related to the TCP
socket configuration.
▪
Command Syntax:
Command Possible response(s)
AT$LSTTCP
$DLEMODE: 1
$TCPSRV: “123.145.123.124”
$TCPPORT: 5013
OK
AT$LSTTCP
$DLEMODE: 1
$TCPSRV: “”
$TCPPORT: 0
OK
▪
List of parameters:
TCPSRV
TCPPORT

TR-800 TCP/IP AT Commands Guide
(for firmware version AB_02_00_28N_DEF001)
02000C05 • v1.1
Confidential
All specifications are correct at the time of release. iWOW Connections owns the proprietary rights to the information contained herein this
document. It may not be edited, copied or circulated without prior written agreement by iWOW Connections Pte Ltd.
© 2006 iWOW Connections Pte Ltd
14
5.6. Opening a TCP connection: $TCPOPEN
Definition: This local command directs the TCP/IP stack to open a TCP connection to the specified
TCP server. Once the physical link (using $CONNSTART) is established, the attached host can open
a TCP connection at any time (except when the TCP/IP stack software is already in the process using
TCP/IP resources).
Depending on the mode (AT$SENDMODE) selected for the data transfer, this command gives
different responses.
•
For command-mode (AT$SENDMODE=0) sending, after this command is issued, AT$TCPSEND
(refer to Section 5.7) is used to send the data and any data received is shown as unsolicited
responses.
•
For data-mode (AT$SENDMODE=1) sending, after this command is issued, the TCP socket is
opened and data can be sent directly over the link. All 8-bit ASCII characters are accepted. The
TCP/IP socket may be closed using the ETX character (^C) (Refer to Section 5.2:
AT$DLEMODE).
▪
Command Syntax:
Command Possible response(s)
AT$TCPOPEN
Note: Request opening of TCP
socket for command-mode sending.
OK
AT$TCPOPEN
Note: Request opening of TCP
socket for data-mode sending.
Ok_InfoWaitingForData
EXT: 0
Note: This message signals that the TCP socket
has been opened.
5.7. Sending/Receiving data using command-mode: $TCPSEND
Definition: This local command directs the TCP/IP stack to send data to the TCP server specified by
$TCPSRV and $TCPPORT.
Once the TCP connection is opened, the attached host can send data at any time (except when the
TCP/IP stack software is already in the process using TCP/IP resources). One command is able to
send 255 bytes. All 7-bit ASCII characters are accepted except ‘\’, ‘”’ and ‘;’.
▪
Command Syntax:
Command Possible response(s)
AT$TCPSEND=”<data>”
Note: Can send up to 255 bytes.
OK

TR-800 TCP/IP AT Commands Guide
(for firmware version AB_02_00_28N_DEF001)
02000C05 • v1.1
Confidential
All specifications are correct at the time of release. iWOW Connections owns the proprietary rights to the information contained herein this
document. It may not be edited, copied or circulated without prior written agreement by iWOW Connections Pte Ltd.
© 2006 iWOW Connections Pte Ltd
15
5.8. Toggling between online and offline mode during data mode: +++/ATO
Definition: These commands allow the user to switch between online and offline mode during a data
connection. To switch from online mode to offline mode, the ‘+++’ sequence must be sent after which
the module goes to offline mode with an ‘OK’ response and AT-commands can be entered. To switch
from offline mode to online mode, ‘ATO’ must be sent after which a ‘CONNECT’ response is
observed.
▪
Command Syntax:
Command Possible response(s)
+++
Note: During a data connection
OK
Note: AT-command can be entered.
ATO
CONNECT
Note: Data connection reestablished.

TR-800 TCP/IP AT Commands Guide
(for firmware version AB_02_00_28N_DEF001)
02000C05 • v1.1
Confidential
All specifications are correct at the time of release. iWOW Connections owns the proprietary rights to the information contained herein this
document. It may not be edited, copied or circulated without prior written agreement by iWOW Connections Pte Ltd.
© 2006 iWOW Connections Pte Ltd
16
6. USAGE EXAMPLE
6.1. TCP Connection via GPRS for command-mode
This example illustrates how user sends data over a TCP connection using the TCP/IP stack for
command-mode. A GPRS connection is made to M1 GPRS. Upon successful GPRS connection, the
example connects to an echo server with pre-defined IP address and port. With this TCP connection
being successfully opened, a string “hello world” is sent to the server. The server echoes the string
back and “hello world” will be displayed on the AT command line. A TCP connection close command
will be executed followed by a GPRS connection close command.
Command Possible response(s) Explanation
AT$APNSRV=”sunsurf” OK Set the correct APN server
AT$LSTGPRS $APNSRV: "sunsurf"
$APNUSR: ""
$APNPASS: ""
$GPRSCID: 1
OK
View GPRS settings
AT$TCPSRV=0,”203.127.161.123” OK Set the TCP server using IP
address (dotted quad format)
AT$TCPPORT=5062 OK Set the TCP port
AT$SENDMODE=0 OK Select command-mode for data
transfer
AT$CONNSTART Ok_Info_GprsActivation
EXT: O
OK
Attach to GPRS.
AT$TCPOPEN Ok_Info_WaitingForData
EXT: O
OK
Open connection to TCP server.
Connection successful
AT$TCPSEND=”hello world” OK
$RECV: “hello world”
Sends “hello world” to TCP echo
server. Receives echo of “hello
world” back.
AT$TCPCLOSE Ok_Info_DataClosed
EXT: O
OK
Closes TCP connection to server.
Connection closed successfully.
AT$CONNSTOP Ok_Info_GprsDeactivation
EXT: O
OK
Close GPRS connection
successfully.
6.2. TCP Connection via GPRS for data-mode

TR-800 TCP/IP AT Commands Guide
(for firmware version AB_02_00_28N_DEF001)
02000C05 • v1.1
Confidential
All specifications are correct at the time of release. iWOW Connections owns the proprietary rights to the information contained herein this
document. It may not be edited, copied or circulated without prior written agreement by iWOW Connections Pte Ltd.
© 2006 iWOW Connections Pte Ltd
17
This example illustrates how user sends data over a TCP connection using the TCP/IP stack for data-
mode. A GPRS connection is made to M1 GPRS. Upon successful GPRS connection, the example
connects to an echo server with pre-defined IP address and port. With this TCP connection being
successfully opened, data can be sent directly over the link and the data echoed back will be
displayed. This example also shows how ‘+++’ and ‘ATO’ are used to switch between online and
offline modes. A TCP connection close command will be executed followed by a GPRS connection
close command.
Command Possible response(s) Explanation
AT$APNSRV=”sunsurf” OK Set the correct APN server
AT$LSTGPRS $APNSRV: "sunsurf"
$APNUSR: ""
$APNPASS: ""
$GPRSCID: 1
OK
View GPRS settings
AT$TCPSRV=0,”203.127.161.123” OK Set the TCP server using IP
address (dotted quad format)
AT$TCPPORT=5062 OK Set the TCP port
AT$SENDMODE=1 OK Select data-mode for data transfer.
AT$CONNSTART Ok_Info_GprsActivation
EXT: O
OK
Attach to GPRS.
AT$TCPOPEN Ok_Info_WaitingForData
EXT: O
Open connection to TCP server.
Connection successful. Data can
be sent by keying in.
+++ OK Exit online mode to offline mode.
AT+COPS? +COPS: 0,0,"SGP-M1-3GSM" AT-commands can be entered
now.
ATO CONNECT Exit offline mode back to online
mode. Data can be sent by keying
in.
^C Ok_Info_DataClosed
EXT: O
OK
Close TCP connection to server.
Connection closed successfully.
AT$CONNSTOP Ok_Info_GprsDeactivation
EXT: O
OK
Close GPRS connection
successfully.

TR-800 TCP/IP AT Commands Guide
(for firmware version AB_02_00_28N_DEF001)
02000C05 • v1.1
Confidential
All specifications are correct at the time of release. iWOW Connections owns the proprietary rights to the information contained herein this
document. It may not be edited, copied or circulated without prior written agreement by iWOW Connections Pte Ltd.
© 2006 iWOW Connections Pte Ltd
18
7. APPENDIX
7.1. CME Error Codes
The error codes and descriptions are listed in the following table:
ERROR Description
3000 An asynchronous error network event has occurred
3001 A parameter given to the function is invalid
3002 An internal error has happened
3003 The address or port is already in use
3004 There is not enough memory to fulfill the request
3005 The socket is not of a type that can support this operation
3006 The specified host cannot be reached
3007 The connection to the specified address was refused by the remote host
3008 The request could not be fulfilled because the socket is already connected
3009 The connection attempt timed out without establishing a connection
3010 The specified host could not be found in the DNS
3011 A temporary DNS error has occurred. Retrying the query may be successful
3012 A permanent DNS error has occurred
3013 The specified name has been found in the DNS, but no IP address is available
3014 The size of the data buffer is too large for a UDP socket
3015 The connection has been reset by the remote peer
3016 The connection was aborted due to timeout or some other error condition
3017 Sending failed temporarily because the space to buffer the message was
exhausted.
3018 The operation failed because TCP/IP's bearer connection has been
disconnected
3019 The operation failed because the bearer connection has not been opened.
3020 The bearer connection could not be opened because the mobile is not yet
completely attached to the network. A retry at a later time may be successful.
3021 The operation failed because a similar operation is already in progress.
3022 The operation failed because a bearer connection is already open.
3023 Mobile equipment is not ready for TCP/IP connectivity
3024 Bearer is not open
3025 Connection is not open yet
3026 Bearer open fail
3027 Socket create fail
3028 Operation not allowed

TR-800 TCP/IP AT Commands Guide
(for firmware version AB_02_00_28N_DEF001)
02000C05 • v1.1
Confidential
All specifications are correct at the time of release. iWOW Connections owns the proprietary rights to the information contained herein this
document. It may not be edited, copied or circulated without prior written agreement by iWOW Connections Pte Ltd.
© 2006 iWOW Connections Pte Ltd
19
8. SUPPORT
▪
For direct clients: contact iWOW FAE (Technical Support Department)
▪
For distributor clients: contact iWOW distributor FAE
▪
For distributors: contact iWOW FAE
- End of document -
Other manuals for TR-800
1
Table of contents