Updated on 2023-03-27 GMT+08:00

Logging In to a HiLens Kit Device Using SSH

Prerequisites

You have connected a HiLens Kit device to a PC. For details, see Connecting a HiLens Kit Device to a PC.

Procedure

  1. Use SSH to remotely connect to the HiLens Kit device.
    1. Start PuTTY, click Session, enter the device IP address in the Host Name (or IP address) text box, and enter the port number in the Port text box. Assume that the device IP address is 192.168.2.111 and the port number is 22. Figure 1 shows the page.
      Figure 1 Using PuTTY to log in to the HiLens Kit device
    2. Click Open.

      Log in to the device.

  2. Use SSH to remotely connect to the device system.

    After the admin@192.168.2.111's password prompt, enter the admin password. For details about the preset password for the first login, see .

  3. Use SSH to remotely log in to the developer CLI.
    1. After the IES:/-> prompt, run the develop command.
    2. After the Password prompt, enter the root password. For details about the preset password for the first login, see .
    Figure 2 Connecting to the device using SSH
  4. Use SSH to remotely modify the device time.
    1. Run the following command to change the time zone to that of :

      timedatectl set-timezone

    2. Modify the device time. Assume that the current time is 19:19:19 on October 17, 2019. Run the following commands:

      date -s "2019-10-17 19:19:19"

      hwclock -w

      reboot

      Restarts the device.

By default, a device is registered in region CN North-Beijing4. To register the device in Singapore, switch the device registration region.

(Optional) Switching the Device Registration Region to Singapore

By default, a device is registered in region CN North-Beijing4. If you need to register the device in Singapore, modify the configuration file of the device. The procedure is as follows:

  1. Run the following command on PuTTY to open the DNS file:

    vi /home/hilens/hda/etc/hda.conf

  2. Change the device registration region. Under the comment #Select the registration region on Huawei Cloud, default to CN North-Beijing4, change region=cn-north-4 to:

    region = ap-southeast-3

    Save the modification.

    You must use a Huawei Cloud (International) account to register a device in Singapore. For details, see Differences Between HUAWEI CLOUD Websites (Chinese Mainland and International). If you do not have an account on Huawei Cloud (International), create one first. For details, see Registering a HUAWEI ID and Enabling HUAWEI CLOUD Services.

  3. Run the following command to restart the device:

    reboot

Follow-up Operations

Network configuration: A HiLens Kit device can be connected to a router in wireless or wired mode. You can select either of the two networking modes.

The following sections describe how to use the two networking modes.

A router cannot be connected to a wired network and a wireless network at the same time. If you connect the router to a wireless network, the default gateway will be automatically deleted. If you connect the router to a wired network again, you need to configure the default gateway. You are advised to connect the router to a wireless network, in case you forget the device IP address after updating it.