28.04.2015 Views

AT Commands Set

AT Commands Set

AT Commands Set

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.

SIM5215_SIM5216 <strong>AT</strong> Command Manual<br />

<strong>Commands</strong> and Responses<br />

<strong>AT</strong>+NETOPEN=”TCP”,80<br />

Network opened<br />

OK<br />

<strong>AT</strong>+TCPCONNECT=”192.168.0.1”,80<br />

OK<br />

<strong>AT</strong>+TCPWRITE=8<br />

>ABCDEFGH<br />

+TCPWRITE: 8, 8<br />

OK<br />

Comments<br />

Activate the specified socket’s PDP context<br />

and Create a socket.<br />

Attempt to establish the TCP connection<br />

with the specified Tcp server.<br />

Send data to server.<br />

Send ok<br />

<strong>AT</strong>+NETCLOSE<br />

Network closed<br />

OK<br />

Disconnect the connection with server and<br />

Deactivate the specified socket’s PDP context.<br />

23.2.3 UDP<br />

<strong>Commands</strong> and Responses<br />

<strong>AT</strong>+NETOPEN=”UDP”,80<br />

Network opened<br />

OK<br />

<strong>AT</strong>+UDPSEND=8,”192.168.0.1”,80<br />

>ABCDEFGH<br />

+UDPSEND: 8, 8<br />

OK<br />

<strong>AT</strong>+NETCLOSE<br />

Network closed<br />

OK<br />

Comments<br />

Activate the specified socket’s PDP context<br />

and Create a socket.<br />

Send data.<br />

Close the socket and Deactivate the specified<br />

socket’s PDP context.<br />

23.2.4 Multi client<br />

<strong>Commands</strong> and Responses<br />

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

Network opened<br />

OK<br />

<strong>AT</strong>+CIPOPEN=0,”TCP”,”116.228.221.51”,<br />

100<br />

Connect ok<br />

OK<br />

<strong>AT</strong>+CIPOPEN=1,”UDP”,”116.228.221.51”<br />

Comments<br />

Activate the specified socket’s PDP context<br />

and Select in multi-client mode<br />

Establish a connection with TCP Server<br />

Establish a connection with UDP Server<br />

SIM5215_SIM5216_<strong>AT</strong> Command Manual_V1.13 408<br />

1/13/2011

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

Saved successfully!

Ooh no, something went wrong!