14.03.2015 Views

AT Commands Reference Manual - wireless netcontrol GmbH

AT Commands Reference Manual - wireless netcontrol GmbH

AT Commands Reference Manual - wireless netcontrol GmbH

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

TCP/IP: MIP <strong>Commands</strong> Using Cases<br />

OK<br />

+MIPCALL: 2,1,"172.18.38.35"<br />

The user can get information about an already activated PDP context by +MIPCALL 'read'<br />

command, as follows:<br />

<strong>AT</strong>+MIPCALL?<br />

+MIPCALL: 1,1,"172.16.194.255"<br />

+MIPCALL: 2,5,"172.18.38.35"<br />

OK<br />

An active PDP context can be deactivated either by the user or by the module (Network). When<br />

the module receives a PDP context deactivation message from the Network, or detects a SIM card<br />

was removed, it informs the user about a PDP context inactive by sending "+MIPCALL:<br />

,0" unsolicited response for each active CallID.<br />

Socket Operations<br />

Open/Close a Socket<br />

Actual MIP implementation supports up to 20 socket id's, each of them may be used to open a<br />

TCP (active or listen) socket as well as opening a UDP socket. The following example<br />

demonstrates how to obtain a list of unoccupied sockets by +MIPOPEN 'read' command.<br />

<strong>AT</strong>+MIPOPEN?<br />

+MIPOPEN: 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20<br />

OK<br />

The user is able to open a socket (available from the list above) by +MIPOPEN 'set' command, as<br />

shown below (assuming, that a PDP context was successfully activated by +MIPCALL with 'call<br />

id' parameter = 1).<br />

<strong>AT</strong>+MIPOPEN=1,1,1080,"www.google.com",80,0<br />

OK<br />

+MIPOPEN: 1,1,1<br />

As shown in this example, socket id = 1 is opened, with the following parameters:<br />

protocol:<br />

TCP<br />

local port: 1080<br />

remote port: 80<br />

remote network address: www.google.com<br />

After the socket open process is initiated, its id is removed from list of unoccupied sockets. At<br />

this stage, the unoccupied sockets' list will look as follows:<br />

<strong>AT</strong>+MIPOPEN?<br />

+MIPOPEN: 2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20<br />

OK<br />

Let's open one more socket:<br />

<strong>AT</strong>+MIPOPEN=1,3,1082,"www.yahoo.com",80,0<br />

OK<br />

+MIPOPEN: 1,3,1<br />

Now, the list of unoccupied sockets will look, like this:<br />

<strong>AT</strong>+MIPOPEN?<br />

4-22 H24 - <strong>AT</strong> <strong>Commands</strong> <strong>Reference</strong> <strong>Manual</strong> April 15, 2010

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!