User Tools

Site Tools


connman

ConnMan

ConnMan is a command-line network manager designed for use with embedded devices and fast resolve times.

Although AGL Settings application provides a GUI for connecting to WiFi networks, in certain cases it could be necessary to do it from the command-line with ConnMan.

Networking configuration

Connecting to a Wi-Fi network

Follow the steps below to connect to a secured Wi-Fi network:

  • Enter connman CLI
  $ connmanctl
  • Enable Wi-Fi (only if it is not enabled)
  connmanctl> technologies
  connmanctl> enable wifi
  • Scan for W-Fi networks:
  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:
  connmanctl> services
  • Turn on agent and connect to a Wi-Fi network
  connmanctl> agent on
  connmanctl> connect wifi_<MAC_ADDR>_<SSID_HEX>_managed_psk
  • If the network is secured the agent will prompt you to enter a password:
  Agent RequestInput wifi_<MAC_ADDR>_<SSID_HEX>_managed_psk
  Passphrase = [ Type=psk, Requirement=mandatory ]
  Passphrase?

Setting up 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):
  $ connmanctl services
  • Manually configure IP:
  $ connmanctl config <service> --ipv4 manual  <ip address> <netmask> <gateway>
  
See Also
connman.txt · Last modified: 2018/07/25 11:48 by leonanavi