Using a cheap USB 4G dongle as ethernet connection

FrankJensen
Posts: 55
Joined: Sun Mar 10, 2024 9:34 pm

Using a cheap USB 4G dongle as ethernet connection

Postby FrankJensen » 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.

FrankJensen
Posts: 55
Joined: Sun Mar 10, 2024 9:34 pm

Re: Using a cheap USB 4G dongle as ethernet connection

Postby FrankJensen » Thu Dec 05, 2024 8:45 pm

If its not possible, that is also a helpfull answer :D

ESP_Sprite
Posts: 9835
Joined: Thu Nov 26, 2015 4:08 am

Re: Using a cheap USB 4G dongle as ethernet connection

Postby ESP_Sprite » Fri Dec 06, 2024 2:12 am

From what I know, that is exactly what ESP_MODEM and PPPOS should do. Where do you get the idea that it's a client-type thing?

Who is online

Users browsing this forum: forrest and 88 guests