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

Viewing Device Logs

After running a HiLens skill, you can view the device agent logs and skill logs.

Query Methods

  • Viewing Logs Using SSH: Connect to the HiLens Kit device using SSH and view the logs.
  • Managing Data: On the Data Management (Beta) page of the Huawei HiLens console, you can download and view skill running logs of each device.

Viewing Logs Using SSH

  1. Connect to a HiLens Kit device using SSH. For details, see Connecting a HiLens Kit Device to a PC.
  2. Run corresponding commands to view logs based on the firmware version.
    • Firmware versions earlier than 1.0.4 (excluding 1.0.4):
      • Run the following command to view the device agent log:

        tail -f /home/hilens/hda/log/hdad.log

      • Run the following command to view the skills log:

        tail -f /home/hilens/hda/log/developer.skill name.skill ID.log

    • Firmware 1.0.4 to 1.1.1:
      • Run the following command to view the device agent log:

        tail -f /home/log/alog/hilens/hda/hdad.log

      • Run the following command to view the skills log:

        tail -f /home/log/alog/hilens/hda/developer.skill name.skill ID.log

    • Firmware 1.1.2 or later:
      • Run the following command to view the device agent log:

        tail -f /home/log/alog/hilens/hda/hdad.log

      • Run the following command to view the skills log:

        tail -f /home/log/alog/hilens/skills/developer.skill name.skill ID/developer.skill name.skill ID.log

    To ensure that your device can run newer and better skills, you are advised to upgrade its firmware in a timely manner. For details about how to upgrade the firmware, see Upgrading HiLens_Device_Agent Firmware.