Connect devices
Design
In order to propose exercises or a work plan to pupils, the server control panel allows to connect a session to a group.
The Connect Devices page proposes two mutually exclusive choices:
- "Request connection to ALL DEVICES on the local network"
- "Request connection ONLY to devices with Device Group ID:" + [text field]
If the first one is selected, it will request connection to all devices on the local network which have GCompris running. This is the simple solution, which can be used safely when there is only one group of devices in the school.
If the second one is selected, it will request connection to devices on the local network which have GCompris running, and which have in their settings the corresponding Device Group ID. This is the more advanced solution, which can be used safely for schools which have several groups of devices meant to be used at the same time by different teachers, or a subset of devices meant to be used without the server...
Details: the [text field] can contain one or several Device Group ID separated by a comma. In the GCompris client, at the bottom of the Configuration page, there will be a button "Set Device Group ID" to open a page allowing to type a Device Group ID to set for this device, with explanations that this is used only in the context of a school using the server...
When requesting connection, all the devices on the local network (sends a broadcast all) will be pinged. If GCompris is running, and if it fits the requirements (has the corresponding Device Group ID or "Connect All.." is used), a message will ask the user to accept the connection request.
Once a client device has accepted the connection, it will receive the list of pupils names from the selected pupils group. Users need first to select their name in that list (which is their user id), and then they will have to enter their password (click on 2 pictures from a grid of 9 or enter numbers, depending on the password type).
On the Connect Devices page, the list of pupils in selected group is displayed, and once a pupil is properly connected it will show it visually (for example with a blue background and a filled checkbox on the side). If a pupil tried to connect but entered a wrong password, it will also be shown visually (for example with a yellow background and another symbol on the side). If two devices, for some reason, have the same pupil connected, it will be shown with a red background, a warning symbol, and a button to disconnect the devices.
At the end of the session, the teacher can disconnect the devices with the corresponding button.
Note: TODO update the mockup...
See #5[connecting_devices.png]
Functionalities
Connect devices screen allows to:
- Target a set of devices on the network (with Devices Group ID, or all devices)
- Display all the users of a group and show who is logged in
- Target a set of group and send a connection request
- Display per group the users connection status
- Disconnect a user
- Disconnect a group