I'm not able to trigger an alarm via serial port.
The error is:
Code: Select all
zmdc 11624 ERR 'zmtrigger.pl ' exited abnormally, exit status 9 zmdc.pl
Code: Select all
Can't call method "baudrate" on an undefined value at /usr/share/perl5/ZoneMinder/Trigger/Channel/Serial.pm line 61.
Can't call method "databits" on an undefined value at /usr/share/perl5/ZoneMinder/Trigger/Channel/Serial.pm line 62.
....
Code: Select all
my @connections;
push( @connections, ZoneMinder::Trigger::Connection->new( name=>"Chan1", channel=>ZoneMinder::Trigger::Channel::Inet->new( port=>6802 ), mode=>"rw" ) );
#push( @connections, ZoneMinder::Trigger::Connection->new( name=>"Chan2", channel=>ZoneMinder::Trigger::Channel::Unix->new( path=>ZM_PATH_SOCKS.'/zmtrigger.sock' ), mode=>"rw" ) );
#push( @connections, ZoneMinder::Trigger::Connection->new( name=>"Chan3", channel=>ZoneMinder::Trigger::Channel::File->new( path=>'/tmp/zmtrigger.out' ), mode=>"w" ) );
push( @connections, ZoneMinder::Trigger::Connection->new( name=>"Chan4", channel=>ZoneMinder::Trigger::Channel::Serial->new( path=>'/dev/ttyS0' ), mode=>"rw" ) );
The application v1.26.5 runs on a Ubuntu 14.04 server
Someone can help me?
Thanks