Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
projects:carmon [2016/12/27 21:27]
admin [Data processor]
projects:carmon [2019/09/06 07:56]
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) && (aa > 5)) print aa}' > /​tmp/​dpfdist+  gawk '{aa = strtonum("​0x"​ $0); if ((aa < 200) && (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.txt · Last modified: 2019/09/06 07:58 by admin
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0