Hi, I’m curious if anyone has tried running a Pi or Fin as an access point / hub / local gateway for wifi nodes. The assumption being that you route sensor data via wifi to the Pi and backhaul to the cloud via Ethernet.
If so, could it be taken a step further and have a single Pi or Fin act as a hub for both Lora devices (with the additional concentrator of course) and Wifi devices in a single place? Taken even further, backhaul via LTE?
I saw some conversations about the Pi as an access point, and understand thats what is happening under the food with the wifi-connect project but I’m not sure about the limitations the Pi’s lightweight wifi handling more than a few sensors/nodes. I’m also a little unclear how robust NetworkManager is in handling those requirements.
Thoughts?
@mpous this must have crossed your mind at some point
Hi, you can definitely do all of that under balenaOS. For the WiFi part you will need to setup a WiFi hotspot - https://www.balena.io/docs/reference/OS/network/2.x/#creating-a-hotspot. It is all handled by NetworkManager. If you need more complex logic, then you may use the NetworkManager API, but you may start with a simple example.
You may setup Lora in a container - NetworkManager is not used for the Lora part.
So I doubt you’re gonna get this number up while running on that hardware.
According to this thread, the main issue for Raspberry Pi’s is the RAM in the wifi module that’s being used. They suggest they had a higher max number of clients when using Stretch vs Buster and pi3 vs pi4. This may have to do with a newer version of the firmware and different wifi modules
That being said, using something like a USB dongle, should allow for a more capable WiFi module to be used.
I was hoping that since the Fin 1.0 broke out the WiFi Module that it would have on-board resources to handle more than 10 stations, but you’re correct. I am moving away from WiFi as a whole for my devices but until I have eliminated all of them, I will have to use another dongle to service all the WiFi sensors that I have…
For anyone looking for a way to handle > 10+ WiFi stations on an AP, I have used this one on many occasions with full support on Balena’s images.