Raspberry Pi IoT Status » History » Version 5
Spencer Sutterlin, 06/10/2014 02:29 AM
| 1 | 1 | Spencer Sutterlin | Raspberry Pi IoT Status |
|---|---|---|---|
| 2 | ======================= |
||
| 3 | 3 | Spencer Sutterlin | |
| 4 | 1 | Spencer Sutterlin | On each Pi, get: |
| 5 | 3 | Spencer Sutterlin | |
| 6 | 2 | Spencer Sutterlin | * ndnx (just compile locally, doesn't take long) |
| 7 | * PyNDN2 |
||
| 8 | * ndn-pi |
||
| 9 | 1 | Spencer Sutterlin | * libcec (only needed on HDMI-CEC node) |
| 10 | |||
| 11 | 3 | Spencer Sutterlin | Devices: |
| 12 | |||
| 13 | 1 | Spencer Sutterlin | * NDN-PI-HDMI-CEC-1 |
| 14 | 2 | Spencer Sutterlin | ** 131.179.196.225 (WAN) |
| 15 | 1 | Spencer Sutterlin | ** 192.168.1.1 (LAN) |
| 16 | * NDN-PI-OCCUPANCY-1 |
||
| 17 | 5 | Spencer Sutterlin | ** 192.168.1.2 (LAN) |
| 18 | 1 | Spencer Sutterlin | * NDN-PI-OCCUPANCY-2 |
| 19 | 5 | Spencer Sutterlin | ** 192.168.1.3 (LAN) |
| 20 | |||
| 21 | ## Full example: |
||
| 22 | In order to ssh into gateway pi (HDMI-CEC), must be on CS dept network. ssh into CS dept server first or be physically there. |
||
| 23 | |||
| 24 | Run the following in order. |
||
| 25 | |||
| 26 | Window 1 (Occupancy Node 1) |
||
| 27 | |||
| 28 | ssh [email protected] |
||
| 29 | ssh 192.168.1.2 |
||
| 30 | nfd-start |
||
| 31 | nfdc register /home 2 |
||
| 32 | sudo python app/occupancy_node_1.py |
||
| 33 | |||
| 34 | Window 2 (Occupancy Node 2) |
||
| 35 | |||
| 36 | ssh [email protected] |
||
| 37 | ssh 192.168.1.3 |
||
| 38 | nfd-start |
||
| 39 | nfdc register /home 2 |
||
| 40 | sudo python app/occupancy_node_1.py |
||
| 41 | |||
| 42 | Window 3 (HDMI-CEC Node) |
||
| 43 | |||
| 44 | ssh [email protected] |
||
| 45 | nfd-start |
||
| 46 | nfdc register /home 3 |
||
| 47 | python app/hdmi_cec_node.py |
||
| 48 | |||
| 49 | Window 4 (Consumer Node, physically, same node as HDMI-CEC Node) |
||
| 50 | |||
| 51 | ssh [email protected] |
||
| 52 | # don't start nfd here since already started |
||
| 53 | python app/consumer.py |