Quantcast
Jump to content


Recommended Posts

Posted

2021-04-12-01-banner.jpg.png

The Remote Device Manager provides a mechanism to deploy a project remotely from Tizen Studio to a Tizen-enabled device, such as Galaxy Watch. Tizen-enabled devices can be connected or disconnected through the Remote Device Manager if they are on the same network. Once the connection is made, a device log is shown in the Log View. You can also use the interface of the Remote Device Manager for executing SDB shell commands.

Prerequisites: Tizen Studio 2.0 or higher

Launch a project with Remote Device Manager

Step 1: Disable Bluetooth

If the watch has not been upgraded and the Tizen version is below 5.0, Bluetooth should be disabled during this process. In upgraded watches, you don’t need to disable Bluetooth.

Path: Settings > Connections > Bluetooth

Figure 1

Figure 1: Disabling Bluetooth

Step 2: Enable debugging mode

Make sure debugging mode is enabled. You can enable debugging mode from the Settings menu, as shown below.

Path: Settings > About Watch > Debugging is turned on

Figure 2

Figure 2: Enabling debugging mode

Step 3: Set the Wi-Fi to Always on

This step is optional, but to avoid any unnecessary issues, it is better to set the Wi-Fi to Always on. Leaving the setting on Auto can sometimes create issues.

Path: Settings > Connections > Wi-Fi > Always on

Figure 3

Figure 3: Setting the Wi-Fi to Always on

Caution: Setting the Wi-Fi to Always on can drain the battery drastically. After debugging, it should be set back to Auto again for better battery life.

Step 4: Connect to the network

Connect the watch to the same network as your PC.

Choose either of the following ways to connect the devices to the same network:
• By creating a mobile hotspot
• By using Wi-Fi under the same router

Step 5: Restart the watch

After the previous steps have been completed, restart the device. If you do not, the connection setup shows an error.

Figure 4

Figure 4: Rebooting the watch

Step 6: Establish the connection from the Remote Device Manager

  1. In Tizen Studio, go to Launch Remote Device Manager.

    Figure 5

    Figure 5: Launching the Remote Device Manager

  2. Scan for new devices. The window shows a list of available devices and their IP addresses. You can also add a device manually from the Remote Device Manager window.

    Figure 6

    Figure 6: Searching for available devices for connection

  3. To connect to the device, click on the Connect toggle next to the watch IP address and port information. The watch receives an RSA authentication request through a pop-up during this connection setup and it is mandatory to accept the RSA authentication to complete the process.

Figure 6

Figure 7: Connecting to the watch from the Remote Device Manager

You are now all set to deploy your app from Tizen Studio to the wearable device.

Step 7: Permit to install user applications

As a security feature, the device or emulator you have connected to does not contain the necessary certificates for installing user applications, and you must install them before being able to run your application on it. To do so, select “Permit to install applications” from the context menu of the device in the Device Manager.

If the “The permit to install application is not required for this device” appears, this step is unnecessary.

Figure 8

Figure 8: Setting the permit to install applications in the Device Manager

Step 8: Launch your project

Now, deploy your project on your connected watch, as shown in the image below.

Path: Right-Click on the project > Run As > 1 Tizen Native Application

Figure 9

Figure 9: Deploying the project from Tizen Studio to a connected watch

Some helpful tips for connecting your device with the Remote Device Manager

  • Check the IP address of your watch from Connections > Wi-Fi -> Wi-Fi Networks > tap on the SSID (your Wi-Fi name) > IP address.

  • If your device is already shown in the Remote Device Manager's history, delete it and try to connect again.

  • Launch the Device Manager to see the Log View.

    Figure 10

    Figure 10: The Log View from Device Manager

  • Make sure the watch is not connected with any other devices, including a phone. Otherwise, the connection fails and you receive the following error message:

    Figure 11

    Figure 11: Error message during multiple connections

  • If you cannot find the watch after scanning for devices from the Remote Device Manager, make sure your device is on the same network. To check this, go to the command prompt on your PC and ping the IP address of the watch in the following manner:
    ping < Watch_IP >

    If the ping command fails to connect to the IP address of your watch, it is not on the same network, and the SDB / Remote Device Manager does not work. To fix this, you need to change the network settings of your router or PC. The issue can also be caused by firewall settings, although this is rare.

Conclusion

The main purpose of this article is to help new developers to deploy Tizen projects to a real device using the Tizen Remote Device Manager. Hopefully, this tutorial is helpful for beginners and gives them a good experience with Tizen Studio.

If you have any other problems or queries regarding launching projects with the Remote Device Manager, feel free to reach out through the Samsung Developers Forum.

View the full blog at its source



  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...





×
×
  • Create New...