https://github.com/kylestev/rfid-debug
Rust crate for extracting information from RFID scans. Wiegand encoding, H10301, Standard 26 bit format
https://github.com/kylestev/rfid-debug
h10301 rfid wiegand
Last synced: about 1 month ago
JSON representation
Rust crate for extracting information from RFID scans. Wiegand encoding, H10301, Standard 26 bit format
- Host: GitHub
- URL: https://github.com/kylestev/rfid-debug
- Owner: kylestev
- License: mit
- Created: 2022-01-28T16:06:33.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-28T16:47:06.000Z (over 3 years ago)
- Last Synced: 2025-03-03T01:08:16.043Z (3 months ago)
- Topics: h10301, rfid, wiegand
- Language: Rust
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rfid-reader
A rust package for decoding and encoding of the Wiegand format used in 125KHz
RFID fobs.## Examples
```rust
use rfid_debug::WiegandFormat;let standard_format = WiegandFormat {
parity_even: 0,
parity_odd: 25,
card_number: (0, 16), // bit range [lower, upper)
facility_code: (16, 24), // bit range [lower, upper)
};let (facility, card_number) = standard_format.decode(5666862).unwrap();
println!("facility = {}, ID = {}", facility, card_number);
```## Resources
### How does one learn more about this format?
Look no further than [HID®'s website for documentation](https://www.hidglobal.com/sites/default/files/hid-understanding_card_data_formats-wp-en.pdf).