HOWTO Program a key
RFID Tags
Our RFID entry system uses EM4100 125khz RFID tags.
Programming new keys
Since April 2020 adding new keys and changing the status of existing ones is handled through a remote interface on McClellan, a server which we administer on site.
The code is at github.com/i3detroit/door-management.
- Get a key from where we store them.
- Go to one of our doors and swipe it and press enter.
- Open a terminal and SSH into mcclellan.
- Enter
tail /var/log/mqtt-door.logwhich will show you the list of door swipes. The last row in that output is the key you just swiped. Copy the uuid. - Alternatively, the number printed on the key should be the uuid.
- Put the key fob id and the fob pin in hello club
- it will update the doors automatically every day, but to do it faster, go back to the terminal tab where you SSH'ed into the mcclellan server and run this command:
/opt/door-management/setAccess.jsYou can add a space and "a" or "b" to the end of the command. The "a" option means "only update A side", "b" means "only update B side", and neither option means to set both.- if it stops printing status from one of the doors, (like says it logged in but nothing else, or it parsed page 1 of 19 but no others) reboot that door and try that one again.
- To reboot a door run (for example b)
/opt/door-management/rebootdoor b - Then try programming the failed door again
/opt/door-management/setAccess.js b
- To reboot a door run (for example b)
- if it stops printing status from one of the doors, (like says it logged in but nothing else, or it parsed page 1 of 19 but no others) reboot that door and try that one again.