Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

AN4683 Datasheet(PDF) 21 Page - STMicroelectronics

Part # AN4683
Description  Transport layer security protocol for SPWFxxx module
PDF  31 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN4683 Datasheet(HTML) 21 Page - STMicroelectronics

Back Button AN4683 Datasheet HTML 17Page - STMicroelectronics AN4683 Datasheet HTML 18Page - STMicroelectronics AN4683 Datasheet HTML 19Page - STMicroelectronics AN4683 Datasheet HTML 20Page - STMicroelectronics AN4683 Datasheet HTML 21Page - STMicroelectronics AN4683 Datasheet HTML 22Page - STMicroelectronics AN4683 Datasheet HTML 23Page - STMicroelectronics AN4683 Datasheet HTML 24Page - STMicroelectronics AN4683 Datasheet HTML 25Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 21 / 31 page
background image
DocID027745 Rev 1
21/31
AN4683
Demonstration package
31
characters that must match the name specified in the server certificate (Common Name or
others).
When using AT+S.TLSCERT and AT+S.TLSDOMAIN with f_ca, f_cert, f_key and f_domain,
the file information is stored to Flash memory: since Flash memory is non-volatile, any file
stored in Flash memory will remain intact even when switching off or resetting the module.
Thus, to remove file information from Flash you can use the command
AT+S.TLSCERT2=clean,<f_ca|f_cert|f_key|f_domain> to selectively remove a specific file,
or AT+S.TLSCERT2=clean,all to remove all files information from Flash.
Note: Loading files to Flash memory is always preferred! Alternatively, you can use
AT+S.TLSCERT=<ca/cert/key>,<size><CR><data> and
AT+S.TLSDOMAIN=domain,<server domain> to load files to RAM, but note that:
a)
RAM is volatile and in this case the loaded file information is lost after switch off or
module reset
b)
files stored in RAM have higher priority than those in Flash
c)
file upload to RAM is deprecated in favor of Flash
AT+S.SOCKON=<hostname>,<port>,s[,ind] opens a secure socket to server hostname on
port. The hostname is the IP address of the server, the port must correspond to the one
specified in OpenSSL server options, and the s parameter specifies a request for secure
socket. The parameter ind is optional and provides the indication (WIND:55, see below) that
some data has been received: if enabled, it is strongly suggested to immediately empty the
buffer when pending data is received (see SOCKQ and SOCKR commands below).
When the TLS handshake is successful, the AT+S.SOCKON gives back the sock id: only
then is it possible to write data to and read from the secure socket using AT+S.SOCKW,
AT+S.SOCKQ and AT+S.SOCKR.
If the parameter ind was enabled in SOCKON, asynchronous indications of pending data
from the secure socket may arrive at any time and have the format:
<CR><LF>+WIND:55:Pending Data:<sock id>:ENC<CR><LF>
When WIND:55 indications occur, the pending data is still encrypted, thus the length of
decrypted data is not known in advance. The SOCKQ can be used to get the actual length
of the data decrypted by TLS library and already waiting for reading.
Up to 4 consecutive WIND:55 messages (w/o SOCKR) are guaranteed. To prevent data
loss, it is suggested to empty the buffer by using the AT+S.SOCKR command and to avoid
exceeding 4 indications.
AT+S.SOCKW=<sock id>,<len>
AT+S.SOCKQ=<sock id>
AT+S.SOCKR=<sock id>,<len>
Note:
when using a secure socket, the module can handle data packets up to 3 KB. This means
that the len parameter in AT+S.SOCKW and AT+S.SOCKR can be up to 3072 bytes.
Detailed description of AT commands is contained in (see [2] in References).



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com