From owner-freebsd-bluetooth@FreeBSD.ORG Wed Apr 1 15:55:51 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 2D32F3D0 for ; Wed, 1 Apr 2015 15:55:51 +0000 (UTC) Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [IPv6:2001:4b98:c:538::197]) (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 CC956E2 for ; Wed, 1 Apr 2015 15:55:50 +0000 (UTC) Received: from mfilter40-d.gandi.net (mfilter40-d.gandi.net [217.70.178.171]) by relay5-d.mail.gandi.net (Postfix) with ESMTP id 14D2641C083; Wed, 1 Apr 2015 17:55:48 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter40-d.gandi.net Received: from relay5-d.mail.gandi.net ([217.70.183.197]) by mfilter40-d.gandi.net (mfilter40-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id ODqTb+NnWUgS; Wed, 1 Apr 2015 17:55:46 +0200 (CEST) X-Originating-IP: 149.254.56.251 Received: from [10.108.131.238] (genkt-056-251.t-mobile.co.uk [149.254.56.251]) (Authenticated sender: plunky@ogmig.net) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 9196F41C0A2; Wed, 1 Apr 2015 17:55:45 +0200 (CEST) User-Agent: K-9 Mail for Android In-Reply-To: References: MIME-Version: 1.0 Subject: Re: register HID with SDP error From: Iain Hibbert Date: Wed, 01 Apr 2015 16:55:43 +0100 To: Waitman Gobble , Maksim Yevmenkin Message-ID: <67671012-52EF-49FA-8820-954E99601210@ogmig.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: freebsd-bluetooth@freebsd.org 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: Wed, 01 Apr 2015 15:55:51 -0000 save the binary with 'hcidump -w file' and let's see it On 1 April 2015 16:24:12 BST, Waitman Gobble wrote: >On Apr 1, 2015 8:15 AM, "Maksim Yevmenkin" >wrote: >> >> On Wed, Apr 1, 2015 at 8:09 AM, Waitman Gobble >wrote: >> > On Wed, Apr 1, 2015 at 8:05 AM, Maksim Yevmenkin >> > wrote: >> >> Hello, >> >> >> >> [...] >> >> >> >>> Can this 'syntax error' problem be related to the requested MTU? >> >>> >> >>> with essentially the 'same' connection request, >> >>> >> >>> here's the transaction log from an MS Windows client. No syntax >> >>> errors. The requested MTU is 1024 >> >>> >> >>> https://gist.github.com/waitman/2d5a72e9f9544848e832 >> >>> >> >>> L2CAP(d): cid 0x40 len 346 [psm 1] >> >>> >> >>> >> >>> and a log from android client. Requested MTU is 256. >> >>> >> >>> https://gist.github.com/waitman/e365debcd4a96d849153 >> >>> >> >>> L2CAP(d): cid 0x43 len 247 [psm 1] >> >>> >> >>> note it's bombing out with something about aid 0x0200, which >isn't >> >>> actually an aid specified in my 0x1124 record. >> >> >> >> just a wild guess. please make sure that you maintain continuation >> >> state properly. when sdp response is bigger than l2cap mtu, >response >> >> is chunked. >> > >> > Thank you, I was tinkering with things for awhile to try to find >out >> > why I was seeing 'syntax errors', but I'm thinking now there isn't >a >> > syntax error with the record, it's the hcidump program reading the >> > broken up response. >> >> hcidump tries do be smart and re-assemble spd responses. if your >> continuation state is wrong, hcidump might not be able to re-assemble >> and parse response correctly >> >> thanks, >> max > >Interesting. I will check into this. Thanks for the info. > >Waitman iain From owner-freebsd-bluetooth@FreeBSD.ORG Wed Apr 1 16:40:22 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 11CA829C for ; Wed, 1 Apr 2015 16:40:22 +0000 (UTC) Received: from mail-wi0-x22d.google.com (mail-wi0-x22d.google.com [IPv6:2a00:1450:400c:c05::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8EB6E7E5 for ; Wed, 1 Apr 2015 16:40:21 +0000 (UTC) Received: by wiaa2 with SMTP id a2so73708879wia.0 for ; Wed, 01 Apr 2015 09:40:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=onoHldEF4JmgWcIQr9UHTEAj2tLRQzVWIBnpDtT5GeY=; b=a5qmTyGpBBqmFAJSsrsGGUXlmlEyBwqTZSzLcLogBOjMeTYlx07aDzw8S6f2EDD12/ rG3gim+rpwPyvf245mxhvpbvS1WMyWeSZoFzRC8iG687dCI6O7BxS1xhLTPMmtqhoeYh Y3DCG3vuVdyZWUGATIGx9YZhW6Iu5mchC3XlS03K+V0x6Bx3LNObFOrTek58nJGtliXG pg0WqA1rAHyzKQKebiOqYfaRCmhybzRicwz39s8wKrFl3GBAxZ9IbfUETizOA1BVXmUg mjrfzfIVL29j3/KHEc0uJE6qaLLxYAOHPDMZfIf5uAB6D1oiz9v1LwGcz6buNVQ4+ECy BQLw== MIME-Version: 1.0 X-Received: by 10.195.12.35 with SMTP id en3mr82456160wjd.129.1427906419446; Wed, 01 Apr 2015 09:40:19 -0700 (PDT) Received: by 10.27.91.75 with HTTP; Wed, 1 Apr 2015 09:40:19 -0700 (PDT) In-Reply-To: <67671012-52EF-49FA-8820-954E99601210@ogmig.net> References: <67671012-52EF-49FA-8820-954E99601210@ogmig.net> Date: Wed, 1 Apr 2015 09:40:19 -0700 Message-ID: Subject: Re: register HID with SDP error From: Waitman Gobble To: Iain Hibbert Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-bluetooth@freebsd.org" 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: Wed, 01 Apr 2015 16:40:22 -0000 On Wed, Apr 1, 2015 at 8:55 AM, Iain Hibbert wrote: > save the binary with 'hcidump -w file' and let's see it > > > On 1 April 2015 16:24:12 BST, Waitman Gobble wrote: >> >> >> On Apr 1, 2015 8:15 AM, "Maksim Yevmenkin" >> wrote: >> > >> > On Wed, Apr 1, 2015 at 8:09 AM, Waitman Gobble >> > wrote: >> > > On Wed, Apr 1, 2015 at 8:05 AM, Maksim Yevmenkin >> > > wrote: >> > >> Hello, >> > >> >> > >> [...] >> > >> >> > >>> Can this 'syntax error' problem be related to the requested MTU? >> > >>> >> > >>> with essentially the 'same' connection request, >> > >>> >> > >>> here's the transaction log from an MS Windows client. No syntax >> > >>> errors. The requested MTU is 1024 >> > >>> >> > >>> https://gist.github.com/waitman/2d5a72e9f9544848e832 >> > >>> >> > >>> L2CAP(d): cid 0x40 len 346 [psm 1] >> > >>> >> > >>> >> > >>> and a log from android client. Requested MTU is 256. >> > >>> >> > >>> https://gist.github.com/waitman/e365debcd4a96d849153 >> > >>> >> > >>> L2CAP(d): cid 0x43 len 247 [psm 1] >> > >>> >> > >>> note it's bombing out with something about aid 0x0200, which isn't >> > >>> actually an aid specified in my 0x1124 record. >> > >> >> > >> just a wild guess. please make sure that you maintain continuation >> > >> state properly. when sdp response is bigger than l2cap mtu, response >> > >> is chunked. >> > > >> > > Thank you, I was tinkering with things for awhile to try to find out >> > > why I was seeing 'syntax errors', but I'm thinking now there isn't a >> > > syntax error with the record, it's the hcidump program reading the >> > > broken up response. >> > >> > hcidump tries do be smart and re-assemble spd responses. if your >> > continuation state is wrong, hcidump might not be able to re-assemble >> > and parse response correctly >> > >> > thanks, >> > max >> >> Interesting. I will check into this. Thanks for the info. >> >> Waitman > > > iain Ok, here's a dump with the 'syntax error' https://artiming.com/andbin.xz Thank you, Waitman -- Waitman Gobble Los Altos California USA 510-830-7975