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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

Following is an example of a basic UDP/IP communication between two H24 modules.<br />

Module A - client<br />

Module B - server<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 UDP socket<br />

Open UDP socket<br />

<strong>AT</strong>+MIPOPEN=1,1,1020,"172.16.80.103",1010,1 <strong>AT</strong>+MIPOPEN=1,1,1010,"172.16.157.52",1020,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,1367<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<br />

+MIPRUDP: 1,172.16.157.52,1200,0,4869<br />

Close the socket<br />

Close the socket<br />

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

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

OK<br />

OK<br />

+MIPCLOSE: 1,0 +MIPCLOSE: 1,0<br />

4-34 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!