-->
Page 1 of 1

WiFi Connection to a Cellular module (Wi-Fi Hotspot/MiFi)

PostPosted: Fri Mar 27, 2015 10:35 pm
by Anuj Sareen
Hello everyone,
I am planning to make a wifi hotspot (MiFi?), something similar to what most of the wearables and some drones offer these days - as they have both cellular and wi-fi connectivity on their device, they can allow users to enable hotspot connectivity and laptops and tablets nearby can use that hotspot to surf internet. I would like 4-8 users to be connected to my hotspot and surf web. But, I also want my device to be able to do it's usual IoT stuff and talk to the cloud at the same time. My mobile app can also control the device directly, as it is already connected and using the hot-spot (correct me please if this is not posible)
I am a firmware developer, having basic understanding of HTTP and TCP/IP protocols, I've written my own node.js cloud server, my own phone gap android app, but I don't know much on the network protocol stack level, I have worked mainly on the application level POST and GET requests, etc. I've been able to get the IoT demo run on my ESP, and tweak it to be able to talk to my device using softAP as well as via my cloud.
I read that the new ESP 8266 firmware allows data rate of close to 1Mbps over UART, which is pretty good, and as my project also has a cellular module, it makes sense to allow a hotspot feature in my device as well.
I believe that for what I need to do, I need to forward packets from ESP to the Cellular and vice-versa, use sockets, and NAT has some major role to play in this. I have searched all over internet for links to explain how could I implement a hotspot, but I have been diverted to all kinds of other "Hot" spot links but not the ones which have any kind of technical explanation on how to make one. I have come across the term tethering, thought maybe thats what I want to do, then I came across the term hotspot router, and also wireless access point, I have searched with strings like "Interfacing cellular to wifi", "forwarding packets from cellular to wifi", and hundreds of other keywords and combinations, unfortunately I have still not been able to get a good explanation on how I could make the Cellular module and ESP (or any other wi-fi module) connect over UART (or SDIO or SPI) and act as a hotspot. I'm not even sure what I need to do here - do I need a router software, or a software for doing only the NAT, or will only a web-server suffice? I'm totally clueless here and have failed to find what I have to do.
I'm looking for links/pointers on what exactly are the components of a hot spot, maybe documents/tutorials/source codes, and also if someone knows of some ready-to-use hotspot modules with interfaces to allow IoT for embedded devices (I haven't found any of these either). And if there are more suitable WiFi modules better for hotspot kind of application instead of ESP, whatever you could to help me, I would really appreciate inputs from the experts over here.
Thanks a lot in advance.

Re: WiFi Connection to a Cellular module (Wi-Fi Hotspot/MiFi

PostPosted: Tue Mar 31, 2015 1:54 am
by gon
the esp8266 is not a router/hotspot as it has zero routing abilities

Re: WiFi Connection to a Cellular module (Wi-Fi Hotspot/MiFi

PostPosted: Wed May 06, 2015 5:23 pm
by jimD
Hi I am working to do something similar. I think that it is possible because the ESP8266 has support for "softAP" which is an accesspoint. But I think it will only support one client.

Have you made any progress on this?

My understanding is the UART connection tops out at 128kbps which is insufficient. But if it is 1mbps that is perfect. The SPI interface may be best but there is little documentation so far.

Re: WiFi Connection to a Cellular module (Wi-Fi Hotspot/MiFi

PostPosted: Thu May 14, 2015 2:15 am
by wzab
Does ESP8266 support the PPP protocol via UART to connect the 3G or at least GSM/GPRS module?
This was also discussed in this thread: http://www.esp8266.com/viewtopic.php?p=1736
If it is possible, it should be possible to build a simple WiFi router for small network of ESP8266 based clients...
However prices of low end mobile WiFi routers are so low now, that I don't know if it is economically justified...
Regards,
Wojtek