Skip to content

Releases

v2.0.0 - Go rewrite

Choose a tag to compare

@poryajp poryajp released this 06 Sep 08:00

A complete rewrite of the tool in Go. It finds the fastest LTE frequency for a Zitel modem and locks the radio onto it, the same as before — but as a single static binary with nothing else to install.

Downloads

Platform File
Windows (64-bit) zitelautofreq-windows-amd64.exe
Linux ARM64 (Raspberry Pi, etc.) zitelautofreq-linux-arm64

Both are statically linked. On Linux, run chmod +x zitelautofreq-linux-arm64 first.

What changed

  • No .NET runtime. A single static binary per platform.
  • No Ookla Speedtest CLI. Download speed is measured in-process over concurrent HTTP connections. Nothing is written to disk — the downloaded data is discarded as it arrives.
  • No root needed. Reconnection is detected with a TCP dial instead of an ICMP ping, so no raw-socket privileges are required.
  • Everything is a flag. Modem address, credentials, candidate frequencies and every speed-test parameter can be set on the command line. Run with --help to see them.

More accurate measurements

Comparing frequencies fairly turned out to matter more than producing a big number, so:

  • Connection setup is excluded from the timed window — on a link that has just re-attached after a frequency change, setup can take seconds, and counting it would penalise every candidate against the frequency you started on.
  • The link is given a moment to settle after reconnecting, because the first packet getting through does not mean the radio is ready.
  • A download source that cannot serve every connection is skipped in favour of the next one, rather than quietly measuring at reduced concurrency.
  • Each frequency is scored by its fastest run, since throughput noise only ever makes a link look slower than it is.

Credits

All credit for the original tool, the reverse-engineering of the Zitel admin API and the frequency-selection approach goes to @Mahdi0024 and the original ZitelAutoFrequency project. This is only a port of that work — thank you.

Android v1.1

Choose a tag to compare

@poryajp poryajp released this 06 Sep 09:13

The Android client. It runs the same sweep as the command-line tool — score the current frequency, then each candidate, then lock onto the fastest — and adds a live radio readout.

Install

Download zitel-autofreq-1.1.apk and open it on the phone. Android will ask you to allow installation from an unknown source, because the APK is signed with a debug key rather than a Play Store key.

Requires Android 8.0 or newer on an arm64 device. About 1 MB.

The phone has to be on the modem's Wi-Fi — that is how the app reaches the modem's admin API.

What it does

Pick whether to measure against Internal (domestic) or External (international) servers, then press Start. The app tries each frequency, shows the speed on a live gauge while it measures, and ranks them at the end with the winner marked.

Alongside that it shows the live radio state, refreshed every two seconds and colour-coded green / amber / red against the usual LTE field-engineering bands:

  • RSRP, SINR and RSRQ as the headline metrics
  • Band, EARFCN, physical cell id, channel width and downlink modulation

Built to keep the numbers honest

  • Sockets are pinned to the modem's Wi-Fi. Changing frequency drops the modem's uplink for a few seconds. Android notices, demotes that Wi-Fi and moves the default route to mobile data — which either times the test out or, worse, quietly measures the phone's SIM data and spends the user's quota to produce a number that says nothing about the frequency being tested.
  • Connection setup is outside the measured window. All four connections are opened first; the clock starts only once every one of them is streaming, so a link that is still coming back up does not eat into the measurement.
  • The link is given time to settle after reconnecting, because the first packet getting through does not mean the radio is ready.
  • Each frequency is scored by its fastest run, since throughput noise only ever makes a link look slower than it is.
  • A failed frequency is skipped, not fatal. If a candidate cannot be measured the sweep carries on, and on any failure or cancellation the radio is put back on the best frequency measured so far — never left parked wherever the sweep happened to stop.

Nothing is written to storage; the downloaded data is counted and discarded.

Credits

Original tool and the reverse-engineering of the Zitel admin API by @Mahdi0024 — see ZitelAutoFrequency. Thank you.