- Image Types:
- basesdk-amd64 / sdk-amd64 / target-armhf-internal / target-amd64
- Image Deployment:
- APT, OSTree
Tests Network connection management: ensuring that ConnMan can connect to actual networks is part of strategic network management functionality.
- The device must have wifi, otherwise skip this test.
- Please note that connman disables wifi by default on a fresh image. To enable:
- If it's already enabled, connmanctl will give the error "Error wifi: Already enabled" that may be ignored.
$ connmanctl enable wifi
- Run the ConnMan CLI Interface:
- When run without arguments, connmanctl will launch in interactive mode with a "connmanctl>" prompt.
- Scan wifi:
- Wait for "Scan completed for wifi" before continuing (this may take a few seconds and will appear above connmanctl prompt).
- Turn on the agent, to manage additional information if required:
- connmanctl should return "Agent registered".
- List services available:
- Select required service and use the "service ID" (second column) to connect:
- If it's connecting to a wifi service that needs additional information connmanctl will output an "Agent RequestInput (…)" line followed by a prompt for the required information, such as "Passphrase? ".
- Ensure ConnMan returns "Connected <service ID>" before continuing.
- Quit from connmanctl interactive mode with:
- Use the tool to test different kind of security and ConnMan technology: Ethernet, Wi-Fi, cellular and Bluetooth.
$ scan wifi
$ agent on
$ connect <service ID>
If success "Connected <service ID>" will be printed by connmanctl, otherwise "Agent ReportError <service ID>" will be printed.
- Warning: Connman changes are persistent (over reboot!). After finishing testing, it might be wise to perform the dhcp test to ensure that the network is in a sensible state.
- For ALL tests the enable step will give an "In progress" error if the device is already enabled. This is to be expected.
- When testing the SDK image in VirtualBox with an Asus USB-N10 Wireless adapter, firmware-realtek needs to be installed on the host.