HOWTO Program a key

From i3Detroit
Jump to: navigation, search

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.

  1. Get a key from where we store them.
  2. Go to one of our doors and swipe it and press enter.
  3. Open a terminal and SSH into mcclellan.
  4. Enter tail /var/log/mqtt-door.log which will show you the list of door swipes. The last row in that output is the key you just swiped. Copy the uuid.
  5. Alternatively, the number printed on the key should be the uuid.
  6. Put the key fob id and the fob pin in hello club
  7. 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.js You 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