This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
connman [2018/07/23 13:04] leonanavi |
connman [2018/07/25 11:48] leonanavi |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== ConnMan ====== | ||
+ | |||
[[https://01.org/connman|ConnMan]] is a command-line network manager designed for use with embedded devices and fast resolve times. | [[https://01.org/connman|ConnMan]] is a command-line network manager designed for use with embedded devices and fast resolve times. | ||
Line 12: | Line 14: | ||
* Enable Wi-Fi (only if it is not enabled) | * Enable Wi-Fi (only if it is not enabled) | ||
+ | |||
connmanctl> technologies | connmanctl> technologies | ||
connmanctl> enable wifi | connmanctl> enable wifi | ||
+ | |||
* Scan for W-Fi networks: | * Scan for W-Fi networks: | ||
+ | |||
connmanctl> scan wifi | connmanctl> scan wifi | ||
+ | |||
* List the found and available Wi-Fi networks (write down the wireless network service with format like **wifi_<MAC_ADDR>_<SSID_HEX>_managed_psk**: | * List the found and available Wi-Fi networks (write down the wireless network service with format like **wifi_<MAC_ADDR>_<SSID_HEX>_managed_psk**: | ||
+ | |||
connmanctl> services | connmanctl> services | ||
+ | |||
* Turn on agent and connect to a Wi-Fi network | * Turn on agent and connect to a Wi-Fi network | ||
+ | |||
connmanctl> agent on | connmanctl> agent on | ||
connmanctl> connect wifi_<MAC_ADDR>_<SSID_HEX>_managed_psk | connmanctl> connect wifi_<MAC_ADDR>_<SSID_HEX>_managed_psk | ||
- | * If the network is secured the agent will prompt you to enter a password: | + | |
+ | * If the network is secured the agent will prompt you to enter a password: | ||
Agent RequestInput wifi_<MAC_ADDR>_<SSID_HEX>_managed_psk | Agent RequestInput wifi_<MAC_ADDR>_<SSID_HEX>_managed_psk | ||
Passphrase = [ Type=psk, Requirement=mandatory ] | Passphrase = [ Type=psk, Requirement=mandatory ] | ||
Line 29: | Line 40: | ||
Follow the steps below to configure a static IP address: | Follow the steps below to configure a static IP address: | ||
* Retrieve the interface you want to modify (the format is **ethernet_<MAC_ADDR>_cable**): | * Retrieve the interface you want to modify (the format is **ethernet_<MAC_ADDR>_cable**): | ||
+ | |||
$ connmanctl services | $ connmanctl services | ||
+ | |||
* Manually configure IP: | * Manually configure IP: | ||
+ | |||
$ connmanctl config <service> --ipv4 manual <ip address> <netmask> <gateway> | $ connmanctl config <service> --ipv4 manual <ip address> <netmask> <gateway> | ||
| |