22.01.2015 Views

this SIM5218 AT command manual - Cooking Hacks

this SIM5218 AT command manual - Cooking Hacks

this SIM5218 AT command manual - Cooking Hacks

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.

<strong>SIM5218</strong> Serial <strong>AT</strong> Command Set<br />

OK<br />

28.2 TCP/IP <strong>command</strong>s<br />

28.2.1 TCP server<br />

Commands and Responses<br />

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

Network opened<br />

OK<br />

<strong>AT</strong>+SERVERSTART<br />

OK<br />

<strong>AT</strong>+LISTCLIENT<br />

NO.0 client : 10.71.34.32 80<br />

NO.1 client : 10.71.78.89 1020<br />

OK<br />

<strong>AT</strong>+ACTCLIENT = 0<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 />

For Tcp Server,it starts a<br />

Passive open for connections.<br />

List all of clients’ information.<br />

Activate the specified client.<br />

Send data to an active client.<br />

Send ok<br />

<strong>AT</strong>+CLOSECLIENT=0<br />

OK<br />

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

Network closed<br />

OK<br />

Close the specified client.<br />

Close all of clients and<br />

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

28.2.2 TCP client<br />

Commands 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 />

Comments<br />

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

and Create a socket.<br />

Attempt to establish the TCP connection<br />

<strong>SIM5218</strong>_Serial _<strong>AT</strong>C_V1.36 508<br />

5/15/2012

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

Saved successfully!

Ooh no, something went wrong!