forked from ffcrg/ecpi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.txt
More file actions
95 lines (60 loc) · 2.37 KB
/
install.txt
File metadata and controls
95 lines (60 loc) · 2.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
/////////////////////////
// Config raspberry pi //
/////////////////////////
//download Raspbian “wheezy” from http://www.raspberrypi.org/downloads
use Raspi-Config to
- expand_rootfs -> expand root partition
- change_pass -> change password for "pi" user
- change_timezone
- configure_keyboards
- boot-behavior -> don't start desktop on boot
//use a keyboard and monitor on your raspberry or connect from your PC with a SSH Client (http://www.putty.org/)
//add a new user and config the usage
$sudo adduser XXX
$sudo nano /etc/group
//Install apache,git and screen (http://raspi.tv/2012/using-screen-with-raspberry-pi-to-avoid-leaving-ssh-sessions-open)
$sudo apt-get update
$sudo apt-get install apache2
$sudo apt-get install git
$sudo apt-get install screen (screen bash ; ctrl a,d - run app in additional terminal)
//Configure serial Interface ; disable console
$sudo nano /boot/cmdline.txt
// change : dwc_otg.lpm_enable=0 rpitestmode=1 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait
// to dwc_otg.lpm_enable=0 rpitestmode=1 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait
$sudo nano /etc/inittab
// comment out the following line: 2:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100
//////////////////////////////////////////
// connect EnergyCam to the Raspberry Pi//
/////////////////////////////////////////
//the 4 wire cable of the EnergyCam can be connected to the Raspberry Pi expansion port
// EnergyCam - Raspberry Pi
// 3V3 (red) - 3V3 (Pin 1)
// GND (black) - GND (Pin 6)
// RxD (green) - TxD (Pin 8)
// TxD (yellow) - RxD (Pin 10)
///////////////////////////
// compile and run ecpi //
///////////////////////////
//get ecpi source
$mkdir projects
$cd projects
$git clone https://github.com/ffcrg/ecpi.git
$cd ecpi
//copy websource to var/www
$chmod 777 cpwww.sh
$./cpwww.sh
//run make file
$cd linux/bin
$make -f mkfile
//run App as root ; App writes to /var/www
$screen bash
$sudo ./ecpi
<Ctrl a> d
//edit the csv File
sudo nano /var/www/ecpi/data/ecpi.csv
//reconnect to ecpi
$screen -r
//close ssh session ; ecpi continues to run
$exit
//open website from your PC
//type the IP Adress of your raspberry into the adress bar of the browser