uhppoted / uhppote-cli

Go CLI for the UHPPOTE UT0311 TCP/IP access controller boards
MIT License
8 stars 4 forks source link

Add --card-format command line switch to override card validation #12

Closed uhppoted closed 1 year ago

uhppoted commented 1 year ago

Ref. https://github.com/uhppoted/uhppote-core/issues/15

The UHPPOTE controllers seemingly support Wiegand-34 (and possibly other) card formats making the Wiegand-26 validation introduced in v0.8.5 problematic for some systems. However, the validation is useful in avoiding incorrect card numbers due to finger trouble and it would be better to keep it in place.

Proposal is to add a --card-format <format> command line switch to the put-card and put-acl commands override the default validation. The format would take the following initial values:

uhppoted commented 1 year ago
twystd commented 1 year ago

Seems Wiegand-34 is a "user defined" standard:

https://www.idesco.com/files/articles/HID%20-%20Understanding%20card%20formats.pdf

twystd commented 1 year ago

Implementation complete - pending release.