HIDP backport for 2.4
Subsystems (3)
Marcel Holtmann
maintainerHi Folks,
attached is a backport patch of the HIDP support from 2.6.8-rc1 for the 2.4 kernel series. I didn't tested this patch with any of my systems. I only know that it compiles clean. So test this with the hidd daemon from the bluez-utils-2.8 package.
Regards
Marcel
===== CREDITS 1.94 vs edited =====
CREDITS +1 -0
@@ -1348,6 +1348,7 @@ D: Maintainer of the Linux Bluetooth Subsystem D: Author and maintainer of the various Bluetooth HCI drivers D: Author and maintainer of the CAPI message transport protocol driver +D: Author and maintainer of the Bluetooth HID protocol driver D: Various other Bluetooth related patches, cleanups and fixes S: Germany
===== MAINTAINERS 1.139 vs edited =====
MAINTAINERS +5 -0
@@ -357,6 +357,11 @@ M: [email protected] S: Maintained +BLUETOOTH HIDP LAYER +P: Marcel Holtmann +M: [email protected] +S: Maintained + BLUETOOTH HCI UART DRIVER P: Marcel Holtmann M: [email protected]
===== Documentation/Configure.help 1.258 vs edited =====
Documentation/Configure.help +10 -0
@@ -23158,6 +23158,7 @@ RFCOMM Module (RFCOMM Protocol) BNEP Module (Bluetooth Network Encapsulation Protocol) CMTP Module (CAPI Message Transport Protocol) + HIDP Module (Human Interface Device Protocol) Say Y here to compile Bluetooth support into the kernel or say M to compile it as module (bluez.o).
@@ -23222,6 +23223,15 @@ Say Y here to compile CMTP support into the kernel or say M to compile it as module (cmtp.o). + +HIDP protocol support +CONFIG_BLUEZ_HIDP + HIDP (Human Interface Device Protocol) is a transport layer + for HID reports. HIDP is required for the Bluetooth Human + Interface Device Profile. + + Say Y here to compile HIDP support into the kernel or say M to + compile it as module (hidp.o). HCI UART driver CONFIG_BLUEZ_HCIUART
===== arch/sparc64/kernel/ioctl32.c 1.48 vs edited =====
arch/sparc64/kernel/ioctl32.c +9 -0
@@ -4322,6 +4322,11 @@#define CMTPGETCONNLIST _IOR('C', 210, int)#define CMTPGETCONNINFO _IOR('C', 211, int) +#define HIDPCONNADD _IOW('H', 200, int) +#define HIDPCONNDEL _IOW('H', 201, int) +#define HIDPGETCONNLIST _IOR('H', 210, int) +#define HIDPGETCONNINFO _IOR('H', 211, int) +struct ioctl_trans {unsigned int cmd;unsigned int handler;
@@ -5050,6 +5055,10 @@ COMPATIBLE_IOCTL(CMTPCONNDEL) COMPATIBLE_IOCTL(CMTPGETCONNLIST) COMPATIBLE_IOCTL(CMTPGETCONNINFO) +COMPATIBLE_IOCTL(HIDPCONNADD) +COMPATIBLE_IOCTL(HIDPCONNDEL) +COMPATIBLE_IOCTL(HIDPGETCONNLIST) +COMPATIBLE_IOCTL(HIDPGETCONNINFO) /* Scanner */ COMPATIBLE_IOCTL(SCANNER_IOCTL_VENDOR) COMPATIBLE_IOCTL(SCANNER_IOCTL_PRODUCT)
===== net/bluetooth/Config.in 1.6 vs edited =====
net/bluetooth/Config.in +1 -0
@@ -14,6 +14,7 @@ source net/bluetooth/rfcomm/Config.in source net/bluetooth/bnep/Config.in source net/bluetooth/cmtp/Config.in + source net/bluetooth/hidp/Config.in source drivers/bluetooth/Config.in fi
===== net/bluetooth/Makefile 1.7 vs edited =====
net/bluetooth/Makefile +9 -0
@@ -16,6 +16,7 @@ subdir-$(CONFIG_BLUEZ_RFCOMM) += rfcomm subdir-$(CONFIG_BLUEZ_BNEP) += bnep subdir-$(CONFIG_BLUEZ_CMTP) += cmtp +subdir-$(CONFIG_BLUEZ_HIDP) += hidp ifeq ($(CONFIG_BLUEZ_RFCOMM),y) obj-y += rfcomm/rfcomm.o
@@ -23,6 +24,14 @@ ifeq ($(CONFIG_BLUEZ_BNEP),y) obj-y += bnep/bnep.o +endif + +ifeq ($(CONFIG_BLUEZ_CMTP),y) +obj-y += cmtp/cmtp.o +endif + +ifeq ($(CONFIG_BLUEZ_HIDP),y) +obj-y += hidp/hidp.o endif include $(TOPDIR)/Rules.make
===== net/bluetooth/hidp/Config.in 1.1 vs edited =====
net/bluetooth/hidp/Config.in +5 -0
@@ -0,0 +1,5 @@ +# +# Bluetooth HIDP layer configuration +# + +dep_tristate 'HIDP protocol support' CONFIG_BLUEZ_HIDP $CONFIG_INPUT $CONFIG_BLUEZ_L2CAP
===== net/bluetooth/hidp/Makefile 1.1 vs edited =====
net/bluetooth/hidp/Makefile +10 -0
@@ -0,0 +1,10 @@ +# +# Makefile for the Linux Bluetooth HIDP layer +# + +O_TARGET := hidp.o + +obj-y := core.o sock.o +obj-m += $(O_TARGET) + +include $(TOPDIR)/Rules.make
===== net/bluetooth/hidp/core.c 1.1 vs edited =====
net/bluetooth/hidp/core.c +653 -0
653 lines not on this page · raw message
===== net/bluetooth/hidp/hidp.h 1.1 vs edited =====
net/bluetooth/hidp/hidp.h +122 -0
122 lines not on this page · raw message
===== net/bluetooth/hidp/sock.c 1.1 vs edited =====
net/bluetooth/hidp/sock.c +212 -0
212 lines not on this page · raw message
Marcel Holtmann
maintainerHi again,
Quoted 4 lines
attached is a backport patch of the HIDP support from 2.6.8-rc1 for the 2.4 kernel series. I didn't tested this patch with any of my systems. I only know that it compiles clean. So test this with the hidd daemon from the bluez-utils-2.8 package.
I got no feedback on the HIDP patch for the 2.4 kernel series. Should I assume that there is no interest in it?
Regards
Marcel
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Bluez-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Marcel,
I am interested. However I have not had time to apply and test the patch.
Michael
Quoted 26 lines · Marcel Holtmann
Hi again,
Quoted 4 lines
attached is a backport patch of the HIDP support from 2.6.8-rc1 for the 2.4 kernel series. I didn't tested this patch with any of my systems. I only know that it compiles clean. So test this with the hidd daemon from the bluez-utils-2.8 package.
I got no feedback on the HIDP patch for the 2.4 kernel series. Should I assume that there is no interest in it?
Regards
Marcel
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Bluez-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Marcel,
I get the following build errors. I am using MontaVista Linux 2.4.20
In file included from core.c:46:
hidp.h:72: warning: no semicolon at end of struct or union hidp.h:72: error: parse error before '*' token core.c: In function `hidp_session':
core.c:344: error: structure has no member named nice' core.c: In function hidp_get_connlist':
core.c:598: error: dereferencing pointer to incomplete type core.c:603: error: dereferencing pointer to incomplete type core.c:606: error: dereferencing pointer to incomplete type core.c:608: error: dereferencing pointer to incomplete type
Any ideas?
Michael
Quoted 26 lines · Marcel Holtmann
Hi again,
Quoted 4 lines
attached is a backport patch of the HIDP support from 2.6.8-rc1 for the 2.4 kernel series. I didn't tested this patch with any of my systems. I only know that it compiles clean. So test this with the hidd daemon from the bluez-utils-2.8 package.
I got no feedback on the HIDP patch for the 2.4 kernel series. Should I assume that there is no interest in it?
Regards
Marcel
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Bluez-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Marcel Holtmann
maintainerHi Michael,
Quoted 5 lines
I get the following build errors. I am using MontaVista Linux 2.4.20
In file included from core.c:46:
hidp.h:72: warning: no semicolon at end of struct or union hidp.h:72: error: parse error before '*' token
this one is easy. Remove the __user from that line. It is only useful in a 2.6 kernel.
Quoted 2 lines
core.c: In function `hidp_session':
core.c:344: error: structure has no member named `nice'
Remove that line and try again. Maybe the MontaVista kernel has a special backport.
Quoted 5 lines
core.c: In function `hidp_get_connlist':
core.c:598: error: dereferencing pointer to incomplete type core.c:603: error: dereferencing pointer to incomplete type core.c:606: error: dereferencing pointer to incomplete type core.c:608: error: dereferencing pointer to incomplete type
These are related to error number one.
Regards
Marcel
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Bluez-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Marcel,
ok -- got past those -- now here are some more.
sock.c: In function `hidp_sock_ioctl':
sock.c:84: warning: implicit declaration of function sockfd_lookup' sock.c:84: warning: assignment makes pointer from integer without a cast sock.c:88: warning: assignment makes pointer from integer without a cast sock.c: In function hidp_init_sockets':
sock.c:200: error: `BTPROTO_HIDP' undeclared (first use in this function) sock.c:200: error: (Each undeclared identifier is reported only once sock.c:200: error: for each function it appears in.)sock.c: In function `hidp_cleanup_sockets':
sock.c:210: error: `BTPROTO_HIDP' undeclared (first use in this function) make[3]: *** [sock.o] Error 1
Michael
Quoted 29 lines · Marcel Holtmann
Hi Michael,
Quoted 5 lines
I get the following build errors. I am using MontaVista Linux 2.4.20
In file included from core.c:46:
hidp.h:72: warning: no semicolon at end of struct or union hidp.h:72: error: parse error before '*' tokenthis one is easy. Remove the
__userfrom that line. It is only useful in a 2.6 kernel.Quoted 2 lines
core.c: In function `hidp_session':
core.c:344: error: structure has no member named `nice'Remove that line and try again. Maybe the MontaVista kernel has a special backport.
Quoted 5 lines
core.c: In function `hidp_get_connlist':
core.c:598: error: dereferencing pointer to incomplete type core.c:603: error: dereferencing pointer to incomplete type core.c:606: error: dereferencing pointer to incomplete type core.c:608: error: dereferencing pointer to incomplete typeThese are related to error number one.
Regards
Marcel
Marcel Holtmann
maintainerHi Michael,
Quoted 1 line
ok -- got past those -- now here are some more.
your kernel is a little bit outdated ;)
Quoted 4 lines
sock.c: In function `hidp_sock_ioctl':
sock.c:84: warning: implicit declaration of function `sockfd_lookup' sock.c:84: warning: assignment makes pointer from integer without a cast sock.c:88: warning: assignment makes pointer from integer without a cast
Copy sockfd_lookup() from net/bluetooth/bnep/core.c
Quoted 9 lines
sock.c: In function `hidp_init_sockets':
sock.c:200: error: `BTPROTO_HIDP' undeclared (first use in this function)
sock.c:200: error: (Each undeclared identifier is reported only once sock.c:200: error: for each function it appears in.)sock.c: In function `hidp_cleanup_sockets':
sock.c:210: error: `BTPROTO_HIDP' undeclared (first use in this function)
make[3]: *** [sock.o] Error 1
Here is a patch for that problem. It is already in the mainline tree.
diff -Nru a/include/net/bluetooth/bluetooth.hb/include/net/bluetooth/bluetooth.h
include/net/bluetooth/bluetooth.h 2004-07-26 20:15:15 +02:00 +1 -0
@@ -52,6 +52,7 @@ #define BTPROTO_RFCOMM 3 #define BTPROTO_BNEP 4 #define BTPROTO_CMTP 5 +#define BTPROTO_HIDP 6 #define SOL_HCI 0 #define SOL_L2CAP 6
net/bluetooth/af_bluetooth.c 2004-07-26 20:15:15 +02:00 +1 -1
@@ -57,7 +57,7 @@ #endif /* Bluetooth sockets */ -#define BLUEZ_MAX_PROTO 6 +#define BLUEZ_MAX_PROTO 7 static struct net_proto_family *bluez_proto[BLUEZ_MAX_PROTO]; int bluez_sock_register(int proto, struct net_proto_family *ops)
Regards
Marcel
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Bluez-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Marcel,
Thanks for the help. However I do not have sockfd_lookup() in net/bluetooth/bnep/core.c Am I that out of date? Is there a more recent patch I should apply?
Michael
Quoted 66 lines · Marcel Holtmann
Hi Michael,
Quoted 1 line
ok -- got past those -- now here are some more.
your kernel is a little bit outdated ;)
Quoted 4 lines
sock.c: In function `hidp_sock_ioctl':
sock.c:84: warning: implicit declaration of function `sockfd_lookup' sock.c:84: warning: assignment makes pointer from integer without a cast sock.c:88: warning: assignment makes pointer from integer without a castCopy
sockfd_lookup()fromnet/bluetooth/bnep/core.cQuoted 9 lines
sock.c: In function `hidp_init_sockets':
sock.c:200: error: `BTPROTO_HIDP' undeclared (first use in this function)
sock.c:200: error: (Each undeclared identifier is reported only once sock.c:200: error: for each function it appears in.)sock.c: In function `hidp_cleanup_sockets':
sock.c:210: error: `BTPROTO_HIDP' undeclared (first use in this function)
make[3]: *** [sock.o] Error 1Here is a patch for that problem. It is already in the mainline tree.
diff -Nru
a/include/net/bluetooth/bluetooth.hb/include/net/bluetooth/bluetooth.hinclude/net/bluetooth/bluetooth.h 2004-07-26 20:15:15 +02:00 +1
-0@@ -52,6 +52,7 @@ #define BTPROTO_RFCOMM 3 #define BTPROTO_BNEP 4 #define BTPROTO_CMTP 5 +#define BTPROTO_HIDP 6 #define SOL_HCI 0 #define SOL_L2CAP 6diff -Nru
a/net/bluetooth/af_bluetooth.cb/net/bluetooth/af_bluetooth.cnet/bluetooth/af_bluetooth.c 2004-07-26 20:15:15 +02:00 +1
-1@@ -57,7 +57,7 @@ #endif /* Bluetooth sockets */ -#define BLUEZ_MAX_PROTO 6 +#define BLUEZ_MAX_PROTO 7 static struct net_proto_family *bluez_proto[BLUEZ_MAX_PROTO]; int bluez_sock_register(int proto, struct net_proto_family *ops)Regards
Marcel
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Bluez-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Marcel Holtmann
maintainerHi Michael,
Quoted 2 lines
Thanks for the help. However I do not have
sockfd_lookup()innet/bluetooth/bnep/core.c
it should be present in any 2.4.20 kernel.
Quoted 1 line
Am I that out of date? Is there a more recent patch I should apply?
Your kernel is out of date, because I made the patch against the latest 2.4.27-rc3. Take another kernel source and simply copy that function.
Regards
Marcel
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Bluez-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Marcel,
ok, got it working. However -- when typing fast on my keyboard I get incorrect characters. This does not happen when using bthid. Also, my mouse does not work, where using bthid it does.
How should I go about debugging this?
Michael
Quoted 28 lines · Marcel Holtmann
Hi Michael,
Quoted 2 lines
Thanks for the help. However I do not have
sockfd_lookup()innet/bluetooth/bnep/core.cit should be present in any 2.4.20 kernel.
Quoted 1 line
Am I that out of date? Is there a more recent patch I should apply?
Your kernel is out of date, because I made the patch against the latest 2.4.27-rc3. Take another kernel source and simply copy that function.
Regards
Marcel
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Bluez-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Marcel Holtmann
maintainerHi Michael,
Quoted 3 lines
ok, got it working. However -- when typing fast on my keyboard I get incorrect characters. This does not happen when using bthid. Also, my mouse does not work, where using bthid it does.
try to add
input_event(dev, EV_RST, 0, 0);
at the end of hidp_input_report() and see if this helps out for your keyboard and mouse problems. What do "hidd -l" say after you have connected the devices? What devices do you use?
Regards
Marcel
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Bluez-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Quoted 9 lines · Marcel Holtmann
Hi Michael,
Quoted 3 lines
ok, got it working. However -- when typing fast on my keyboard I get incorrect characters. This does not happen when using bthid. Also, my mouse does not work, where using bthid it does.
try to add
input_event(dev, EV_RST, 0, 0);
This seems to help with the incorrect characters. But still no mouse.
Quoted 4 lines
at the end of
hidp_input_report()and see if this helps out for your keyboard and mouse problems. What do "hidd -l" say after you have connected the devices? What devices do you use?
root@(none):~# hidd -l 00:02:72:40:8A:97 HID Boot Device [0000:0000] connected
I am using a Keyboard with integrated mouse. So I guess it is technically one device. The mouse is a track ball embedded in the keyboard. The keyboard is made by BlueLogic.
Michael
Quoted 17 lines
Regards
Marcel
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Bluez-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Marcel Holtmann
maintainerHi Michael,
Quoted 10 lines
Quoted 3 lines
at the end of
hidp_input_report()and see if this helps out for your keyboard and mouse problems. What do "hidd -l" say after you have connected the devices? What devices do you use?root@(none):~# hidd -l 00:02:72:40:8A:97 HID Boot Device [0000:0000] connectedI am using a Keyboard with integrated mouse. So I guess it is technically one device. The mouse is a track ball embedded in the keyboard. The keyboard is made by BlueLogic.
you should have said this earlier. Do you have a website for me? I need more information about this device. Please use sdptest from libs2 CVS repository to get the SDP record.
./sdptest records 00:xx:xx:xx:xx:xx > sdp_record.txt
Send me that file. I also need the information from "hcitool inq" and from "hcitool info" for that device.
Regards
Marcel
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Bluez-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Marcel,
Here we go:
root@(none):/usr/bin# hcitool inq
Inquiring ...
00:02:72:40:8A:97 clock offset: 0x4a58 class: 0x002540root@(none):/usr/bin# hcitool info 00:02:72:40:8A:97
Requesting information ...
bcsp_timed_event: Timeout, retransmitting 1 pkts
BD Address: 00:02:72:40:8A:97
Device Name: BlueLogic Keyboard
LMP Version: 1.1 (0x1) LMP Subversion: 0x1a5
Manufacturer: Cambridge Silicon Radio (10)
Features: 0xff 0xff 0x0f 0x00 0x00 0x00 0x00 0x00
<3-slot packets> <5-slot packets> <encryption> <slot
offset>
<timing accuracy> <role switch> <hold mode> <sniff mode>
<park state> <RSSI> <channel quality> <SCO link> <HV2
packets>
<HV3 packets> <u-law log> <A-law log> <CVSD> <paging
scheme>
<power control> <transparent SCO>The website is http://www.bluelogic.co.kr/main_eng.php
I have attached the sdp records file.
Michael
Sequence
Attribute 0x0000 - Service record handle UINT32 0x00010000 Attribute 0x0001 - Service class ID list Sequence UUID16 0x1124 - Human Interface Device Service Attribute 0x0004 - Protocol descriptor list Sequence Sequence UUID16 0x0100 - L2CAP UINT16 0x0011 Sequence UUID16 0x0011 - HIDP Attribute 0x0006 - Language base attribute ID list Sequence UINT16 0x656e UINT16 0x006a UINT16 0x0100 Attribute 0x0009 - Bluetooth profile descriptor list Sequence Sequence UUID16 0x0011 - HIDP UINT16 0x0100 Attribute 0x000d - Additional protocol descriptor lists Sequence Sequence UUID16 0x0100 - L2CAP UINT16 0x0013 Sequence UUID16 0x0011 - HIDP Attribute 0x0200 UINT16 0x0100 Attribute 0x0201 UINT16 0x0111 Attribute 0x0202 UINT8 0x40 Attribute 0x0203 UINT8 0x21 Attribute 0x0204 Bool True Attribute 0x0205 Bool True Attribute 0x0206 Sequence Sequence UINT8 0x22 String 05 01 09 06 a1 01 85 01 05 07 19 e0 29 e7 15 00 25 01 75 01 95 08 81 02 95 01 75 08 81 01 95 05 75 01 05 08 19 01 29 05 91 02 95 01 75 03 91 01 95 05 75 08 15 00 25 65 05 07 19 00 29 ff 81 00 c0 05 01 09 02 a1 01 85 02 09 01 a1 00 05 09 19 01 29 03 15 00 25 01 95 03 75 01 81 02 95 01 75 05 81 01 05 01 09 30 09 31 09 38 15 81 25 7f 95 03 75 08 81 06 c0 c0 05 0c 09 01 a1 01 85 03 15 00 25 01 09 e9 09 ea 75 01 95 02 81 02 95 06 81 01 c0 05 01 09 80 a1 01 85 04 19 81 29 83 15 00 25 01 75 01 95 03 81 02 75 05 95 01 81 01 c0 05 0c 09 01 a1 01 85 05 95 08 75 01 15 00 25 01 0a 93 01 0a cd 00 0a b7 00 0a e2 00 0a ea 00 0a e9 00 0a 2a 02 0a 23 02 81 02 05 0c 0a 27 02 0a 8a 01 0a 26 02 15 00 25 01 95 03 75 01 81 02 95 05 75 01 81 01 c0 Attribute 0x0207 Sequence Sequence UINT16 0x0309 UINT16 0x0100 Attribute 0x0208 Bool False Attribute 0x0209 Bool True Attribute 0x020a Bool True Attribute 0x020b UINT16 0x0100 Attribute 0x020c UINT16 0x1f40 Attribute 0x020d Bool False Attribute 0x020e Bool True
Quoted 26 lines · Marcel Holtmann
Hi Michael,
Quoted 10 lines
Quoted 3 lines
at the end of
hidp_input_report()and see if this helps out for your keyboard and mouse problems. What do "hidd -l" say after you have connected the devices? What devices do you use?root@(none):~# hidd -l 00:02:72:40:8A:97 HID Boot Device [0000:0000] connectedI am using a Keyboard with integrated mouse. So I guess it is technically one device. The mouse is a track ball embedded in the keyboard. The keyboard is made by BlueLogic.
you should have said this earlier. Do you have a website for me? I need more information about this device. Please use sdptest from libs2 CVS repository to get the SDP record.
./sdptest records 00:xx:xx:xx:xx:xx > sdp_record.txt
Send me that file. I also need the information from "hcitool inq" and from "hcitool info" for that device.
Regards
Marcel
Marcel Holtmann
maintainerHi Michael,
Quoted 3 lines
root@(none):/usr/bin# hcitool inq
Inquiring ...
00:02:72:40:8A:97 clock offset: 0x4a58 class: 0x002540the subclass value is 0x40 which means that this is only a keyboard. The problem can be that they really only support the keyboard in boot mode or that they simply set the subclass value wrong. If the kernel things that this is only a keyboard it don't creates a mouse device. Try this patch for the hidd to tell the kernel it is also a mouse:
RCS file: /cvsroot/bluez/utils/hidd/sdp.c,v
retrieving revision 1.4
sdp.c 27 Jul 2004 15:17:34 -0000 renamed from sdp.c 4 Jul 2004 15:41:53 -0000 1.4 +1 -0
@@ -126,6 +126,7 @@ pdlist = sdp_data_get(rec, 0x0202); req->subclass = pdlist ? pdlist->val.uint8 : 0; + req->subclass = 0x40 | 0x80; pdlist = sdp_data_get(rec, 0x0203); req->country = pdlist ? pdlist->val.uint8 : 0;
To check what is really going on run "hcidump -x" as root and use the mouse.
Do you ever checked if 2.6.7-mh2 is working for you?
Quoted 1 line
The website is http://www.bluelogic.co.kr/main_eng.php
Will anyone buy one of these for me so I get one for testing?
Regards
Marcel
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Bluez-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
A message that is not in the archive (sent off-list or not yet received): [email protected]
Marcel Holtmann
maintainerHi Michael,
Quoted 4 lines
That worked.. I can now use both mouse and keyboard.
You asked if I tried 2.6.7-mh2. I assume you mean the back-ported patch? If so, that is what I am using.
I've now put out another bunch of -mh patches for the 2.4 series. They include all updates and also the HIDP support. May you wanna try them out. Besides this the hidd from bluez-utils-2.9 got an extra option --subclass for overriding the subclass value.
Regards
Marcel
-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Marcel,
OK -- I am using the new patches and all is well except for one thing. My keyboard seems to not be able to re-connect after it goes to sleep about 5 times. It is almost like connections are left open and the hidd server does not allow the keyboard to re-connect.
The only way I get it back is to restart hidd.
Any ideas?
Michael
Quoted 28 lines · Marcel Holtmann
Hi Michael,
Quoted 4 lines
That worked.. I can now use both mouse and keyboard.
You asked if I tried 2.6.7-mh2. I assume you mean the back-ported patch? If so, that is what I am using.
I've now put out another bunch of -mh patches for the 2.4 series. They include all updates and also the HIDP support. May you wanna try them out. Besides this the hidd from bluez-utils-2.9 got an extra option --subclass for overriding the subclass value.
Regards
Marcel
-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Marcel Holtmann
maintainerHi Michael,
Quoted 6 lines
OK -- I am using the new patches and all is well except for one thing. My keyboard seems to not be able to re-connect after it goes to sleep about 5 times. It is almost like connections are left open and the hidd server does not allow the keyboard to re-connect.
The only way I get it back is to restart hidd.
this sounds very weird. Please run "hcidump -x" as root and show it to us. What is the content of /proc/bluetooth/l2cap at that time? Do "hcitool con" show any connections?
Regards
Marcel
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Marcel,
I now see what is going on. I checked the system log and found these messages when the problem occurs.bcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has reset
What exactly does this mean?
Michael
Quoted 29 lines · Marcel Holtmann
Hi Michael,
Quoted 6 lines
OK -- I am using the new patches and all is well except for one thing. My keyboard seems to not be able to re-connect after it goes to sleep about 5 times. It is almost like connections are left open and the hidd server does not allow the keyboard to re-connect.
The only way I get it back is to restart hidd.
this sounds very weird. Please run "hcidump -x" as root and show it to us. What is the content of
/proc/bluetooth/l2capat that time? Do "hcitool con" show any connections?Regards
Marcel
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Marcel Holtmann
maintainerHi Michael,
Quoted 26 lines
I now see what is going on. I checked the system log and found these messages when the problem occurs.
bcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has reset
Quoted 1 line
What exactly does this mean?
this is part of the BCSP host transport driver. Maybe your serial port is a little bit buggy or something else. I don't know. What kernel are you using? Is there a previous that is still working without any troubles?
Regards
Marcel
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Marcel,
Can you explain to me the difference between CSR mode and bcsp? I have a CSR bluetooth module but have never been able to run in CSR mode. What could be the reason for this?
Michael
Quoted 51 lines · Marcel Holtmann
Hi Michael,
Quoted 26 lines
I now see what is going on. I checked the system log and found these messages when the problem occurs.
bcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetbcsp_handle_le_pkt: Found a LE sync pkt, card has resetQuoted 1 line
What exactly does this mean?
this is part of the BCSP host transport driver. Maybe your serial port is a little bit buggy or something else. I don't know. What kernel are you using? Is there a previous that is still working without any troubles?
Regards
Marcel
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Marcel Holtmann
maintainerHi Michael,
Quoted 3 lines
Can you explain to me the difference between CSR mode and bcsp? I have a CSR bluetooth module but have never been able to run in CSR mode. What could be the reason for this?
the CSR chips can work in H4 or BCSP mode over UART depending on the settings of some specific PS keys. Both are host transport protocols for the HCI layer. Check the CSR documention from your vendor or the mailing list archive for more information.
Regards
Marcel
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel