
Chapter 3 – IP Protocol Services
Multi-Tech Systems, Inc. IP Connectivity AT Commands for GPRS-F4 Wireless Modems (PN S000437C) 18
Service Creation +WIPCREATE Continued
Examples:
Command Responses
AT+WIPCREATE=1,1,80
Note: Create the UDP socket on local port 80
with communication index = 1 Ù Wireless
CPU
®
acts as an UDP server awaiting for
incoming datagram on local port 80
OK
Note: An unsolicited event +WIPREADY: 1,1
will be received once the UDP socket is ready
for usage
AT+WIPCREATE=1,1,”www.wavecom.com”,
80
Note: Create the UDP socket on arbitrary free
local port with peer IP and peer port 80 with
communication index = 1 Ù Wireless CPU
®
acts as a UDP client that can send datagram
towards the remote entity
OK
Note: An unsolicited event +WIPREADY: 1,1
will be received once the UDP socket is ready
for usage
AT+WIPCREATE=1,1,80,”www.wavecom.co
m”,80
Note: Create the UDP socket on local port 80
with peer IP and peer port 80 with
communication index = 1 Ù Wireless CPU
®
acts as a UDP client and an UDP server : it can
send datagram towards the remote entity and
receiving datagram on the specified local port.
OK
Note: An unsolicited event +WIPREADY: 1,1
will be received once the UDP socket is ready
for usage
AT+WIPCREATE=3,1,80,5,9
Note: Create the TCP server on port 80 with
server index=1 Ù Wireless CPU
®
acts as a
TCP server : it will from now on spawn TCP
client socket from communication index 5 to 9
OK
Note: An unsolicited event +WIPACCEPT: 1,5
will be received once the TCP server is ready
for usage
AT+WIPCREATE=2,1,”IP ADDR”,80
Note: Create the TCP client on port 80 with
index=1 Ù Wireless CPU
®
acts as a TCP client
: it can from now on communicate with the
remote specified entity through communication
index 1
OK
Note: An unsolicited event +WIPREADY: 2,1
will be received once the TCP client is ready for
usage
AT+WIPCREATE=4,1,”ftp.wavecom.com”,”a
dmin”,”123456”
Note: Create a FTP session Ù towards the
remote specified FTP server. Communication
index to be used then is 1
OK
Notes:
• The +WIPCREATE command causes the connection and authentication to the FTP server. If
several file uploads and retrievals are required to/from the same server, a single connection with
+WIPCREATE is needed. Then, each file operation will be done (one +WIPFILE command per
operation), and the FTP connection will be released with +WIPCLOSE.
• SIM card is required only if FTP session is established through GSM or GPRS. An FTP session
upon an UART will work without a SIM card.
Comentarios a estos manuales