Page 1 of 1

Use integrated mBedTLS with external modem

Posted: Thu Jun 27, 2019 11:06 am
by Andrzej.T
Hi,

We have device which should be able to communicate with cloud via WiFi and external modem (connected to uart), if WiFi connection is unavailable. Of course using TLS connection.
Is possible to change (programically) driver from wifi to custom eg. in esp_tls_conn_new command?
Or whether is possible to use integrated mBedTLS for establish TLS connection via external LTE modem ?

Thanks.

Best regards,
Andrzej T.

Re: Use integrated mBedTLS with external modem

Posted: Wed Jul 03, 2019 11:39 am
by Andrzej.T
Hi,

No one tried establish TLS connection using external LTE modem?
So I assume, that no answer means that it is impossible.

Regards,
Andrzej T.

Re: Use integrated mBedTLS with external modem

Posted: Wed Jul 03, 2019 7:09 pm
by WiFive
If modem integrates to lwip as netif then higher level protocols should work normally

Re: Use integrated mBedTLS with external modem

Posted: Thu Jul 04, 2019 4:29 am
by ESP_Angus
Yes, you can use PPPoS (PPP over serial) with most cellular modems. The same LWIP network stack is used, so the modem connection can be used the same way that a Wi-Fi or Ethernet connection would be used.

Take a look at this example (the README has a lot of explanation):
https://github.com/espressif/esp-idf/tr ... pos_client

There is some difference between cellular modems. If you don't use of the modems mentioned in the example README then you may need to tweak the code a bit.

Re: Use integrated mBedTLS with external modem

Posted: Fri Jul 05, 2019 6:46 am
by Andrzej.T
Thanks a lot.
This is exactly what I need.

Regards,
Andrzej T.