Repository navigation
Releases
GateCore v2.0.1
GateCore v2.0.1
This is the GateCore rename. The firmware remains 1.2.0, the serial
protocol is unchanged, and existing users.bin databases work as before.
What changed
- Firmware sources moved to
gatecore-firmware/. - The sketch is now
gatecore-firmware/gatecore-firmware.ino. - The Rust crate and executable are now
gatecore-cli(gatecore_clifor the
library import). - CLI release assets are now named
gatecore-cli-.... - Workflows, badges, documentation and shell prompts use the new names.
- Shell history moved to
~/.gatecore_cli_history. - The Windows uploader now matches the shell uploader more closely:
-Setup,-List,-MonitorOnly, a default sketch path, port
auto-detection, and the-p/-f/-m/-baliases. - The firmware diff is now
docs/gatecore-firmware-1.1.0-to-1.2.0.diff.
Breaking changes
The executable name changed from rfid-cli to gatecore-cli. Update
scripts, aliases, shortcuts and service definitions that use the old name.
The firmware sketch path also changed. Open
gatecore-firmware/gatecore-firmware.ino in the Arduino IDE; the folder and
.ino name must stay gatecore-firmware.
If your board already runs firmware 1.2.0, you do not need to reflash it just
for this rename. Rebuild only if you want the new source layout on the board.
Downloads
| Platform | Archive |
|---|---|
| Windows 10/11 x64 | gatecore-cli-2.0.1-x86_64-pc-windows-msvc.zip |
| Linux x64 | gatecore-cli-2.0.1-x86_64-unknown-linux-gnu.tar.gz |
| macOS Apple silicon | gatecore-cli-2.0.1-aarch64-apple-darwin.tar.gz |
| macOS Intel | gatecore-cli-2.0.1-x86_64-apple-darwin.tar.gz |
Each archive has a matching .sha256 file. The binaries are not code-signed.
Upgrade
# Replace the old executable with the new one.
gatecore-cli --version
gatecore-cli list-portsExisting command names and flags are unchanged apart from the executable name.
RFID_PORT and RFID_BAUD are still accepted.
Verification
cargo +1.90.0 test --locked: 51 passed.cargo +stable test --locked: 51 passed.cargo +1.90.0 build --release --locked: passed.- CI runs stable Rust on Windows, Linux and macOS, plus Rust 1.90 on Linux.
- The firmware source is unchanged; CI compiles it for the ESP32-S3.
Documentation
Full Changelog: v2.0.0...v2.0.1
rfid-cli v2.0.0
RFID Access Control v2.0.0
This release replaces the Python CLI with rfid-cli, a Rust binary for
Windows, Linux and macOS, and ships firmware 1.2.0. The serial protocol and
users.bin format remain compatible with v1.0.1.
Highlights
rfid-clireplaces the Python CLI. One self-contained binary, no Python
environment orpip install.- Faster bulk operations. Imports and syncs use raw binary records.
--json-transportremains available as a fallback. - Firmware 1.2.0 fixes renewal dates, import recovery, UID handling and
watchdog issues. - 51 automated tests cover the binary codec, validation, retries, import,
export, sync and the interactive shell. CI runs them on Windows, Linux and
macOS.
Downloads
The release contains CLI archives only. The firmware is built separately by
the firmware workflow.
| Platform | Archive |
|---|---|
| Windows 10/11 x64 | rfid-cli-2.0.0-x86_64-pc-windows-msvc.zip |
| Linux x64 | rfid-cli-2.0.0-x86_64-unknown-linux-gnu.tar.gz |
| macOS Apple silicon | rfid-cli-2.0.0-aarch64-apple-darwin.tar.gz |
| macOS Intel | rfid-cli-2.0.0-x86_64-apple-darwin.tar.gz |
Each archive has a matching .sha256 file. Verify it before running the
binary. The binaries are not code-signed; see the installation guide for the
Windows and macOS first-run notes.
Upgrade notes
Python CLI users
The Python CLI was removed. Install rfid-cli from this release and replace
old commands like:
python cli.py statuswith:
rfid-cli statusMost subcommand names are unchanged. Some flags and defaults differ:
exportchooses JSON, CSV or binary from the file extension. The old CLI
treated every non-.binfile as JSON.convert SRC DSTreplaces the standaloneconvert.py.syncpreserves existing device dates for undated, non-admin entries. Use
--restampfor the old behavior.- A failed automatic backup now aborts
remove --forceandimport --clear. - Raw transfers are single-attempt; reconnect and retry after a stall.
import --dry-runworks without a device.
Repository layout
The sketch is now firmware/firmware.ino. The Rust crate is in cli/, and the
host helper scripts are under firmware/. The old root-level firmware files and
python_cli/ are gone.
Firmware compatibility
rfid-cli 2.0.0 works with firmware 1.1.0, but the full feature set requires
1.2.0. In particular, firmware 1.1.0 does not have import_abort or the
continuous scan flag.
Firmware 1.2.0 keeps the existing database format. A pre-1.0.1 users.json is
still migrated automatically on first boot and kept as users.json.bak. No
data conversion is needed when upgrading from v1.0.1.
If you use the Python CLI, keep it on v1.0.1 and do not mix it with the new
workflow unless you have tested that combination. The current tool is
rfid-cli.
CLI changes
- New
convertsubcommand for JSON, CSV and.binconversion. .csvexport support.sync --statstiming output andsync --restamp.--backup-format ask|json|binforremove --forceandimport --clear.- Global
--baud,--verboseand--no-color;RFID_PORTandRFID_BAUD
environment variables. - Progress bars, hidden Wi-Fi password input on a terminal, and TAB completion
in the shell. - Offline
import --dry-run, and the import capacity check now runs before
--clearwipes anything. remove --exceptrefuses when none of the keep UIDs exist.find --nameruns on the device; older firmware falls back tolist.- Device reports now include
db_crc32, firmware and protocol versions.
Fixed in the CLI
syncno longer renews undated badges on every run.- Invalid dates, odd-length UIDs,
nanvalidity and pre-1970 dates are rejected
while parsing instead of crashing mid-import. - Non-JSON boot output no longer causes command resends.
- Card events are queued instead of being mistaken for command replies.
- Late replies to retried requests are drained.
renameno longer reports success for an unknown UID after a retry.- A failed import sends
import_abortwhen firmware supports it. - A failed backup no longer allows a destructive wipe to continue.
- Timezone offsets with a 30-minute component print correctly.
Firmware 1.2.0
- Tag renewal uses the correct local date, refuses each card when NTP is not
synced, skips admin badges, and reports failures with the UID. import_binandsync_applyallocate before sending the raw-transferok
line, so an allocation failure cannot be mistaken for a successful setup.import_abortand a two-minute idle timeout recover the reader after a host
disappears mid-import.listandfind_namepreserve fractionalvalid_daysinstead of rounding
them to two decimals.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.
- Continuous scan mode no longer counts a card presented between re-arms as an
access attempt.
Requirements
- Prebuilt CLI: none beyond the matching platform.
- Building the CLI: Rust 1.90 or newer.
- Firmware: Arduino IDE 2.x or
arduino-cli, ESP32 board package 3.x,
Adafruit PN532,LiquidCrystal I2C, andArduinoJson7.x.
Verification
cargo +1.90.0 test --locked: 51 passed.cargo +stable test --locked: 51 passed.cargo +1.90.0 build --release --locked: passed.- Firmware compiles in CI for the ESP32-S3.
- The firmware diff applies cleanly to the 1.1.0 sources under
firmware/.
The CLI tests use an in-memory firmware simulator. Card reads, renewal, scan,
import and sync should still be smoke-tested on the target board before
deployment.
Known limitations
- Replies do not carry a request ID. Retry safety relies on idempotency rules
and the post-retry drain. import --json-transportis much slower than the binary path.- The firmware checks binary record shape and CRC, but not calendar dates. Use
the CLI or validate generated files before importing them.
Documentation
Full Changelog: v1.0.1...v2.0.0
RFID Access Control v1.0.1
RFID Access Control v1.0.1
Bug-fix and performance release. No breaking changes to the on-disk data your users already have, existing users.json databases migrate automatically on first boot. The serial baud rate changed (921600 → 2000000): update the Python CLI alongside the firmware, or commands will get garbled output.
Highlights
- User database format switched from JSON to a fixed-width binary format (
users.bin) -- imports, exports, and saves are dramatically faster, with per-record and whole-database CRC32 integrity checks. - New
synccommand: makes the device match a local file exactly via a remove/add/replace diff, instead of import's additive-or-destructive model. - User limit raised 10,000 → 70,000 entries.
- Five real crash/reboot bugs fixed, including two device reboots that only showed up at high user counts.
Bug Fixes
save()no-file crash window: a power loss mid-save could leave the device with no database file at all. Finalization is now a single atomic rename with pre-write CRC verification, instead of remove-then-rename.save()stack overflow: the flush buffer moved from an 8KB stack array (which alone nearly exhausted the 8KB loop task stack) to a PSRAM heap allocation.- TWDT reboot every ~10.25s:
loop()never fed the Task Watchdog Timer once subscribed. Fixed withesp_task_wdt_reset()at the top ofloop(). listreboots the device above ~15,000 users: streaming the full list in oneloop()iteration could outrun the watchdog timeout. Fixed by resetting the watchdog every 256 users during the stream.removeUser()build error on some cores:fs::File::truncate()doesn't exist on this toolchain. Removal now falls back to a full rewrite instead of failing to compile.import/export.binhandling:.binfiles were silently misparsed as CSV on import, and.binexports were missing their 7-byte header and failed to re-import. Both fixed and verified round-trip clean.
New Features
synccommand – device-side manifest diff (uid + per-record CRC32), one binary transfer for the whole delta, finaldb_crc32comparison to confirm the databases actually match.- Binary user database (
users.bin) replacing NDJSON, with automatic migration from existingusers.json(kept as.bak). - Sorted array + targeted saves –
users_stays physically sorted by UID; rename/renew get a true single-record write,addUser()rewrites only the suffix from the insertion point. - Raw binary import/export sub-protocol (
import_bin/export_bin) – no JSON framing or parsing for bulk transfers. CLI uses this by default;--json-transportfalls back to the old pipeline. - CRC32 fingerprint skip – re-importing a file the device already has now skips the transfer and save entirely.
find --uid(O(log n) binary search, device-side) andfind --name(device-side substring match); only matching records cross serial.- Backup format prompt –
remove --forceandimport --clearnow ask for JSON or.binbefore wiping;--no-backupskips it. - File encoding fallback for import (utf-8-sig → cp1252 → latin-1), fixing failures on Excel-exported CSVs from Windows/French locales.
Changed
- User limit: 10,000 → 70,000 entries (PSRAM-backed allocator).
- Serial baud rate: 921,600 → 2,000,000. Update the CLI alongside the firmware.
- Line buffer: 4096 → 16384 bytes, supporting ~100 users per
batch_addline. - Batch import size: 15 → 100 users per round-trip.
- CLI boot-wait timeout: 15s → 45s, covering first-boot
LittleFS.format()on the 12MB partition. partitions.csv: coredump partition added (64KB).
Python CLI
Now 17 subcommands (added sync). All existing v1.0.0 commands are unchanged in behavior; import/export default to the faster binary transport automatically.
Requirements
Same as v1.0.0 – Arduino IDE 2.x, ESP32 board package v3.x, Adafruit PN532, LiquidCrystal I2C, ArduinoJson v7.x, Python 3.9+. prompt-toolkit and rich remain required for the interactive shell.
Full diff: see CHANGELOG for complete technical detail on every fix and feature above.
Full Changelog: v1.0.0...v1.0.1
RFID Access Control v1.0.0
RFID Access Control v1.0.0
First stable release of the standalone ESP32-S3 RFID access controller. Runs fully offline (no PC required); a Python CLI is included for administration.
Hardware
- ESP32-S3 dev board (8MB Octal PSRAM, 16MB Flash)
- PN532 NFC/RFID module, hardware SPI mode
- 16x2 I2C LCD (PCA8574 backpack, address
0x27or0x3F) - Passive buzzer on GPIO 6 (PWM tone feedback)
- Wi-Fi (2.4GHz) for NTP time sync
Core Features
- User database up to 10,000 entries, PSRAM-backed allocator
- Expiration checking against NTP-synced clock (
registered+valid_days) - Fail-safe behavior: every card denied with "No Time Sync" if NTP hasn't synced
- Admin badges: no expiration, work even without NTP sync
- Audible feedback: ascending tone on grant, descending tone on deny
- Anti-brute-force lockout after
MAX_CONSECUTIVE_DENIALSconsecutive denials, configurableLOCKOUT_DURATION_MS - Wi-Fi provisioning and timezone (offset + DST) configurable at runtime via CLI, no reflash needed
- Newline-delimited JSON serial protocol at 921600 baud
Python CLI (17 subcommands)
- User management:
add,remove(incl.--force,--except),rename,find,list - Batch import/export (JSON or CSV), with
--dry-runand--clear - Automatic timestamped backup before any destructive operation
- Tag renewal mode:
tag-renewwith quota control - UID scan mode:
scan,scan --infinite - Device diagnostics:
status,netstatus,ntp-time,ntp-sync - Port auto-detection with manual override (
--port,list-ports)
Storage
- LittleFS + newline-delimited JSON
- Custom 16MB partition layout, 12MB LittleFS cap
Requirements
- Arduino IDE 2.x, ESP32 board package v3.x
- Libraries: Adafruit PN532, LiquidCrystal I2C, ArduinoJson v7.x
- Python 3.9+ for the CLI