Updated on 2022-08-19 GMT+08:00

Managing Data

After a skill is delivered to a device, you can download the device data on the Huawei HiLens console for analysis purposes, for example, to check how the skill is performing on the device where it is currently deployed.

  • Only the data of HiLens Kit devices can be managed on the Data Management page. The data of devices running HiSilicon Hi35xx series chips cannot be managed on the Huawei HiLens console.
  • You can only use the data management function to view data of skills that are exported to OBS as files.

Prerequisites

  • A common user successfully installs a purchased skill to a device. For details, see Installing a Skill.
  • A developer successfully installs a skill to a device. For details, see Installing and Debugging Skills.
  • Only when the output module of a skill defines the scenario that data is output to OBS, you can view the skill data on the Data Management page.
    • If you are a skill developer and need to view the running effect of your skill on devices, you need to specify that the skill data is stored on OBS, so that you can download the data from the HiLens console.
    • If you are a skill user, you need to check whether the data of a skill is stored on OBS on the skill details page in the skill market.

Configuring the Data Storage Location (OBS Storage Path)

  1. Log in to the Huawei HiLens console. In the navigation pane, choose Device Management > Devices. In the device list, click the name of the device to be managed to enter the device details page.
  2. Click on the right of Data Storage Location. In the dialog box that is displayed, select an OBS directory to store the video data of the current device.
    • Storing device data consumes storage resources of Huawei Cloud. Using OBS for storage will incur fees. For detailed operations and specifications, see the Object Storage Service Console Operation Guide.
    • When a URL is used to access a bucket, the bucket name is a part of the URL. According to DNS standards, a URL does not support uppercase letters and cannot be used to access a bucket whose name contains uppercase letters. Therefore, a bucket name can contain only lowercase letters, digits, hyphens (-), and periods (.). It cannot contain two consecutive periods (.) or contain a period (.) and a hyphen (-) adjacent to each other. For details about the naming rules, see Creating a Bucket.
    Figure 1 Configuring the data storage location

Viewing Data

You can view the device data and skill running effect based on the data output mode. For details about the skill output modes, see Table 1.

  • Video data of most skills is output to a display through the HDMI port of a device, and little video data is output to a server for viewing. Go to the Skill Market and view the output settings of a skill under Product Description on the skill details page. For example, if the description of a celebrity recognition skill is "View via HDMI", you can view the skill running effect on a display after the skill is deployed.
  • Skills of other output modes (excluding HDMI) are stored on OBS. For details about how to view data, see Configuring the Data Storage Location (OBS Storage Path).
Table 1 Skill output modes

Mode

Data Viewing Description

HDMI

The video data is directly output to a display through the HDMI port of the device.

RTMP

The video data is output to a server in real time for users to view. For details about the server address, see the skill's Product Description.

H264_FILE

The video data is output to OBS as files for users to view.

For details about the OBS path, see Configuring the Data Storage Location (OBS Storage Path).

Manually Collecting Logs

If the firmware version of the current device is 1.3.3 or later, you need to manually collect logs.

  1. Log in to the Huawei HiLens management console. In the navigation pane, choose Data Management (Beta). The Data Management page is displayed.
  2. Click the device that failed to upload logs and click Save All Logs in the upper right corner.

    A dialog box for uploading logs is displayed.

  3. Select the device logs you want to upload to OBS and click OK.
    Wait for log collection.

    The system will collect the device logs you selected. This typically takes 5 minutes.

  4. After the log collection is complete, on the Data Management page, click the device card to go to the corresponding folder and download the log file package to the local PC to view the logs.

Downloading Data

  1. Log in to the Huawei HiLens console. In the navigation pane, choose Data Management (Beta). The Data Management page is displayed.
  2. Double-click the specified device name to access the device data folder to be downloaded.
    Figure 2 Data Management
  3. Select the data folder and click Download to download the data to your local PC.

Deleting Data

  1. Log in to the Huawei HiLens console. In the navigation pane, choose Data Management (Beta). The Data Management page is displayed.
  2. Double-click the specified device name to access the device data folder to be deleted.
    Figure 3 Data Management
  3. Select the data folder and click Delete.