I am using “BC660K-GL_QuecOpen_NB5_SDK_V1.0”, and need to set certificates for SSL.
Normally command [AT+QSSLCFG=0,0,“cacert”] is used, and after receiving [>] the certificate data is written. And finally data input is ended using ctrl-z.
But I have not found out how to send the certificate data and “ctrl-z”.
When I use “Ql_RIL_WriteDataToCore” inside ATCommandResponseCallback, I get result -1.
And when I use Ql_RIL_WriteDataToCore outside ATCommandResponseCallback, the QuecOpen locks up.
What is the correct way of sending data and ending data transmission?
I do not see, that the BC660K module terminates the data input.
I have used a lot of time on this issue, and do not think, that I am doing something wrong.
I also think it is strange, that the BC660K module does not execute anythink after “Ql_RIL_WriteDataToCore”.
Hi, the problem is mainly caused by the current SDK does not support SSL kernel, so our local FAE needs to submit ticket process. We will release the beta version for you to test
I have been working with the Beta software for some time now.
When I develop a QuecOpen, which only executes commands send to BC660K via serial protocol (almost like executing the AT commands), everything seems to work.
But when I run the complete application on BC660K, the module restarts during the “SSL Open”.
I have managed to get a trace, when the issue occures (it is 100% reproduceable…), and it looks like:
Hi,
I am using SSL to access a https server.
So I am using SSL.
I am just wondering, if you could tell me a little bit more about the error:
“Reset: Software Active Reset”
“Reset Trigger by Assert”
“Reset Write = 0xacd20ea0”
What is “Software Active”? It is the software using too much CPU time?
I can confirm, that it is possible to use SSL without issues, in the scenario, where I only perform the simple operations via QuecOpen.
When compiling the complete application, which I know is working, I see the issue, where URC are not returned to main task. “static void HandleUrcMessage(ST_MSG* msg)” is not called, when SSL commands are executed.
I would expect URCs like:
URC_SSL_CONFIG
URC_SSL_OPEN
Perhaps I am doing something wrong. That is why I am asking, if you are able to tell, when errors:
“Reset: Software Active Reset”
“Reset Trigger by Assert”
“Reset Write = 0xacd20ea0”
are reported in the Quectel part of application.
Do you know, if the RAM statistics takes stack allocation into account?
I am able to create a small application, where SSL works, and than add some code, which is only called once during initialization (but code uses static allocated memory).
And then I am able to reproduce issue.
I have the following memory footprints:
ONLY TEST APPLICATION **********************
Memory region Used Size Region Size %age Used
LOAD_IRAM_MCUVECTOR: 100 B 100 B 100.00%
LOAD_IRAM_MCU: 4116 B 5020 B 81.99%
UNLOAD_DRAM_USRNV: 1 KB 1 KB 100.00%
LOAD_DRAM_MCU: 48 B 4 KB 1.17%
UNLOAD_DRAM_PSPHYRET: 6 KB 6 KB 100.00%
LOAD_IRAM: 35896 B 36 KB 97.37%
LOAD_DRAM_SHARED: 137464 B 152 KB 88.32%
LOAD_DRAM_BSP: 4044 B 8 KB 49.37%
UNLOAD_DRAM_FLASHMEM: 7 KB 7 KB 100.00%
UNLOAD_DRAM_SLPMEM: 224 B 992 B 22.58%
FLASH_APP: 2517728 B 2560 KB 96.04%
FULL EMBEDDED APPLICATION **********************
Memory region Used Size Region Size %age Used
LOAD_IRAM_MCUVECTOR: 100 B 100 B 100.00%
LOAD_IRAM_MCU: 4116 B 5020 B 81.99%
UNLOAD_DRAM_USRNV: 1 KB 1 KB 100.00%
LOAD_DRAM_MCU: 48 B 4 KB 1.17%
UNLOAD_DRAM_PSPHYRET: 6 KB 6 KB 100.00%
LOAD_IRAM: 35896 B 36 KB 97.37%
LOAD_DRAM_SHARED: 143960 B 152 KB 92.49%
LOAD_DRAM_BSP: 4044 B 8 KB 49.37%
UNLOAD_DRAM_FLASHMEM: 7 KB 7 KB 100.00%
UNLOAD_DRAM_SLPMEM: 224 B 992 B 22.58%
FLASH_APP: 2570936 B 2560 KB 98.07%
When reading the QuecOpen reference manual, the available APP storage is 200KB and RAM space is 30KB.
Which regions of the Memory regions relates to “APP Storage” and “RAM Space” ?