From owner-freebsd-bluetooth@FreeBSD.ORG Sun Feb 19 17:10:54 2006 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org 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 B792B16A420 for ; Sun, 19 Feb 2006 17:10:54 +0000 (GMT) (envelope-from markus@brueffer.de) Received: from mailout09.sul.t-online.com (mailout09.sul.t-online.com [194.25.134.84]) by mx1.FreeBSD.org (Postfix) with ESMTP id C679C43D45 for ; Sun, 19 Feb 2006 17:10:52 +0000 (GMT) (envelope-from markus@brueffer.de) Received: from fwd30.aul.t-online.de by mailout09.sul.t-online.com with smtp id 1FAs59-0001GC-00; Sun, 19 Feb 2006 18:10:47 +0100 Received: from ramses.kicks-ass.net (S90cMqZvgexvxXToXvI40DImgukvdfSlRJaR620ieOGVHWq0sQzBQC@[80.143.200.16]) by fwd30.sul.t-online.de with esmtp id 1FAs4u-18YQ1A0; Sun, 19 Feb 2006 18:10:32 +0100 Received: from localhost (dslb-084-061-019-035.pools.arcor-ip.net [84.61.19.35]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ramses.kicks-ass.net (Postfix) with ESMTP id 3EC31B83D; Sun, 19 Feb 2006 18:10:32 +0100 (CET) From: Markus Brueffer To: Maksim Yevmenkin Date: Sun, 19 Feb 2006 18:10:15 +0100 User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2677774.5WdrX1zYVq"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200602191810.21073.markus@brueffer.de> X-ID: S90cMqZvgexvxXToXvI40DImgukvdfSlRJaR620ieOGVHWq0sQzBQC@t-dialin.net X-TOI-MSGID: 55b29379-0a5b-4b7a-86da-28190e42313b X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-bluetooth@freebsd.org Subject: Patch for bthidd X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Feb 2006 17:10:54 -0000 --nextPart2677774.5WdrX1zYVq Content-Type: multipart/mixed; boundary="Boundary-01=_4ZK+Dfavx3U1Van" Content-Transfer-Encoding: 7bit Content-Disposition: inline --Boundary-01=_4ZK+Dfavx3U1Van Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Maksim, attached is a patch for bthidd/kbd.c that fixes the scancode translation=20 table. With this patch all regular keys work now (including shift, alt, ctr= l=20 that didn't work as expected before) on a Logitech MX5000 keyboard. Ok to commit? Markus =2D-=20 Markus Brueffer =A0 =A0| GPG-Key: http://people.FreeBSD.org/~markus/markus.= asc markus@brueffer.de | FP: 3F9B EBE8 F290 E5CC 1447 8760 D48D 1072 78F8 A8D4 markus@FreeBSD.org | FreeBSD: The Power to Serve! --Boundary-01=_4ZK+Dfavx3U1Van-- --nextPart2677774.5WdrX1zYVq Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.1 (FreeBSD) iD8DBQBD+KZ91I0Qcnj4qNQRAoptAKClnZYxHQkftS5Y8DH1JzoG6zuaPACeN0mu 6o7IG51Wdhy5rXb6AlnMYU0= =h0Bg -----END PGP SIGNATURE----- --nextPart2677774.5WdrX1zYVq-- From owner-freebsd-bluetooth@FreeBSD.ORG Sun Feb 19 18:08:02 2006 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org 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 3F65C16A420 for ; Sun, 19 Feb 2006 18:08:02 +0000 (GMT) (envelope-from markus@brueffer.de) Received: from mailout03.sul.t-online.com (mailout03.sul.t-online.com [194.25.134.81]) by mx1.FreeBSD.org (Postfix) with ESMTP id B9A9843D45 for ; Sun, 19 Feb 2006 18:08:01 +0000 (GMT) (envelope-from markus@brueffer.de) Received: from fwd27.aul.t-online.de by mailout03.sul.t-online.com with smtp id 1FAsyU-0001qp-02; Sun, 19 Feb 2006 19:07:58 +0100 Received: from ramses.kicks-ass.net (GtzaXBZEYeGPrAOfnKF4yApTfx0H4awd8HAia0Gq3Y3KO2kuuLQ4oH@[80.143.200.16]) by fwd27.sul.t-online.de with esmtp id 1FAsyH-04Psi80; Sun, 19 Feb 2006 19:07:45 +0100 Received: from localhost (dslb-084-061-019-035.pools.arcor-ip.net [84.61.19.35]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ramses.kicks-ass.net (Postfix) with ESMTP id 7CB01B833 for ; Sun, 19 Feb 2006 19:07:50 +0100 (CET) From: Markus Brueffer To: freebsd-bluetooth@freebsd.org Date: Sun, 19 Feb 2006 19:07:36 +0100 User-Agent: KMail/1.9.1 References: <200602191810.21073.markus@brueffer.de> In-Reply-To: <200602191810.21073.markus@brueffer.de> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart4420900.iD2z9oJQDu"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200602191907.41218.markus@brueffer.de> X-ID: GtzaXBZEYeGPrAOfnKF4yApTfx0H4awd8HAia0Gq3Y3KO2kuuLQ4oH@t-dialin.net X-TOI-MSGID: 567567d7-3067-4d25-8454-ea89f1e29ba2 Subject: Re: Patch for bthidd X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Feb 2006 18:08:02 -0000 --nextPart4420900.iD2z9oJQDu Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Am Sunday 19 February 2006 18:10 schrieb Markus Brueffer: > attached is a patch for bthidd/kbd.c that fixes the scancode translation > table. With this patch all regular keys work now (including shift, alt, > ctrl that didn't work as expected before) on a Logitech MX5000 keyboard. Looks like it didn't make it to the list: http://people.freebsd.org/~markus/bt/kbd.c.diff =2D-=20 Markus Brueffer =A0 =A0| GPG-Key: http://people.FreeBSD.org/~markus/markus.= asc markus@brueffer.de | FP: 3F9B EBE8 F290 E5CC 1447 8760 D48D 1072 78F8 A8D4 markus@FreeBSD.org | FreeBSD: The Power to Serve! --nextPart4420900.iD2z9oJQDu Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.1 (FreeBSD) iD8DBQBD+LPt1I0Qcnj4qNQRAsS5AJ4/RLwoM1Tr9Il2CLHPYQre2A/KqwCgm/Qv AK19ttYrQtEPdSoNiUgnzLo= =WmN/ -----END PGP SIGNATURE----- --nextPart4420900.iD2z9oJQDu-- From owner-freebsd-bluetooth@FreeBSD.ORG Sun Feb 19 21:20:43 2006 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org 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 C0FCD16A420 for ; Sun, 19 Feb 2006 21:20:43 +0000 (GMT) (envelope-from maksim.yevmenkin@savvis.net) Received: from mta13.adelphia.net (mta13.adelphia.net [68.168.78.44]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3A81143D48 for ; Sun, 19 Feb 2006 21:20:43 +0000 (GMT) (envelope-from maksim.yevmenkin@savvis.net) Received: from [192.168.1.254] (really [70.32.199.60]) by mta13.adelphia.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20060219212042.TLSV25152.mta13.adelphia.net@[192.168.1.254]>; Sun, 19 Feb 2006 16:20:42 -0500 Message-ID: <43F8E11F.6090002@savvis.net> Date: Sun, 19 Feb 2006 13:20:31 -0800 From: Maksim Yevmenkin User-Agent: Mozilla Thunderbird 0.7.1 (Windows/20040626) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Markus Brueffer References: <200602191810.21073.markus@brueffer.de> In-Reply-To: <200602191810.21073.markus@brueffer.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-bluetooth@freebsd.org Subject: Re: Patch for bthidd X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Feb 2006 21:20:43 -0000 Markus, > attached is a patch for bthidd/kbd.c that fixes the scancode translation > table. With this patch all regular keys work now (including shift, alt, ctrl > that didn't work as expected before) on a Logitech MX5000 keyboard. thanks for your work. btw, i decided to spend $60 and get myself an apple bluetooth keyboard. should get it shortly. after that i will try to find some time and polish bthidd(8). than it will be a matter of fixing kbdmux(4) and vkbd(4). > Ok to commit? the patch looks great. please commit and mfc it to releng_6,5 as well. sorry for the silly typos :) btw, did you use both kbdmux(4) and vkbd(4) or just vkbd(4) to test this? thanks, max From owner-freebsd-bluetooth@FreeBSD.ORG Mon Feb 20 10:14:51 2006 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org 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 9CC9516A420 for ; Mon, 20 Feb 2006 10:14:51 +0000 (GMT) (envelope-from markus@brueffer.de) Received: from mailout01.sul.t-online.com (mailout01.sul.t-online.com [194.25.134.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id E575243D48 for ; Mon, 20 Feb 2006 10:14:50 +0000 (GMT) (envelope-from markus@brueffer.de) Received: from fwd31.aul.t-online.de by mailout01.sul.t-online.com with smtp id 1FB848-0000FI-01; Mon, 20 Feb 2006 11:14:48 +0100 Received: from ramses.kicks-ass.net (bjJ0LQZe8eRn0p3OgJJIb6KNcfgudWW1WiIQ0MDsGbMV2HTyjfHnca@[80.143.200.16]) by fwd31.sul.t-online.de with esmtp id 1FB83z-0PvXua0; Mon, 20 Feb 2006 11:14:39 +0100 Received: from localhost (dslb-084-061-044-159.pools.arcor-ip.net [84.61.44.159]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ramses.kicks-ass.net (Postfix) with ESMTP id 650EAB841; Mon, 20 Feb 2006 11:14:43 +0100 (CET) From: Markus Brueffer To: Maksim Yevmenkin Date: Mon, 20 Feb 2006 11:14:08 +0100 User-Agent: KMail/1.9.1 References: <200602191810.21073.markus@brueffer.de> <43F8E11F.6090002@savvis.net> In-Reply-To: <43F8E11F.6090002@savvis.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart6517639.YlK66O9tW6"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200602201114.16267.markus@brueffer.de> X-ID: bjJ0LQZe8eRn0p3OgJJIb6KNcfgudWW1WiIQ0MDsGbMV2HTyjfHnca@t-dialin.net X-TOI-MSGID: ebb18290-5a02-45c7-9a9f-1276ce1cda6c Cc: freebsd-bluetooth@freebsd.org Subject: Re: Patch for bthidd X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Feb 2006 10:14:51 -0000 --nextPart6517639.YlK66O9tW6 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi Maksim, Am Sunday 19 February 2006 22:20 schrieb Maksim Yevmenkin: > > attached is a patch for bthidd/kbd.c that fixes the scancode translation > > table. With this patch all regular keys work now (including shift, alt, > > ctrl that didn't work as expected before) on a Logitech MX5000 keyboard. > > thanks for your work. btw, i decided to spend $60 and get myself an > apple bluetooth keyboard. should get it shortly. after that i will try > to find some time and polish bthidd(8). than it will be a matter of > fixing kbdmux(4) and vkbd(4). Great! > btw, did you use both kbdmux(4) and vkbd(4) or just vkbd(4) to test this? I used kbdmux(4) and vkbd(4) with a PS/2 keyboard and the Logitech MX5000.= =20 Only thing that didn't work was the key repeat, but I guess that belongs in= to=20 vkbd(4) (According to the HID profile spec, the host has to handle this). Do you have a todo list for kbdmux, vkbd and bthidd? Markus =2D-=20 Markus Brueffer =A0 =A0| GPG-Key: http://people.FreeBSD.org/~markus/markus.= asc markus@brueffer.de | FP: 3F9B EBE8 F290 E5CC 1447 8760 D48D 1072 78F8 A8D4 markus@FreeBSD.org | FreeBSD: The Power to Serve! --nextPart6517639.YlK66O9tW6 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.1 (FreeBSD) iD8DBQBD+ZZ41I0Qcnj4qNQRAnI6AKDh1w3yXN4vf+XZiNrZh9kRllMfWgCgtUas s/UfhP8mOIXJUAW6HTHuPf4= =a76t -----END PGP SIGNATURE----- --nextPart6517639.YlK66O9tW6-- From owner-freebsd-bluetooth@FreeBSD.ORG Mon Feb 20 11:04:46 2006 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org 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 32CC316A429 for ; Mon, 20 Feb 2006 11:04:46 +0000 (GMT) (envelope-from dpb@laposte.net) Received: from mailimailo.univ-rennes1.fr (mailimailo.univ-rennes1.fr [129.20.131.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id BC43C43D49 for ; Mon, 20 Feb 2006 11:04:45 +0000 (GMT) (envelope-from dpb@laposte.net) Received: from localhost (mailscan.univ-rennes1.fr [129.20.128.58]) by mailimailo.univ-rennes1.fr (Postfix) with ESMTP id 946BE4023 for ; Mon, 20 Feb 2006 12:04:41 +0100 (MET) Received: from mailimailo.univ-rennes1.fr ([129.20.131.1]) by localhost (mailscan.univ-rennes1.fr [129.20.128.58]) (amavisd-new, port 10028) with ESMTP id 04402-02 for ; Mon, 20 Feb 2006 12:04:39 +0100 (MET) Received: from [127.0.0.1] (pc-fleur.medchu.univ-rennes1.fr [129.20.161.110]) by mailimailo.univ-rennes1.fr (Postfix) with ESMTP id 17CA03FD7 for ; Mon, 20 Feb 2006 12:04:39 +0100 (MET) Message-ID: <43F9A24C.7070109@laposte.net> Date: Mon, 20 Feb 2006 12:04:44 +0100 From: Pavel Dobrokhotov User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: freebsd-bluetooth@freebsd.org References: 1138708994.303189.24314.nullmailer@galant.ukfsn.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at univ-rennes1.fr Subject: bluetooth security X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Feb 2006 11:04:46 -0000 > sure. common bluetooth api for all bsd's would be ideal. i'm willing to > work in this area. if you have any suggestions to that would make it > easier to share the code please let me know. Sorry for a non-technical, user-centric question in this topic, but will this new, portable, driver be working on OpenBSD, and is it related to your currently ported bt libs/tools? http://www.openbsd.org/3.8_packages/sparc64/bluetooth-libs-20050716.tgz-long.html http://www.openbsd.org/3.8_packages/sparc64/bluetooth-tools-20050716p0.tgz-long.html regards, Pavel From owner-freebsd-bluetooth@FreeBSD.ORG Mon Feb 20 12:21:46 2006 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org 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 CB1C416A420 for ; Mon, 20 Feb 2006 12:21:46 +0000 (GMT) (envelope-from markus@brueffer.de) Received: from mailout02.sul.t-online.com (mailout02.sul.t-online.com [194.25.134.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5425E43D45 for ; Mon, 20 Feb 2006 12:21:46 +0000 (GMT) (envelope-from markus@brueffer.de) Received: from fwd28.aul.t-online.de by mailout02.sul.t-online.com with smtp id 1FBA2y-0002kO-03; Mon, 20 Feb 2006 13:21:44 +0100 Received: from ramses.kicks-ass.net (GD7YrTZAgemQHrDsGtHcgJyTZZXOoW73M-sP22dsh1my+CZUsxU8wq@[80.143.200.16]) by fwd28.sul.t-online.de with esmtp id 1FBA2u-0BkyeW0; Mon, 20 Feb 2006 13:21:40 +0100 Received: from localhost (dslb-084-061-044-159.pools.arcor-ip.net [84.61.44.159]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ramses.kicks-ass.net (Postfix) with ESMTP id 4A746B833; Mon, 20 Feb 2006 13:21:43 +0100 (CET) From: Markus Brueffer To: Maksim Yevmenkin Date: Mon, 20 Feb 2006 13:21:25 +0100 User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart4045000.8DbpbxeClZ"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200602201321.30218.markus@brueffer.de> X-ID: GD7YrTZAgemQHrDsGtHcgJyTZZXOoW73M-sP22dsh1my+CZUsxU8wq@t-dialin.net X-TOI-MSGID: 671c164d-1526-4fe4-a8a6-3baa2abcad84 Cc: freebsd-bluetooth@freebsd.org Subject: hccontrol and BT 1.2 updates X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Feb 2006 12:21:46 -0000 --nextPart4045000.8DbpbxeClZ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi there, I just wanted to let you know what I'm currently working on (to not double= =20 efforts): Updated ng_hci.h for bluetooth 1.2: http://people.freebsd.org/~markus/bt/ng_hci.h.diff Updated hccontrol with updated vendor list, feature reporting including=20 bluetooth v1.2 and v2.0 and updated version strings for HCI and LMP accordi= ng=20 to the official description: http://people.freebsd.org/~markus/bt/hccontrol.diff The latter one reports versions and features on a Belkin BT 2.0 dongle as=20 follows: http://people.freebsd.org/~markus/bt/bt20features.txt I think, at least the version reporting part and the updated vendor list co= uld=20 be added to our current hccontrol. I'm currently thinking about incorporating libhci, which I'm currently=20 writing, into libbluetooth, like the bluez people do since recently and wou= ld=20 like the future hccontrol to be based on it where possible. Any thoughts? Best regards, Markus =2D-=20 Markus Brueffer =A0 =A0| GPG-Key: http://people.FreeBSD.org/~markus/markus.= asc markus@brueffer.de | FP: 3F9B EBE8 F290 E5CC 1447 8760 D48D 1072 78F8 A8D4 markus@FreeBSD.org | FreeBSD: The Power to Serve! --nextPart4045000.8DbpbxeClZ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.1 (FreeBSD) iD8DBQBD+bRK1I0Qcnj4qNQRAmoXAJ4p64mR3PQ1TBvVlOrUQxBv8NFyiQCgz1qg IJNUpj0EMtIo+x0I1+TnRR4= =lmQA -----END PGP SIGNATURE----- --nextPart4045000.8DbpbxeClZ-- From owner-freebsd-bluetooth@FreeBSD.ORG Tue Feb 21 03:46:36 2006 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org 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 4F59316A420 for ; Tue, 21 Feb 2006 03:46:36 +0000 (GMT) (envelope-from maksim.yevmenkin@savvis.net) Received: from mta10.adelphia.net (mta10.adelphia.net [68.168.78.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE4CC43D45 for ; Tue, 21 Feb 2006 03:46:35 +0000 (GMT) (envelope-from maksim.yevmenkin@savvis.net) Received: from [192.168.1.254] (really [70.32.199.60]) by mta10.adelphia.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20060221034634.KGYA13051.mta10.adelphia.net@[192.168.1.254]>; Mon, 20 Feb 2006 22:46:34 -0500 Message-ID: <43FA8D10.3050500@savvis.net> Date: Mon, 20 Feb 2006 19:46:24 -0800 From: Maksim Yevmenkin User-Agent: Mozilla Thunderbird 0.7.1 (Windows/20040626) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Markus Brueffer References: <200602201321.30218.markus@brueffer.de> In-Reply-To: <200602201321.30218.markus@brueffer.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-bluetooth@freebsd.org Subject: Re: hccontrol and BT 1.2 updates X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Feb 2006 03:46:36 -0000 Markus, > I just wanted to let you know what I'm currently working on (to not double > efforts): wow! this is some great stuff here. thanks! > Updated ng_hci.h for bluetooth 1.2: > http://people.freebsd.org/~markus/bt/ng_hci.h.diff i briefly looked at this and it looks fine to me. i have just one minor comment. you have re-named NG_HCI_OCF_{READ,WRITE}_PAGE_SCAN_PERIOD and NG_HCI_OCF_{READ,WRITE}_PAGE_SCAN commands. i guess, you have done this so the freebsd name matches the bluetooth name. that is fine. i have no objections to this, but we also need to rename these commands in other places, i.e. /usr/src/usr.sbin/bluetooth/hccontrol/host_controller_baseband.c /usr/src/sys/netgraph/bluetooth/hci/ng_hci_cmds.c /usr/src/sys/netgraph/bluetooth/socket/ng_btsocket_hci_raw.c there might be other places i have missed. could you please do a full buildworld and buildkernel with this patch applied to find all places and rename them as well? provided this, i think, it should be committed to -current (but please do not mfc it just yet). if there are no problems please mfc it in a couple of months or so. > Updated hccontrol with updated vendor list, feature reporting including > bluetooth v1.2 and v2.0 and updated version strings for HCI and LMP according > to the official description: > http://people.freebsd.org/~markus/bt/hccontrol.diff this looks fine. to my taste, it has some extra verbosity, i.e. HCI version: Bluetooth HCI Specification 2.0 [0x3] LMP version: Bluetooth LMP 2.0 [0x3] but, again, its just me. > The latter one reports versions and features on a Belkin BT 2.0 dongle as > follows: > http://people.freebsd.org/~markus/bt/bt20features.txt looks great! > I think, at least the version reporting part and the updated vendor list could > be added to our current hccontrol. agreed. please commit and mfc it to releng_6,5. > I'm currently thinking about incorporating libhci, which I'm currently > writing, into libbluetooth, like the bluez people do since recently and would > like the future hccontrol to be based on it where possible. Any thoughts? i looked at the code in your home directory on freefall. is this the latest version? also, i think you should go ahead and start committing libhci(3) code. once its done, hccontrol(8) should be converted to use libhci(3). i have your request to include support for bluetooth device enumeration and will try to implement it soon. is there anything else we need for libhci(3)? keep up the good work! thanks, max From owner-freebsd-bluetooth@FreeBSD.ORG Tue Feb 21 04:03:32 2006 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org 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 8A0EF16A420 for ; Tue, 21 Feb 2006 04:03:32 +0000 (GMT) (envelope-from maksim.yevmenkin@savvis.net) Received: from mta9.adelphia.net (mta9.adelphia.net [68.168.78.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1D42943D4C for ; Tue, 21 Feb 2006 04:03:31 +0000 (GMT) (envelope-from maksim.yevmenkin@savvis.net) Received: from [192.168.1.254] (really [70.32.199.60]) by mta9.adelphia.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20060221040331.GEAP12914.mta9.adelphia.net@[192.168.1.254]>; Mon, 20 Feb 2006 23:03:31 -0500 Message-ID: <43FA9108.9030603@savvis.net> Date: Mon, 20 Feb 2006 20:03:20 -0800 From: Maksim Yevmenkin User-Agent: Mozilla Thunderbird 0.7.1 (Windows/20040626) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Markus Brueffer References: <200602191810.21073.markus@brueffer.de> <43F8E11F.6090002@savvis.net> <200602201114.16267.markus@brueffer.de> In-Reply-To: <200602201114.16267.markus@brueffer.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-bluetooth@freebsd.org Subject: Re: Patch for bthidd X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Feb 2006 04:03:32 -0000 Markus, >>> attached is a patch for bthidd/kbd.c that fixes the scancode >>> translation table. With this patch all regular keys work now >>> (including shift, alt, ctrl that didn't work as expected before) >>> on a Logitech MX5000 keyboard. >> >> thanks for your work. btw, i decided to spend $60 and get myself an >> apple bluetooth keyboard. should get it shortly. after that i will >> try to find some time and polish bthidd(8). than it will be a >> matter of fixing kbdmux(4) and vkbd(4). > > Great! > >> btw, did you use both kbdmux(4) and vkbd(4) or just vkbd(4) to test >> this? > > I used kbdmux(4) and vkbd(4) with a PS/2 keyboard and the Logitech > MX5000. Only thing that didn't work was the key repeat, but I guess > that belongs into vkbd(4) (According to the HID profile spec, the > host has to handle this). hmmm... i think, microsoft bluetooth keyboard did send repeated reports when key is pressed and held. i will double check this with apple keyboard. > Do you have a todo list for kbdmux, vkbd and bthidd? yes. there are two major issues with kbdmux(4). 1) kbdmux(4) causes hard lockup when ps/2 keyboard added to kbddux(4) and ps/2 mouse is used under x11. if i replace ps/2 mouse with usb - no problem. my current theory is that kbdmux(4) somehow changes access pattern to ps/2 hardware and something gets written into wrong place. 2) alt, ctrl, shift state synchronization. under certain condition kbdmux(4) alt, ctrl, shift state may become different from what raw keyboard think it is. vkbd(4) is fine for now, i think. i do not like code duplication in all keyboard drivers, but that is another issue. bthidd(8) is missing man page. it needs to track double click mouse events (they work under x11, but not in console). need to fix handling for special keys (pause/break). perhaps need to add/fix support for multiple bluetooth keyboards. also, i'm not very happy with the "keyboard switch script" idea in bthidd(8). if/when kbdmux(4) will become default this should go away and appropriate changes to /etc/devd.conf should be put in place. thanks, max From owner-freebsd-bluetooth@FreeBSD.ORG Wed Feb 22 12:28:06 2006 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org 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 0581916A420 for ; Wed, 22 Feb 2006 12:28:06 +0000 (GMT) (envelope-from markus@brueffer.de) Received: from mailout08.sul.t-online.com (mailout08.sul.t-online.com [194.25.134.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 464EA43D46 for ; Wed, 22 Feb 2006 12:28:05 +0000 (GMT) (envelope-from markus@brueffer.de) Received: from fwd32.aul.t-online.de by mailout08.sul.t-online.com with smtp id 1FBt6A-0007Nn-06; Wed, 22 Feb 2006 13:28:02 +0100 Received: from ramses.kicks-ass.net (r430oGZFQenbyZzOk+80+a-nUFO6cKgrWw2D2zpdy6WYmXv9-vjerM@[80.143.224.202]) by fwd32.sul.t-online.de with esmtp id 1FBt61-05D6Su0; Wed, 22 Feb 2006 13:27:53 +0100 Received: from localhost (dslb-084-061-031-255.pools.arcor-ip.net [84.61.31.255]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ramses.kicks-ass.net (Postfix) with ESMTP id 097A6B833; Wed, 22 Feb 2006 13:27:58 +0100 (CET) From: Markus Brueffer To: Maksim Yevmenkin Date: Wed, 22 Feb 2006 13:27:27 +0100 User-Agent: KMail/1.9.1 References: <200602201321.30218.markus@brueffer.de> <43FA8D10.3050500@savvis.net> In-Reply-To: <43FA8D10.3050500@savvis.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart60033000.dxyZW883uG"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200602221327.34681.markus@brueffer.de> X-ID: r430oGZFQenbyZzOk+80+a-nUFO6cKgrWw2D2zpdy6WYmXv9-vjerM@t-dialin.net X-TOI-MSGID: ef0129b7-dd7d-44d5-be5f-67e6cd85d7a4 Cc: freebsd-bluetooth@freebsd.org Subject: Re: hccontrol and BT 1.2 updates X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Feb 2006 12:28:06 -0000 --nextPart60033000.dxyZW883uG Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi Maksim, Am Tuesday 21 February 2006 04:46 schrieb Maksim Yevmenkin: > > Updated ng_hci.h for bluetooth 1.2: > > http://people.freebsd.org/~markus/bt/ng_hci.h.diff > > i briefly looked at this and it looks fine to me. i have just one minor > comment. you have re-named NG_HCI_OCF_{READ,WRITE}_PAGE_SCAN_PERIOD and > NG_HCI_OCF_{READ,WRITE}_PAGE_SCAN commands. i guess, you have done this > so the freebsd name matches the bluetooth name. that is fine. i have no > objections to this, but we also need to rename these commands in other > places, i.e. Oh, that was unintentionally. That was one of the last changes I made to th= e=20 header under the assumption it was some of the new code I added myself. I'l= l=20 revert that change, doublecheck everything else and commit it to -current=20 tonight. > > Updated hccontrol with updated vendor list, feature reporting including > > bluetooth v1.2 and v2.0 and updated version strings for HCI and LMP > > according to the official description: > > http://people.freebsd.org/~markus/bt/hccontrol.diff > > this looks fine. to my taste, it has some extra verbosity, i.e. > > HCI version: Bluetooth HCI Specification 2.0 [0x3] > LMP version: Bluetooth LMP 2.0 [0x3] > > but, again, its just me. I chose those strings because they seem to be the official version strings: https://www.bluetooth.org/foundry/assignnumb/document/hci_assigned_numbers https://www.bluetooth.org/foundry/assignnumb/document/link_manager_protocol Any opinions from the other mailinglist readers? > > The latter one reports versions and features on a Belkin BT 2.0 dongle = as > > follows: > > http://people.freebsd.org/~markus/bt/bt20features.txt > > looks great! > > > I think, at least the version reporting part and the updated vendor list > > could be added to our current hccontrol. > > agreed. please commit and mfc it to releng_6,5. Cool, will do so tonight. > > I'm currently thinking about incorporating libhci, which I'm currently > > writing, into libbluetooth, like the bluez people do since recently and > > would like the future hccontrol to be based on it where possible. Any > > thoughts? > > i looked at the code in your home directory on freefall. is this the > latest version? The latest version already contains all bluetooth 1.2 function equivalents= =20 that are available in bluez's hcilib. More will be added in the process of= =20 updating the hci layer and hccontrol to full 1.2 support. I still have to=20 test a lot of them, so it will take some days until I can send you a usable= =20 version for review. > also, i think you should go ahead and start committing libhci(3) code. > once its done, hccontrol(8) should be converted to use libhci(3). Great! > i have your request to include support for bluetooth device enumeration > and will try to implement it soon. is there anything else we need for > libhci(3)? Oh that's awesome! With this we can make the -n parameter of hccontrol=20 optional and use the first found hci device by default. As far as I can tel= l,=20 there is nothing else needed for now. Markus =2D-=20 Markus Brueffer =A0 =A0| GPG-Key: http://people.FreeBSD.org/~markus/markus.= asc markus@brueffer.de | FP: 3F9B EBE8 F290 E5CC 1447 8760 D48D 1072 78F8 A8D4 markus@FreeBSD.org | FreeBSD: The Power to Serve! --nextPart60033000.dxyZW883uG Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.1 (FreeBSD) iD8DBQBD/Fi21I0Qcnj4qNQRAiz5AKDqkaPwx2I6ALnIr27lgAXKKAP+5QCfR5ii wcx4i5n7rcy9h9XV7joUi5M= =9YQr -----END PGP SIGNATURE----- --nextPart60033000.dxyZW883uG--