From owner-freebsd-multimedia@FreeBSD.ORG Tue Jul 5 01:59:19 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 C33401065673; Tue, 5 Jul 2011 01:59:19 +0000 (UTC) (envelope-from lists.br@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 6F42F8FC1D; Tue, 5 Jul 2011 01:59:19 +0000 (UTC) Received: by gxk28 with SMTP id 28so2686473gxk.13 for ; Mon, 04 Jul 2011 18:59:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=ImW0sk2pCrZfZIq9lNKJSYcLyHpeGg4YROOReF4q4wg=; b=ofzFCbzkx9yqL+doIqooqNVFh7H2Nm6ZMVIbxCq/9/35CNFJBQndyviszmJJyt0JPQ Y6NYZDUpvPR1n5emYv1HEVu1U6HuptxxWbr8Z2/hC3pAYeXBVULMhvCKqbtrFf3FFnOg 6/ip8/Xh0MnLtJ6fpoX/IUhY3INX/3Oz+c1TI= Received: by 10.236.78.162 with SMTP id g22mr7799956yhe.314.1309829575508; Mon, 04 Jul 2011 18:32:55 -0700 (PDT) Received: from [192.168.0.52] ([187.120.139.136]) by mx.google.com with ESMTPS id v25sm1017906yhk.36.2011.07.04.18.32.53 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 04 Jul 2011 18:32:54 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Luiz Otavio O Souza In-Reply-To: <201107041339.22470.achill@matrix.gatewaynet.com> Date: Mon, 4 Jul 2011 22:32:51 -0300 Content-Transfer-Encoding: quoted-printable Message-Id: References: <201107041339.22470.achill@matrix.gatewaynet.com> To: Achilleas Mantzios X-Mailer: Apple Mail (2.1084) 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: Tue, 05 Jul 2011 01:59:19 -0000 On Jul 4, 2011, at 7:39 AM, Achilleas Mantzios wrote: > Hello, sorry for the cross-post but i believe this question might seat = in both lists. > I am the guy who had the done the old 1.23.3 zoneminder port some = years ago, and i am thinking of installing/testing > the new 1.24.4 port, submitted by bsam@FreeBSD.org. > Besides the basic functions, i am thinking of re-using some old = techniques by which i controlled=20 > the home alarm via a NC/NO circuit (basically it was an enhanced door = contact),=20 > driven by an old zyXel modem, which in turn was driven by a small = perl program driving the com port, and=20 > which was called by a deamon reading zoneminder shared memory info = directly. > That way i could trigger the alarm system getting into alarm state, = whenever zoneminder detected motion, > in a fully controlled and programmatic way. >=20 > Now i am thinking of re-doing this, a little bit more modern, if = possible. I was thinking of some relay board > (instead of the old modem), possibly ethernet controlled (to get rid = of all the obsolete com port programming), > and such. Also i will scrap the old NO/NC solution (circuit embded in = the door contact), and i wil use instead a new=20 > dedicated wireless transimter i bought (same brand as the alarm = system), which is also NC/NO and receives > two inputs and corresponds to two zones. So i am thinking of assigning = 2 cameras as two disctinct zones > in the alarm system. >=20 > That is the rough idea. What would you guys have to recommend = (regarding the relay?). I do not plan to use > this relay for power/lights on/off and such, at this stage it will = function solely to drive the alarm transimtter, > (which in turn will drigger an alarm to the central alarm control = panel) If you want to go ethernet -> gpio, i think the routerstation (or = routerstation pro) is one good option. The routerstation (not the pro = version) works with 12v~24v (12v is kind common for alarm systems) and = has 7 available GPIO pins (which works as inputs and outputs - you can = connect relays, switches, leds, lcds, i2c and spi devices). GPIO pins can be easily controlled from userland with gpioctl(8) or with = a small C program with the appropriate ioctl()s (or even using the = led(4) framework). Please take a look at = http://wiki.freebsd.org/FreeBSD/mips/UBNT-RouterStation for more = detailed information. Both boards works _really_ fine with -current. Cheers, Luiz=