Ir al contenido principal

raydriver.marlin.probe

MarlinDeviceInfo​

The structured result of probing a Marlin device: firmware identity, software-endstop travel and motion limits.

acceleration​

acceleration: Optional[int]

firmware_version​

firmware_version: Optional[str]

machine_type​

machine_type: Optional[str]

max_speed​

max_speed: Optional[int]

max_travel​

max_travel: Optional[tuple[float, float]]

name​

name: str

units​

units: Optional[str]

to_dict()​

to_dict() -> dict

The mapping form of the census (the daemon wire form).

ParameterTypeDescription
Returnsdict

Functions​

describe()​

describe(
m115_lines: Sequence[str],
m211_lines: Sequence[str],
m503_lines: Sequence[str],
m149_lines: Sequence[str],
boot_lines: Optional[Sequence[str]] = None,
) -> MarlinDeviceInfo

Builds the census from the raw Marlin census-command responses.

Pure data transformation with no I/O; the caller is responsible for communicating with the device and passing the collected response lines. boot_lines are startup messages observed before the handshake; a version found there is more specific than the FIRMWARE_NAME token M115 reports.

ParameterTypeDescription
m115_linesSequence[str]
m211_linesSequence[str]
m503_linesSequence[str]
m149_linesSequence[str]
boot_linesOptional[Sequence[str]] = None
ReturnsMarlinDeviceInfo