Skip to main content
After connecting to Wuji Hand 2 or Wuji Glove, the SDK automatically logs the appearance and clearance of reported fault codes, including the full code, description, and suggested action. The device firmware must support fault-code reporting. Devices without this capability still connect normally.

Find Fault Records

With the SDK’s default logger, fault information appears in these locations: error_codes.log is independent of the SDK log level and date-based cleanup. Before a write would exceed 50 MiB, the SDK rotates it to error_codes.log.1, keeping the current file and one backup. Back up both files regularly if longer retention is needed. The device reports faults that were active during each second at 1 Hz. The SDK records fault appearances and clearances, then summarizes persistent faults every 10 received frames, about 10 seconds during continuous reception. This summary goes to the terminal and sdk_<date>.log, without repeating it in error_codes.log.

Read States and Full Codes

Repeated appearances and clearances within one second can be combined into one status period. Use the log to locate faults, rather than as a complete timeline of every transition. If the log reports omitted records, include that message and its context when contacting support. A full code has the form AA-BB-CCCC. Terminal output may add an E- prefix. When several components report the same code, their BB values are joined with /. For example, E-01-06-2102 means component 06 on Wuji Hand 2 reported native code 2102. The terminal names this component index_mcp_flex (F1S1). E-01-06/11-2102 means components 06 and 11 reported the same native code. E-11-32-0102 means component 32 on Wuji Glove reported native code 0102. The terminal names this component Index IMU. Copy the full code into the error code lookup to get its cause and suggested action. The lookup uses AA to select the product catalog and CCCC to match an entry. BB identifies the component without changing the lookup result. Both Python and C provide this lookup without a device connection.

Look Up Error Codes

Look up a full code from the log to get the fault name, cause, and suggested action. No device connection is needed. The code accepts an E- prefix and grouped component numbers, such as E-01-06/11-2102.
An invalid format, unknown product, or unlisted fault code returns None. ErrorInfo is a dictionary. Access fields with info["name"].desc, cause, and resolution contain English text. Chinese text is in desc_zh, cause_zh, and resolution_zh, with an empty string when unavailable. For example, info["resolution_zh"] or info["resolution"] prefers the Chinese suggested action.

Lookup Results

Look Up Integer Fault Codes

Use the full-code lookup above for Wuji Glove. Wuji Hand 2 also exposes native u16 integer codes in fields such as error_code_current in joint_diagnostics. Query these integers directly with WujiHand2.describe_error(code) or wuji_hand_2_describe_error(code, &info). Python returns the same dictionary structure, and C returns the same WujiErrorInfo. Native code 0 means no active fault. Python returns None, and C returns WUJI_STATUS_ERR_NOT_FOUND. Unknown nonzero codes return the same results, so retain the code for fault reports. Encoder calibration values enc1_error_code / enc2_error_code and the Wuji Hand u32 error bitfield belong to other categories and must not be passed to these lookup functions.

Distinguish Device History from Host Logs

When Wuji Glove connects, the SDK records a summary of faults from the current power-on period, including faults that occurred while the SDK was disconnected. Power loss clears this device-side history. The computer retains records already written to error_codes.log, subject to file-size rotation. For Wuji Hand 2 power-loss records and their limits, see Diagnostics and Logging. Device fault logs and the device log export contain different information. Include both when reporting a fault.