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/27 21:27] – [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 44: Line 44:
 == Detect data loss == == Detect data loss ==
 <code> <code>
-$ grep ECU * | cut -d ',' -f 1 |+$ 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) \   gawk 'BEGIN{pt = -1} {ct = substr($0, 13); if (pt != -1) \
-  {difft = ct - pt; if (difft < 0) difft += 60000; if ((difft > 20) && (difft < 500)) \ +  {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}'+  print pt,ct,difft,pts,$0,$0-pts}; pts = $0; pt = ct}' ; done > /tmp/result
 </code> </code>
projects/carmon.1482870474.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