Using a cheap USB 4G dongle as ethernet connection
Posted: Mon Dec 02, 2024 9:26 pm
Hi forum.
I have been browsing for the last week, but have found no answers.
I have a Huawei 4G E3372 usb modem. The type, that when plugged into a PC, MAC or even a Raspberry, it connects to the 4G and provides internet to the device.
I want this modem, to provide internet to an ESP32-S3. I have been looking at ESP_MODEM and PPPOS examples, but it seems that the examples I can find, works the other way around, where ESP32 is client, and provides ethernet to the connected computer.
I want to connect this modem directly to the USB port of the ESP32-S3 as host, and ideally inject the connection into the lwIP, so that I can use all standard libraries and use the internet via the modem.
Alternatively I would be happy, if I could just send MQTT data via the modem, but I would like to avoid going the AT command way. I would like it to be as easy as possible, and as modem independant as possible.
But is this possible at all? If yes, what libraries and what protocol should I use as buzzwords, in order to get some examples or at least leads, how to optain that?
Br. Frank.
I have been browsing for the last week, but have found no answers.
I have a Huawei 4G E3372 usb modem. The type, that when plugged into a PC, MAC or even a Raspberry, it connects to the 4G and provides internet to the device.
I want this modem, to provide internet to an ESP32-S3. I have been looking at ESP_MODEM and PPPOS examples, but it seems that the examples I can find, works the other way around, where ESP32 is client, and provides ethernet to the connected computer.
I want to connect this modem directly to the USB port of the ESP32-S3 as host, and ideally inject the connection into the lwIP, so that I can use all standard libraries and use the internet via the modem.
Alternatively I would be happy, if I could just send MQTT data via the modem, but I would like to avoid going the AT command way. I would like it to be as easy as possible, and as modem independant as possible.
But is this possible at all? If yes, what libraries and what protocol should I use as buzzwords, in order to get some examples or at least leads, how to optain that?
Br. Frank.