2003-10-28 07:47:39

by CIJOML

[permalink] [raw]
Subject: [Bluez-users] MS Wireless keyboard scans remapping

Hi,

my keyboard works now fine, but I found keys which doesn't. Looks like MS
changed scan codes for them.

How can I get these events from keys and put them unto hid.c of bthid package?
Keys which doesn't works are:

Stand by
Functionkey F
windows key opens properties
colona key |
other key in german version marked like criminal key #

Thanks very much for hinting, coz colona is one of the most used key in Linux
:))

Michal



-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community? Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users


2003-10-29 14:45:55

by Olivier Bornet

[permalink] [raw]
Subject: Re: diNovo LT information

Hi Marcel,

> > I'm impatient to try this new userspace bthid daemon. :-)
>
> but without the kernel side HID parser modification it is useless :(

Do you have a schedule when it will be available for beta release ?

> > FYI: ltmain.sh is missing in the libs2 CVS. I have copyed the one from
> > libs at this time.
>
> You have to run bootstrap first and all needed files will be created.

I have run bootstrap. The file ltmain.sh wasn't created. And at least it
is inclued in the lib CVS.

Good day.

Olivier
--
Olivier Bornet http://www.smartdata.ch/
[email protected] SMARTDATA SA
GPG key ID: C53D9218 CH Martigny/Lausanne


Attachments:
(No filename) (685.00 B)
(No filename) (189.00 B)
Download all attachments

2003-10-29 11:56:02

by Marcel Holtmann

[permalink] [raw]
Subject: [Bluez-users] Re: diNovo LT information

Hi Olivier,

> > I am working on the design document of the HID parser userspace to
> > kernel interface. My userspace bthid daemon is almost ready for daily
> > use, but the modification of the USB HID parser will take some time. I
> > am thinking of copying the needed HID stuff into an extra module.
>
> I'm impatient to try this new userspace bthid daemon. :-)

but without the kernel side HID parser modification it is useless :(

> > Is there any chance that you can tell Logitech to send some demo or beta
> > devices to me for testing with Linux. I like to play with the devices to
> > see how they have done some things.
>
> I'm looking this point now. I hope answer soon. Stay tuned... :-)

This would be great. Thanks.

> > > > If you have some extra time, please compile the new libs2 from CVS and
> > > > run "sdptest records ..." and/or "sdptest browse ..." for me.
>
> FYI: ltmain.sh is missing in the libs2 CVS. I have copyed the one from
> libs at this time.

You have to run bootstrap first and all needed files will be created.

> Results of sdptest records are attached. (browse is only a sub-set of
> the records, so I don't attach them).

This is what I expected, because the records command will also find the
hidden PNP record that is also present in the Microsoft devices. The HID
descriptors of the diNovo are now online available on my site.

Regards

Marcel




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2003-10-29 09:24:02

by Olivier Bornet

[permalink] [raw]
Subject: diNovo LT information

Hi Marcel,

> I am working on the design document of the HID parser userspace to
> kernel interface. My userspace bthid daemon is almost ready for daily
> use, but the modification of the USB HID parser will take some time. I
> am thinking of copying the needed HID stuff into an extra module.

I'm impatient to try this new userspace bthid daemon. :-)

> Is there any chance that you can tell Logitech to send some demo or beta
> devices to me for testing with Linux. I like to play with the devices to
> see how they have done some things.

I'm looking this point now. I hope answer soon. Stay tuned... :-)

> > > If you have some extra time, please compile the new libs2 from CVS and
> > > run "sdptest records ..." and/or "sdptest browse ..." for me.

FYI: ltmain.sh is missing in the libs2 CVS. I have copyed the one from
libs at this time.

Results of sdptest records are attached. (browse is only a sub-set of
the records, so I don't attach them).

Good day.

Olivier
--
Olivier Bornet http://www.smartdata.ch/
[email protected] SMARTDATA SA
GPG key ID: C53D9218 CH Martigny/Lausanne


Attachments:
(No filename) (0.00 B)
(No filename) (189.00 B)
Download all attachments

2003-10-29 00:16:45

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] MS Wireless keyboard scans remapping

Hi Olivier,

> > this is another reason, why we should reuse the USB HID parser for the
> > Bluetooth keyboards and mice ;)
>
> I agree with you. I'm ready to test/help on this way when you will have
> someting in progress.

I am working on the design document of the HID parser userspace to
kernel interface. My userspace bthid daemon is almost ready for daily
use, but the modification of the USB HID parser will take some time. I
am thinking of copying the needed HID stuff into an extra module.

> > So you have the new diNovo. I am interested in the "hcitool info ..."
>
> Please note the one I have is a "Beta Release". The real diNovo from the
> market may differ.

At the moment I am colleting all information of Bluetooth HID devices. I
have worked with the old Logitech Presenter the Microsoft Desktop (with
an UK layout). You can find my notes about the current devices on

http://www.holtmann.org/linux/bluetooth/hid.html

Is there any chance that you can tell Logitech to send some demo or beta
devices to me for testing with Linux. I like to play with the devices to
see how they have done some things.

> > output from the devices and the "hciconfig -a" from the Bluetooth hub.
>
> This is not possible at this time. The reason is that the Bluetooth hub
> is now working as a usb hub. I can't switch it to Bluetooth mode,
> because I don't have the necessary tools on Linux for this. This tool
> exist, but on another OS... And I don't use this other OS. Of course, if
> you think there is a simple way to switch from "usb hub" to "bluetooth
> hub", let me know.
>
> At this time, I use another bluetooth dongle for connection the
> mouse/keyboard/mediapad. But I'm also really interested to have the
> Logitech bluetooth hub working as bluetooth hub.

This is part of the HID proxy stuff and we should really have a tool to
do this for Linux, too. We should sniff the URB communication of that
tool under Windows ;)

> > If you have some extra time, please compile the new libs2 from CVS and
> > run "sdptest records ..." and/or "sdptest browse ..." for me.
>
> Maybe tomorow... Too late now.

Would be very nice, because the HID descriptor is included in the SDP
records and the libs2 generation can show you some more nice things.
Please pipe that into a file and send them as attachments.

> The hub is seen as "USB Receiver" in usbview. Here is the full
> /proc/bus/usb/devices informations (many usb devices connected, sorry):
>
> bol@delta:~$ cat /proc/bus/usb/devices
> T: Bus=03 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#= 3 Spd=1.5 MxCh= 0
> D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
> P: Vendor=046d ProdID=c703 Rev=99.12
> S: Manufacturer=Logitech
> S: Product=USB Receiver
> S: SerialNumber=0403D3
> C:* #Ifs= 2 Cfg#= 1 Atr=a0 MxPwr= 98mA
> I: If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=01 Prot=01 Driver=usbkbd
> E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=10ms
> I: If#= 1 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=01 Prot=02 Driver=(none)
> E: Ad=82(I) Atr=03(Int.) MxPS= 8 Ivl=10ms

This is the HID proxy mode ;)

> > Do this one really support HID proxy from CSR?
>
> Hummm. Don't event know what this is. Can you explain this to me ?

The HID proxy firmware from CSR can run on a Bluetooth chip and present
them as a USB HID device or as a Bluetooth H:2 device. If you are in the
Bluetooth H:2 mode, you need a Bluetooth stack on your host and support
for the HID profile to work with your mouse or keyboard. If you are in
USB HID mode, the Bluetooth device itself will keep track of the HID
connection to your Bluetooth keyboard and mouse. And this is called HID
proxy, because in this mode it is possible to work with your Bluetooth
keyboard at BIOS stage.

The little USB stick from the Logitech Presenter for example is a USB
HID <-> Bluetooth HID converter and you can also make it work with the
Microsoft Bluetooth Mouse. But on your host side you need only support
for USB HID.

Regards

Marcel




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2003-10-28 23:23:35

by Olivier Bornet

[permalink] [raw]
Subject: Re: [Bluez-users] MS Wireless keyboard scans remapping

Hi Marcel,

On Tue, Oct 28, 2003 at 07:34:40PM +0100, Marcel Holtmann wrote:
> this is another reason, why we should reuse the USB HID parser for the
> Bluetooth keyboards and mice ;)

I agree with you. I'm ready to test/help on this way when you will have
someting in progress.

> So you have the new diNovo. I am interested in the "hcitool info ..."

Please note the one I have is a "Beta Release". The real diNovo from the
market may differ.

For the mouse:

bol@delta:~$ hcitool info 00:07:61:04:1E:BD
Requesting information ...
BD Address: 00:07:61:04:1E:BD
Device Name: Logitech Bluetooth Mouse
LMP Version: 1.1 (0x1) LMP Subversion: 0x350
Manufacturer: Cambridge Silicon Radio (10)
Features: 0xff 0xff 0x0f 0x00
<3-slot packets> <5-slot packets> <encryption> <slot offset>
<timing accuracy> <role switch> <hold mode> <sniff mode>
<park mode> <RSSI> <channel quality> <SCO link>
<HV2 packets> <HV3 packets> <u-law log> <A-law log>
<CVSD> <paging scheme> <power control> <transparent SCO>

For the keyboard:

bol@delta:~$ hcitool info 00:07:61:04:21:30
Requesting information ...
BD Address: 00:07:61:04:21:30
Device Name: Logitech Bluetooth Keyboard
LMP Version: 1.1 (0x1) LMP Subversion: 0x350
Manufacturer: Cambridge Silicon Radio (10)
Features: 0xff 0xff 0x0f 0x00
<3-slot packets> <5-slot packets> <encryption> <slot offset>
<timing accuracy> <role switch> <hold mode> <sniff mode>
<park mode> <RSSI> <channel quality> <SCO link>
<HV2 packets> <HV3 packets> <u-law log> <A-law log>
<CVSD> <paging scheme> <power control> <transparent SCO>

For the Mediapad:

bol@delta:~$ sudo hcitool info 00:07:61:04:1D:35
Checking smart card key...
Requesting information ...
BD Address: 00:07:61:04:1D:35
Device Name: Logitech Bluetooth Mediapad
LMP Version: 1.1 (0x1) LMP Subversion: 0x350
Manufacturer: Cambridge Silicon Radio (10)
Features: 0xfc 0xff 0x0f 0x00
<encryption> <slot offset> <timing accuracy> <role switch>
<hold mode> <sniff mode> <park mode> <RSSI>
<channel quality> <SCO link> <HV2 packets> <HV3 packets>
<u-law log> <A-law log> <CVSD> <paging scheme>
<power control> <transparent SCO>

> output from the devices and the "hciconfig -a" from the Bluetooth hub.

This is not possible at this time. The reason is that the Bluetooth hub
is now working as a usb hub. I can't switch it to Bluetooth mode,
because I don't have the necessary tools on Linux for this. This tool
exist, but on another OS... And I don't use this other OS. Of course, if
you think there is a simple way to switch from "usb hub" to "bluetooth
hub", let me know.

At this time, I use another bluetooth dongle for connection the
mouse/keyboard/mediapad. But I'm also really interested to have the
Logitech bluetooth hub working as bluetooth hub.

> If you have some extra time, please compile the new libs2 from CVS and
> run "sdptest records ..." and/or "sdptest browse ..." for me.

Maybe tomorow... Too late now.

> Please also include a "hcitool inq" for them, so I can see what class
> of device they are using.

bol@delta:~$ hcitool inq
Inquiring ...
00:07:61:04:1D:35 clock offset: 0x435f class: 0x002540
00:07:61:04:1E:BD clock offset: 0x7a9d class: 0x002580
00:07:61:04:21:30 clock offset: 0x6f6e class: 0x002540
bol@delta:~$ hcitool scan
Scanning ...
00:07:61:04:1D:35 Logitech Bluetooth Mediapad
00:07:61:04:1E:BD Logitech Bluetooth Mouse
00:07:61:04:21:30 Logitech Bluetooth Keyboard

> What is the content of /proc/bus/usb/devices with the Bluetooth hub
> attached.

The hub is seen as "USB Receiver" in usbview. Here is the full
/proc/bus/usb/devices informations (many usb devices connected, sorry):

bol@delta:~$ cat /proc/bus/usb/devices
T: Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc=129/900 us (14%), #Int= 2, #Iso= 0
D: Ver= 1.00 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 0.00
S: Product=USB UHCI Root Hub
S: SerialNumber=b000
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=255ms
T: Bus=03 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=12 MxCh= 2
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0451 ProdID=2036 Rev= 1.01
S: Product=General Purpose USB Hub
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 1 Ivl=255ms
T: Bus=03 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#= 3 Spd=1.5 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=046d ProdID=c703 Rev=99.12
S: Manufacturer=Logitech
S: Product=USB Receiver
S: SerialNumber=0403D3
C:* #Ifs= 2 Cfg#= 1 Atr=a0 MxPwr= 98mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=01 Prot=01 Driver=usbkbd
E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=10ms
I: If#= 1 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=01 Prot=02 Driver=(none)
E: Ad=82(I) Atr=03(Int.) MxPS= 8 Ivl=10ms
T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 27/900 us ( 3%), #Int= 1, #Iso= 1
D: Ver= 1.00 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 0.00
S: Product=USB UHCI Root Hub
S: SerialNumber=b400
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=255ms
T: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=12 MxCh= 0
D: Ver= 1.10 Cls=e0(unk. ) Sub=01 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=0a12 ProdID=0001 Rev= 5.25
C:* #Ifs= 3 Cfg#= 1 Atr=c0 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 3 Cls=e0(unk. ) Sub=01 Prot=01 Driver=hci_usb
E: Ad=81(I) Atr=03(Int.) MxPS= 16 Ivl=1ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=82(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
I: If#= 1 Alt= 0 #EPs= 2 Cls=e0(unk. ) Sub=01 Prot=01 Driver=hci_usb
E: Ad=03(O) Atr=01(Isoc) MxPS= 0 Ivl=1ms
E: Ad=83(I) Atr=01(Isoc) MxPS= 0 Ivl=1ms
I: If#= 1 Alt= 1 #EPs= 2 Cls=e0(unk. ) Sub=01 Prot=01 Driver=hci_usb
E: Ad=03(O) Atr=01(Isoc) MxPS= 9 Ivl=1ms
E: Ad=83(I) Atr=01(Isoc) MxPS= 9 Ivl=1ms
I: If#= 1 Alt= 2 #EPs= 2 Cls=e0(unk. ) Sub=01 Prot=01 Driver=hci_usb
E: Ad=03(O) Atr=01(Isoc) MxPS= 17 Ivl=1ms
E: Ad=83(I) Atr=01(Isoc) MxPS= 17 Ivl=1ms
I: If#= 1 Alt= 3 #EPs= 2 Cls=e0(unk. ) Sub=01 Prot=01 Driver=hci_usb
E: Ad=03(O) Atr=01(Isoc) MxPS= 25 Ivl=1ms
E: Ad=83(I) Atr=01(Isoc) MxPS= 25 Ivl=1ms
I: If#= 1 Alt= 4 #EPs= 2 Cls=e0(unk. ) Sub=01 Prot=01 Driver=hci_usb
E: Ad=03(O) Atr=01(Isoc) MxPS= 33 Ivl=1ms
E: Ad=83(I) Atr=01(Isoc) MxPS= 33 Ivl=1ms
I: If#= 1 Alt= 5 #EPs= 2 Cls=e0(unk. ) Sub=01 Prot=01 Driver=hci_usb
E: Ad=03(O) Atr=01(Isoc) MxPS= 49 Ivl=1ms
E: Ad=83(I) Atr=01(Isoc) MxPS= 49 Ivl=1ms
I: If#= 2 Alt= 0 #EPs= 0 Cls=fe(app. ) Sub=01 Prot=00 Driver=(none)
T: Bus=02 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#= 3 Spd=1.5 MxCh= 0
D: Ver= 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=046d ProdID=c208 Rev= 1.03
S: Manufacturer=Logitech Inc.
S: Product=WingMan Gamepad Extreme
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr= 40mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=00 Prot=00 Driver=hid
E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=8ms
T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.00 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 0.00
S: Product=USB UHCI Root Hub
S: SerialNumber=b800
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=255ms
T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 4 Spd=12 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=03f0 ProdID=3c02 Rev= 1.00
S: Manufacturer=hp
S: Product=photosmart 7350
S: SerialNumber=MY246140QJ2E
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 2mA
I: If#= 0 Alt= 0 #EPs= 2 Cls=07(print) Sub=01 Prot=03 Driver=usblp
E: Ad=01(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=81(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
I: If#= 0 Alt= 1 #EPs= 2 Cls=07(print) Sub=01 Prot=02 Driver=usblp
E: Ad=01(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=81(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
T: Bus=01 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#= 3 Spd=12 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0403 ProdID=6001 Rev= 2.00
S: Manufacturer=FTDI
S: Product=USB FAST SERIAL ADAPTER
S: SerialNumber=FTAPJVEU
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr= 44mA
I: If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=serial
E: Ad=81(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms

> Do this one really support HID proxy from CSR?

Hummm. Don't event know what this is. Can you explain this to me ?

Good day^H^H^Hnight.

Olivier
--
Olivier Bornet http://www.smartdata.ch/
[email protected] SMARTDATA SA
GPG key ID: C53D9218 CH Martigny/Lausanne


Attachments:
(No filename) (9.16 kB)
(No filename) (189.00 B)
Download all attachments

2003-10-28 20:14:03

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] MS Wireless keyboard scans remapping

Hi Michal,

> Don't remember support these keys :)
>
> Stand by
> > ACL data: handle 0x0029 flags 0x02 dlen 7
> L2CAP(d): cid 0x41 len 3 [psm 0]
> A1 03 02
>
> Functionkey F
> > ACL data: handle 0x0029 flags 0x02 dlen 7
> L2CAP(d): cid 0x41 len 3 [psm 0]
> A1 05 03
>
> windows key opens properties
> > ACL data: handle 0x0029 flags 0x02 dlen 14
> L2CAP(d): cid 0x41 len 10 [psm 0]
> A1 01 00 00 65 00 00 00 00 00
>
>
> colona key |
> > ACL data: handle 0x0029 flags 0x02 dlen 14
> L2CAP(d): cid 0x41 len 10 [psm 0]
> A1 01 00 00 32 00 00 00 00 00
>
> other key in german version marked like criminal key #
> > ACL data: handle 0x0029 flags 0x02 dlen 14
> L2CAP(d): cid 0x41 len 10 [psm 0]
> A1 01 00 00 64 00 00 00 00 00

actually I don't care about these data, because the HID descriptor
defines what the keyboard supports and what not. If we reuse the USB HID
parser this should work out of the box. If not, the HID parser is broken
and we have to fix it.

Regards

Marcel




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2003-10-28 20:05:53

by CIJOML

[permalink] [raw]
Subject: Re: [Bluez-users] MS Wireless keyboard scans remapping

Dne =FAt 28. =F8=EDjna 2003 19:34 Marcel Holtmann napsal(a):
> Hi Olivier,
>
> > > my keyboard works now fine, but I found keys which doesn't. Looks like
> > > MS changed scan codes for them.
> >
> > I have had this kind of problem with a Logitech diNovo Media Desktop
> > (http://www.logitech.com/bluetooth/). My main problems where that some
> > keys are not mapped correctly in the bthid-0.6 of Peter, and the code
> > for the mouse buttons is not OK. (at least with my Logitech Bluetooth
> > mouse).
> >
> > The problem with the keys is that my keyboard is a swiss french one, and
> > the code of Peter has some keys missing. I have take the mapping from
> > the USB driver, and it is now working great. :-)
> >
> > I have send my patches to Peter, but I have receive no answer. So, I
> > have attached my previous email to him. Try the patches to see if this
> > correct also your problem.
>
> this is another reason, why we should reuse the USB HID parser for the
> Bluetooth keyboards and mice ;)

Hi Marcel,

Don't remember support these keys :)

Stand by
> ACL data: handle 0x0029 flags 0x02 dlen 7
L2CAP(d): cid 0x41 len 3 [psm 0]
A1 03 02

=46unctionkey F
> ACL data: handle 0x0029 flags 0x02 dlen 7
L2CAP(d): cid 0x41 len 3 [psm 0]
A1 05 03

windows key opens properties
> ACL data: handle 0x0029 flags 0x02 dlen 14
L2CAP(d): cid 0x41 len 10 [psm 0]
A1 01 00 00 65 00 00 00 00 00


colona key |
> ACL data: handle 0x0029 flags 0x02 dlen 14
L2CAP(d): cid 0x41 len 10 [psm 0]
A1 01 00 00 32 00 00 00 00 00

other key in german version marked like criminal key #=20
> ACL data: handle 0x0029 flags 0x02 dlen 14
L2CAP(d): cid 0x41 len 10 [psm 0]
A1 01 00 00 64 00 00 00 00 00

Michal

2003-10-28 18:34:40

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] MS Wireless keyboard scans remapping

Hi Olivier,

> > my keyboard works now fine, but I found keys which doesn't. Looks like MS
> > changed scan codes for them.
>
> I have had this kind of problem with a Logitech diNovo Media Desktop
> (http://www.logitech.com/bluetooth/). My main problems where that some
> keys are not mapped correctly in the bthid-0.6 of Peter, and the code
> for the mouse buttons is not OK. (at least with my Logitech Bluetooth
> mouse).
>
> The problem with the keys is that my keyboard is a swiss french one, and
> the code of Peter has some keys missing. I have take the mapping from
> the USB driver, and it is now working great. :-)
>
> I have send my patches to Peter, but I have receive no answer. So, I
> have attached my previous email to him. Try the patches to see if this
> correct also your problem.

this is another reason, why we should reuse the USB HID parser for the
Bluetooth keyboards and mice ;)

So you have the new diNovo. I am interested in the "hcitool info ..."
output from the devices and the "hciconfig -a" from the Bluetooth hub.
If you have some extra time, please compile the new libs2 from CVS and
run "sdptest records ..." and/or "sdptest browse ..." for me. Please
also include a "hcitool inq" for them, so I can see what class of device
they are using. What is the content of /proc/bus/usb/devices with the
Bluetooth hub attached. Do this one really support HID proxy from CSR?

Regards

Marcel




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2003-10-28 10:39:09

by Gareth Reakes

[permalink] [raw]
Subject: Re: [Bluez-users] MS Wireless keyboard scans remapping

Hi,
I made a patch for the keyboard to work with UK key bindings. I
cant get to it until tonight, but it should help you. It defintely fixes
the ! character.

Gareth

On Tue, 28 Oct 2003, Michal Semler (volny.cz) wrote:

> Hi,
>
> my keyboard works now fine, but I found keys which doesn't. Looks like MS
> changed scan codes for them.
>
> How can I get these events from keys and put them unto hid.c of bthid package?
> Keys which doesn't works are:
>
> Stand by
> Functionkey F
> windows key opens properties
> colona key |
> other key in german version marked like criminal key #
>
> Thanks very much for hinting, coz colona is one of the most used key in Linux
> :))
>
> Michal
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: The SF.net Donation Program.
> Do you like what SourceForge.net is doing for the Open
> Source Community? Make a contribution, and help us add new
> features and functionality. Click here: http://sourceforge.net/donate/
> _______________________________________________
> Bluez-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bluez-users
>


-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community? Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2003-10-28 08:40:18

by Olivier Bornet

[permalink] [raw]
Subject: Re: [Bluez-users] MS Wireless keyboard scans remapping

Hello,

> my keyboard works now fine, but I found keys which doesn't. Looks like MS
> changed scan codes for them.

I have had this kind of problem with a Logitech diNovo Media Desktop
(http://www.logitech.com/bluetooth/). My main problems where that some
keys are not mapped correctly in the bthid-0.6 of Peter, and the code
for the mouse buttons is not OK. (at least with my Logitech Bluetooth
mouse).

The problem with the keys is that my keyboard is a swiss french one, and
the code of Peter has some keys missing. I have take the mapping from
the USB driver, and it is now working great. :-)

I have send my patches to Peter, but I have receive no answer. So, I
have attached my previous email to him. Try the patches to see if this
correct also your problem.

Good day.

Olivier
--
Olivier Bornet http://www.smartdata.ch/
[email protected] SMARTDATA SA
GPG key ID: C53D9218 CH Martigny/Lausanne


Attachments:
(No filename) (0.00 B)
(No filename) (189.00 B)
Download all attachments