Environment Variables

HB_DSP_ENABLE_CONFIG_VDSP     // Set the ARM side configuration DSP side log level and log writing to ARM side display, the default is true
HB_DSP_WRITE_VDSP_LOG_TO_ARM  // Set the DSP side log ARM side display of the DSP end, the default is true
HB_DSP_LOG_LEVEL              // Set the DSP module ARM side log level, the value is 0, 1, 2, 3, 4, 5, 6, corresponding to Verbose, Debug, Info, Warning, Error, Critical, Never, the default is Warning
HB_DSP_VDSP_LOG_LEVEL         // Set the DSP module DSP side log level, the value is 1, 2, 3, 4, 5, corresponding to Debug, Info, Warning, Error, Always level, the default is Warning

Log Level Setting Instructions

  • Log level:

    The logs on the ARM side in the DSP module are mainly divided into 7 levels:

    The log level can be set to 0, 1, 2, 3, 4, 5, 6, corresponding to Verbose, Debug, Info, Warning, Error, Critical, Never, and the default is Warning.

    The logs on the DSP side in the DSP module are mainly divided into 5 levels:

    The log level can be set to 1, 2, 3, 4, 5, corresponding to Debug, Info, Warning, Error, Always, and the default is Warning.

  • Log level setting rules:

    • If the log level >= the set level, the log can be printed, otherwise it will be blocked.
    • The lower the set log level, the more information will be printed. For example: if the log level is set to 3, which is the Warning level, logs of levels 3, 4, and 5 can all be printed. The default log level of the VP module is the Warning level, which means that the following log levels can be printed: Warning, Error, and Critical.
Note

DSP side logs can be obtained by following the steps as belows:

  • Configure environment variables to enable DSP logging outputs.

    export HB_DSP_ENABLE_CONFIG_VDSP=true
    export HB_DSP_WRITE_VDSP_LOG_TO_ARM=true
  • Start the log listening service.

    # VDSP0's logging service:
    /usr/hobot/bin/hrut_remoteproc_log -b /sys/class/remoteproc/remoteproc1/log