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

response contains an actual remote address/port<br />

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

Data Encoding<br />

An IRA data will be encoded before writing to a socket by +MIPSEND command for correct<br />

special IRA symbols processing. The encoding means replacing a single byte of data by two<br />

characters, containing the source data IRA code, for example:<br />

IRA Source Data<br />

IRA Hex Code<br />

+MIPSEND Encoded Data<br />

Parameter<br />

NULL 0x00 <strong>AT</strong>+MIPSEND=1,"00"<br />

LINE FEED 0x0A <strong>AT</strong>+MIPSEND=1,"0A"<br />

"Hello" 0x48 0x65 0x6C 0x6C 0x6F <strong>AT</strong>+MIPSEND=1,"48656C6C6F"<br />

According to the above, an encoded data character valid range is 0...F.<br />

The same data format is used for +MIPRTCP and +MIPRUDP unsolicited responses.<br />

Socket Flow Control<br />

When a socket can't send data to the Network, +MIPXOFF unsolicited indication is sent to the<br />

user, see "+MIPXOFF, Socket Flow OFF unsolicited indication". The +MIPXOFF indication<br />

may appear as result of physical link dormant state as well. The following example shows socket<br />

XOFF indication as result of physical link dormant state:<br />

<strong>AT</strong>+MIPOPEN=1,9,1080,"www.yahoo.com",80,0<br />

OK<br />

+MIPOPEN: 1,9,1<br />

<strong>AT</strong>+MIPSEND=9,"474554202F696E6465782E68746D6C20485454502F312E300D0A0D0A"<br />

OK<br />

+MIPSEND: 9,0,1344<br />

<br />

<strong>AT</strong>+MIPPUSH=9<br />

OK<br />

+MIPPUSH: 9,1<br />

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

Saved successfully!

Ooh no, something went wrong!