source: tools/ListenToArduino/readme@ 4380

Last change on this file since 4380 was 103, checked in by dneise, 15 years ago
initial commit: tools/ListenToArduino & tools/PlotTempsViaGnuplot
File size: 2.1 KB
Line 
1 ## little programm that listens of /dev/myAruino and prints (nearly) everything
2to /ct3data/Slowdata/TEMP_YYYYMMDD.slow
3
4the FACT slow data format is used.
5
6the Filenames follow the agreed naming scheme.
7
8usage: ./listen_to_arduino
9
10end with: 'q'+'Enter'
11(sorry i did not manage to read single keystrokes)
12
13missing features:
14no one knows where each of the DALLAS Sensors sits.
15
16Neighther the order of the sent Temperature Data tells anything about the position of the
17Sensor or whether this is a temperature or a humidity.
18
19I plan to use a kind of config file, where the Sensor Positions and Sensor IDs are stored.
20This file is read, once ./listen is started. The user has to
21confirm, that nothing has changed.
22If a Sensor postion is changed, the user may change the data in this config file as well.
23This results in some new lines in a Slow Data File.
24
25Like this:
26DALLAS Sensorpositions 2009 08 22 10 47 43 957 1253609263 SensorID: 0x12 34 45 56 a3 moved from: Copperplate upper left corner to: backside of the camera Box
27
28So the movement of every Sensor can be tracked.
29
30Since the DALLAS Sensors can be orderes by their IDs, the Arduino does so, and prints first all
31Temperature Sensor values (DS18S20) and then all humidity Sensors (DS2438) (first TEMP then HUM)
32
33So one has to look into the Sensorpositions File to find out which Sensor sits in which postion right now,
34as well as to find out, which value in the String sent by the arduino belongs to which Sensor.
35This is quite supid work.
36
37So there are/will be some nice GUIs.
38
39The T72 Window, where the user can see the current sensor Data (including 6 Tempsensors an one Humidity Sensor)
40The 2nd humidity sensor is not included yet.
41
42The plot_temps_via_gnuplot command.
43Once it is ready the command:
44plot_temps_via_gnuplot -d 20090812 -s 1234 -e 1345
45will open a gnuplot window which shows a temp vs. time plot.
46
47'-d' date in YYYYMMDD
48'-s' starttime in HHMM
49'-e' endtime in HHMM
50
51usually one will wish to print the last 20min e.g.
52this will be possible just by typing:
53plot_temps_via_gnuplot -s 1234 or //giving the startime
54plot_temps_via_gnuplot -l 20 // inorder to plot the last 20 min.
55
56
Note: See TracBrowser for help on using the repository browser.