Perl script Jumi2006 used for Iskra MT171
With succes I used the per script from Jumi after 2 weeks of strugling.
used Raspberry pi, 2 ir heads from Udo.
Perl script:
# JuMi2006 / www.knx-user-forum.de
# Version: 0.1.3
# Datum: 23.04.2012
I had to adjust the timing used in the script.
####START 300baud
my $port = new Device::SerialPort($device) || die "can't open $device: $!";
$port->baudrate(300) || die 'fail setting baudrate';
$port->databits(7) || die 'fail setting databits';
$port->stopbits(1) || die 'fail setting stopbits';
$port->parity("even") || die 'fail setting parity';
$port->dtr_active(0);
$port->rts_active(0);
$port->read_char_time(006); # 0.006 seconds for each character
#$port->read_const_time(400); # 1 second per unfulfilled "read" call
$port->write_settings || die 'fail write settings';
Maybe this helps others with the same problem.
thanks to Jumi
With succes I used the per script from Jumi after 2 weeks of strugling.
used Raspberry pi, 2 ir heads from Udo.
Perl script:
# JuMi2006 / www.knx-user-forum.de
# Version: 0.1.3
# Datum: 23.04.2012
I had to adjust the timing used in the script.
####START 300baud
my $port = new Device::SerialPort($device) || die "can't open $device: $!";
$port->baudrate(300) || die 'fail setting baudrate';
$port->databits(7) || die 'fail setting databits';
$port->stopbits(1) || die 'fail setting stopbits';
$port->parity("even") || die 'fail setting parity';
$port->dtr_active(0);
$port->rts_active(0);
$port->read_char_time(006); # 0.006 seconds for each character
#$port->read_const_time(400); # 1 second per unfulfilled "read" call
$port->write_settings || die 'fail write settings';
Maybe this helps others with the same problem.
thanks to Jumi
Kommentar