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:02] 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 7: | Line 9: | ||
===Connecting to a Wi-Fi network=== | ===Connecting to a Wi-Fi network=== | ||
Follow the steps below to connect to a secured Wi-Fi network: | Follow the steps below to connect to a secured Wi-Fi network: | ||
- | * Enter connman CLI | + | * Enter connman CLI |
$ connmanctl | $ connmanctl | ||
- | * 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 26: | Line 39: | ||
===Setting up a static IP address=== | ===Setting up a static IP address=== | ||
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> | ||
| | ||
==See Also== | ==See Also== | ||
- | [[https://wiki.archlinux.org/index.php/ConnMan|ArchWiki: ConnMan]] | + | * [[https://wiki.archlinux.org/index.php/ConnMan|ArchWiki: ConnMan]] |
- | [[https://wiki.tizen.org/IVI/ConnMan_Tips_&_Tricks|ConnMan Tips & Tricks]] | + | * [[https://wiki.tizen.org/IVI/ConnMan_Tips_&_Tricks|ConnMan Tips & Tricks]] |