Zigbee.EZSP.Diagnostics (zigbee v0.1.0)

Copy Markdown View Source

Low-level probing helpers for bringing up a new NCP over serial.

These bypass Zigbee.EZSP.ASH.Connection and talk to the port directly so you can see exactly what (if anything) the dongle sends back, which helps when the reset handshake times out and you don't yet know the right baud rate, flow control, or even whether the firmware speaks EZSP at all.

Run from IEx:

Zigbee.EZSP.Diagnostics.sweep("/dev/cu.usbmodem2101")

Summary

Functions

Send an ASH RST at one baud/flow-control setting and dump whatever comes back.

Probe a list of baud rates (default [115200, 460800, 230400, 57600]) at flow_control: :none and report which, if any, yields a valid RSTACK.

Functions

probe(device, opts \\ [])

Send an ASH RST at one baud/flow-control setting and dump whatever comes back.

Options: :speed (default 115200), :flow_control (:none | :hardware, default :none), :listen_ms (default 1500).

sweep(device, bauds \\ [115_200, 460_800, 230_400, 57600])

Probe a list of baud rates (default [115200, 460800, 230400, 57600]) at flow_control: :none and report which, if any, yields a valid RSTACK.