Project

General

Profile

Raspberry Pi IoT Status » History » Version 6

Spencer Sutterlin, 06/10/2014 02:31 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 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
## Full example:
18
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
    python app/consumer.py