Laser/Lazzzorauth: Unterschied zwischen den Versionen

aus Metalab Wiki, dem offenen Zentrum für meta-disziplinäre Magier und technisch-kreative Enthusiasten.
Zur Navigation springenZur Suche springen
Zeile 48: Zeile 48:
 
|style="border:1px dotted lightgray; text-align:center;"| Lazzzor shutdown button hit (eXit)
 
|style="border:1px dotted lightgray; text-align:center;"| Lazzzor shutdown button hit (eXit)
 
|style="border:1px dotted lightgray; text-align:center;"| X
 
|style="border:1px dotted lightgray; text-align:center;"| X
 
+
|-
 +
|style="border:1px dotted lightgray;"| P
 +
|style="border:1px dotted lightgray; text-align:center;"| NONE
 +
|style="border:1px dotted lightgray; text-align:center;"| P
 +
|style="border:1px dotted lightgray; text-align:center;"| Ping! /Heartbeat
 +
|style="border:1px dotted lightgray; text-align:center;"| P
 
|}
 
|}
  
Zeile 67: Zeile 72:
 
|style="border:1px dotted lightgray; text-align:center;"| NONE
 
|style="border:1px dotted lightgray; text-align:center;"| NONE
 
|style="border:1px dotted lightgray; text-align:center;"| Authenticated
 
|style="border:1px dotted lightgray; text-align:center;"| Authenticated
|style="border:1px dotted lightgray; text-align:center;"| A:overflo
+
|style="border:1px dotted lightgray; text-align:center;"| A:OVERFLO
 
|-
 
|-
 
|style="border:1px dotted lightgray;"| N
 
|style="border:1px dotted lightgray;"| N
Zeile 80: Zeile 85:
 
|style="border:1px dotted lightgray; text-align:center;"| Off (in response to X)  
 
|style="border:1px dotted lightgray; text-align:center;"| Off (in response to X)  
 
|style="border:1px dotted lightgray; text-align:center;"| O
 
|style="border:1px dotted lightgray; text-align:center;"| O
 +
|-
 +
|style="border:1px dotted lightgray;"| P
 +
|style="border:1px dotted lightgray; text-align:center;"| NONE
 +
|style="border:1px dotted lightgray; text-align:center;"| NONE
 +
|style="border:1px dotted lightgray; text-align:center;"| Heartbeat / PING
 +
|style="border:1px dotted lightgray; text-align:center;"| P
 +
 +
|-
 +
|style="border:1px dotted lightgray;"| E
 +
|style="border:1px dotted lightgray; text-align:center;"| <Error>
 +
|style="border:1px dotted lightgray; text-align:center;"| NONE
 +
|style="border:1px dotted lightgray; text-align:center;"| Some Error occured
 +
|style="border:1px dotted lightgray; text-align:center;"| E:Network down!
 +
  
 
|}
 
|}

Version vom 13. August 2012, 16:53 Uhr

Hardware

Consists of:

- Raspberry Pi
- Arduino
- 16x2 LCD
- OneWire (iButton suport)
- 3 Leds for status indication
- 1 Button
- a 6-Port Network Switch

Software

Occidentalis 0.1 (RaspberryPI distro from Adafruit) Node.js Arduino code


How

Hardware documentation

  • tbd (how is everything connected)

Software documentation

  • tbd (pitfalls, config, buildprocess)

Protocols

Arduino SENDS:


Code Parameter Expected reply What does it mean Example
I <iButton ID> A, N IButton scanned I:33-000000000000
X NONE O Lazzzor shutdown button hit (eXit) X
P NONE P Ping! /Heartbeat P


Raspberry sends:


Code Parameter Expected reply What does it mean Example
A <username> NONE Authenticated A:OVERFLO
N NONE NONE Not authenticated (invalid Button) N
O NONE NONE Off (in response to X) O
P NONE NONE Heartbeat / PING P
E <Error> NONE Some Error occured E:Network down!