How to Configure the WIFI with connmanctl
This guide describes how to setup the Wifi with connmanctl
Steps:
1. Connect to the linux device. (We use debian linux distribution)
debian@linux:~$ sudo connmanctl
[sudo] password for debian:
Error getting VPN connections: The name net.connman.vpn was not provided by any
Enter password if requested: <your password>
Ignore the VPN error.
2. Run the network manager:
3. Enable Wifi:
connmanctl> enable wifi
Error wifi: Already enabled
4. Scan for Wifi networks:
connmanctl> scan wifi
Scan completed for wifi
5. Show available Wifi services:
connmanctl> services
AAA wifi_
CA7DDDxxxxxx_xxxxxx
_managed_psk
BBB wifi_
CA7DDDxxxxxx_xxxxxx
yyyyyyyy_managed_psk
CCC wifi_
CA7DDDxxxxxx_xxxxxxyyyyyyyy
zzzzzzzz_managed_psk
If no services are displayed, disable the WiFi tether and run services:
connmanctl> tether wifi off
connmanctl> services
5b. Remove auto-connect:
If *AO or *AR are next to a service, remove auto-connect:
connmanctl> config <id of the network> auto-connect off
<id of the network> is the value shown next to *AO or *AR starting with wifi_ … (e.g.wifi_
_managed_psk)CA7DDDxxxxxx_xxxxxx
6. Turn on the agent:
connmanctl> agent on
Agent registered
7. Connect to the service of interest:
Copy network ID of interest from step 5 and paste after ‘connect’.
connmanctl> connect
wifi_
_managed_pskCA7DDDxxxxxx_xxxxxxyyyyyyyy
zzzzzzzz
8. Enter Wifi password:
Passphrase?
Connected to wifi_
_managed_pskCA7DDDxxxxxx_xxxxxxyyyyyyyy
zzzzzzzz
9. Check auto-connect:
connmanctl> services
*AO or *AR should be next to the desired network ID.
10. Quit:
connmanctl> quit
11. Test:
The wireless network is ready after about 30 seconds.
View IP addresses:
debian@linux:~$ ifconfig
Test the network connection by pinging Google:
debian@linux:~$ ping google.com
PING google.com (www.xxx.yyy.zzz) 56(84) bytes of data.
64 bytes from aaa.bbb.ccc (www.xxx.yyy.zzz): icmp_seq=1 ttl=111 time=38.5 ms
64 bytes from aaa.bbb.ccc (www.xxx.yyy.zzz): icmp_seq=2 ttl=111 time=37.7 ms
You must be logged in to post a comment.