User guide

38
6615-2203
GDW-11 communicates via GPRS to another GDW-11 with TCP
socket connection. This example uses SIM cards with fixed IP
addresses.
GPRS
Network
Configure the GDW-11 with a terminal (both units)
AT+WOPEN=1 Enable Advanced mode. Modem will restart
AT+CPIN=xxxx If PIN code required
AT&F Set the unit to factory default
AT+CGATT=1 Make an attach (register) to the GPRS network
AT&W Store settings
Connect to the ISP using GPRS (both units)
AT*WGPRSAPN=”APN_Server” Set the APN server address
AT*WGPRSUN=”username” Set the APN username
AT*WGPRSPW=”password” Set the APN password
Set up the TCP server
AT*WTCPSERV=”255.255.255.255” No filter of the incoming TCP client IP address
AT*WTCPPORT=9000 Set up the TCP port (it must be the same in both units)
AT*WTCPMODE=1 Set this modem to server
Set up the TCP client
AT*WTCPSERV=”123.456.789.123” Set up the servers IP address
AT*WTCPPORT=9000 Set up the TCP port (it must be the same in both units)
AT*WTCPMODE=0 Set this modem to client
Activate the auto connect mode (both units)
AT*WTCPCONNECT=1 Activate the GPRS context
AT&W Store TCP settings
At the TCP server
Power off / on Auto connect at power on
Ok Response from the modem
Data Data flow is bidirectional (only after the client has connected)
At the TCP client
Power off / on Auto connect at power on
Ok Response from the modem
Data Data flow is bidirectional (only after the client is connected)