跳转到主要内容

raydriver.core.discovery.engine

Constants​

SUBNET_SCAN_TIMEOUT​

float

find_network_devices​

Any

find_raydriver_devices​

Any

find_serial_devices​

Any

Functions​

find_all_devices()​

find_all_devices(
driver_classes: Sequence[Any],
ports: Optional[Iterable[str]] = None,
baud_rates: Optional[Iterable[int]] = None,
exclude_ports: Optional[Iterable[str]] = None,
) -> Any

Runs every discovery channel concurrently and returns the merged, deduplicated results.

exclude_ports keeps the serial scan away from ports whose devices are already held (e.g. being probed by the caller). Channels never raise: a failing or slow scan yields no devices from that channel only.

ParameterTypeDescription
driver_classesSequence[Any]
portsOptional[Iterable[str]] = None
baud_ratesOptional[Iterable[int]] = None
exclude_portsOptional[Iterable[str]] = None
ReturnsAny

find_subnet_devices()​

find_subnet_devices(driver_classes: Sequence[Any]) -> Any

Scans the local subnets for the TCP ports declared by drivers' TcpRecognizer and returns the devices the Rust core confirmed with each driver's probe. Finds controllers that announce nothing via mDNS, such as grblHAL boards with the raw telnet service.

ParameterTypeDescription
driver_classesSequence[Any]
ReturnsAny