From owner-freebsd-bluetooth@FreeBSD.ORG Wed Apr 20 19:52:14 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 4C5BA16A4CE for ; Wed, 20 Apr 2005 19:52:14 +0000 (GMT) Received: from mailgate1b.savvis.net (mailgate1b.savvis.net [216.91.182.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id C989C43D49 for ; Wed, 20 Apr 2005 19:52:13 +0000 (GMT) (envelope-from Maksim.Yevmenkin@savvis.net) Received: from localhost (localhost.localdomain [127.0.0.1]) by mailgate1b.savvis.net (Postfix) with ESMTP id 66CB13BFF2; Wed, 20 Apr 2005 14:52:13 -0500 (CDT) Received: from mailgate1b.savvis.net ([127.0.0.1]) by localhost (mailgate1b.savvis.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 07388-01-12; Wed, 20 Apr 2005 14:52:13 -0500 (CDT) Received: from out002.email.savvis.net (out002.apptix.savvis.net [216.91.32.45]) by mailgate1b.savvis.net (Postfix) with ESMTP id ECA133BE28; Wed, 20 Apr 2005 14:52:12 -0500 (CDT) Received: from s228130hz1ew171.apptix-01.savvis.net ([10.146.4.29]) by out002.email.savvis.net with Microsoft SMTPSVC(6.0.3790.211); Wed, 20 Apr 2005 14:52:02 -0500 Received: from [10.254.186.111] ([66.35.239.94]) by s228130hz1ew171.apptix-01.savvis.net with Microsoft SMTPSVC(6.0.3790.211); Wed, 20 Apr 2005 14:51:51 -0500 Message-ID: <4266B2DA.50609@savvis.net> Date: Wed, 20 Apr 2005 12:51:54 -0700 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: Ronald Klop References: <42444AB4.7080300@savvis.net> <42483D9F.2090805@savvis.net> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 20 Apr 2005 19:51:51.0404 (UTC) FILETIME=[65478AC0:01C545E2] X-Virus-Scanned: amavisd-new at savvis.net cc: freebsd-bluetooth@freebsd.org Subject: Re: bthidd 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, 20 Apr 2005 19:52:14 -0000 Ronald, >>>>>> Is bthidd usable? It isn't connected to the build. >>>>> >>>>> >>>>> define "usable"? :) you should be able to use it with bluetooth >>>>> mice, but not with bluetooth keyboards. so, imo, its not very >>>>> usable at the moment. bluetooth keyboard support is not there >>>>> because i do not like the fact that i can not have more then one >>>>> keyboard attached to the system. as soon as i find some time i >>>>> will look into the system console driver to see what it takes to >>>>> add support for more then one keyboard. >>>> >>>> Usable... Mmm. I have a SonyEricsson K700i phone and on Windows I >>>> can use the joystick of the phone as a mouse to control >>>> mediaplayer, etc. I would like to do the same on FreeBSD, just for >>>> the coolness of it. :-) >>> >>> :) >>> >>>> Can I just do this? >>> >>> i do not know. it depends. if k700i looks like mouse then it most >>> likely will work. if k700i looks like keypad/keyboard then it will >>> not work (for the reason described above - cant have more then one >>> active keyboard/keypad attached to the console). >>> >>> there is a bthidcontrol(8) tool in >>> /usr/src/usr.sbin/bluetooth/bthidcontrol. could you please compile >>> it and send me the output of "query" command? there is a >>> bthidcontrol.8 man page in the same directory ("nroff -man >>> bthidcontrol.8 |less" - to read it) >>> >>>> cd /usr/src/usr.sbin/bluetooth/bthidd/ >>>> make && make install && make clean >>>> Or is there more to it? >>> >>> you will also need to create /etc/bluetooth/bthidd.conf >>> configuration file. bthidcontrol(8) will help you with that. >> >> Thanks for the info. I'm going to try this soon. But I left my phone >> at my moms house, just one evening before she went on holiday for >> two weeks. :-( > > Da phone is back. > # bthidcontrol -a phone query > device { > bdaddr 00:0f:de:78:93:d8; > control_psm 0x11; > interrupt_psm 0x13; > reconnect_initiate true; > battery_power false; > normally_connectable false; > hid_descriptor { > 0x05 0x01 0x09 0x06 0xa1 0x01 0x85 0x01 > 0x05 0x07 0x19 0xe0 0x29 0xe7 0x15 0x00 > 0x25 0x01 0x75 0x01 0x95 0x08 0x81 0x02 > 0x95 0x01 0x75 0x08 0x81 0x03 0x95 0x05 > 0x75 0x01 0x05 0x08 0x19 0x01 0x29 0x05 > 0x91 0x02 0x95 0x01 0x75 0x03 0x91 0x03 > 0x95 0x06 0x75 0x08 0x15 0x00 0x25 0x65 > 0x05 0x07 0x19 0x00 0x29 0x65 0x81 0x00 > 0xc0 0x05 0x01 0x09 0x02 0xa1 0x01 0x85 > 0x02 0x09 0x01 0xa1 0x00 0x05 0x09 0x19 > 0x01 0x29 0x03 0x15 0x00 0x25 0x01 0x95 > 0x03 0x75 0x01 0x81 0x02 0x95 0x01 0x75 > 0x05 0x81 0x03 0x05 0x01 0x09 0x30 0x09 > 0x31 0x15 0x81 0x25 0x7f 0x75 0x08 0x95 > 0x02 0x81 0x06 0xc0 0xc0 > }; > } i have copied your config and run 'bthidcontrol dump' % bthidcontrol -a 00:0f:de:78:93:d8 dump Collection page=Generic_Desktop usage=Keyboard Input id=1 size=1 count=1 page=Keyboard usage=Keyboard_LeftControl Variable, logical range 0..1 Input id=1 size=1 count=1 page=Keyboard usage=Keyboard_LeftShift Variable, logical range 0..1 Input id=1 size=1 count=1 page=Keyboard usage=Keyboard_LeftAlt Variable, logical range 0..1 Input id=1 size=1 count=1 page=Keyboard usage=Keyboard_Left_GUI Variable, logical range 0..1 Input id=1 size=1 count=1 page=Keyboard usage=Keyboard_RightControl Variable, logical range 0..1 Input id=1 size=1 count=1 page=Keyboard usage=Keyboard_RightShift Variable, logical range 0..1 Input id=1 size=1 count=1 page=Keyboard usage=Keyboard_RightAlt Variable, logical range 0..1 Input id=1 size=1 count=1 page=Keyboard usage=Keyboard_Right_GUI Variable, logical range 0..1 Input id=1 size=8 count=1 page=0x0000 usage=0x0000 Const Variable, logical range 0..1 Output id=1 size=1 count=1 page=LEDs usage=Num_Lock Variable, logical range 0..1 Output id=1 size=1 count=1 page=LEDs usage=Caps_Lock Variable, logical range 0..1 Output id=1 size=1 count=1 page=LEDs usage=Scroll_Lock Variable, logical range 0..1 Output id=1 size=1 count=1 page=LEDs usage=Compose Variable, logical range 0..1 Output id=1 size=1 count=1 page=LEDs usage=Kana Variable, logical range 0..1 Output id=1 size=3 count=1 page=0x0000 usage=0x0000 Const Variable, logical range 0..1 Input id=1 size=8 count=6 page=Keyboard usage=Reserved_(no_event_indicated), logical range 0..101 End collection Collection page=Generic_Desktop usage=Mouse Collection page=Generic_Desktop usage=Pointer Input id=2 size=1 count=1 page=Button usage=Button_1 Variable, logical range 0..1 Input id=2 size=1 count=1 page=Button usage=Button_2 Variable, logical range 0..1 Input id=2 size=1 count=1 page=Button usage=Button_3 Variable, logical range 0..1 Input id=2 size=5 count=1 page=0x0000 usage=0x0000 Const Variable, logical range 0..1 Input id=2 size=8 count=1 page=Generic_Desktop usage=X Variable Relative, logical range -127..127 Input id=2 size=8 count=1 page=Generic_Desktop usage=Y Variable Relative, logical range -127..127 End collection End collection looks like the phone has both keyboard and the mouse part. do you know if phone sends mouse events (if you move joystick i guess)? how about running 'hcidump' while pressing buttons on the phone? > # bthidcontrol -a phone query > /etc/bluetooth/bthidd.conf > > # bthidd -d >