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 32: Zeile 32:
 
{|
 
{|
 
!align ="left" style="border:1px dotted lightgray; border-bottom:1px solid lightgray;"|<small>Code</small>
 
!align ="left" style="border:1px dotted lightgray; border-bottom:1px solid lightgray;"|<small>Code</small>
!width="40" align ="center" style="border:1px dotted lightgray; border-bottom:1px solid lightgray;"| <small>Parameter<small>
+
! align ="center" style="border:1px dotted lightgray; border-bottom:1px solid lightgray;"| <small>Parameter<small>
!width="40" align ="center" style="border:1px dotted lightgray; border-bottom:1px solid lightgray;"| <small>Expected reply<small>
+
! align ="center" style="border:1px dotted lightgray; border-bottom:1px solid lightgray;"| <small>Expected reply<small>
!width="40" align ="center" style="border:1px dotted lightgray; border-bottom:1px solid lightgray;"| <small>What does it mean<small>
+
! align ="center" style="border:1px dotted lightgray; border-bottom:1px solid lightgray;"| <small>What does it mean<small>
!width="40" align ="center" style="border:1px dotted lightgray; border-bottom:1px solid lightgray;"| <small>Example<small>
+
! align ="center" style="border:1px dotted lightgray; border-bottom:1px solid lightgray;"| <small>Example<small>
 
|-
 
|-
 
|style="border:1px dotted lightgray;"| I
 
|style="border:1px dotted lightgray;"| I
Zeile 64: Zeile 64:
 
{|
 
{|
 
!align ="left" style="border:1px dotted lightgray; border-bottom:1px solid lightgray;"|<small>Code</small>
 
!align ="left" style="border:1px dotted lightgray; border-bottom:1px solid lightgray;"|<small>Code</small>
!width="40" align ="center" style="border:1px dotted lightgray; border-bottom:1px solid lightgray;"| <small>Parameter<small>
+
! align ="center" style="border:1px dotted lightgray; border-bottom:1px solid lightgray;"| <small>Parameter<small>
!width="40" align ="center" style="border:1px dotted lightgray; border-bottom:1px solid lightgray;"| <small>Expected reply<small>
+
! align ="center" style="border:1px dotted lightgray; border-bottom:1px solid lightgray;"| <small>Expected reply<small>
!width="40" align ="center" style="border:1px dotted lightgray; border-bottom:1px solid lightgray;"| <small>What does it mean<small>
+
! align ="center" style="border:1px dotted lightgray; border-bottom:1px solid lightgray;"| <small>What does it mean<small>
!width="40" align ="center" style="border:1px dotted lightgray; border-bottom:1px solid lightgray;"| <small>Example<small>
+
! align ="center" style="border:1px dotted lightgray; border-bottom:1px solid lightgray;"| <small>Example<small>
 
|-
 
|-
 
|style="border:1px dotted lightgray;"| A
 
|style="border:1px dotted lightgray;"| A

Version vom 13. August 2012, 15:15 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
N NONE NONE Not authenticated (invalid Button) N
X NONE O Lazzzor shutdown button hit (eXit) X


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