raydriver.core.discovery.spec
DiscoverySpec
Everything a driver declares about discoverability. Declared as the DISCOVERY class attribute;
evaluated by the discovery channels.
mdns
mdns: Optional[MdnsRecognizer]
serial
serial: Optional[SerialRecognizer]
tcp
tcp: Optional[TcpRecognizer]
MdnsRecognizer
Declarative description of how a driver's devices appear on the network. Evaluated against resolved mDNS services by the network channel.
fingerprint
fingerprint: Optional[Callable[..., Awaitable[Any]]]
fingerprint_services
fingerprint_services: tuple
services
services: tuple
txt_map
txt_map: dict
SerialRecognizer
Declarative description of what a driver's device looks like on a serial wire. Evaluated against captured port output by the serial channel.
firmware
firmware: Optional[str]
label
label: Callable[[], str]
matches
matches: Callable[[bytes], bool]
name
name: Optional[Callable[[bytes], Optional[str]]]
TcpRecognizer
Declarative description of how a driver's devices appear as plain TCP listeners on the local network — e.g. grblHAL's raw telnet service on boards whose firmware does not announce it via mDNS. The subnet scan probes reachable hosts on the declared port with this data.
match_prefix
match_prefix: Optional[str]
port
port: int
probe_command
probe_command: Optional[str]