Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
projects:carmon [2016/12/24 08:41] – [Data processor] adminprojects:carmon [2026/10/25 19:30] (current) – external edit 127.0.0.1
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) && (aa > 5)) 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>
projects/carmon.1482565280.txt.gz · Last modified: (external edit)
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0