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:
| Field | Type | Description |
|---|---|---|
serial_number | str | Device serial number |
pcb_version | Version | PCB hardware version |
firmware_version | Version | Firmware version |
mechanical_version | Version | Mechanical version |
timestamp | float | Retrieval 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}")