Yes, I've read that post and/or posts with nearly identical instructions and the suggested commands do not work for me.
My command: connmanctl config wlan0 --ipv4 192.168.1.20 255.255.255.0 192.168.1.1
My Result: "The name net.connman was not provided by any .service files".
(It's hard to interpret since it appears that some value is missing from the error message (in 2 locations).
If course I've tried all sorts of permutations of this command line and also the method described in the device user manual, which is to edit the wpa supplicant config file. But my supplicant config file appears VERY DIFFERENT from the example in that document -- so different that the suggested edits do not apply.
ALSO, the help from the connmanctl does not cover this level of detail.
As I mentioned in my post, it seems as if all the existing posts on this topic may be stale ... they were created PRIOR to the build I'm using and yet they don't work. I am inclined to believe something has changed since these solutions were posted.
- Dave F.
Try with the steps below:
- Connect to wireless network using connman. Run the following commands in the Edison's console:
systemctl start connman systemctl enable connman connmanctl enable wifi scan wifi
- Wait for the scan completed message and then run the following command:
- A list of the available networks will be displayed with the following format:
<network name> <service name>
- Then run the following commands:
agent on connect <service name>
- At this point you will be asked for the passphrase. Enter the network password and then run the following command:
- Now you should be connected to the network. After a successful connection gather the gateway, netmask and broadcast information with the following commands:
For gateway information:
For netmask and broadcast information:
- Now proceed to configure and set the static IP address using the service, gateway and netmask gathered with the following command:
connmanctl config <service name> --ipv4 manual <ip address> <netmask> <gateway>
- Edison should have the static IP address set. To maintain it after reboot you have to create and configure the interfaces file. You might need to make the /etc/network/ directory for this. The directory can be created by running the command:
- Then create and edit the /etc/network/interfaces file with the following content:
auto wlan0 iface wlan0 inet static address <ip address> netmask <netmask> broadcast <bcast> gateway <gateway> dns-nameservers 192.0.2.2 wpa-ssid <network name> wpa-psk <network password>
If the steps are done properly, the Edison should maintain the static IP address set even after reboot.