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.
Using a cheap USB 4G dongle as ethernet connection
-
- Posts: 59
- Joined: Sun Mar 10, 2024 9:34 pm
-
- Posts: 59
- Joined: Sun Mar 10, 2024 9:34 pm
Re: Using a cheap USB 4G dongle as ethernet connection
If its not possible, that is also a helpfull answer
-
- Posts: 9882
- Joined: Thu Nov 26, 2015 4:08 am
Re: Using a cheap USB 4G dongle as ethernet connection
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?
-
- Posts: 59
- Joined: Sun Mar 10, 2024 9:34 pm
Re: Using a cheap USB 4G dongle as ethernet connection
I am back, and a lot wiser, but with little success.
ESP_MODEM and PPPOS does exactly that, and I have a much better understanding now. In order to get started, I purchased a Waveshare module, with a SIM7600, that is supported, well documented and after a short struggle, I got it up running, and am able to send MQTT this way.
SO, now back to the original idea, to use a cheap Huawei 3372 - or similar - modem, that comes with all approvals, to be used in almost any country, without any hazzle. But that is a struggle. I AM able to register the modem as a USB thing, and connect to it via USB, but that is where the fun stops. No matter, what I send of commands, there is nothing comming back. I tried all supported modems in ESP_MODEM, and I also tried to send costum AT commands to it.
I have read, that its caused by the plug and play features, that is default at boot. Teoretical is should be possible to switch this modem (or at least the ones with old firmware) into AT and Data mode. I have tried all hacks and tricks, that I have found on the internet. I simply can get NO connection.
Does anyone have a working example, how to do that??
Or is there a modem, that is much easier to use, than the Huawei? (that have world acknowledged approvals).
I would be greatefull, if anyone could point me to a direction to go, point to a specific modem, or anything, that can be usefull for me.
Thank you in advance.
ESP_MODEM and PPPOS does exactly that, and I have a much better understanding now. In order to get started, I purchased a Waveshare module, with a SIM7600, that is supported, well documented and after a short struggle, I got it up running, and am able to send MQTT this way.
SO, now back to the original idea, to use a cheap Huawei 3372 - or similar - modem, that comes with all approvals, to be used in almost any country, without any hazzle. But that is a struggle. I AM able to register the modem as a USB thing, and connect to it via USB, but that is where the fun stops. No matter, what I send of commands, there is nothing comming back. I tried all supported modems in ESP_MODEM, and I also tried to send costum AT commands to it.
I have read, that its caused by the plug and play features, that is default at boot. Teoretical is should be possible to switch this modem (or at least the ones with old firmware) into AT and Data mode. I have tried all hacks and tricks, that I have found on the internet. I simply can get NO connection.
Does anyone have a working example, how to do that??
Or is there a modem, that is much easier to use, than the Huawei? (that have world acknowledged approvals).
I would be greatefull, if anyone could point me to a direction to go, point to a specific modem, or anything, that can be usefull for me.
Thank you in advance.
Who is online
Users browsing this forum: ram_0000 and 126 guests