I had a Adhoc wifi network functioning great before they added Network-Manager on top of WPA_Supplicant and so trying to re-learn how to do everything. Has anyone had success getting a Adhoc network setup with network-manager at all?
I’m currently placing this in a file in system-connections (how I’ve been configuring my balena nodes to put up access points - different file obv which works great). So trying to understand what’s wrong with this file, if I can get it working with this then I’ll script it with the Python API for Nwtwork Manager
I’ve tried:
With/Without Security
With/Without Static IP
With/Without band specification
I’ve noticed on the Arch linux wiki page the following note: NetworkManager does not support WPA encryption in ad-hoc mode. Could be the reason. I do not have personally experience with setting up an ad-hoc type of network.
I’ve tried without security as well - no luck. Was wondering if there’s any requirements from Balena side that they might not accept a network without security?
Will making the device act as an access point with DNS/DHCP enabled be also suitable for your use case? Can you please provide more details about the purpose.
No, I can’t be reliant on a single node hence using adhoc. I have a bunch of pis on drones that communicate over adhoc wifi network. I’m trying to use Balena as easy way of managing the whole swarm but network is proving difficult
I am also thinking about using an adhoc solution to collect the sensor data from multiple RPi without a need of a ready Wifi infrastructure. A Wifi adhoc can also extend the collection coverage. However, I don’t know if Balena.io is a suitable system for this concept.
You may also use method=auto on one of the devices, but then you will need to run a DHCP service (e.g. dnsmasq) on the other device, so that IP addresses are assigned.
I’m trying to develop the same application as you. Bunch of drones and Pis.
Do you have an updated link for the example you posted? It seems to be offline.
When I try to run your project I get the following error:
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.FileNotFound: Failed to connect to socket /host/run/dbus/system_bus_socket: No such file or directory
If you aren’t running a multicontainer set of services (ie. you’re only balena pushing with a Dockerfile), then you shouldn’t need to set these labels. Attempting to run containers manually on the device is not at all recommended, as the Supervisor accounts for all containers/images that it knows about, and by running these manually you may have extremely unexpected results.
You should be able to SSH into your single running container and see something similar to the following:
root@2e9f783:/simple-server-node# ls -l /host/run/dbus/system_bus_socket
srw-rw-rw- 1 root root 0 May 22 13:53 /host/run/dbus/system_bus_socket
If you don’t, could you possibly share your Dockerfile with us so we can try and mimic what you’re seeing as closely as possible?