1.1 Binary file battery.log has changed
2.1 Binary file daily/loradtn-2017-03-20.png has changed
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
3.2 +++ b/daily/loradtn-2017-03-21.gpl Tue Mar 21 13:29:37 2017 +0000
3.3 @@ -0,0 +1,75 @@
3.4 +# set term postscript eps color solid blacktext "Helvetica" 14
3.5 +# set output 'loradtn.eps'
3.6 +# set size 4,4
3.7 +
3.8 +set terminal png nocrop enhanced size 1024,768
3.9 +set output 'loradtn-2017-03-21.png'
3.10 +
3.11 +set datafile separator ","
3.12 +set xdata time
3.13 +set timefmt "%Y-%m-%d %H:%M:%S"
3.14 +
3.15 +os='2017-03-21 11:00:00'
3.16 +oe='2017-03-21 16:00:00'
3.17 +#os='2017-01-24 14:00:00'
3.18 +#oe='2017-01-25 13:00:00'
3.19 +
3.20 +set title "Loradtn power (Mech. Eng. roof)"
3.21 +set key below
3.22 +
3.23 +r1=1700
3.24 +r2=1800
3.25 +r3=1900
3.26 +r4=2000
3.27 +
3.28 +nospike=0
3.29 +spike=1
3.30 +newdata=2
3.31 +
3.32 +set xrange [os:oe]
3.33 +set yrange [1500:19000]
3.34 +set y2range [-6000:8000]
3.35 +
3.36 +set ylabel "mV"
3.37 +set y2label "mA"
3.38 +set ytics nomirror
3.39 +
3.40 +set ytics (\
3.41 +"OVERRIDE" 5000,\
3.42 +"UP" 4500,\
3.43 +"STBYSHORT" 4000,\
3.44 +"STBYLONG" 3500,\
3.45 +"SLEEP" 3000,\
3.46 +"OFF" 2500,\
3.47 +"14500" 14500,\
3.48 +"14000" 14000,\
3.49 +"13500" 13500,\
3.50 +"13000" 13000,\
3.51 +"12500" 12500,\
3.52 +"12000" 12000,\
3.53 +"11500" 11500,\
3.54 +"11000" 11000,\
3.55 +"spike" 10050)
3.56 +
3.57 +set y2tics ( 4000, 3500, 3000, 2500, 2000, 1500, 1000, 500, 0, -500, -1000, "spike" -2000 )
3.58 +
3.59 +
3.60 +set style arrow 1 nohead ls 1 lt 3
3.61 +set style arrow 2 nohead ls 2
3.62 +set style arrow 3 nohead lc rgb "green"
3.63 +set style arrow 4 nohead lc rgb "red"
3.64 +
3.65 +# some horizontal lines to help
3.66 +set arrow from os,12000 to oe,12000 as 1
3.67 +set arrow from os,11450 to oe,11450 as 3
3.68 +set arrow from os,11300 to oe,11300 as 4
3.69 +set arrow from os,second 1000 to oe,second 1000 as 2
3.70 +set arrow from os,second 0 to oe,second 0 as 2
3.71 +set arrow from os,second -1000 to oe,second -1000 as 2
3.72 +
3.73 +set pointsize 10
3.74 +
3.75 +plot 'sedded-battery.log' using 1: ( ($2 == r1 && $7 != newdata) ? ( ( ($7 == spike) ? 10050 : (10 * $4) ) ) : 1/0 ) axes x1y1 title "mV" with points ps 1, \
3.76 + 'sedded-battery.log' using 1: ( ($2 == r1 && $7 != newdata) ? ( ( ($7 == spike) ? -2000 : $5 ) ) : 1/0 ) axes x1y2 title "mA" with points ps 1, \
3.77 + 'sedded-battery.log' using 1: ( ($2 == r1) ? (2000 + $6) : 1/0 ) axes x1y1 title "state" with step
3.78 +
4.1 Binary file daily/loradtn-2017-03-21.png has changed
5.1 --- a/daily/loradtn-no.gpl Mon Mar 20 16:50:13 2017 +0000
5.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
5.3 @@ -1,75 +0,0 @@
5.4 -# set term postscript eps color solid blacktext "Helvetica" 14
5.5 -# set output 'loradtn.eps'
5.6 -# set size 4,4
5.7 -
5.8 -set terminal png nocrop enhanced size 1024,768
5.9 -set output 'loradtn-no.png'
5.10 -
5.11 -set datafile separator ","
5.12 -set xdata time
5.13 -set timefmt "%Y-%m-%d %H:%M:%S"
5.14 -
5.15 -os='no 11:00:00'
5.16 -oe='no 16:00:00'
5.17 -#os='2017-01-24 14:00:00'
5.18 -#oe='2017-01-25 13:00:00'
5.19 -
5.20 -set title "Loradtn power (Mech. Eng. roof)"
5.21 -set key below
5.22 -
5.23 -r1=1700
5.24 -r2=1800
5.25 -r3=1900
5.26 -r4=2000
5.27 -
5.28 -nospike=0
5.29 -spike=1
5.30 -newdata=2
5.31 -
5.32 -set xrange [os:oe]
5.33 -set yrange [1500:19000]
5.34 -set y2range [-6000:8000]
5.35 -
5.36 -set ylabel "mV"
5.37 -set y2label "mA"
5.38 -set ytics nomirror
5.39 -
5.40 -set ytics (\
5.41 -"OVERRIDE" 5000,\
5.42 -"UP" 4500,\
5.43 -"STBYSHORT" 4000,\
5.44 -"STBYLONG" 3500,\
5.45 -"SLEEP" 3000,\
5.46 -"OFF" 2500,\
5.47 -"14500" 14500,\
5.48 -"14000" 14000,\
5.49 -"13500" 13500,\
5.50 -"13000" 13000,\
5.51 -"12500" 12500,\
5.52 -"12000" 12000,\
5.53 -"11500" 11500,\
5.54 -"11000" 11000,\
5.55 -"spike" 10050)
5.56 -
5.57 -set y2tics ( 4000, 3500, 3000, 2500, 2000, 1500, 1000, 500, 0, -500, -1000, "spike" -2000 )
5.58 -
5.59 -
5.60 -set style arrow 1 nohead ls 1 lt 3
5.61 -set style arrow 2 nohead ls 2
5.62 -set style arrow 3 nohead lc rgb "green"
5.63 -set style arrow 4 nohead lc rgb "red"
5.64 -
5.65 -# some horizontal lines to help
5.66 -set arrow from os,12000 to oe,12000 as 1
5.67 -set arrow from os,11450 to oe,11450 as 3
5.68 -set arrow from os,11300 to oe,11300 as 4
5.69 -set arrow from os,second 1000 to oe,second 1000 as 2
5.70 -set arrow from os,second 0 to oe,second 0 as 2
5.71 -set arrow from os,second -1000 to oe,second -1000 as 2
5.72 -
5.73 -set pointsize 10
5.74 -
5.75 -plot 'sedded-battery.log' using 1: ( ($2 == r1 && $7 != newdata) ? ( ( ($7 == spike) ? 10050 : (10 * $4) ) ) : 1/0 ) axes x1y1 title "mV" with points ps 1, \
5.76 - 'sedded-battery.log' using 1: ( ($2 == r1 && $7 != newdata) ? ( ( ($7 == spike) ? -2000 : $5 ) ) : 1/0 ) axes x1y2 title "mA" with points ps 1, \
5.77 - 'sedded-battery.log' using 1: ( ($2 == r1) ? (2000 + $6) : 1/0 ) axes x1y1 title "state" with step
5.78 -
6.1 --- a/doit.sh Mon Mar 20 16:50:13 2017 +0000
6.2 +++ b/doit.sh Tue Mar 21 13:29:37 2017 +0000
6.3 @@ -27,7 +27,7 @@
6.4 today=`date --rfc-3339=date`
6.5 cat loradtn.gpl \
6.6 | sed -e 's/2017-01-01/'$today'/' \
6.7 - | sed -e 's/2017-03-31/'$today'/' \
6.8 + | sed -e 's/2017-04-30/'$today'/' \
6.9 | sed -e 's/loradtn.png/loradtn-'$today'.png/' \
6.10 >daily/loradtn-$today.gpl
6.11 gnuplot daily/loradtn-$today.gpl
6.12 @@ -44,7 +44,7 @@
6.13 theday=`echo $others | sed -e 's/ //g'`
6.14 cat loradtn.gpl \
6.15 | sed -e 's/2017-01-01/'$theday'/' \
6.16 - | sed -e 's/2017-03-31/'$theday'/' \
6.17 + | sed -e 's/2017-04-30/'$theday'/' \
6.18 | sed -e 's/loradtn.png/loradtn-'$theday'.png/' \
6.19 >daily/loradtn-$theday.gpl
6.20 gnuplot daily/loradtn-$theday.gpl
7.1 --- a/loradtn.gpl Mon Mar 20 16:50:13 2017 +0000
7.2 +++ b/loradtn.gpl Tue Mar 21 13:29:37 2017 +0000
7.3 @@ -10,7 +10,7 @@
7.4 set timefmt "%Y-%m-%d %H:%M:%S"
7.5
7.6 os='2017-01-01 11:00:00'
7.7 -oe='2017-03-31 16:00:00'
7.8 +oe='2017-04-30 16:00:00'
7.9 #os='2017-01-24 14:00:00'
7.10 #oe='2017-01-25 13:00:00'
7.11
8.1 Binary file loradtn.png has changed
9.1 --- a/notes.txt Mon Mar 20 16:50:13 2017 +0000
9.2 +++ b/notes.txt Tue Mar 21 13:29:37 2017 +0000
9.3 @@ -114,5 +114,9 @@
9.4 about 300+/-40mA
9.5 20170317 - added a graphic showing the DUT power consumption
9.6 vs. the overall power log
9.7 +20170321 - extended sripts to cover to end-April
9.8 + also noticed that SPIKE readings are being generated
9.9 + when voltage is identical in two successive readings
9.10 + probably a pbm bug, but not a biggie
9.11
9.12
10.1 --- a/sedded-battery.log Mon Mar 20 16:50:13 2017 +0000
10.2 +++ b/sedded-battery.log Tue Mar 21 13:29:37 2017 +0000
10.3 @@ -10506,3 +10506,142 @@
10.4 2017-03-20 15:24:24,1700,pbmd,1361,545,2500,0,-286
10.5 2017-03-20 15:25:35,1700,pbmd,1363,545,2500,0,-286
10.6 2017-03-20 15:26:46,1700,pbmd,1361,-46,2500,0,-286
10.7 +2017-03-20 15:27:57,1700,pbmd,1358,527,2500,0,-286
10.8 +2017-03-20 15:29:08,1700,pbmd,1353,601,2500,0,-305
10.9 +2017-03-20 15:30:19,1700,pbmd,1347,-83,2500,0,-342
10.10 +2017-03-20 15:31:30,1700,pbmd,1351,527,2500,0,-305
10.11 +2017-03-20 15:32:41,1700,pbmd,1332,-379,2500,0,-305
10.12 +2017-03-20 15:33:52,1700,pbmd,1342,360,2500,0,-286
10.13 +2017-03-20 15:35:03,1700,pbmd,1347,323,2500,0,-342
10.14 +2017-03-20 15:36:14,1700,pbmd,1341,286,2500,0,-323
10.15 +2017-03-20 15:37:25,1700,pbmd,1344,268,2500,0,-305
10.16 +2017-03-20 15:38:36,1700,pbmd,1339,212,2500,0,-286
10.17 +2017-03-20 15:39:47,1700,pbmd,1339,231,2500,0,-286
10.18 +2017-03-20 15:40:58,1700,pbmd,1341,231,2500,0,-286
10.19 +2017-03-20 15:42:09,1700,pbmd,1339,231,2500,0,-286
10.20 +2017-03-20 15:43:20,1700,pbmd,1345,212,2500,0,-286
10.21 +2017-03-20 15:44:31,1700,pbmd,1347,194,2500,0,-286
10.22 +2017-03-20 15:45:42,1700,pbmd,1332,120,2500,0,-286
10.23 +2017-03-20 15:46:53,1700,pbmd,1328,175,2500,0,-286
10.24 +2017-03-20 15:48:04,1700,pbmd,1316,-656,2500,0,-305
10.25 +2017-03-20 15:49:15,1700,pbmd,1316,64,2500,0,-286
10.26 +2017-03-20 15:50:26,1700,pbmd,1319,138,2500,0,-286
10.27 +2017-03-20 15:51:37,1700,pbmd,1320,120,2500,0,-286
10.28 +2017-03-20 15:52:49,1700,pbmd,1320,101,2500,0,-286
10.29 +2017-03-20 15:54:00,1700,pbmd,1323,138,2500,0,-305
10.30 +2017-03-20 15:55:11,1700,pbmd,1329,27,2500,0,-286
10.31 +2017-03-20 15:56:22,1700,pbmd,1306,-693,2500,0,-305
10.32 +2017-03-20 15:57:33,1700,pbmd,1317,157,2500,0,-286
10.33 +2017-03-20 15:58:44,1700,pbmd,1306,-638,2500,0,-286
10.34 +2017-03-20 15:59:55,1700,pbmd,1309,-27,2500,0,-286
10.35 +2017-03-20 16:01:06,1700,pbmd,1303,-601,1000,0,-286
10.36 +2017-03-21 11:02:43,1700,pbmd,1468,-767,2500,1,-175
10.37 +2017-03-21 11:03:54,1700,pbmd,1486,-915,2500,0,-305
10.38 +2017-03-21 11:05:05,1700,pbmd,1486,-952,2500,1,-286
10.39 +2017-03-21 11:06:16,1700,pbmd,1449,1100,2500,0,-305
10.40 +2017-03-21 11:07:27,1700,pbmd,1454,-804,2500,0,-286
10.41 +2017-03-21 11:08:38,1700,pbmd,1505,1267,2500,0,-286
10.42 +2017-03-21 11:09:49,1700,pbmd,1465,1359,2500,0,-286
10.43 +2017-03-21 11:11:00,1700,pbmd,1458,1637,2500,0,-286
10.44 +2017-03-21 11:12:11,1700,pbmd,1457,1415,2500,0,-268
10.45 +2017-03-21 11:13:22,1700,pbmd,1482,1230,2500,0,-231
10.46 +2017-03-21 11:14:33,1700,pbmd,1482,323,2500,1,-286
10.47 +2017-03-21 11:15:44,1700,pbmd,1518,897,2500,0,-286
10.48 +2017-03-21 11:16:55,1700,pbmd,1480,-860,2500,0,-249
10.49 +2017-03-21 11:18:06,1700,pbmd,1480,490,2500,1,-268
10.50 +2017-03-21 11:19:17,1700,pbmd,1419,1544,2500,0,-286
10.51 +2017-03-21 11:20:28,1700,pbmd,1464,-860,2500,0,-249
10.52 +2017-03-21 11:21:39,1700,pbmd,1464,-897,2500,1,-249
10.53 +2017-03-21 11:22:50,1700,pbmd,1490,2543,2500,0,-268
10.54 +2017-03-21 11:24:01,1700,pbmd,1496,-915,2500,0,-286
10.55 +2017-03-21 11:25:12,1700,pbmd,1480,2580,2500,0,-231
10.56 +2017-03-21 11:26:23,1700,pbmd,1495,2284,2500,0,-268
10.57 +2017-03-21 11:27:34,1700,pbmd,1477,-897,2500,0,-268
10.58 +2017-03-21 11:28:45,1700,pbmd,1474,-897,2500,0,-286
10.59 +2017-03-21 11:29:57,1700,pbmd,1474,-841,2500,1,-286
10.60 +2017-03-21 11:31:08,1700,pbmd,1433,675,2500,0,-286
10.61 +2017-03-21 11:32:19,1700,pbmd,1476,656,2500,0,-286
10.62 +2017-03-21 11:33:30,1700,pbmd,1476,878,2500,1,-286
10.63 +2017-03-21 11:34:41,1700,pbmd,1504,-952,2500,0,-286
10.64 +2017-03-21 11:35:52,1700,pbmd,1492,2562,2500,0,-286
10.65 +2017-03-21 11:37:03,1700,pbmd,1458,-638,2500,0,-268
10.66 +2017-03-21 11:38:14,1700,pbmd,1411,527,2500,0,-286
10.67 +2017-03-21 11:39:25,1700,pbmd,1370,1433,2500,0,-286
10.68 +2017-03-21 11:40:36,1700,pbmd,1370,-860,2500,1,-286
10.69 +2017-03-21 11:41:47,1700,pbmd,1397,1526,2500,0,-268
10.70 +2017-03-21 11:42:58,1700,pbmd,1455,1156,2500,0,-268
10.71 +2017-03-21 11:44:09,1700,pbmd,1452,1674,2500,0,-268
10.72 +2017-03-21 11:45:20,1700,pbmd,1397,-897,2500,0,-286
10.73 +2017-03-21 11:46:31,1700,pbmd,1397,-860,2500,1,-249
10.74 +2017-03-21 11:47:42,1700,pbmd,1480,-804,2500,0,-286
10.75 +2017-03-21 11:48:53,1700,pbmd,1446,508,2500,0,-286
10.76 +2017-03-21 11:50:04,1700,pbmd,1410,-508,2500,0,-268
10.77 +2017-03-21 11:51:15,1700,pbmd,1410,-823,2500,1,-286
10.78 +2017-03-21 11:52:26,1700,pbmd,1473,-934,2500,0,-268
10.79 +2017-03-21 11:53:37,1700,pbmd,1482,-693,2500,0,-268
10.80 +2017-03-21 11:54:48,1700,pbmd,1479,-860,2500,0,-249
10.81 +2017-03-21 11:55:59,1700,pbmd,1448,2303,2500,0,-286
10.82 +2017-03-21 11:57:10,1700,pbmd,1477,2321,2500,0,-305
10.83 +2017-03-21 11:58:21,1700,pbmd,1468,-897,2500,0,-249
10.84 +2017-03-21 11:59:32,1700,pbmd,1480,2303,2500,0,-286
10.85 +2017-03-21 12:00:43,1700,pbmd,1460,-897,2500,0,-286
10.86 +2017-03-21 12:01:55,1700,pbmd,1483,-860,2500,0,-286
10.87 +2017-03-21 12:03:06,1700,pbmd,1480,2210,2500,0,-268
10.88 +2017-03-21 12:04:17,1700,pbmd,1465,2192,2500,0,-286
10.89 +2017-03-21 12:05:28,1700,pbmd,1474,2081,2500,0,-286
10.90 +2017-03-21 12:06:39,1700,pbmd,1490,1544,2500,0,-268
10.91 +2017-03-21 12:07:50,1700,pbmd,1474,1766,2500,0,-286
10.92 +2017-03-21 12:09:01,1700,pbmd,1474,1988,2500,1,-286
10.93 +2017-03-21 12:10:12,1700,pbmd,1484,-878,2500,0,-268
10.94 +2017-03-21 12:11:23,1700,pbmd,1417,1840,2500,0,-268
10.95 +2017-03-21 12:12:34,1700,pbmd,1448,-841,2500,0,-286
10.96 +2017-03-21 12:13:45,1700,pbmd,1482,1692,2500,0,-286
10.97 +2017-03-21 12:14:56,1700,pbmd,1479,1748,2500,0,-286
10.98 +2017-03-21 12:16:07,1700,pbmd,1473,1267,2500,0,-305
10.99 +2017-03-21 12:17:18,1700,pbmd,1480,-804,2500,0,-286
10.100 +2017-03-21 12:18:29,1700,pbmd,1423,1100,2500,0,-286
10.101 +2017-03-21 12:19:40,1700,pbmd,1410,1119,2500,0,-286
10.102 +2017-03-21 12:20:51,1700,pbmd,1419,-878,2500,0,-286
10.103 +2017-03-21 12:22:02,1700,pbmd,1419,-46,2500,1,-286
10.104 +2017-03-21 12:23:13,1700,pbmd,1468,-897,2500,0,-286
10.105 +2017-03-21 12:24:24,1700,pbmd,1414,453,2500,0,-286
10.106 +2017-03-21 12:25:35,1700,pbmd,1357,101,2500,0,-305
10.107 +2017-03-21 12:26:46,1700,pbmd,1358,27,2500,0,-305
10.108 +2017-03-21 12:27:57,1700,pbmd,1351,101,2500,0,-286
10.109 +2017-03-21 12:29:08,1700,pbmd,1367,434,2500,0,-286
10.110 +2017-03-21 12:30:19,1700,pbmd,1367,601,2500,1,-286
10.111 +2017-03-21 12:31:30,1700,pbmd,1484,582,2500,0,-268
10.112 +2017-03-21 12:32:41,1700,pbmd,1476,434,2500,0,-286
10.113 +2017-03-21 12:33:52,1700,pbmd,1479,490,2500,0,-249
10.114 +2017-03-21 12:35:04,1700,pbmd,1483,-823,2500,0,-249
10.115 +2017-03-21 12:36:15,1700,pbmd,1441,397,2500,0,-268
10.116 +2017-03-21 12:37:26,1700,pbmd,1493,1026,2500,0,-249
10.117 +2017-03-21 12:38:37,1700,pbmd,1492,860,2500,0,-268
10.118 +2017-03-21 12:39:48,1700,pbmd,1484,638,2500,0,-268
10.119 +2017-03-21 12:40:59,1700,pbmd,1482,619,2500,0,-268
10.120 +2017-03-21 12:42:10,1700,pbmd,1492,712,2500,0,-286
10.121 +2017-03-21 12:43:21,1700,pbmd,1477,-897,2500,0,-268
10.122 +2017-03-21 12:44:32,1700,pbmd,1460,582,2500,0,-286
10.123 +2017-03-21 12:45:43,1700,pbmd,1483,471,2500,0,-268
10.124 +2017-03-21 12:46:54,1700,pbmd,1480,471,2500,0,-268
10.125 +2017-03-21 12:48:05,1700,pbmd,1483,-860,2500,0,-268
10.126 +2017-03-21 12:49:16,1700,pbmd,1484,638,2500,0,-268
10.127 +2017-03-21 12:50:27,1700,pbmd,1484,897,2500,1,-268
10.128 +2017-03-21 12:51:38,1700,pbmd,1505,638,2500,0,-268
10.129 +2017-03-21 12:52:49,1700,pbmd,1502,638,2500,0,-249
10.130 +2017-03-21 12:54:00,1700,pbmd,1501,1304,2500,0,-286
10.131 +2017-03-21 12:55:11,1700,pbmd,1490,1988,2500,0,-286
10.132 +2017-03-21 12:56:22,1700,pbmd,1484,2266,2500,0,-305
10.133 +2017-03-21 12:57:33,1700,pbmd,1490,-841,2500,0,-268
10.134 +2017-03-21 12:58:44,1700,pbmd,1484,-878,2500,0,-194
10.135 +2017-03-21 12:59:55,1700,pbmd,1489,1988,2500,0,-268
10.136 +2017-03-21 13:01:06,1700,pbmd,1479,2099,2500,0,-268
10.137 +2017-03-21 13:02:17,1700,pbmd,1490,-897,2500,0,-249
10.138 +2017-03-21 13:03:28,1700,pbmd,1482,2081,2500,0,-397
10.139 +2017-03-21 13:04:39,1700,pbmd,1486,-841,2500,0,-268
10.140 +2017-03-21 13:05:50,1700,pbmd,1490,-860,2500,0,-268
10.141 +2017-03-21 13:07:01,1700,pbmd,1492,-860,2500,0,-286
10.142 +2017-03-21 13:08:13,1700,pbmd,1479,-860,2500,0,-286
10.143 +2017-03-21 13:09:24,1700,pbmd,1474,1933,2500,0,-286
10.144 +2017-03-21 13:10:35,1700,pbmd,1473,-841,2500,0,-249
10.145 +2017-03-21 13:11:46,1700,pbmd,1470,1970,2500,0,-286