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.

Chapter 4: Using the <strong>Commands</strong><br />

with key length 128 bit as a stream cipher algorithm, to encrypt data transfer after handshake, and<br />

MD5 as algorithm for SSL message authentication.<br />

The H24 SSL feature supports the following Cipher Suites:<br />

• TLS_RSA_WITH_AES_128_CBC_SHA<br />

• TLS_DHE_RSA_WITH_AES_128_CBC_SHA<br />

• TLS_DH_ANON_WITH_AES_128_CBC_SHA<br />

Write/Send a Data Through a Socket<br />

The user can write data to an opened socket by <strong>AT</strong>+MIPSEND command. Write data means, that<br />

the data is stored inside a socket, but not sent to Network, excluding following cases:<br />

• socket data storage watermark reached<br />

• socket autopush timeout expired (if enabled)<br />

Socket data storage watermark is configured by <strong>AT</strong>+MIPSETS command (second parameter).<br />

Refer to the command's description for more details. When a socket is opened, its data storage<br />

watermark is set to a default value: 1372 bytes.<br />

Socket autopush timeout is configured by <strong>AT</strong>+MIPSETS command (third parameter). Refer to<br />

the command's description for more details. When a socket is opened, its autopush timer is<br />

disabled (autopush timeout value = 0).<br />

Autosend Data by Watermark Reach<br />

Let's configure a socket #3 data storage watermark to 16 bytes and disable socket autopush<br />

timeout:<br />

<strong>AT</strong>+MIPSETS = 3,16,0<br />

OK<br />

+MIPSETS: 3,0<br />

Write 15 bytes of data (30 bytes in encoded form) to socket #3:<br />

<strong>AT</strong>+MIPSEND=3,"6162636465666768696A6B6C6D6E6F"<br />

OK<br />

+MIPSEND: 3,0,1357<br />

The unsolicited response means 1357 free bytes remained in socket storage. User can check how<br />

many bytes of data are already written to the socket data storage by invoking <strong>AT</strong>+MIPPUSH<br />

command "read":<br />

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

+MIPPUSH: 3,15<br />

OK<br />

Write another 15 bytes of data to socket #3 and check how many bytes of data are stored in the<br />

socket data storage:<br />

<strong>AT</strong>+MIPSEND=3,"6162636465666768696A6B6C6D6E6F"<br />

OK<br />

+MIPSEND: 3,0,1358<br />

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

+MIPPUSH: 3,14<br />

OK<br />

April 15, 2010 H24 - <strong>AT</strong> <strong>Commands</strong> <strong>Reference</strong> <strong>Manual</strong> 4-27

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

Saved successfully!

Ooh no, something went wrong!