1 3 G E T T I N G S T A R T E D W I T H E X A M P L E S
U G _ C e l l G O 3 G _ V 2 . 0 . 0 _ R e v 1
6 4 / 6 5
13.7
Open a TCP session: AT#OTCP
Open a TCP socket between two machines. One machine acts as a caller (TCP client), and one as a
listener (TCP server). Both machines have to be connected to the Internet and set on the same TCP port.
The CellGO3G is the TCP client.
13.7.1
AT#DLEMODE set to 0
Commands
Responses
AT#TCPSERV=1,”xxx.xxx.xxx.xxx”
OK
AT#TCPPORT=1,23
Note: TCP port between the TCP
client and the TCP server must be
the same.
OK
AT#otcp=1
Note: Open, as a TCP client, a
socket TCP with a remote TCP
server
Ok_Info_WaitingForData
Note: Message notifying that the socket is open and the switch
from command to data mode.
Note:
Attached
host
or/and
remote TCP socket send data
Data
Notes:
-
Data flow is bi-directional.
-
The attached host must not use <DLE> <ETX>
mechanism to send data to the CellGO3G.
-
The CellGO3G does not use <DLE> <ETX> mechanism
to send data to the attached host.
Notes:
-
The remote TCP socket has
closed the TCP session.
-
End of the TCP session for
the CellGO3G.
Note: Switch from command to data mode.
Ok_Info_SocketClosed
OK
Summary of Contents for CellGO3G
Page 1: ...CellGO3G User Guide ...