Repository navigation
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.
This is the GateCore rename. There are no firmware, protocol or database changes; firmware remains 1.2.0.
- Firmware moved to
gatecore-firmware/; the sketch is nowgatecore-firmware/gatecore-firmware.ino. - The Rust crate and executable are now
gatecore-cli(gatecore_clifor 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.
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.
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.
-
gatecore-clireplacespython_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 DSTreplacesconvert.pyand converts between JSON, CSV and.binwithout a device. -
exportwrites JSON, CSV or.binaccording to the extension. The old CLI treated every non-.binfile as JSON. -
sync --statsshows per-stage timing, andsync --restamprestores the old date-stamping behavior. -
remove --forceandimport --clearaccept--backup-format ask|json|bin. A failed backup now aborts the wipe. - Global
--baud,--verboseand--no-color, plusRFID_PORTandRFID_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.
-
import_abortand an automatic two-minute abort when a host disappears during an import. - An optional
continuousflag onenter_scan_modekeeps 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_binandsync_applyallocate before sending the raw-transferokline. -
listandfind_nameno longer roundvalid_days. -
removeAllExceptsorts 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.
-
syncno longer renews undated badges every day. Existing non-admin users keep the device registration date;--restampchanges that deliberately. - Invalid dates, odd-length UIDs,
nanvalidity 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.
-
renameno longer reports success for an unknown UID on a retry. - Raw transfers are single-attempt.
- A failed import sends
import_abortwhen firmware supports it. -
remove --exceptrefuses when none of the keep UIDs exist. -
import --dry-runworks without a device, and the capacity check runs before--clear.
- Replies have no request ID. Retry safety is based on idempotency rules and a drain, not an exact match.
-
import --json-transportremains as a fallback and is much slower than the binary path.
-
Database save crash window. The bulk save removed
users.binand 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.
loopTasksubscribed to the watchdog but never reset it, causing a panic about 10 seconds after boot.loop()now resets the watchdog. -
listwatchdog 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 noFile::truncate(). Removing a user now falls back to a full save; rename and renewal still use a single-record seek and write. -
.binimport. Files ending in.binare detected and parsed as binary instead of falling into the CSV parser. -
Headerless
.binexport. The rawexport_binstream carries records only, so the CLI now prepends the 7-byte file header when writing a.bin.
-
sync, using a manifest diff and one raw transfer instead of per-user round trips. - Binary
users.binstorage, replacing NDJSONusers.json. Existing JSON databases are migrated on first boot and kept asusers.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_binandexport_bintransfers, with--json-transportas the fallback. The current Rust CLI validates and filters.bininput rather than sending arbitrary bytes; see the CLI Guide. -
db_crc32instatus, used to skip an identical import. - Device-side
findandfind_name. - A backup format prompt before a wipe, with
--no-backupto 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.
-
MAX_USERSfrom 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.csvgained a 64 KB coredump partition.
- JSON escaping for names containing quotes or backslashes. A malformed
users.jsoncould 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,removeorrenamewhen the first request succeeded but its reply arrived late. Retries now account for commands that are not idempotent.
- Automatic backup before
remove --forceandimport --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.hnow supplies only the first-boot defaults.
GateCore · gatecore-firmware 1.2.0 · gatecore-cli 2.0.1 · ESP32-S3 + PN532
README · Changelog · Issues · MIT License