rb-projects-access:start
                Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| rb-projects-access:start [14/01/2025 17:59] – [DB structure] andrew | rb-projects-access:start [18/09/2025 16:44] (current) – [SQL examples] andrew | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Access Control ====== | ====== Access Control ====== | ||
| + | {{ : | ||
| Very much embryonic and alpha project to play with commands which would be required to implement a electronic door lock system. | Very much embryonic and alpha project to play with commands which would be required to implement a electronic door lock system. | ||
| Key cards with a serial number are issued and each door has a Wiegand or rfid style reader, optionally requiring a PIN as well as card to unlock. Maybe bluetooth instead of PIN? | Key cards with a serial number are issued and each door has a Wiegand or rfid style reader, optionally requiring a PIN as well as card to unlock. Maybe bluetooth instead of PIN? | ||
| - | Also, by abstracting the keypad / reader and lock from the physical device, it should enable MQTT enabled devices to be included. If they are to be trusted..... So PKI is probably needed to maintain trust and security. (Trust but Verify!) | + | Also, by abstracting the keypad / reader and lock from the physical device, it should enable MQTT enabled devices to be included. If they are to be trusted..... So PKI is probably needed to maintain trust and security. | 
| + | [[https:// | ||
| + | [[https:// | ||
| ===== Flow ===== | ===== Flow ===== | ||
| Line 37: | Line 39: | ||
| </ | </ | ||
| - | Get access level for user | + | Get access level for user, I don't really like this, I need a way to record info for many users for many doors whilst remaining workable. My idea to store JSON in the SQL was a way to combine a NoSQL style db with MySQL. Seemed cool at the time..... | 
| <code sql> select accesslevel from access where userID = 3; | <code sql> select accesslevel from access where userID = 3; | ||
| +------------------------------------------------------------+ | +------------------------------------------------------------+ | ||
| Line 50: | Line 52: | ||
| </ | </ | ||
| so card number 1234 is cardID 1 and userID 3. | so card number 1234 is cardID 1 and userID 3. | ||
| - | presented to reader 7678 which is doorID 3 back door, as it is external it requires a PIN as well | + | presented to reader 7678 which is doorID 3 back door, as it is external it requires a PIN as well. But | 
| - | userID 3 has access level to doorID " | + | as userID 3 has access level to doorID " | 
| Line 190: | Line 192: | ||
| [[rb-projects-access: | [[rb-projects-access: | ||
| + | |||
| + | |||
| + | ===== References ===== | ||
| + | |||
| + | |||
| + | [[https:// | ||
| + | |||
| + | |||
rb-projects-access/start.1736877574.txt.gz · Last modified:  by andrew
                
                