From owner-freebsd-bluetooth@FreeBSD.ORG Mon Mar 23 07:06:18 2015 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4F0A4FC4 for ; Mon, 23 Mar 2015 07:06:18 +0000 (UTC) Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [IPv6:2001:4b98:c:538::198]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id F2E4D908 for ; Mon, 23 Mar 2015 07:06:17 +0000 (UTC) Received: from mfilter24-d.gandi.net (mfilter24-d.gandi.net [217.70.178.152]) by relay6-d.mail.gandi.net (Postfix) with ESMTP id 4F0CFFB8A7 for ; Mon, 23 Mar 2015 08:06:15 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mfilter24-d.gandi.net Received: from relay6-d.mail.gandi.net ([217.70.183.198]) by mfilter24-d.gandi.net (mfilter24-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id ucY0PMxAt74N for ; Mon, 23 Mar 2015 08:06:13 +0100 (CET) X-Originating-IP: 81.168.1.155 Received: from galant.ogmig.net (unknown [81.168.1.155]) (Authenticated sender: plunky@ogmig.net) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id BD856FB87F for ; Mon, 23 Mar 2015 08:06:13 +0100 (CET) Received: by galant.ogmig.net (Postfix, from userid 1000) id 23D062600C5; Mon, 23 Mar 2015 07:06:12 +0000 (GMT) Date: Mon, 23 Mar 2015 07:06:12 +0000 (GMT) From: Iain Hibbert To: "freebsd-bluetooth@freebsd.org" Subject: Re: register HID with SDP error In-Reply-To: Message-ID: References: <0AD7A2F7-37BE-4F6A-9FD6-F6C81B2CAF36@gmail.com> User-Agent: Alpine 2.11 (NEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Mar 2015 07:06:18 -0000 On Sun, 22 Mar 2015, Waitman Gobble wrote: > >> btw .. if you use sdpcontrol(1) to query the local SDP server (see -l) > >> then hcidump will not see anything of the interchange, since it does not > >> go through the Bluetooth stack. > > > > absolutely correct > > I'm tracking down a client connection problem, maybe this is causing > the issue... I doubt that is causing anything, exactly > checking it out. > > https://gist.github.com/waitman/c51ea08ebb6a2898f33f > > client gives up and never opens PSM channel 17 or 19 you didn't say what client it is, and why it should try to connect to HID? Not all will, of course.. It may be more pertinient that when it searches for L2CAP, it did not discover any services? Searching for L2CAP is a lazy way to enumerate services, as many devices failed to provide a proper browse group, but if a device is looking for HID then I would expect it to search for HID? > I did notice some clients request 0x1200 'pnp info' so I added > SDP_SERVICE_CLASS_PNP_DEVICE handler to sdpd to see what would happen. > The code is here -> https://github.com/waitman/sdpd/blob/master/pnp.c > But the configuration parameters should be set by the request, not > hardcoded into pnp.c (also hid.c should be fixed) The PNP Info can be useful, I use it for example (on NetBSD) to get the product and vendor IDs in order to match a specific driver for the Apple Magic Mouse, rather than the generic Bluetooth HID mouse driver. regards, iain