[vz-dev] iskra mt171

Henry van Gestel henry.van.gestel at gmail.com
Tue Dec 18 15:18:06 CET 2012


Op 12/18/2012 2:00 PM, Jakob Hirsch schreef:
> Henry van Gestel, 18.12.2012 11:24:
>> the apt-get didn’t gave me the wanted results.
> If you post the output of apt-get and of iskra2.pl, I could tell you
> what's wrong.
I temp removed /home/pi/lib/perl5... ( lib made with Cpan termios)
result when ./iskra2.perl is started:
Can't locate IO/Tty.pm in @INC (@INC contains: /home/pi/lib/perl5 
/etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 
/usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 
/usr/local/lib/site_perl .) at 
/usr/local/share/perl/5.14.2/IO/Termios.pm line 287.
BEGIN failed--compilation aborted at 
/usr/local/share/perl/5.14.2/IO/Termios.pm line 287.
Compilation failed in require at ./iskra2.perl line 6.
BEGIN failed--compilation aborted at ./iskra2.perl line 6.


>> The perl script (iskra2.pl <http://iskra2.pl>)is giving me output but
>> never stops, the time between data is increasing filled up with <0a> LF
>> I think it Should  stop after giving the telegram with data, am I
>> correct in this?
> Yes, that's how the script is intended to work. Just stop it with
> ctrl-break after the message "finished cycle".
> If you comment out (i.e. insert a # in the first column) the "while (1)
> {" in line 76 and the "}" in line 110, it will only run once.
>
When running with ## at 76 and 110 output is not consistent:


1ste run
pi at raspberrypi ~/Perl/develop4 $ perl ./iskra2.perl
13:12:52.769 opened port /dev/ttyUSB0
13:12:52.778 sent hello string
13:12:52.912 got reply: '/?!\n' (2f 3f 21 0a)
13:12:52.944 data: '\n' (0a)
13:12:52.977 data: '\n' (0a)
13:12:53.110 data: '/?!\n' (2f 3f 21 0a)
13:12:53.410 data: '\x00\x10<STX>\x00H\x08' (00 10 02 00 48 08)
13:12:53.413 finished cycle (sleep 4.4)
2nd run
pi at raspberrypi ~/Perl/develop4 $ perl ./iskra2.perl
13:12:57.872 opened port /dev/ttyUSB0
13:12:57.880 sent hello string
13:12:58.013 got reply: '/?!\n' (2f 3f 21 0a)
13:12:58.047 data: '\n' (0a)
13:12:58.079 data: '\n' (0a)
13:12:58.212 data: '/?!\n' (2f 3f 21 0a)
13:12:58.245 data: '\n' (0a)
^C
3rd run
pi at raspberrypi ~/Perl/develop4 $ perl ./iskra2.perl
13:13:18.363 opened port /dev/ttyUSB0
13:13:18.372 sent hello string
13:13:18.504 got reply: '/?!\n' (2f 3f 21 0a)
13:13:18.536 data: '\n' (0a)
13:13:18.571 data: '\n' (0a)
13:13:18.703 data: '/?!\n' (2f 3f 21 0a)
13:13:18.736 data: '\n' (0a)
13:13:19.002 data: '\x06\x10\x00@(\x01\n' (06 10 00 40 28 01 0a)
13:13:19.702 data: '!<STX>!\x00<STX>\x00 ^F^P^@@(^A\n' (21 02 21 00 02 
00 20 20 5e 46 5e 50 5e 40 40 28 5e 41 0a)
13:13:19.735 data: '\n' (0a)
13:13:20.501 data: '!^B!^@^B^@  ^F^P^@@(^A\n' (21 5e 42 21 5e 40 5e 42 
5e 40 20 20 5e 46 5e 50 5e 40 40 28 5e 41 0a)
13:13:20.534 data: '\n' (0a)
13:13:20.567 data: '\n' (0a)
13:13:20.600 data: '\n' (0a)
13:13:21.367 data: '!^B!^@^B^@  ^F^P^@@(^A\n' (21 5e 42 21 5e 40 5e 42 
5e 40 20 20 5e 46 5e 50 5e 40 40 28 5e 41 0a)
13:13:21.399 data: '\n' (0a)
13:13:21.433 data: '\n' (0a)
13:13:21.466 data: '\n' (0a)
13:13:21.499 data: '\n' (0a)
13:13:21.532 data: '\n' (0a)
13:13:21.566 data: '\n' (0a)
13:13:21.599 data: '\n' (0a)
13:13:22.366 data: '!^B!^@^B^@  ^F^P^@@(^A\n' (21 5e 42 21 5e 40 5e 42 
5e 40 20 20 5e 46 5e 50 5e 40 40 28 5e 41 0a)
13:13:22.398 data: '\n' (0a)
13:13:22.431 data: '\n' (0a)
13:13:22.464 data: '\n' (0a)
13:13:22.498 data: '\n' (0a)
13:13:22.531 data: '\n' (0a)
13:13:22.564 data: '\n' (0a)
13:13:22.597 data: '\n' (0a)
13:13:22.631 data: '\n' (0a)
13:13:22.664 data: '\n' (0a)
13:13:22.697 data: '\n' (0a)
13:13:22.731 data: '\n' (0a)
13:13:22.764 data: '\n' (0a)
13:13:22.797 data: '\n' (0a)
13:13:22.831 data: '\n' (0a)
13:13:22.864 data: '\n' (0a)
13:13:23.631 data: '!^B!^@^B^@  ^F^P^@@(^A\n' (21 5e 42 21 5e 40 5e 42 
5e 40 20 20 5e 46 5e 50 5e 40 40 28 5e 41 0a)
13:13:23.663 data: '\n' (0a)
13:13:23.696 data: '\n' (0a)
13:13:23.730 data: '\n' (0a)
13:13:23.763 data: '\n' (0a)
13:13:23.796 data: '\n' (0a)
13:13:23.829 data: '\n' (0a)
13:13:23.863 data: '\n' (0a)
13:13:23.896 data: '\n' (0a)
13:13:23.929 data: '\n' (0a)
13:13:23.963 data: '\n' (0a)
13:13:23.996 data: '\n' (0a)
13:13:24.029 data: '\n' (0a)
13:13:24.062 data: '\n' (0a)
13:13:24.096 data: '\n' (0a)
13:13:24.129 data: '\n' (0a)
13:13:24.163 data: '\n' (0a)
13:13:24.196 data: '\n' (0a)
13:13:24.229 data: '\n' (0a)
13:13:24.263 data: '\n' (0a)
13:13:24.296 data: '\n' (0a)
13:13:24.329 data: '\n' (0a)
13:13:24.363 data: '\n' (0a)
13:13:24.395 data: '\n' (0a)
13:13:24.429 data: '\n' (0a)
13:13:24.463 data: '\n' (0a)
13:13:24.495 data: '\n' (0a)
13:13:24.529 data: '\n' (0a)
13:13:24.563 data: '\n' (0a)
13:13:24.595 data: '\n' (0a)
13:13:24.629 data: '\n' (0a)
13:13:24.663 data: '\n' (0a)
^C

Rgrds
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://volkszaehler.org/pipermail/volkszaehler-dev/attachments/20121218/15724fb5/attachment.html>


More information about the volkszaehler-dev mailing list