Difference between revisions of "Project/DoorSystem"
m |
|||
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
''' Door opening system ''' | ''' Door opening system ''' | ||
'''This page describes the door opening system used in Init Lab v3, which is no longer in use.''' | |||
= Basics = | = Basics = | ||
Line 7: | Line 9: | ||
== Accessing the system(s) == | == Accessing the system(s) == | ||
The system can be accessed in two ways: using [ | The system can be accessed remotely in two ways: using [[Project/Fauna|fauna]] or by calling +359-24624356. The phone number is routed over VoIP(SIP) from support.bg to cassie. | ||
Also, next to the door there are two buttons on the white box - a red and a green one. The red one locks the door, the green one unlocks it. If the door is open and you press the red button, it will lock 1 second after the door is closed. | |||
== Using the phone == | == Using the phone == | ||
Line 22: | Line 26: | ||
* If the door is not locked: | * If the door is not locked: | ||
** The system opens the door | ** The system opens the door | ||
** The system logs the door opening via [https://twitter.com/initlabkeeper twitter]. Using the source phone number, a textual ID is looked up in the Fauna database and logged, if the user has register its phone number. | ** The system logs the door opening via [https://twitter.com/initlabkeeper twitter]. Using the source phone number, a textual ID is looked up in the [[Project/Fauna|Fauna]] database and logged, if the user has register its phone number. | ||
== Using the bulphone in front of the door == | |||
* This phone is next to the front door | |||
<gallery showfilename=true> | |||
File:labphone.jpg|labphone.jpg | |||
File:labphone1.jpg|labphone1.jpg | |||
File:labphone2.jpg|labphone2.jpg | |||
</gallery> | |||
* You have to dial 150 to get into the system | |||
* It'll ask you for you phone number, enter it and # after it | |||
* Next follow the normal phone instructions (asking for a code, etc.) | |||
= Unlocking = | = Unlocking = | ||
Line 33: | Line 50: | ||
There is a set of scripts on cassie that send a signal on the serial port (raise the DTR), to close a relay for 6 seconds. This relay is connected to the button next to the door opening panel in the corridor, and basically presses it. | There is a set of scripts on cassie that send a signal on the serial port (raise the DTR), to close a relay for 6 seconds. This relay is connected to the button next to the door opening panel in the corridor, and basically presses it. | ||
= Future plans = | |||
* None at the moment | |||
= Sources/links = | = Sources/links = | ||
Line 40: | Line 62: | ||
* [https://vasil.ludost.net/blog/?p=2872 Blog post on the door opening] | * [https://vasil.ludost.net/blog/?p=2872 Blog post on the door opening] | ||
* [https://github.com/initLab/fauna Fauna sources on github] | * [https://github.com/initLab/fauna Fauna sources on github] | ||
* [[Project/Fauna|Fauna page on this wiki]] | |||
[[Category:Project]] | [[Category:Project]] |
Latest revision as of 11:33, 9 March 2021
Door opening system
This page describes the door opening system used in Init Lab v3, which is no longer in use.
Basics
The system has two separate pieces: opening the door, and unlocking the door, controlled by two separate mechanisms. The locking is done by an electro-mechanical door lock, and the opening/closing is done by a small (something).
Accessing the system(s)
The system can be accessed remotely in two ways: using fauna or by calling +359-24624356. The phone number is routed over VoIP(SIP) from support.bg to cassie.
Also, next to the door there are two buttons on the white box - a red and a green one. The red one locks the door, the green one unlocks it. If the door is open and you press the red button, it will lock 1 second after the door is closed.
Using the phone
When you call the phone:
- If the door is locked:
- The system checks if the source phone number is in the list of allowed-to-unlock people. If not, the system hangs up.
- The system picks up, and using a voice similar to that of Stephen Hawking asks "Enter code".
- It waits for a 6-digit pin code, which is verified in the database if it's the right PIN code for this calling number.
- If the entered code is wrong, the voice says "Wrong". You have three tries, if you fail, it says "Fuck off" and hangs up.
- If the code entered is the right one, the voice says "Opening door", unlocks the door and opens it.
- The system then logs the door opening and unlocking, as like in the opening below.
- If the door is not locked:
Using the bulphone in front of the door
- This phone is next to the front door
Labphone.jpg labphone.jpg
Labphone1.jpg labphone1.jpg
Labphone2.jpg labphone2.jpg
- You have to dial 150 to get into the system
- It'll ask you for you phone number, enter it and # after it
- Next follow the normal phone instructions (asking for a code, etc.)
Unlocking
The door uses a Bulkey BKS300 electro-mechanical lock. It's connected though a board to an olinuxino device that runs some Go code to control the opening closing.
The software and schematics are available at github, and was developed by Radoslav Borisvov and Kiril Zyapkov.
Opening
There is a set of scripts on cassie that send a signal on the serial port (raise the DTR), to close a relay for 6 seconds. This relay is connected to the button next to the door opening panel in the corridor, and basically presses it.
Future plans
- None at the moment