Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Version Information

Read version information for the L20Lite dexterous hand.

Overview

Use hand.version to access version-related functionality:

  • Read complete device information, including serial number and PCB / firmware / mechanical versions

Read Device Information

hand.version.get_device_info() -> DeviceInfo

Returns a DeviceInfo object containing:

FieldTypeDescription
serial_numberstrDevice serial number
pcb_versionVersionPCB hardware version
firmware_versionVersionFirmware version
mechanical_versionVersionMechanical version
timestampfloatRetrieval time (Unix time)

The Version object has major, minor, and patch fields, and its string format is V{major}.{minor}.{patch}.

Exception:

  • TimeoutError: Request timed out

Example

Read Device Information

from realhand import L20lite

with L20lite(side="left", interface_name="can0") as hand:
    info = hand.version.get_device_info()
    print(f"Serial number: {info.serial_number}")
    print(f"PCB version: {info.pcb_version}")
    print(f"Firmware version: {info.firmware_version}")
    print(f"Mechanical version: {info.mechanical_version}")