From owner-freebsd-bluetooth@FreeBSD.ORG Wed Jan 12 18:45:32 2005 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7A95F16A4CE for ; Wed, 12 Jan 2005 18:45:32 +0000 (GMT) Received: from mailgate1b.savvis.net (mailgate1b.savvis.net [216.91.182.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 014EA43D1F for ; Wed, 12 Jan 2005 18:45:32 +0000 (GMT) (envelope-from Maksim.Yevmenkin@savvis.net) Received: from out002.email.savvis.net (out002.apptix.savvis.net [216.91.32.45])j0CIiirW000806; Wed, 12 Jan 2005 12:44:44 -0600 Received: from s228130hz1ew03.apptix-01.savvis.net ([10.146.4.28]) by out002.email.savvis.net with Microsoft SMTPSVC(6.0.3790.211); Wed, 12 Jan 2005 12:44:41 -0600 Received: from [10.254.186.111] ([66.35.239.94]) by s228130hz1ew03.apptix-01.savvis.net with Microsoft SMTPSVC(6.0.3790.211); Wed, 12 Jan 2005 12:44:22 -0600 Message-ID: <41E57004.8070201@savvis.net> Date: Wed, 12 Jan 2005 10:44:20 -0800 From: Maksim Yevmenkin User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.2) Gecko/20040822 X-Accept-Language: en-us, en MIME-Version: 1.0 To: rene@fantastici.de References: <1105515411.41e4d393d2c5b@webmail.wewitro.net> <1105531775.7961.46.camel@pegasus> In-Reply-To: <1105531775.7961.46.camel@pegasus> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 12 Jan 2005 18:44:22.0530 (UTC) FILETIME=[BB7AE620:01C4F8D6] X-ECS-MailScanner: No virus is found cc: freebsd-bluetooth@freebsd.org Subject: Re: HID Proxy switching X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Jan 2005 18:45:32 -0000 Rene, >> I own a D-Link DBT-120 REV3 which has the latest Apple Firmware >> loaded. This Device has the so called HID Proxy feature enabled, so >> if I activate the device under my FreeBSD Current only the HID Part >> is visible. Under Linux there is a tool hid2hci which is able to what driver attaches to the device? ugen(4), uhid(4) or other? can you tell what endpoints are available? hint: look in /var/log/messages and /dev. >> switch between the two modes. Now I ask if there is such a tool for >> FreeBSD? not right now. but we can write one :) >> I'm not a great coder but have looked into the source for hid2hci >> but it seems it is to much depended on Linux USB / BT Stack to >> port it to FreeBSD. Are there any alternatives to make the device >> useable under FreeBSD? it does not depend on linux bluetooth stack. i'm positive it can be done in freebsd. in non-logitech case all you need to do is send control message. please read ugen(4) man page - its a good start (in particular USB_DO_REQUEST). in logitech case you need to send hid report to the device. please read usb(3) and uhid(4) man page (in particular USB_SET_REPORT). if you are not feeling like hacking please send me information about your device, i.e. driver info and usb descriptors dump and i will try to hack something for you. > actually there is no dependency on the Linux BT stack and for > accessing the USB functions it uses libusb. However for switching the > Logitech Bluetooth hub it uses some hiddev magic which is Linux > specific. So if you rib out the Logitech stuff there should be no > problem in running hid2hci under any operating system that has > support for libusb. libusb is a freebsd port, which means hid2hci should also be a port. i see no reason it use libusb. base system has all required libraries. thanks, max