Use integrated mBedTLS with external modem

Andrzej.T
Posts: 6
Joined: Mon Mar 11, 2019 10:04 am

Use integrated mBedTLS with external modem

Postby Andrzej.T » Thu Jun 27, 2019 11:06 am

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.

Andrzej.T
Posts: 6
Joined: Mon Mar 11, 2019 10:04 am

Re: Use integrated mBedTLS with external modem

Postby Andrzej.T » Wed Jul 03, 2019 11:39 am

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.

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Use integrated mBedTLS with external modem

Postby WiFive » Wed Jul 03, 2019 7:09 pm

If modem integrates to lwip as netif then higher level protocols should work normally

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: Use integrated mBedTLS with external modem

Postby ESP_Angus » Thu Jul 04, 2019 4:29 am

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.

Andrzej.T
Posts: 6
Joined: Mon Mar 11, 2019 10:04 am

Re: Use integrated mBedTLS with external modem

Postby Andrzej.T » Fri Jul 05, 2019 6:46 am

Thanks a lot.
This is exactly what I need.

Regards,
Andrzej T.

Who is online

Users browsing this forum: No registered users and 407 guests