From WiFi to Cellular 4G
Posted: Fri Aug 30, 2019 3:58 am
Hi all,
I have built a project utilizing Wifi on the ESP32 module. Using RTOS I am running a web server on 1 core and a web client on another core. This works very well and I can access the web server remotely via my browser and the WiFi IP address. The Web client reads some sensors and sends the data via WiFi to my database. All good.
Now I need to do the next step and move beyond the reach of the WiFi and reproduce the same result via 4G cellular. I looked at the "easy" solution to use an industrial 4G/WiFi router and simply keep what I have. Cost of these "industrial" type routers are on the hi side, where as 4G module which also include a GPS chip are around half that. Problem is that I cannot get my head around how I will "replace" my current WiFi functionality with one of these modules. The modules seems to expect you to connect via serial (rs232) and using modem AT commands establish a connection to the internet. Question is, after connecting to the internet, how do you continue to have "network functionality" same as with the built-in WiFi? Is there some library that will do ethernet over the serial port? Can I still have the Wifi and the serial ethernet running at the same time?
Thanks!
I have built a project utilizing Wifi on the ESP32 module. Using RTOS I am running a web server on 1 core and a web client on another core. This works very well and I can access the web server remotely via my browser and the WiFi IP address. The Web client reads some sensors and sends the data via WiFi to my database. All good.
Now I need to do the next step and move beyond the reach of the WiFi and reproduce the same result via 4G cellular. I looked at the "easy" solution to use an industrial 4G/WiFi router and simply keep what I have. Cost of these "industrial" type routers are on the hi side, where as 4G module which also include a GPS chip are around half that. Problem is that I cannot get my head around how I will "replace" my current WiFi functionality with one of these modules. The modules seems to expect you to connect via serial (rs232) and using modem AT commands establish a connection to the internet. Question is, after connecting to the internet, how do you continue to have "network functionality" same as with the built-in WiFi? Is there some library that will do ethernet over the serial port? Can I still have the Wifi and the serial ethernet running at the same time?
Thanks!