|
|
Zeile 1: |
Zeile 1: |
| | |
| | |
| | [[Datei:lazzzorauth.jpg|300px|thumb|left|done.]] |
| | |
| | <p style="clear:both"> |
| | |
| | |
| == Hardware == | | == Hardware == |
|
| |
|
| [[Datei:lazzzorauth.jpg|200px|thumb|left|done.]]
| |
|
| |
|
|
| |
|
| Consists of: | | Consists of: |
| - Raspberry Pi | | - Seagate Dockstar (because the raspberry pi SD-cards died several times) |
| - Arduino | | - Arduino |
| - 16x2 LCD | | - RGB 16x2 LCD |
| - OneWire (iButton suport) | | - OneWire (iButton suport) |
| - 3 Leds for status indication
| |
| - 1 Button | | - 1 Button |
| - a 6-Port Network Switch | | - a 6-Port Network Switch |
| | | |
| | |
|
| |
|
| == Software == | | == Software == |
|
| |
|
| 2012-07-15-wheezy
| | dockstar linux distro from usb stick |
|
| |
|
| Node.js | | Node.js Server / Database |
|
| |
|
| Arduino code | | Arduino code (because there was a spare arduino laying around..) |
|
| |
|
| == How == | | == How == |
Zeile 36: |
Zeile 42: |
| <p style="clear:both"> | | <p style="clear:both"> |
|
| |
|
| Software documentation
| |
| * tbd (pitfalls, config, buildprocess)
| |
|
| |
|
| == Protocols == | | == Protocols == |
|
| |
|
|
| |
|
| ''' this is partially wrong and needs correction'''
| | All states are now handled by the embedded system. |
| | |
| Arduino SENDS:
| |
| | |
| | |
| {|
| |
| !align ="left" style="border:1px dotted lightgray; border-bottom:1px solid lightgray;"|<small>Code</small>
| |
| ! 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>Expected reply<small>
| |
| ! 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>Example<small>
| |
| |-
| |
| |style="border:1px dotted lightgray;"| I
| |
| |style="border:1px dotted lightgray; text-align:center;"|<iButton ID>
| |
| |style="border:1px dotted lightgray; text-align:center;"| A, N
| |
| |style="border:1px dotted lightgray; text-align:center;"| IButton scanned
| |
| |style="border:1px dotted lightgray; text-align:center;"| I:33-000000000000
| |
| |-
| |
| |style="border:1px dotted lightgray;"| X
| |
| |style="border:1px dotted lightgray; text-align:center;"| NONE
| |
| |style="border:1px dotted lightgray; text-align:center;"| O
| |
| |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;"| 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
| |
| |}
| |
| | |
| | |
| | |
| Raspberry sends:
| |
| | |
| | |
| {|
| |
| !align ="left" style="border:1px dotted lightgray; border-bottom:1px solid lightgray;"|<small>Code</small>
| |
| ! 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>Expected reply<small>
| |
| ! 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>Example<small>
| |
| |-
| |
| |style="border:1px dotted lightgray;"| A
| |
| |style="border:1px dotted lightgray; text-align:center;"|<username>
| |
| |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;"| A:OVERFLO
| |
| |-
| |
| |style="border:1px dotted lightgray;"| N
| |
| |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;"| Not authenticated (invalid Button)
| |
| |style="border:1px dotted lightgray; text-align:center;"| N
| |
| |-
| |
| |style="border:1px dotted lightgray;"| O
| |
| |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;"| Off (in response to X)
| |
| |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
| |
|
| |
|
| |-
| | The Arduino only displays what the ELS sends it. |
| |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!
| |
|
| |
|
| | The arduino sends ibutton scans and pushbutton events. |
|
| |
|
| |}
| | == Links == |
| | # GIT - Arduino source |
| | # GIT - Dockstar linux mods +scripts |
| | # GIT - Node.js application |