# Saleae Logic Automation Server (early access)

Headless server implementing the Logic 2 automation gRPC API, for use without the Logic 2 GUI.

Contents:

- `logic_automation_server` — the server. Run it and connect a gRPC client to `127.0.0.1:10430`.
- `Analyzers/` and the `Analyzer` shared library — the bundled protocol analyzers, loaded automatically.
- `proto/saleae/grpc/saleae.proto` — the gRPC API definition, for building your own client.

The [logic2-automation](https://pypi.org/project/logic2-automation/) Python library works against this
server via `Manager.connect()`.

Platform setup for real devices:

- Windows: install [Logic 2](https://www.saleae.com/downloads/) once to install the device drivers.
- Linux: install the included udev rules so devices are accessible without root:
  `sudo cp 99-SaleaeLogic.rules /etc/udev/rules.d/` (then replug the device).

Use of the software in this package is governed by `License.txt`.

Options: `--port <n>` (default 10430), `--host <address>`, `--analyzer-path <dir>` (repeatable, overrides
the bundled `Analyzers/`), `--disable-usb-scanning`, `--version`.

High level analyzers run from a local extension directory, the same layout Logic 2 uses.
