MaJerle / lwcell

Lightweight cellular modem host AT library
MIT License
411 stars 154 forks source link

is the SSL functionality stable? #86

Closed devprofile98 closed 3 months ago

devprofile98 commented 3 months ago

Hi, Thank you for this great library, it solved many many problems for our team.

There is an option here for SSL connection over TCP at this line, although I am generic error when using it, is this option stable? because I have seen you stated that SSL functionality on SIM devices is not that stable.

MaJerle commented 3 months ago

Agree, the SIMCOM supports SSL connections, but i never managed to get it to work properly. SSL connections typically means that modem will perform handshake for you, also meaning that data on the UART will be in plain text.

Personally I see this as a problem and would prefer to make TCP/TLS handshake inside the MCU, but for that we need to establish plain TCP connection (not SSL) and then do the job on our own.

That being said, I had lack of time and motivation to continue with this implementation.

devprofile98 commented 3 months ago

I am experiencing the same problem. The SSL functionality on the SIM module works inconsistently and is not stable. It took me some time to realize that achieving stable SSL connections using only AT commands is not feasible.

Currently, I am porting MbedTLS to use the SIM868 as a transport layer and am handling the SIM868 using your library.

Would you mind if I tag this option as unstable in the source code?

MaJerle commented 3 months ago

Feature is as stable as modem offers it. From AT commands, we cannot offer better :)

Sure, you can flag it, but for your specific modem only, please.

devprofile98 commented 3 months ago

yes, I understand that this is not a problem of LWCELL, SIM modem firmware is the one to blame. Thanks for your response.