The remote control feature allows administrators to troubleshoot devices that are enrolled with WSO2 IoT Server using the device management console. This feature is used to You can create a remote session, remotely control, send adb shell commands, view the device logs, and remotely view and interact with the screen of an Android device.
...
Tip | ||
---|---|---|
| ||
|
...
Follow the steps given below to create a remote session between the device and WSO2 IoT Server:
Start WSO2 IoT Server's core profile, which corresponds to the WSO2 Connected Device Management Framework (WSO2 CDMF) profile.
Localtabgroup Localtab active true title Linux/Mac/Solaris Code Block ./iot-server.sh
Localtab title Windows Code Block iot-server.bat
- Access the device management console.For access via secured HTTP:
https://<IOTS_HTTPS_HOST>:9443/devicemgt
/
For example:https://localhost:9443
/devicemgt/For access via HTTP:
For example: http://localhost:9763http://<IOTS_HTTP_HOST>:9763/devicemgt/
/devicemgt
/ - Sign in as an administrator. By default, the username is
admin
and the password isadmin
. - Click View under DevicesUnder DEVICES, click View.
You are navigated to the page A page appears that lists out all the devices that are enrolled with WSO2 IoT Server because you have administrator privileges. If you do not have administrator privileges, you only the see the devices that you enrolled. - Click on the device you want to start the remote sessiontroubleshoot.
- Click the Remote Session tab.
- Click Connect to Device to start the a remote session with the device.
Once After the server connects to the device, you see the following screen given below:
- You can now troubleshoot the device as described in the next sections. To stop the remote sharing session, click Close Session.
Send adb shell commands
Follow Android Debug Bridge (adb) is a command line tool that lets you communicate with an emulator or connected Android device. Follow the steps given below to troubleshoot the device using adb shell commands:
- Set If you haven't already set up a remote session between your device and WSO2 IoT Server, set it up now.
- Click Shell.
- Write the shell command (see adb shell commands for the available commands) and press the Enter key Enter.
For example, if you want to get the CPU and memory usage of the device, use thetop
adb command.
Sample output:
...
View device logs
Logcat is a tool that displays messages from the device log in real time and keeps a history so you can view the old messages. Follow the steps given below to view the device logs.
- Set If you haven't already set up a remote session between your device and WSO2 IoT Server, set it up now.
- Click Logcat.
You can now see the log for the device.
View the device screen
...
via the remote session
To troubleshoot a device, it can be helpful to view the device's screen so you can monitor how the device owner is using it and then take actions yourself, such as opening applications and configuring settings. To view the screen, take the following steps:
- If you haven't already set up a remote session, set it up now.
- Click Screen Share > Start.
- A message is sent to the device asking the device owner to share the screen with WSO2 IoT Server. The After the device owner needs to accept accepts this message.
Once accepted, the administrator is able to , you can view the device's screen , monitor how the device owner users the device, and troubleshoot the deviceand start interacting with it using the mouse. - Click Stop to stop viewing the screen of the device.
...
View and interact with the device via the remote session
Viewing the screen of the device alone does not help you to solve the issue. You need to be able to carry out actions on the shared screen to successfully troubleshoot the device. Follow the steps given below to try it out:
- Enable the Android System Service Applications. For more information see,
.Install or reinstall the configured APK on the device and enroll the device with WSO2 IoT Server. Follow the steps from step 6 onwardsInsert excerpt Integrating the Android System Service Application Integrating the Android System Service Application nopanel true - Restart or start WSO2 IoT Server's core profile, which corresponds to the WSO2 Connected Device Management Framework (WSO2 CDMF) profile.
- Access the device management console.For access via secured HTTP:
https://<IOTS_HTTPS_HOST>:9443/devicemgt
/
For example:https://localhost:9443/devicemgt
/ For access via HTTP:
For example:http://<IOTS_HTTP_HOST>:9763/devicemgt/
http://localhost:9763/devicemgt/
- Sign in as an administrator. By default, the username is
admin
and the password isadmin
. - Click View under DevicesUnder DEVICES, click View.
You are navigated to a page that lists out all the devices that are enrolled with WSO2 IoT Server because you have administrator privileges. If you do not have administrator privileges, you only the see the devices that you enrolled. - Click on the device you want to start a remote session.
- Click the the Remote Session tab. tab.
- Click Connect to Device to start a remote session with the device.
- Click Screen Share > Start.
- Click on the applications you want to open or the configurations you want to enable using the mouse.
- Click Stop to stop viewing the screen of the device.