Schliesssystem: Unterschied zwischen den Versionen

Aus Wiki CCC Göttingen
Zur Navigation springen Zur Suche springen
Zeile 51: Zeile 51:
| <code>-----GG</code>
| <code>-----GG</code>
| door is unlocked
| door is unlocked
| retract safety catch a few seconds after it has been closed, switch to primed mode if door is opened
| retract safety catch if door is closed, switch to primed mode if door is opened
|-
|-
| <code>primed</code>
| <code>primed</code>
|
|
| <code>''OORRRGG''</code>
| <code>''OORRRGG''</code>
| door will be locked if it is closed
| door will be locked a few seconds after it has been closed
| nothing
| nothing
|-
|-

Version vom 6. Juli 2011, 11:15 Uhr

Schema

{Laptop,Handy,Tablet} <-> WRT <-> ethernet GPIO device <-> {Keymatic, Sprechanlage}

DING

Command Interface

The DING listens on *:2701/tcp for incoming connections. The protocol is ECMD with doorctl extensions.

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.

mode get

doorctl mode get

returns the currently selected #Mode.

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.

? 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.

outer door open

doorctl outer door open

opens the outer door.

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 OO----- 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 OORRRGG 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.

Pinout

  • relais 1: keymatic.lock
  • relais 2: keymatic.unlock
  • relais 3: siedle.open
  • relais 4: keymatic.open

Connector pinout

These are the pinouts of the two flat cables coming from entryphone and keymatic.

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

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

Todo

  • neuen Schliesszylinder installieren
  • GPIO device installieren
  • keymatic verkabeln und an GPIO device anschliessen
  • sprechanlage an GPIO device anschliessen
  • auth-system
  • netzwerkconfig
  • Tuermagnet
  • GPIO-Device korrekt aufhaengen
  • 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)
  • Temperatursensor
    • bauen
    • verteilen
    • auslesen
  • Stromzaehlerleser
    • bauen
    • anbringen
    • auslesen

Graphische Benutzeroberfläche

  1. Alles über Public Key Kryptografie lernen.
  2. Key Paar erzeugen und Public Key einreichen.
  3. ssh door@brickme -p 42
  4. Das komplizierte Menü lesen und verstehen
  5. Tür auf und zu machen


Bedingungen für die Benutzung des Keys

  1. Der key ist mit einer Passphrase geschützt
  2. Der Key ist mein persönlicher Key, ich gebe ihn nicht weiter
  3. Für Missbrauch dieses Keys hafte ich.

Bedingungen für die Benutzung des Keys auf einem Smartphone

  1. Das Smartphone ist mit einem Passwort geschützt
  2. Das Smartphone aktiviert automatisch einen "locked Screen" innerhalb von max. 5 Minuten
  3. Wenn das Smartphone verloren/geklaut/verschenkt geht werde ich sofort beim CTG Bescheid sagen, damit der Key gesperrt wird

Bedingungen für die Benutzung des Keys auf einem Computer

  1. Der Computer ist meiner.
  2. Das Dateisystem auf dem der Key gespeichert wird ist gecrypted.
  3. Rest wie bei Smartphone.

N900

Fuer N900 gibts ein Skript mit auto-connect und auto-ssh-agent: Raum/Schliesssystem/N900-Skript