|
|
3 months ago | |
|---|---|---|
| .. | ||
| examples | 3 months ago | |
| hth_sdk | 3 months ago | |
| scripts | 3 months ago | |
| tests | 3 months ago | |
| MANIFEST.in | 3 months ago | |
| README.md | 3 months ago | |
| pyproject.toml | 3 months ago | |
| tox.ini | 3 months ago | |
Python client for hthd (hth.api.v1 over Unix sockets).
Install (from host/):
python3 -m pip install -e sdk/python
Generate protobuf stubs (required for the real gRPC client, not for MockClient):
python3 tools/gen_python_stubs.py
This package depends only on grpcio and protobuf. It does not depend on
NumPy, pandas, or PyTorch.
The following no-ACK statement applies only to the historical door controller.
Its current hardware protocol is percent-close doors 0..100 (0 = full
open, not STOP), GET_MOTOR_STATUS exists, no ACK, FPGA watchdog 30 s fed
only by valid SET_ALL after startup, GET_TEMPERATURE dropped during
startup. Fan RPM / encoder / firmware version = NOT_SUPPORTED. Temperature
channel mapping = UNKNOWN. Hardware validation: NOT RUN.
hth_sdk.thermal.connect_thermal() accepts only 6400-control,
6400-identification, or 6400-sim-debug; the old production and
identification aliases are rejected. The facade validates the canonical
profile ID and generated CPLD contract SHA-256 on every command and snapshot
response. GET_SNAPSHOT wire sequencing (0x82 ACK followed by 0x42 data) is
owned by hthd; the SDK never opens or parses a serial stream.