Skip to main content

Module probe

Module probe 

Source
Expand description

What NCP is on a port.

  • EZSP: one ASH reset (RST, which every EZSP session starts with and which only resets the NCP’s serial link state machine and stack, never its network), then read-only queries: version, the VERSION_INFO value, the coordinator’s IEEE address and the board’s manufacturing strings.
  • ZNP: the CC2652 bootloader skip byte, SYS_PING, SYS_VERSION and UTIL_GET_DEVICE_INFO.
  • deCONZ: VERSION and the MAC_ADDRESS parameter.

Nothing is written. A probe finishes in under three seconds and drops the port when it returns.

Structs§

NcpIdentity
What a probe found.

Enums§

NcpKind
The NCP families a port can be probed for.
ProbeError
The probe could not talk to the port at all.

Constants§

PROBE_TIMEOUT
The longest a probe takes.

Functions§

probe
Open port (a serial device or tcp://host:port) at baud and probe it for kind. The port is closed when this returns.
probe_any
Probe port for each family in turn (NcpKind::ALL), opening it afresh for each; the first that answers wins.
probe_deconz
Probe an open stream for a deCONZ coordinator (ConBee, RaspBee). Ok(None) means nothing valid answered.
probe_ezsp
Probe an open stream for an EZSP NCP. Ok(None) means nothing valid answered (wrong device, wrong baud rate); Err is an I/O failure.
probe_stream
Probe an open stream for kind.
probe_znp
Probe an open stream for a Z-Stack ZNP coordinator. Ok(None) means nothing valid answered.