Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
projects:carmon [2016/12/11 12:31] admin [Data processor] |
projects:carmon [2019/09/06 07:58] (current) admin [Data processor] |
||
|---|---|---|---|
| Line 16: | Line 16: | ||
| <code> | <code> | ||
| $ grep DPFDIST * | cut -d ',' -f 4 | | $ grep DPFDIST * | cut -d ',' -f 4 | | ||
| - | gawk '{aa = strtonum("0x" $0); if (aa < 200) print aa}' > /tmp/dpfdist | + | gawk '{aa = strtonum("0x" $0); if ((aa < 180) && (aa > 5)) print aa; if ((aa >= 180) && (aa < 300)) {print aa / 2; print aa / 2}}' > /tmp/dpfdist |
| $ echo "set terminal x11; set grid; plot '/tmp/dpfdist' with lines" | gnuplot -p | $ echo "set terminal x11; set grid; plot '/tmp/dpfdist' with lines" | gnuplot -p | ||
| </code> | </code> | ||
| Line 37: | Line 37: | ||
| $ echo "set terminal x11; set grid; plot '/tmp/injsumraw' with lines" | gnuplot -p | $ echo "set terminal x11; set grid; plot '/tmp/injsumraw' with lines" | gnuplot -p | ||
| </code> | </code> | ||
| + | == Display DPF differential pressure == | ||
| + | <code> | ||
| + | $ grep ECU01EF * | cut -d ',' -f 3 | gawk '{aa = strtonum("0x" $0); print aa / 256.0 - 5.0}' > /tmp/dpfdp | ||
| + | $ echo "set terminal x11; set grid; plot '/tmp/dpfdp' with lines" | gnuplot -p | ||
| + | </code> | ||
| + | == Detect data loss == | ||
| + | <code> | ||
| + | $ find ./ | sort | while read line ; do echo $line; grep ECU $line | cut -d ',' -f 1 | | ||
| + | gawk 'BEGIN{pt = -1} {ct = substr($0, 13); if (pt != -1) \ | ||
| + | {difft = ct - pt; if (difft < 0) difft += 60000; if ((difft > 30) && (difft < 500)) \ | ||
| + | print pt,ct,difft,pts,$0,$0-pts}; pts = $0; pt = ct}' ; done > /tmp/result | ||
| + | </code> | ||
