2017-12-05 02:05 AM
hi,
i try to use cmd
AT+S.HTTPGET=<hostname>,[<path&queryopts]>,[<port>],[<TLS>], [<username>],[<passwd>],[<in_filename>],[<out_filename>]<cr>
and i would like to specified the return data are saved in a file. But i have AT-S.ERROR:111:Request failed !!!
cmd without
out-filename -> console works!
Q1: where is saved the file?
Q2: is it possible to save file in flash? witch cmd or parameter ?
Q3: out-filename must be create before to run cmd AT?
Thks
Yoann
2017-12-05 02:19 AM
How many bytes are you downloading?
Q1: without the path (0:, 1:, 2:, 3:) default is RAM_Disk (2:).
Note1: since FW1.1.0, if no path, default is SD_Card (0:, if available);
Note2
: default RAM_Disk size if 16KB. Since FW1.1.0, a configuration variable allows to change this value;
Q2: you can save in RAM or SDCard (ref to UM AT+S.FSC command)
Q3: no
2017-12-05 07:20 AM
Gerardo,
Fixed it, i taped bad filename!
My response:
i tested with a file size 5800bytes. Response of cmd in console works.
BUT
i will reduce and will use file 4092bytes max. Other file will be size 2500bytes. Total files will be 8 (ca, ca_ski, server cert+key, client wpa cert+key and client tls cert+key. Total size : 13Kbytes.
the goal is to download files (certificates) via cmd
AT+S.HTTPGET
and save it in memory (user flash or application flash not RAM!).Next to load files with cmd AT+S.TLSCERT or .WPAECERT. i don't want to lose files after a power off. What is the good solution?
Q1: is it possible to save in user flash or application flash?
Q2: with cmd
AT+S.HTTPGET?
Q3: with AT+S.FSx
(i didn't see cmd AT in the UM2114 V2.0 to do that, I'm afraid module wifi can't do that)
the solution i see is to use AT+SFSUPDATE.
Q4: is it possible to store html pages in one side and store/update files (certificates) in other side?
Yoann
2017-12-05 07:38 AM
If you don't want to use an SD-Card, the only solution to store into STM32 1MB Flash is the FSUPDATE command. It's based on HTTP (it's basically an HTTPGET + write in flash)
Q4: TLSCERT, WPAECERT, APP_Disk and USER_Disk point to different STM32 sectors.
(update via UART/SPI
) for Enterprise certs
(update via FSUPDATE or STM32 tools
) for HTML&Co.
User_Disk @ 0x08110000 (update via FSUPDATE or STM32 tools
) for
HTML&Co.
Note that TLS certificates can be stored into TLS zone OR filesystem (filesystem if and only if TLS zone is empty), while WPAE certificates need to be stored in WPAE zone.