From owner-freebsd-multimedia@FreeBSD.ORG Fri Oct 26 08:13:41 2007 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 02D1616A419 for ; Fri, 26 Oct 2007 08:13: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 4441713C48A for ; Fri, 26 Oct 2007 08:13:38 +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 l9Q8DLIu055042; Fri, 26 Oct 2007 11:13:21 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) Received: by smadev.internal.net (8.13.6/8.13.6/Submit) id l9Q8DKQa055041; Fri, 26 Oct 2007 11:13:20 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) From: Achilleas Mantzios Organization: Dynacom Tankers Mgmt To: Mark Tinguely Date: Fri, 26 Oct 2007 11:13:17 +0300 User-Agent: KMail/1.9.3 References: <200710111316.l9BDG2LZ093155@casselton.net> In-Reply-To: <200710111316.l9BDG2LZ093155@casselton.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200710261113.18925.achill@matrix.gatewaynet.com> Cc: freebsd-multimedia@freebsd.org Subject: bktr and GPIO 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: Fri, 26 Oct 2007 08:13:41 -0000 List, Mark, hello again! I managed to have a full blown Zoneminder installation on FreeBSD 6.2 with everything working + voice phone notifications in case of alarm! The point is that the voice phone call solution works in parallel with my conventional alarm system over the same telephone land line. Apart from that it is not the best design to have two points of management, notifications, etc... So i would think that i could utilize the GPIO alarm capabilities of this card LMLBT4M http://www.linuxmedialabs.com/product_details.php?prodid=320 through the DB15 port, and have this card act as a wired input to the alarm console. This card although not defined in the FreeBSD driver, captures video alright and works great with ZoneMinder. This card supports 4 optically insulated sensor inputs and 3 insulated 1A 115AC/30VDC alarm relay outputs. (its the outputs that i am concerned at the moment). I have some contact with the person who manufactures the cards and writes the linux drivers, and he asked me if FreeBSD has access to bt878 GPIO, and said that it would be easy if so. Yesterday night i recompiled the kernel with the BKTR_GPIO_ACCESS option, and tried with some BT848_GPIO_SET_EN, BT848_GPIO_GET_EN, BT848_GPIO_SET_DATA, BT848_GPIO_GET_DATA ioctls calls on /dev/bktr0 but i got Inappropriate ioctl for device. When i tried on /dev/tuner0 the same ioctl calls they seemed to at least return >=0. The problem is that i have no idea of GPIO, and also no idea of the semantics of the above ioctls. If i can do some of my homework on FreeBSD/bktr GPIO, then i can get back to the LML linux hacker and ask specific GPIO card questions. Thanx for any hints. -- Achilleas Mantzios