eReR98 / QR-Capture-Code

0 stars 0 forks source link

Include ability to add trusted QR Codes during runtime #6

Closed eReR98 closed 1 month ago

eReR98 commented 1 month ago

A switch was added to the system to switch between normal operation and "add user" mode. When in add user mode, any QR codes are added to the trusted user list and will be able to open the door. Relevant commit here. Buildroot not updated for this issue.

DoD:

Below is an image showing the switch in the "add user" mode. The second image is back in regular mode. The small two position on the breadboard controls the modes.

Image

Image

Below is the terminal output showing this in operation. The test process goes as follows: The code first denies access to the new user, the switch is switched to "add user" mode, the code is scanned again and added to trusted user list, the switch is put back into normal mode, the code is scanned again, the door is opened for the new user. I then tested one of the original codes just to verify it was still working.

Image

ORIGINAL COMMENT It may be necessary to add new authorized users while the code is running. The code should be able to accommodate this by allowing some scanned QR codes to be added to the trusted list.

DoD:

Blockers: None

eReR98 commented 1 month ago

Currently working a hardware method to notify the system that the next user should be added as authorized. Either a button or switch.