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, with experimental, read-only support for the CODA 4x8x (not verified on live hardware).

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"
    }
  ]
}

Field names and casing are the firmware's own.

116documented paths
171operations
4device families (one experimental)
4metric formats
0extra Python deps

hitron-cli

Your modem's signal, live in the terminal.

One static binary and no login. Power, SNR, and codeword errors update every second, with trend graphs and a channel table that turns red when something is wrong. Works on the CODA6X, CODA-57, and HT-EM5, and reads the experimental CODA 4x8x (not verified on live hardware).

go install github.com/Netquor/hitron/cli/cmd/hitron-cli@latest

Needs Go 1.22+. Prefer a download? Binaries for Linux, macOS, and Windows are on Releases.

hitron-cli live summary in a macOS terminal window: power and SNR tiles, trend graphs, device identity, DOCSIS steps, and a downstream channel table updating every second
A CODA-60 polled once a second. The identifiers are made up; the readings are real.
  1. 1

    Install

    Use the command above, or download a release and put it on your PATH.

  2. 2

    Run it on the modem's LAN

    hitron-cli monitor

    It tries 192.168.100.1 and detects the family. Another address: hitron-cli monitor 192.168.0.1.

  3. 3

    Press h

    Every action is one key and q quits. For scripts, hitron-cli stats --once prints text and --json a snapshot.

123
summary, spectrum, constellation
[]
step through analyzer channels
g
trend graphs on or off
z
reset the FEC counters (CODA6X)
t
next theme, remembered
ra
refresh now, auto refresh
jk
scroll; the mouse wheel too
x
reboot, behind a typed confirm

Errors

Codewords you can read at a glance

Corrected and uncorrectable counts share one column, 13/711 98.20%, green when clean and red when not. The tile at the top rolls the whole modem into one number. Lease and uptime read as 5 days and 1 h 58 m, and the event log becomes plain sentences, a profile change shown as 12 → 6.

The downstream channel table with a CCWE/UCCWE column showing corrected and uncorrectable codewords with percentages, colored green or red

Analyzer

A spectrum analyzer and constellation, built in

CODA6X modems expose their own tuner. Press 2 for a live 6 MHz capture around any downstream channel, or 3 for the I/Q constellation with MER. There is one tuner, so captures run one at a time; [ and ] step through channels.

A 6 MHz spectrum capture, then the 256-QAM constellation, stepping through downstream channels

Themes

Six themes, one key

Press t to cycle them. The gradient background needs a 24-bit color terminal and switches itself off otherwise; b toggles it.

hitron-cli summary in the neon theme

Safety

A reboot that cannot happen by accident

Press x, or click the Reboot button, and a dialog asks you to type reboot. Nothing is sent before that and Esc cancels. The CODA6X needs no username or password from the LAN, so the dialog asks for none. Factory reset and hard reset are not in the dashboard; they stay separate commands.

The reboot confirmation dialog asking you to type the word reboot

The dashboard only reads: it polls the same endpoints the modem's own status page uses. Full command list in the hitron-cli guide.

End-to-end in four commands

From a clean checkout to a dashboard. The long version is in the getting-started guide.

  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. No Python? The standalone Go client prints the same snapshot from one binary.

  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. An experimental CODA 4x8x is polled read-only with --coda4x8x HOST (not verified on live hardware).

  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.

Using the console in your browser

  1. Start the local proxy (see Run the API console locally) and open http://127.0.0.1:8000. This hosted page cannot reach your modem; the local copy can.
  2. Leave the base URL as /proxy. On the CODA6X, reads need no login. For writes, enter the modem's password and press Login via proxy.
  3. Pick an operation. Type in the filter box (try DsInfo or Log) or narrow by tag in the dropdown, then click a result.
  4. Send it. Fill any parameters, press send, and read the status, timing, and JSON in the Response panel. GET /1/Device/CM/DsInfo also feeds the live charts below.
  5. Prefer a terminal? The same data is one command away with hitron-cli.
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

This page is static, so it cannot call your modem. One install puts the same page and /proxy on one origin, then starts it.

Install and start

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

Reboots and resets pass through to the modem.

API base
/proxy is the default
Stop
CtrlC
Update
run the same command

Or from a checkout

  1. Clonegit clone https://github.com/Netquor/hitron
  2. Create the venvcd hitron && python3 -m venv .venv
  3. Install. .venv/bin/activate && pip install -e .
  4. Runhitron site --device 192.168.100.1

Needs Python 3.11 or newer. There is no hitron package on PyPI; that name belongs to another project.

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