author | viric <viriketo@gmail.com> |
Wed, 21 Dec 2011 22:26:20 +0100 | |
changeset 18 | f85465640dd4 |
parent 16 | 62f8cead15df |
permissions | -rw-r--r-- |
7
daa76fbc50aa
Adding about the license and the version in the program.
viric <viriketo@gmail.com>
parents:
6
diff
changeset
|
1 |
* BUILD |
daa76fbc50aa
Adding about the license and the version in the program.
viric <viriketo@gmail.com>
parents:
6
diff
changeset
|
2 |
|
6 | 3 |
- Have the libusb development package and libraries installed |
4 |
- Run "make" |
|
5 |
||
6 |
Then you have the program 'pce' which you can run for programming (-s) or |
|
7 |
downloading from the device (-d). |
|
8 |
||
7
daa76fbc50aa
Adding about the license and the version in the program.
viric <viriketo@gmail.com>
parents:
6
diff
changeset
|
9 |
|
daa76fbc50aa
Adding about the license and the version in the program.
viric <viriketo@gmail.com>
parents:
6
diff
changeset
|
10 |
* INSTALLATION |
daa76fbc50aa
Adding about the license and the version in the program.
viric <viriketo@gmail.com>
parents:
6
diff
changeset
|
11 |
|
daa76fbc50aa
Adding about the license and the version in the program.
viric <viriketo@gmail.com>
parents:
6
diff
changeset
|
12 |
Copy the 'pce' program wherever you want. |
daa76fbc50aa
Adding about the license and the version in the program.
viric <viriketo@gmail.com>
parents:
6
diff
changeset
|
13 |
|
6 | 14 |
You will need read-write access to /dev/bus/usb/*/your_device. If you want a bit unsecure but |
15 |
easy access to it, you may want to set up an udev rule in your system like this: |
|
16 |
||
17 |
SUBSYSTEM=="usb", ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="0003", MODE:="0666" |
|
7
daa76fbc50aa
Adding about the license and the version in the program.
viric <viriketo@gmail.com>
parents:
6
diff
changeset
|
18 |
|
daa76fbc50aa
Adding about the license and the version in the program.
viric <viriketo@gmail.com>
parents:
6
diff
changeset
|
19 |
|
16
62f8cead15df
Adding information on how to use gnuplot to plot the results downloaded from the
viric <viriketo@gmail.com>
parents:
7
diff
changeset
|
20 |
* GNUPLOT |
62f8cead15df
Adding information on how to use gnuplot to plot the results downloaded from the
viric <viriketo@gmail.com>
parents:
7
diff
changeset
|
21 |
|
62f8cead15df
Adding information on how to use gnuplot to plot the results downloaded from the
viric <viriketo@gmail.com>
parents:
7
diff
changeset
|
22 |
In order to show graphs, you can setup gnuplot this way to say for example the downloaded |
62f8cead15df
Adding information on how to use gnuplot to plot the results downloaded from the
viric <viriketo@gmail.com>
parents:
7
diff
changeset
|
23 |
data in a.txt. If the header reads: |
62f8cead15df
Adding information on how to use gnuplot to plot the results downloaded from the
viric <viriketo@gmail.com>
parents:
7
diff
changeset
|
24 |
# Start: 2010-11-27 23:4:28 |
62f8cead15df
Adding information on how to use gnuplot to plot the results downloaded from the
viric <viriketo@gmail.com>
parents:
7
diff
changeset
|
25 |
# Num Samples: 1118 |
62f8cead15df
Adding information on how to use gnuplot to plot the results downloaded from the
viric <viriketo@gmail.com>
parents:
7
diff
changeset
|
26 |
# Time between samples: 30 s |
62f8cead15df
Adding information on how to use gnuplot to plot the results downloaded from the
viric <viriketo@gmail.com>
parents:
7
diff
changeset
|
27 |
|
62f8cead15df
Adding information on how to use gnuplot to plot the results downloaded from the
viric <viriketo@gmail.com>
parents:
7
diff
changeset
|
28 |
|
62f8cead15df
Adding information on how to use gnuplot to plot the results downloaded from the
viric <viriketo@gmail.com>
parents:
7
diff
changeset
|
29 |
You can use the unix command date to transform that into a timestamp: |
62f8cead15df
Adding information on how to use gnuplot to plot the results downloaded from the
viric <viriketo@gmail.com>
parents:
7
diff
changeset
|
30 |
$ date '+%s' -d '2010-11-27 23:4:28' |
62f8cead15df
Adding information on how to use gnuplot to plot the results downloaded from the
viric <viriketo@gmail.com>
parents:
7
diff
changeset
|
31 |
1290895468 |
62f8cead15df
Adding information on how to use gnuplot to plot the results downloaded from the
viric <viriketo@gmail.com>
parents:
7
diff
changeset
|
32 |
|
62f8cead15df
Adding information on how to use gnuplot to plot the results downloaded from the
viric <viriketo@gmail.com>
parents:
7
diff
changeset
|
33 |
Then in gnuplot you can run, considering the values of 1290895468s since the epoch and |
62f8cead15df
Adding information on how to use gnuplot to plot the results downloaded from the
viric <viriketo@gmail.com>
parents:
7
diff
changeset
|
34 |
samples every 30 seconds: |
62f8cead15df
Adding information on how to use gnuplot to plot the results downloaded from the
viric <viriketo@gmail.com>
parents:
7
diff
changeset
|
35 |
> set xdata time |
62f8cead15df
Adding information on how to use gnuplot to plot the results downloaded from the
viric <viriketo@gmail.com>
parents:
7
diff
changeset
|
36 |
> plot "dutxa.txt" using ($1*30 + 1290895468):2, "dutxa.txt" using ($1*30 + 1290895468):3 |
62f8cead15df
Adding information on how to use gnuplot to plot the results downloaded from the
viric <viriketo@gmail.com>
parents:
7
diff
changeset
|
37 |
|
62f8cead15df
Adding information on how to use gnuplot to plot the results downloaded from the
viric <viriketo@gmail.com>
parents:
7
diff
changeset
|
38 |
|
7
daa76fbc50aa
Adding about the license and the version in the program.
viric <viriketo@gmail.com>
parents:
6
diff
changeset
|
39 |
* LICENSE |
daa76fbc50aa
Adding about the license and the version in the program.
viric <viriketo@gmail.com>
parents:
6
diff
changeset
|
40 |
|
daa76fbc50aa
Adding about the license and the version in the program.
viric <viriketo@gmail.com>
parents:
6
diff
changeset
|
41 |
The code is licensed on terms of the GPLv3 license or later. Please find the license in the file |
daa76fbc50aa
Adding about the license and the version in the program.
viric <viriketo@gmail.com>
parents:
6
diff
changeset
|
42 |
LICENSE distributed with the program. |