Alarm triggering via serial port

Forum for questions and support relating to the 1.26.x releases only.
Locked
Baravantan
Posts: 1
Joined: Mon Mar 09, 2015 8:12 am

Alarm triggering via serial port

Post by Baravantan »

Hi all,

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
and

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.
....
My zmtrigger.pl is:

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" ) );
If I try to trigger an alarm using an TCP packet, disabling the row "Chan4", works fine.

The application v1.26.5 runs on a Ubuntu 14.04 server

Someone can help me?
Thanks
Locked