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

Create successful ePaper yourself

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

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

OK<br />

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

>ABCDEFGH<br />

+TCPWRITE: 8, 8<br />

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

+IPCLOSE: ,<br />

, , .<br />

+NETCLOSE: 1<br />

Disconnect the connection with server and<br />

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

Disconnected by the server<br />

NOTE:<br />

Client_index: This value identifies the<br />

client index; When the mode is<br />

single-client, <strong>this</strong> value is 255.<br />

Close_reason: This value is the reason<br />

for close.<br />

Remote_IP: This value identifies the IP<br />

address of sever.<br />

Port: This value identifies the port of<br />

sever, the range of permitted values is 0<br />

to 65535<br />

28.2.3 UDP<br />

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

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

5/15/2012

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

Saved successfully!

Ooh no, something went wrong!