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.

Chapter 4: Using the <strong>Commands</strong><br />

Network<br />

TERMINAL<br />

TERMINAL<br />

serial<br />

MODULE<br />

MODULE<br />

serial<br />

Setup the PDP context<br />

Setup the PDP context<br />

<strong>AT</strong>+CGDCONT=1,"IP","apn","0.0.0.0",0,0<br />

<strong>AT</strong>+CGDCONT=1,"IP","apn","0.0.0.0",0,0<br />

OK<br />

OK<br />

Create MIP Call (activate PDP context)<br />

Create MIP Call (activate PDP context)<br />

<strong>AT</strong>+MIPCALL=1,1,1<br />

<strong>AT</strong>+MIPCALL=1,1,1<br />

OK<br />

OK<br />

+MIPCALL: 1,1,"172.16.157.52 "+MIPCALL: 1,1,"172.16.80.103"<br />

Open "any IP" remote address UDP socket<br />

Open UDP socket, based on a known remote<br />

address<br />

<strong>AT</strong>+MIPOPEN=1,1,1200,"0.0.0.0",0,1<br />

<strong>AT</strong>+MIPOPEN=1,1,1300,"172.16.157.52",1200,1<br />

OK<br />

OK<br />

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

Write data to the socket<br />

<strong>AT</strong>+MIPSEND=1,"4869"<br />

OK<br />

+MIPSEND: 1,0,1370<br />

Send the socket data to remote side<br />

<strong>AT</strong>+MIPPUSH=1<br />

OK<br />

+MIPPUSH: 1,0<br />

Receive data from remote side. The unsolicited<br />

response contains an actual remote address/port<br />

+MIPRUDP: 1,172.16.80.103,1300,0,4869<br />

Send data to remote side. The user will<br />

provide an actual remote side address!<br />

<strong>AT</strong>+MIPSEND=1,"2233"<br />

OK<br />

+MIPSEND: 1,0,1370<br />

<strong>AT</strong>+MIPPUSH=1,"172.16.80.103",1300<br />

OK<br />

+MIPPUSH: 1,0<br />

Receive data from remote side. The unsolicited<br />

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

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

Saved successfully!

Ooh no, something went wrong!