5.6 TCP connection test
Following is an example of AT commands procedure to enable a TCP link to our demo server and test
communication. Please refer to the AT command guide document for a full description.
Description
AT commands
Modem response
Comments
Start TCP/IP
Stack
AT+WIPCFG=1
OK
Enable Error
reporting
messages
AT+CMEE=1
OK
Start PPP
session
AT+WIPBR=4,6
OK
+WORG: #777
+WCNT: 33
+WIPBR: 6,1
+WEND: 25
Get IP address of
PPP session
AT+WIPBR=3,6,15
+WIPBR: 6, 15,
”72.62.190.80”
IP address will change depending on
your unit
Create TCP client
on m2mgateway
server
AT+WIPCREATE=2,1,
”61.93.240.149”,60000
OK
+WORG: #777
+WCNT: 33
+WIPREADY: 2,1
+WEND: 25
Open TCP
channel
AT+WIPDATA=2,1,2
CONNECT
Now your serial port is connected in
data mode to Maestro Wireless
demo server TCP socket
Description
Text to enter
Server response
Comments
Send test string
to server
@TEST!
@TEST,OK!
Please send the string in one hit.
Server will acknowledge any string
with the following format
@<STRING>! by a string
@<STRING>,OK!
Close data mode
+++
OK
+WORG: #777
+WCNT: 33
+WEND: 25
The whole document is the sole property of Maestro Wireless Solutions ltd.
3603-9, 36/F., 118 Connaught Road West, Sheung Wan, Hong Kong
18