Date: Wed, 01 Apr 2015 16:55:43 +0100 From: Iain Hibbert <plunky@ogmig.net> To: Waitman Gobble <gobble.wa@gmail.com>, Maksim Yevmenkin <maksim.yevmenkin@gmail.com> Cc: freebsd-bluetooth@freebsd.org Subject: Re: register HID with SDP error Message-ID: <67671012-52EF-49FA-8820-954E99601210@ogmig.net> In-Reply-To: <CAFuo_fx9ZzoOkZNrnyu2XmSEg4vBXZLDwsQrdxmFGp84oLmW8w@mail.gmail.com> References: <CAFuo_fy9xRU2T3GUPY8116yZCUd8sL9pBQ9ixXnMwO56niJFog@mail.gmail.com> <CAFuo_fy%2BdmpcswwLMV3LaGGkN6VyQ%2B=ieEzYUT=omSLkhS8=EA@mail.gmail.com> <CAFuo_fwBcBQOZzFNntBSP0AwyAkGq=s-eeKJ1CCgjPp5tWdG=A@mail.gmail.com> <CAFPOs6rJJW2BC3rru%2Bvb5dAE0yaHGvr=0s8K9FZ1ee0rf-ML-w@mail.gmail.com> <CAFuo_fzRGc0_yrHYyqcfLrWX7q3AuLwA3v%2B9_QRTirU-Bx4xkw@mail.gmail.com> <CAFuo_fyYyoX6rNwN6_TfB01_xp5EQHFu-CJG=_dab_Qe7x1hkA@mail.gmail.com> <alpine.NEB.2.11.1503301517330.9258@galant.ogmig.net> <CAFuo_fxuTJqdvMg7jQ4rZy8qHLpNe2nRo%2B0JftGGBG2cjQ_QZg@mail.gmail.com> <alpine.NEB.2.11.1503301614370.9398@galant.ogmig.net> <CAFuo_fyvvJkfvpGfx-0dhhAsY6i_wMwZz4wEi47kEoLfaEV4EA@mail.gmail.com> <CAFPOs6pwHSP3tDmTV4VGUr3jiP_P96W0FxAJbR6Md6Xc-yQAyg@mail.gmail.com> <CAFuo_fygrjB12LZA4Z_qU2Tfa1UpqkN-8qsqL3NG-5VUsxeW7Q@mail.gmail.com> <CAFPOs6q0Xi=R-YyTSg_0cqFuxaQYxMVnL-tAbpftHj4wXzYbkg@mail.gmail.com> <CAFuo_fx9ZzoOkZNrnyu2XmSEg4vBXZLDwsQrdxmFGp84oLmW8w@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
save the binary with 'hcidump -w file' and let's see it On 1 April 2015 16:24:12 BST, Waitman Gobble <gobble.wa@gmail.com> wrote: >On Apr 1, 2015 8:15 AM, "Maksim Yevmenkin" <maksim.yevmenkin@gmail.com> >wrote: >> >> On Wed, Apr 1, 2015 at 8:09 AM, Waitman Gobble <gobble.wa@gmail.com> >wrote: >> > On Wed, Apr 1, 2015 at 8:05 AM, Maksim Yevmenkin >> > <maksim.yevmenkin@gmail.com> 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: <owner-freebsd-bluetooth@FreeBSD.ORG> 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 <freebsd-bluetooth@freebsd.org>; 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 <freebsd-bluetooth@freebsd.org>; Wed, 1 Apr 2015 16:40:21 +0000 (UTC) Received: by wiaa2 with SMTP id a2so73708879wia.0 for <freebsd-bluetooth@freebsd.org>; 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: <CAFuo_fy9xRU2T3GUPY8116yZCUd8sL9pBQ9ixXnMwO56niJFog@mail.gmail.com> <CAFuo_fy+dmpcswwLMV3LaGGkN6VyQ+=ieEzYUT=omSLkhS8=EA@mail.gmail.com> <CAFuo_fwBcBQOZzFNntBSP0AwyAkGq=s-eeKJ1CCgjPp5tWdG=A@mail.gmail.com> <CAFPOs6rJJW2BC3rru+vb5dAE0yaHGvr=0s8K9FZ1ee0rf-ML-w@mail.gmail.com> <CAFuo_fzRGc0_yrHYyqcfLrWX7q3AuLwA3v+9_QRTirU-Bx4xkw@mail.gmail.com> <CAFuo_fyYyoX6rNwN6_TfB01_xp5EQHFu-CJG=_dab_Qe7x1hkA@mail.gmail.com> <alpine.NEB.2.11.1503301517330.9258@galant.ogmig.net> <CAFuo_fxuTJqdvMg7jQ4rZy8qHLpNe2nRo+0JftGGBG2cjQ_QZg@mail.gmail.com> <alpine.NEB.2.11.1503301614370.9398@galant.ogmig.net> <CAFuo_fyvvJkfvpGfx-0dhhAsY6i_wMwZz4wEi47kEoLfaEV4EA@mail.gmail.com> <CAFPOs6pwHSP3tDmTV4VGUr3jiP_P96W0FxAJbR6Md6Xc-yQAyg@mail.gmail.com> <CAFuo_fygrjB12LZA4Z_qU2Tfa1UpqkN-8qsqL3NG-5VUsxeW7Q@mail.gmail.com> <CAFPOs6q0Xi=R-YyTSg_0cqFuxaQYxMVnL-tAbpftHj4wXzYbkg@mail.gmail.com> <CAFuo_fx9ZzoOkZNrnyu2XmSEg4vBXZLDwsQrdxmFGp84oLmW8w@mail.gmail.com> <67671012-52EF-49FA-8820-954E99601210@ogmig.net> Date: Wed, 1 Apr 2015 09:40:19 -0700 Message-ID: <CAFuo_fwiRiNP_RXwsfO1wN1nap1soXKboLE7dtHmJuSJ78wMzA@mail.gmail.com> Subject: Re: register HID with SDP error From: Waitman Gobble <gobble.wa@gmail.com> To: Iain Hibbert <plunky@ogmig.net> Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-bluetooth@freebsd.org" <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 <freebsd-bluetooth.freebsd.org> List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-bluetooth>, <mailto:freebsd-bluetooth-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-bluetooth/> List-Post: <mailto:freebsd-bluetooth@freebsd.org> List-Help: <mailto:freebsd-bluetooth-request@freebsd.org?subject=help> List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth>, <mailto:freebsd-bluetooth-request@freebsd.org?subject=subscribe> X-List-Received-Date: Wed, 01 Apr 2015 16:40:22 -0000 On Wed, Apr 1, 2015 at 8:55 AM, Iain Hibbert <plunky@ogmig.net> wrote: > save the binary with 'hcidump -w file' and let's see it > > > On 1 April 2015 16:24:12 BST, Waitman Gobble <gobble.wa@gmail.com> wrote: >> >> >> On Apr 1, 2015 8:15 AM, "Maksim Yevmenkin" <maksim.yevmenkin@gmail.com> >> wrote: >> > >> > On Wed, Apr 1, 2015 at 8:09 AM, Waitman Gobble <gobble.wa@gmail.com> >> > wrote: >> > > On Wed, Apr 1, 2015 at 8:05 AM, Maksim Yevmenkin >> > > <maksim.yevmenkin@gmail.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?67671012-52EF-49FA-8820-954E99601210>