esprfid / esp-rfid

ESP8266 RFID (RC522, PN532, Wiegand, RDM6300) Access Control system featuring WebSocket, JSON, NTP Client, Javascript, SPIFFS
MIT License
1.36k stars 423 forks source link

Need more wiegand bit-length options #368

Open vrelk opened 4 years ago

vrelk commented 4 years ago

I noticed in your keypad code (src/rfid.esp line 41), you are only accepting 26 and 34 bits, otherwise it is a keypad entry. It would be nice to also add in 32, 35, and 64 bit options too. Maybe have a comma delimited entry for custom lengths?

32: another wiegand standard 35: HID Corporate 1000 64: one of the HID readers spits this out for Mifare cards

For output reference: https://pastebin.com/AcND7C5J (this was done by a HID MultiClass RP40 if I remember correctly)

http://cardinfo.barkweb.com.au/

nardev commented 4 years ago

Hello,

you would have to upgrade the wiegand library that is used. Once it's upgradedd over there, than the compile will reflect and worn in esp-rfid as you expect.

vrelk commented 4 years ago

Ok, that looks easy enough. For now I have passed out the older fobs which are 34-bit and am keeping the 35-bit ones in a drawer. Still, might be useful to allow it for future releases.

pvtex commented 3 months ago

i have changed the WIegand Library to WiegandNG. now you can use Bits length from 24 to 58 bits. All you need to do is to set the requiered bit length in the Hardware settings.

you can find the change in cc7b24c and c66073a these are in my fork in the 2.0.0(WiengandNG) branch

matjack1 commented 2 months ago

Thank you @pvtex I want to get V2 out first then we'll take onboard more changes, otherwise this V2 is never going to happen :)

Surely after the V2 is out we can get the code ported here as well, thank you!