From owner-freebsd-hardware@FreeBSD.ORG Fri Nov 2 12:52:41 2007 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4FD9B16A417 for ; Fri, 2 Nov 2007 12:52:41 +0000 (UTC) (envelope-from achill@matrix.gatewaynet.com) Received: from smadev.internal.net (host3.dynacom.ondsl.gr [62.103.35.211]) by mx1.freebsd.org (Postfix) with ESMTP id AFCD613C49D for ; Fri, 2 Nov 2007 12:52:40 +0000 (UTC) (envelope-from achill@matrix.gatewaynet.com) Received: from smadev.internal.net (localhost [127.0.0.1]) by smadev.internal.net (8.13.6/8.13.6) with ESMTP id lA2CB3nD003401 for ; Fri, 2 Nov 2007 14:11:03 +0200 (EET) (envelope-from achill@matrix.gatewaynet.com) Received: from localhost (localhost [[UNIX: localhost]]) by smadev.internal.net (8.13.6/8.13.6/Submit) id lA2CB25Q003400 for freebsd-hardware@freebsd.org; Fri, 2 Nov 2007 14:11:02 +0200 (EET) (envelope-from achill@matrix.gatewaynet.com) From: Achilleas Mantzios Organization: Dynacom Tankers Mgmt To: freebsd-hardware@freebsd.org Date: Fri, 2 Nov 2007 15:11:02 +0300 User-Agent: KMail/1.9.3 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200711021411.02488.achill@matrix.gatewaynet.com> Subject: Implementing a "normally open" relay X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Nov 2007 12:52:41 -0000 Hi, i am building a home security system based on zoneminder under FreeBSD 6.2. I think i have it all sorted out, except a way to drive an external alarm upon camera motion. I have set up the alarm panel with an additional zone, which corresponds to an EOL circuit terminating to a 47Kohm resistence. When i join the ends together i can see the light of the xmitter flashing, so the electric part is ok. (all the above with a powermax+ system, the EOL loop is attached to a magnetic contact, connected to its aux. input). I have the LMLBT4M card from linux media labs, which i managed to make it work with Zoneminder. This card supposedly has a GPIO feature, allowing it to control a "normally open" circuit. So i wrote a program to drive the GPIO bits but unfortunately i dont see it on the electric level. The circuit never closes when i attach the wires to the DB15 pins (11,12) and write the corresponding word to the GPIO data register. So what is left for me is to abandon the GPIO idea and find another way to do this: Have two states: a) (normal) Have the two wires isolated from eachother, ground, voltage b) (alarm) Connect the wires together (shortcircuiting the EOL). Could it be done someway with /dev/cuad* /dev/lpt* Many thanx for any hints. P.S. Please include my email address to your reply. -- Achilleas Mantzios