From owner-freebsd-multimedia@FreeBSD.ORG Mon Jul 18 09:45:16 2011 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 873CD106566B; Mon, 18 Jul 2011 09:45:16 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [115.70.110.159]) by mx1.freebsd.org (Postfix) with ESMTP id 8F3A68FC1E; Mon, 18 Jul 2011 09:45:15 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id p6I9jBrC080442; Mon, 18 Jul 2011 19:45:12 +1000 (EST) (envelope-from smithi@nimnet.asn.au) Date: Mon, 18 Jul 2011 19:45:11 +1000 (EST) From: Ian Smith To: Achilleas Mantzios In-Reply-To: <201107181027.27546.achill@matrix.gatewaynet.com> Message-ID: <20110718192453.P94719@sola.nimnet.asn.au> References: <201107041339.22470.achill@matrix.gatewaynet.com> <201107061249.49637.achill@matrix.gatewaynet.com> <20110706212809.O84785@sola.nimnet.asn.au> <201107181027.27546.achill@matrix.gatewaynet.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-multimedia@freebsd.org, freebsd-hardware@freebsd.org Subject: Re: FreeBSD and controlling an alarm via relay X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jul 2011 09:45:16 -0000 On Mon, 18 Jul 2011, Achilleas Mantzios wrote: > Hello again, It worked! Excellent! > Just to recap on the hardware used and the architecture of the whole setup: > > Camera ( simple analog wired (coaxial cable)) is sending video to Kodicom KMC-4400R video card > the video is analyzed via Zoneminder, and a separate deamon in perl polls the shared memory > with zoneminder to check for alarm/alert caused by motion detection. > Upon motion detection, the daemon drives this USB relay board: > http://cgi.ebay.co.uk/USB-8-Channel-Relay-Board-RS232-Serial-controlled-/280591766649?_trksid=p5197.m7&_trkparms=algo%3DLVI%26itu%3DUCI%26otn%3D1%26po%3DLVI%26ps%3D63%26clkid%3D1423565781848187460 > (FTDI based), using simple echo commands like: > #!/usr/local/bin/bash > echo -e "\xFF\x01\x01" > /dev/cuaU0 > sleep 1 > echo -e "\xFF\x01\x00" > /dev/cuaU0 > However, the above when tested with Ubuntu 11, didnt work out of the > box until i set baudrate explicitly to 9600. > In FreeBSD worked at once, just by running the above script. That'll be because FreeBSD uses 9600 baud as the default serial rate. > Now, two of the relay board NC outputs (circuits) are connected to the two inputs (loops) in > http://www.visonic.com/Products/Wireless-Property-Protection/Universal-transmitter-mct-100 > (the two circuits are defined as being "EOL" type, not NC) > which in turn talks to > http://www.visonic.com/Products/Wireless-Property-Protection/PowerMaxPlus > > I have two cameras, and i use them as two separate zones. I think it works good, > and at least for interior spaces, i think motion detection via video is more reliable > than IR detectors, because in the summer IR struggle to detect motion when > ambient temperature is close to the human temperature. Indeed, in late summer here the humans would show up as cool spots :) > (In exterior spaces, video motion detection is problematic due to large birds, insects, etc, > while exterior IR motion detection is by default unreliable) > > Thank you all! Thanks for news and feedback. Good to know that those relay boards work erll with FreeBSD .. I have an upcoming project that could use these. cheers, Ian