THAILAND (HEAD OFFICE) & ESTONIA BRANCH

How to Configure the WIFI with connmanctl

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_xxxxxxyyyyyyyy_managed_psk

CCC wifi_CA7DDDxxxxxx_xxxxxxyyyyyyyyzzzzzzzz_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_CA7DDDxxxxxx_xxxxxx_managed_psk)

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_CA7DDDxxxxxx_xxxxxxyyyyyyyyzzzzzzzz_managed_psk

8. Enter Wifi password:

Passphrase?
Connected to wifi_CA7DDDxxxxxx_xxxxxxyyyyyyyyzzzzzzzz_managed_psk

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

References:

Tags: ,

%d bloggers like this: