[vz-users] vzlogger mit S0 per RS 232 sendet nur einen Post

Groovemaster groovemaster at highperspace.de
Wed Nov 21 10:27:26 CET 2012


Hallo Harald,

es kommt einfach "NICHTS"...

root at raspberrypi:~# stty time 1 min 1 -icanon < /dev/ttyUSB0
root at raspberrypi:~# strace -ttt -e read cat  < /dev/ttyUSB0 > /dev/null
1353489836.248358 read(3, 
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\10\4\0\0004\0\0\0"..., 
512) = 512
1353489836.251707 read(3, 
"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 
1240) = 1240
1353489836.254579 read(3, 
"A.\0\0\0aeabi\0\1$\0\0\0\0056\0\6\6\10\1\t\1\n\2\22\4\24\1\25"..., 47) = 47
1353489836.260212 read(3, 
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\210y\1\0004\0\0\0"..., 
512) = 512
1353489836.262894 read(3, 
"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 
1360) = 1360
1353489836.265797 read(3, 
"A.\0\0\0aeabi\0\1$\0\0\0\0056\0\6\6\10\1\t\1\n\2\22\4\24\1\25"..., 47) = 47
1353489836.275909 read(0, "\0", 32768)  = 1
1353489842.083580 read(0, "\0", 32768)  = 1
1353489874.852005 read(0, ^C <unfinished ...>
root at raspberrypi:~#
root at raspberrypi:~#
root at raspberrypi:~#
root at raspberrypi:~# ( strace -ttt -e read cat  < /dev/ttyUSB0 > 
/dev/null ) 2>&1 | awk 'NR==1{t0=$1;next}{t=$1; print 3600e3 
/(t-t1)/2000 ,  t-t0,t-t1,$0;t1=t}'


Grüße
Günther


Am 21.11.2012 08:27, schrieb Harald Koenig:
> ( strace -ttt -e read cat  < /dev/ttyUSB0 > /dev/null ) 2>&1 | awk 'NR==1{t0=$1;next}{t=$1; print 3600e3 /(t-t1)/2000 ,  t-t0,t-t1,$0;t1=t}'



More information about the volkszaehler-users mailing list