Skip to content

CHANGELOG

Hyacinthe-primus edited this page Nov 12, 2026 · 5 revisions

Changelog

Entries before v2.0.0 describe the Python CLI as it shipped at the time. Some flags and file-format details changed in v2.0.0; use the CLI Guide for current behavior.

v2.0.1 (gatecore-firmware 1.2.0, gatecore-cli 2.0.1)

This is the GateCore rename. There are no firmware, protocol or database changes; firmware remains 1.2.0.

Changed

  • Firmware moved to gatecore-firmware/; the sketch is now gatecore-firmware/gatecore-firmware.ino.
  • The Rust crate and executable are now gatecore-cli (gatecore_cli for the library).
  • Workflows, release assets, badges and documentation use the new names.
  • The interactive prompt is gatecore(...), and shell history uses .gatecore_cli_history.
  • The Windows uploader now has the same -Setup, -List, -MonitorOnly, default-file and port auto-detection behavior as the shell uploader.
  • The firmware diff file is now docs/gatecore-firmware-1.1.0-to-1.2.0.diff.

Upgrade notes

Install gatecore-cli instead of rfid-cli and update any scripts or aliases that use the old executable name. Existing users.bin databases and the serial protocol are unchanged.

v2.0.0 (gatecore-firmware 1.2.0, gatecore-cli 2.0.0)

The host tool is now a Rust binary. The repository is split into gatecore-firmware/ and gatecore-cli/, and the firmware fixes that were waiting on the port shipped as 1.2.0. The full rationale and release notes are in CHOICES_AND_MODIFICATIONS.md.

CLI

  • gatecore-cli replaces python_cli/. It is a single binary for Windows, Linux and macOS. The shell and one-shot mode share command definitions; global options are passed when the shell starts.
  • convert SRC DST replaces convert.py and converts between JSON, CSV and .bin without a device.
  • export writes JSON, CSV or .bin according to the extension. The old CLI treated every non-.bin file as JSON.
  • sync --stats shows per-stage timing, and sync --restamp restores the old date-stamping behavior.
  • remove --force and import --clear accept --backup-format ask|json|bin. A failed backup now aborts the wipe.
  • Global --baud, --verbose and --no-color, plus RFID_PORT and RFID_BAUD.
  • Progress bars, a hidden Wi-Fi password prompt when stdin is a terminal, and TAB completion in the shell.
  • Rust 1.90 is the minimum supported version. CI tests it alongside stable.

Firmware 1.2.0

  • import_abort and an automatic two-minute abort when a host disappears during an import.
  • An optional continuous flag on enter_scan_mode keeps scan mode armed between cards.
  • Renewal now uses the correct local date, refuses an unsynced clock per card, skips admin badges, and reports failures with the UID.
  • import_bin and sync_apply allocate before sending the raw-transfer ok line.
  • list and find_name no longer round valid_days.
  • removeAllExcept sorts the keep list, uses binary search, and feeds the watchdog.
  • Offline timezone changes are applied immediately.
  • The PN532 UID buffer handles 10-byte triple-size UIDs.
  • A card presented between scan re-arms no longer counts as an access attempt.

Fixed in the CLI

  • sync no longer renews undated badges every day. Existing non-admin users keep the device registration date; --restamp changes that deliberately.
  • Invalid dates, odd-length UIDs, nan validity and pre-1970 dates are rejected while parsing instead of crashing mid-import.
  • Non-JSON log lines no longer cause command resends. Card events are queued separately from replies, and retried requests drain late replies.
  • rename no longer reports success for an unknown UID on a retry.
  • Raw transfers are single-attempt.
  • A failed import sends import_abort when firmware supports it.
  • remove --except refuses when none of the keep UIDs exist.
  • import --dry-run works without a device, and the capacity check runs before --clear.

Known limits

  • Replies have no request ID. Retry safety is based on idempotency rules and a drain, not an exact match.
  • import --json-transport remains as a fallback and is much slower than the binary path.

v1.0.1

Fixed

  • Database save crash window. The bulk save removed users.bin and then renamed the temporary file. A power loss between the two calls left no database. The temporary file is now verified by re-reading it and checking its CRC32 before the canonical file is replaced. A direct atomic rename is preferred; remove-then-rename is only a fallback.
  • Save stack overflow. The record-flush buffer was an 8 KB stack array on an 8 KB loop-task stack. It now lives in PSRAM and is released on every return path.
  • Task watchdog reboot. loopTask subscribed to the watchdog but never reset it, causing a panic about 10 seconds after boot. loop() now resets the watchdog.
  • list watchdog reset with many users. The user list is streamed inside one loop iteration. The stream now feeds the watchdog every 256 users.
  • Remove after the fs::File::truncate() build error. The ESP32 core has no File::truncate(). Removing a user now falls back to a full save; rename and renewal still use a single-record seek and write.
  • .bin import. Files ending in .bin are detected and parsed as binary instead of falling into the CSV parser.
  • Headerless .bin export. The raw export_bin stream carries records only, so the CLI now prepends the 7-byte file header when writing a .bin.

Added

  • sync, using a manifest diff and one raw transfer instead of per-user round trips.
  • Binary users.bin storage, replacing NDJSON users.json. Existing JSON databases are migrated on first boot and kept as users.json.bak.
  • A sorted in-memory array with binary-search lookup. Rename and renewal use a single-record save; adding rewrites from the insertion point; removal and bulk operations rewrite the file.
  • Raw import_bin and export_bin transfers, with --json-transport as the fallback. The current Rust CLI validates and filters .bin input rather than sending arbitrary bytes; see the CLI Guide.
  • db_crc32 in status, used to skip an identical import.
  • Device-side find and find_name.
  • A backup format prompt before a wipe, with --no-backup to opt out.
  • A UTF-8 → Windows-1252 fallback for JSON and CSV files written by Excel.
  • Import timing instrumentation. It is diagnostic output, not a stable protocol contract.

Changed

  • MAX_USERS from 10,000 to 70,000.
  • Serial baud rate from 921600 to 2000000.
  • Line buffer from 4 KB to 16 KB, and import batch size from 15 to 100.
  • The CLI boot wait from 15 to 45 seconds, to cover the first LittleFS format.
  • partitions.csv gained a 64 KB coredump partition.

v1.0.0

Fixed

  • JSON escaping for names containing quotes or backslashes. A malformed users.json could fail to load and silently wipe the database. Control characters are now rejected during validation.
  • Linear scans during card checks, remove, rename and renewal. The UID index is now a real lookup structure.
  • Retries could report a false failure for add, remove or rename when the first request succeeded but its reply arrived late. Retries now account for commands that are not idempotent.

Added

  • Automatic backup before remove --force and import --clear. At the time, a backup failure was only logged and did not stop the wipe; v2.0.0 changed that.
  • Anti-brute-force lockout after five consecutive denials, lasting 30 seconds. Serial commands remain available.
  • Runtime timezone configuration, stored in NVS. Config.h now supplies only the first-boot defaults.

Clone this wiki locally