Project

General

Profile

Raspberry Pi IoT Status » History » Version 7

Spencer Sutterlin, 06/10/2014 02:08 PM

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 6 Spencer Sutterlin
* NDN-PI-HDMI-CEC-1: 131.179.196.225 (WAN), 192.168.1.1 (LAN)
14
* NDN-PI-OCCUPANCY-1: 192.168.1.2 (LAN)
15
* NDN-PI-OCCUPANCY-2: 192.168.1.3 (LAN)
16 5 Spencer Sutterlin
17 7 Spencer Sutterlin
## Full Example
18 5 Spencer Sutterlin
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.
19
20
Run the following in order.
21
22
Window 1 (Occupancy Node 1)
23
24
    ssh pi@131.179.196.225
25
    ssh 192.168.1.2
26
    nfd-start
27
    nfdc register /home 2
28
    sudo python app/occupancy_node_1.py
29
30
Window 2 (Occupancy Node 2)
31
32
    ssh pi@131.179.196.225
33
    ssh 192.168.1.3
34
    nfd-start
35
    nfdc register /home 2
36
    sudo python app/occupancy_node_1.py
37
38
Window 3 (HDMI-CEC Node)
39
40
    ssh pi@131.179.196.225
41
    nfd-start
42
    nfdc register /home 3
43
    python app/hdmi_cec_node.py
44
45
Window 4 (Consumer Node, physically, same node as HDMI-CEC Node)
46
47
    ssh pi@131.179.196.225
48
    # don't start nfd here since already started
49 1 Spencer Sutterlin
    python app/consumer.py
50 7 Spencer Sutterlin
51
## Future Work
52
Ask Jeff for prioritization
53
54
### Enable ethernet faces in NFD
55
NFD supports ethernet faces and we want to move away from IP dependency. Enable etnernet faces in NFD, cross-compile, and install on pi. Change nfdc register /home 2|3 command to use ethernet face. You might want to back up the current working NFD on the pi (in /usr/local) in case anything goes wrong in the cross-compile/install.
56
57
### Web interface gateway
58
Use ndn-js and Node-JS. Display sensor data in an organized fashion and expose control of networked devices remotely. Connect gateway to ndn testbed listen for names /ndn/<home-address>/home/... and translate /home/...
59
60
### Webcam Node
61
Leverage NDN-RTC code to capture and publish video as data. Consume this with the HDMI-CEC node and display on the TV.