From owner-freebsd-multimedia@FreeBSD.ORG Fri Mar 16 14:48:19 2007 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7E14C16A400 for ; Fri, 16 Mar 2007 14:48:19 +0000 (UTC) (envelope-from akm@theinternet.com.au) Received: from fallbackmx03.syd.optusnet.com.au (fallbackmx03.syd.optusnet.com.au [211.29.133.136]) by mx1.freebsd.org (Postfix) with ESMTP id 176F613C457 for ; Fri, 16 Mar 2007 14:48:18 +0000 (UTC) (envelope-from akm@theinternet.com.au) Received: from mail15.syd.optusnet.com.au (mail15.syd.optusnet.com.au [211.29.132.196]) by fallbackmx03.syd.optusnet.com.au (8.12.11.20060308/8.12.11) with ESMTP id l2F9sWlc027466 for ; Thu, 15 Mar 2007 20:54:35 +1100 Received: from camelot.theinternet.com.au (c211-30-133-243.carlnfd4.nsw.optusnet.com.au [211.30.133.243]) by mail15.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id l2F9sOBP024584; Thu, 15 Mar 2007 20:54:27 +1100 Received: by camelot.theinternet.com.au (Postfix, from userid 1000) id 5E6FB6246; Thu, 15 Mar 2007 20:54:24 +1100 (EST) Date: Thu, 15 Mar 2007 20:54:24 +1100 From: Andrew Milton To: Torfinn Ingolfsen Message-ID: <20070315095424.GE11506@camelot.theinternet.com.au> Mail-Followup-To: Torfinn Ingolfsen , freebsd-multimedia@freebsd.org References: <45F77267.9080403@netmusician.org> <20070314054117.GB6688@wantadilla.lemis.com> <7BADB2D8968E702424EAE969@ganymede.hub.org> <45F88A52.7000809@netmusician.org> <20070315080854.5232bb9b.torfinn.ingolfsen@broadpark.no> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070315080854.5232bb9b.torfinn.ingolfsen@broadpark.no> User-Agent: Mutt/1.5.9i Cc: freebsd-multimedia@freebsd.org Subject: Re: LIRC guide for FreeBSD 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, 16 Mar 2007 14:48:19 -0000 +-------[ Torfinn Ingolfsen ]---------------------- | On Wed, 14 Mar 2007 19:50:42 -0400 | Joe Auty wrote: | | > The piece I'm missing is getting LIRC listening on a device node so | > that it can communicate with my IR Blaster connected to my serial | > port. | | I *think* that the problem is related to the fact that IR Blasters are | using the serial port in a non-standard way. | Instead of using the Tx signal to transmit data, they are using the DTR | signal. This page seems to support that view: | http://www.lirc.org/transmitters.html | | Thus, you need a special driver for the serial port which allows it to | work in this way. It is probably a year or two since I looked at it, | but the problem then was that LIRC's "driver" for serial ports was | totally Linux-specific, not very clean code, and not easy to port over | to FreeBSD. So nobody did make a LIRC serial port driver for FreeBSD . You don't really "send" or "receive" data to and from IR devices. You don't really need a driver, you just need to be able to strobe the control line at the right frequency, in the right burst lengths. You can do it from userland if you need to. The serial drivers for LIRC simply monitor the relevant pin and decode the incoming data. You can do this in userland, without needing a lirc kernel module to watch the serial port. The reason they use the control lines instead of tx/rx is that you don't need to be concerned with baud settings on the port. -- Andrew Milton akm@theinternet.com.au