跳转到主要内容

raydriver.grbl.probe

GrblDeviceInfo​

The structured result of probing a GRBL device: firmware identity, compile flags, flavor classification and the semantic values applications need.

acceleration​

acceleration: Optional[int]

arc_tolerance​

arc_tolerance: Optional[float]

compile_flags​

compile_flags: str

firmware_version​

firmware_version: Optional[str]

flavor​

flavor: GrblFlavor

homing_enabled​

homing_enabled: Optional[bool]

laser_mode​

laser_mode: Optional[bool]

max_speed​

max_speed: Optional[int]

max_spindle​

max_spindle: Optional[int]

max_travel​

max_travel: Optional[tuple[float, float]]

name​

name: str

report_inches​

report_inches: Optional[bool]

rx_buffer_size​

rx_buffer_size: Optional[int]

settings​

settings: dict[str, float]

single_axis_homing​

single_axis_homing: bool

to_dict()​

to_dict() -> dict

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

ParameterTypeDescription
Returnsdict

GrblFlavor​

The firmware family a device identifies itself as.

Values:

  • FLUIDNC
  • GRBLHAL
  • STOCK
  • UNKNOWN

Functions​

describe()​

describe(
build_info: Sequence[str],
settings_lines: Sequence[str],
) -> GrblDeviceInfo

Builds the census from the raw Grbl $I and $$ response lines.

Pure data transformation with no I/O; the caller is responsible for communicating with the device and passing the collected response lines.

ParameterTypeDescription
build_infoSequence[str]
settings_linesSequence[str]
ReturnsGrblDeviceInfo