Table of Contents
Automatic Wi-Fi mode cycling
Fixture
- A Wi-Fi hotspot with no Serval peers associated, called Brian for this test
- No Serval Mesh phones running within Wi-Fi range
- A workstation (laptop) connected to the Brian Wi-Fi hotspot
- Three rooted devices A B C with Release Candidate installed, set up with the following Phone Numbers and Names:
- 55501 TestA
- 55502 TestB
- 55503 TestC
- Ensure each device A, B and C is connected in Ad Hoc mode:
- Ensure Auto Cycle is OFF (un-check the checkbox if necessary)
- Go to Serval main screen → Connect
- Ensure Enable Services is ON (check the checkbox if necessary)
- Select the mesh.servalproject.org Mesh network
- Ensure the mesh.servalproject.org Mesh network shows as On within a few seconds:
- If it does not, then Select Wi-Fi Ad Hoc mode should also fail, which is the correct place to attach a full diagnostic report
- Go to peer list: Serval main screen → Contacts → List Phones On The Mesh)
- Ensure that the peer list shows ONLY the other two devices:
- If any device other than A B C is present, remove it from Wi-Fi range or switch it off
- If devices A B and C do not all see each other as peers, then Peer list shows all nearby Batphones should also fail, which is the correct place to attach a full diagnostic report
Test
- On each device B and C, turn off Serval Mesh:
- Go to Serval main screen → Connect
- Turn Enable Services to OFF (un-check the checkbox)
- ASSERT The mesh.servalproject.org Mesh network disconnects: the On indicator disappears within a few seconds
- On device A:
- Go to Serval main screen → Connect
- Turn Auto Cycle to ON (check the checkbox)
- Select the Brian Open or Secured network
- ASSERT Device A associates to Brian network and is reachable from workstation, eg, using the ping command
- On device B:
- Turn Enable Services to ON (check the checkbox)
- Select the Brian Open or Secured network
- ASSERT Device B associates to Brian network and is reachable from workstation, eg, using the ping command
- Turn Enable Services to OFF (un-check the checkbox)
- ASSERT Device B remains associated to Brian network and is reachable from workstation, eg, using the ping command
- On device A:
- Select the ap.servalmesh.org HotSpot network
- ASSERT After a few seconds, ap.servalproject.org HotSpot network is marked as Connected
- ASSERT Device A cycles through the following Wi-Fi modes automatically:
- ap.servalproject.org Mesh
- ASSERT Device A is visible as an Access Point from other nodes on the network, eg, on Networks menu or using sudo iwlist wlan0 scan command
- Wait up to five minutes
- mesh.servalproject.org Mesh
- Wait up to five minutes
- Brian Open or Secured
- ASSERT Device A associates as client of Brian network and is reachable from workstation, eg, using the ping command
- ASSERT Device A remains in Client mode until Brian disassociates, which can be simulated by manually turning off Wi-Fi on device A:
- EITHER Pull down Android status bar and un-check Wi-Fi box
- OR Go to Android Wi-Fi settings menu and un-check Wi-Fi box
- Off
- Wait up to five minutes, repeat from top