13.02.2014 Views

AT Commands Set

AT Commands Set

AT Commands Set

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

SIM5320 <strong>AT</strong> Command <strong>Set</strong><br />

26.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 />

,120<br />

OK<br />

<strong>AT</strong>+CIPSEND=0,7<br />

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

Send data in the connection of number 0<br />

+CIPSEND: 7, 7<br />

OK<br />

Send ok<br />

<strong>AT</strong>+CIPSEND=1,7<br />

>SimTech<br />

+CIPSEND: 7, 7<br />

OK<br />

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

OK<br />

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

OK<br />

Send data in the connection of number 1<br />

Close the connection of number 0<br />

Close all of connections and Deactivate<br />

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

26.2.5 TCP server in Multi client mode<br />

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

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

Network opened<br />

OK<br />

<strong>AT</strong>+SERVERSTART=80, 0<br />

OK<br />

<strong>AT</strong>+CIPOPEN?<br />

+CIPOPEN: 0, "TCP", "116.228.221.51", 100,-1<br />

Comments<br />

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

and Select in multi-client mode<br />

For TCP Server, Create a socket, and it starts a<br />

Passive open for connections.<br />

List all of clients’ information (includes<br />

Active and Passive clients).<br />

SIM5320_<strong>AT</strong>C_V1.24 493<br />

8/14/2012

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

Saved successfully!

Ooh no, something went wrong!