Schliesssystem
Aus Wiki CCC Göttingen
Inhaltsverzeichnis |
[Bearbeiten] Schema
{Laptop,Handy,Tablet} <-> WRT <-> ethernet GPIO device <-> {Keymatic <-> Schloss, Sprechanlage <-> Aussentuer, ERT}
[Bearbeiten] DING
[Bearbeiten] Command Interface
The DING listens on *:2701/tcp for incoming connections. The protocol is ECMD with doorctl extensions.
[Bearbeiten] mode set
doorctl mode set <mode>
sets the mode #Mode. Once you issued this command, you will have to wait a short amount of time before doorctl mode set and doorctl inner door open are enabled again.
[Bearbeiten] mode get
doorctl mode get
returns the currently selected #Mode.
[Bearbeiten] inner door open
doorctl inner door open.
retracts the safety catch of the inner door. Once you issued this command, you will have to wait a short amount of time before doorctl mode set and doorctl inner door open are enabled again.
[Bearbeiten] ? inner door open
doorctl ? inner door open
checks if the inner door is currently opened. This does not mean, that the safety catch is retracted but that the door is really standing open.
[Bearbeiten] outer door open
doorctl outer door open
opens the outer door.
[Bearbeiten] Mode
The DING has a mode register for the inner door that is always set to one of the following values:
| Mode | Default | LED value | Comment | ERT effect |
|---|---|---|---|---|
locked
| X | *-R-R--
| door is locked | nothing if door is closed, switch to unlocked if door is opened |
unlocked
| *O-----
| door is unlocked | nothing if door is closed, switch to unlocked+ert if door is opened | |
unlocked+ert
| *----GG
| door is unlocked | retract safety catch if door is closed, switch to primed mode if door is opened | |
primed
| *ORRRGG
| door will be locked a few seconds after it has been closed | nothing | |
| any | ***R***
| keymatic is currently performing an action | nothing |
Led colors: R: Red, O: Orange, G: Green, *: Any color, italic: blinking
To modify modes use the #mode set or #mode get commands. Also, you can cycle through modes using the pushbutton on the DING.
[Bearbeiten] Pinout
- relais 1: keymatic.lock
- relais 2: keymatic.unlock
- relais 3: siedle.open
- relais 4: do not connect this relay!
- relais ?: siedle.ring
- relais 5: keymatic.open
[Bearbeiten] Connector pinout
These are the pinouts of the two flat cables coming from entryphone and keymatic.
[Bearbeiten] Siedle entryphone
- Pin 1: door opener connector a
- Pin 2: door opener connector b
- Pin 3: ERT connector a
- Pin 4: ERT connector b
- Pin 5: Siedle ERT input a
- Pin 6: Siedle ERT input b
- Pin 7-10: not used
[Bearbeiten] Keymatic
- Pin 1: Pushbutton lock/unlock (?)
- Pin 2: Pushbutton common
- Pin 3: Pushbutton lock/unlock (?)
- Pin 4: RI common
- Pin 5: RI dooropener
- Pin 6: RI lock/unlock (?)
- Pin 7: RI lock/unlock (?)
- Pin 8: unused
- Pin 9: RI power supply +
- Pin 10: RI power supply -
[Bearbeiten] Todo
- Gemeinsame Stromversorgung
- Fritzbox (12 V/ 100 mA)
- brickme (12 V / 2.5 A)
- Keymatic (12 V / 100 mA)
- DING (5V / 500 mA)
- Telefon (6 V / 300 mA)
- Motorola-Box (5 V / 3 A)
- Spacemaster 6000 (5 V / 400 mA)
[Bearbeiten] Graphische Benutzeroberfläche
- Alles über Public Key Kryptografie lernen.
- Key Paar erzeugen und Public Key einreichen.
- ssh door@brickme -p 42
- Das komplizierte Menü lesen und verstehen
- Tür auf und zu machen
Verneinen Sie, was Sie nicht moechten.
**** MODES ****
1. no locked, no ERT
-> 2.718 no locked <-+
3.142 no unlocked |
primed |
**** ACTIONS **** +-- x
4. no besmirch lift |
[#] 5. no inner door closed |
6. no outer door closed <-+
7. no continue <---- q
8. HELP! I don't understand this!
[Bearbeiten] Bedingungen für die Benutzung des Keys
- Der key ist mit einer Passphrase geschützt
- Der Key ist mein persönlicher Key, ich gebe ihn nicht weiter
- Für Missbrauch dieses Keys hafte ich.
[Bearbeiten] Bedingungen für die Benutzung des Keys auf einem Smartphone
- Das Smartphone ist mit einem Passwort geschützt
- Das Smartphone aktiviert automatisch einen "locked Screen" innerhalb von max. 5 Minuten
- Wenn das Smartphone verloren/geklaut/verschenkt geht werde ich sofort beim CTG Bescheid sagen, damit der Key gesperrt wird
[Bearbeiten] Bedingungen für die Benutzung des Keys auf einem Computer
- Der Computer ist meiner.
- Das Dateisystem auf dem der Key gespeichert wird ist gecrypted.
- Rest wie bei Smartphone.
[Bearbeiten] N900
Fuer N900 gibts ein Skript mit auto-connect und auto-ssh-agent: Raum/Schliesssystem/N900-Skript
[Bearbeiten] Logbuch
[Bearbeiten] 8.2.2012
Relay für keymatic.open hat nicht reagiert. Wir standen vor der Tür, Tür hat entriegelt aber nicht geöffnet.
Transistor am Relay 6 nach gelötet. Danach wieder vollständige Funktion.... Hat das Relay irgendetwas mit .open zu tuen?