◉ hitron/docs
loading spec…

Reverse-engineered from a signed CODA-60 firmware image

The Hitron CODA6X,
fully mapped.

Every route, field, and quirk of the /1/Device console API — plus a single exporter that speaks Prometheus, Telegraf, Grafana, and OpenTelemetry for CODA6X, CODA-57, and HT-EM5.

curl -fsSL https://hitron.netquor.dev/install.sh | bash -s -- --run
live shape, not a mock-up
GET /1/Device/CM/DsInfo

{
  "errCode": "000",
  "Freq_List": [
    {
      "portId": 25,
      "frequency": "267000000",
      "signalStrength": "8.098",
      "snr": "43.377",
      "channelId": "1",
      "correcteds": "0",
      "uncorrect": "0"
    }
  ]
}

Field names and casing are the firmware's own.

116documented paths
171operations
3device families
4metric formats
0extra Python deps

End-to-end in four commands

From a clean checkout to a dashboard. The long version is in docs/GETTING-STARTED.md.

  1. 1

    Install and prove the device answers

    python3 -m venv .venv && source .venv/bin/activate
    pip install -e ".[dev]"
    hitron coda60 192.168.100.1 | head

    Read routes work without a login on the analyzed firmware. Writes need hitron coda60-… and --yes-really-do-this.

  2. 2

    Start the exporter

    hitron-exporter --port 9877 \
      --coda60 192.168.100.1 \
      --ht-em5 192.168.0.212 \
      --coda57 192.168.100.2

    Also serves /healthz, /api/v1/samples, and /api/v1/logs.

  3. 3

    Point Prometheus at it

    scrape_configs:
      - job_name: hitron
        static_configs:
          - targets: ["192.168.1.10:9877"]

    A ready-made stack lives in deploy/compose.yaml.

  4. 4

    Import the dashboard

    curl -O https://raw.githubusercontent.com/Netquor/hitron/main/dashboards/hitron-coda6x.json
    # Grafana → Dashboards → New → Import → upload

    Or run hitron grafana --dir deploy/grafana for provisioning.

API console

Pick an operation, fill the path, send it. When this page is served by hitron site, the base URL is /proxy and the browser never touches the device directly.

not logged in

Static hosting (GitHub Pages) cannot call http://192.168.100.1 because of mixed content and CORS. Run hitron site --device 192.168.100.1 locally and use /proxy.

Choose an operation

Try GET /1/Device/CM/DsInfo to populate the RF charts below.

Response

—
Send a request to see the response.

Run the API console locally

The published page is static, so it cannot call your modem. One line installs an isolated virtualenv, starts the site, and proxies /proxy to the gateway on the same origin.

One line

curl -fsSL https://hitron.netquor.dev/install.sh | bash -s -- \
  --run --device 192.168.100.1

Open http://127.0.0.1:8000. No sudo, no system packages, nothing outside ~/.local/share/hitron.

Read-only, if you prefer

curl -fsSL https://hitron.netquor.dev/install.sh | bash -s -- \
  --run --device 192.168.100.1 --read-only

The proxy answers GET/HEAD only and returns 403 for anything that could reboot the modem.

Already have Python 3.11+?

git clone https://github.com/Netquor/hitron
cd hitron && python3 -m venv .venv
. .venv/bin/activate && pip install -e .
hitron site --device 192.168.100.1

Step-by-step guide and troubleshooting →

Live RF charts

Charts fill from the responses you fetch, or from --once JSON pasted below. Nothing is uploaded anywhere; history is in localStorage.

idle

Downstream power

dBmV per channel

Downstream SNR

dB per channel

Upstream power

dBmV per channel

Latency

ms per request

Grafana, without the guesswork

Two dashboards ship in the repo and in the provisioning bundle. Panels cover RF, provisioning, wireless, hosts, MoCA, and exporter health.

CODA6X dashboard

Downstream/upstream power and SNR, corrected and uncorrectable codewords, OFDM/OFDMA locks, Wi-Fi clients, host count, MoCA, and scrape errors.

HT-EM5 dashboard

MoCA link, node inventory, PHY-rate matrix, Ethernet counters, and configured bands for every HT-EM5 bridge.

Alerts included

Prometheus rules for source down, provisioning failure, power out of spec, low SNR, uncorrectable errors, MoCA link down, and slow polls.

Ten-minute Grafana path

  1. Copy deploy/compose.yaml, adjust the device IPs in deploy/prometheus/prometheus.yml, then docker compose up -d.
  2. Open Grafana at http://localhost:3000 (admin / admin on first boot).
  3. Dashboards → Hitron → Hitron CODA6X. The datasource and dashboard are provisioned.
  4. Set the source template variable to your exporter target name.
  5. Alerts → Alert rules → Hitron. Silence or tune the power envelope to your carrier.

One collector, four outputs

The same normalized series feed Prometheus, Telegraf, OpenTelemetry, and plain JSON. No second mapping table to rot.

hitron-exporter --port 9877 --coda60 192.168.100.1
curl -s http://127.0.0.1:9877/metrics | head

# modem_downstream_channel_power_dbmv{source="192.168.100.1",channel_id="1"} 8.098
# modem_downstream_channel_snr_db{source="192.168.100.1",channel_id="1"} 43.377
# modem_upstream_channel_power_dbmv{source="192.168.100.1",channel_id="10"} 31.0
# hitron_exporter_up{source="192.168.100.1",kind="coda60"} 1
# /etc/telegraf/telegraf.conf
[[inputs.exec]]
  commands = ["/opt/hitron/bin/hitron-exporter --coda60 192.168.100.1 --once --format telegraf"]
  data_format = "influx"
  interval = "30s"
  timeout = "25s"

[[outputs.influxdb_v2]]
  urls = ["http://influxdb:8086"]
  token = "$INFLUX_TOKEN"
  organization = "home"
  bucket = "hitron"

Telegraf consumes the Influx line protocol on stdout; no listener or plugin is required.

hitron-exporter --coda60 192.168.100.1 \
  --otlp-endpoint http://otel-collector:4318/v1/metrics

# The exporter posts OTLP/HTTP JSON. Point an otlphttp exporter at your backend:
exporters:
  otlphttp:
    endpoint: https://otlp.example.com
service:
  pipelines:
    metrics:
      receivers: [otlp]
      exporters: [otlphttp]
hitron-exporter --coda60 192.168.100.1 --once --format json
hitron-exporter --coda60 192.168.100.1 --once --format otlp   # inspect the payload
curl -s http://127.0.0.1:9877/api/v1/samples | jq '.[0]'

Logs and request history

Two different logs: the device's own DOCSIS event log, and this page's request history. Both stay local.

Device event log

CM/Log
TimePriorityTypeEvent
Fetch to load.

Request log

0 entries
TimeMethodPathStatusms

Read next