Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Apr 2005 20:17:50 +0200
From:      "Ronald Klop" <ronald-freebsd8@klop.yi.org>
To:        freebsd-bluetooth@freebsd.org
Subject:   Re: bthidd
Message-ID:  <opspjmf0198527sy@smtp.local>
In-Reply-To: <opsoge2fqk8527sy@smtp.local>
References:  <opsn65wosp8527sy@smtp.local> <42444AB4.7080300@savvis.net> <opsocok7yo8527sy@smtp.local> <42483D9F.2090805@savvis.net> <opsoge2fqk8527sy@smtp.local>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 30 Mar 2005 16:12:05 +0200, Ronald Klop  
<ronald-freebsd8@klop.yi.org> wrote:

> On Mon, 28 Mar 2005 09:23:43 -0800, Maksim Yevmenkin  
> <maksim.yevmenkin@savvis.net> wrote:
>
>> 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
         };
}

# bthidcontrol -a phone query > /etc/bluetooth/bthidd.conf

# bthidd -d
<select 'control external device' on my phone>
bthidd[786]: Accepted control connection from 00:0f:de:78:93:d8
bthidd[786]: Accepted interrupt connection from 00:0f:de:78:93:d8

And now I'm stuck. I don't see a new device in /dev or a msg in  
dmesg/console.

# uname -a
FreeBSD laptop.klop.ws 5.4-PRERELEASE FreeBSD 5.4-PRERELEASE #2: Wed Mar  
23 19:24:27 CET 2005     root@laptop:/usr/obj/usr/src/sys/LAPTOP  i386

Any hints?

Ronald.

-- 
  Ronald Klop, Amsterdam, The Netherlands



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?opspjmf0198527sy>