Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Apr 2015 08:24:12 -0700
From:      Waitman Gobble <gobble.wa@gmail.com>
To:        Maksim Yevmenkin <maksim.yevmenkin@gmail.com>
Cc:        freebsd-bluetooth@freebsd.org, Iain Hibbert <plunky@ogmig.net>
Subject:   Re: register HID with SDP error
Message-ID:  <CAFuo_fx9ZzoOkZNrnyu2XmSEg4vBXZLDwsQrdxmFGp84oLmW8w@mail.gmail.com>
In-Reply-To: <CAFPOs6q0Xi=R-YyTSg_0cqFuxaQYxMVnL-tAbpftHj4wXzYbkg@mail.gmail.com>
References:  <CAFuo_fy9xRU2T3GUPY8116yZCUd8sL9pBQ9ixXnMwO56niJFog@mail.gmail.com> <CAFuo_fwPuaD4bYwfZou0RBswZsTmdtVZA1B2GqUdo3ZJJiWRQg@mail.gmail.com> <0AD7A2F7-37BE-4F6A-9FD6-F6C81B2CAF36@gmail.com> <CAFuo_fye5RWNtjsutHa%2BbXL0AYHYRpJxW-b=48o0iMwX227wdA@mail.gmail.com> <alpine.NEB.2.11.1503170658130.4414@galant.ogmig.net> <CAFuo_fx47uRC-eKD_KtsSsrMCQZauyHyCOgRxGbtp_WEZ49o_Q@mail.gmail.com> <alpine.NEB.2.11.1503171759510.4792@galant.ogmig.net> <CAFPOs6omaOOOumNk2Zg=YBgK9cy7JumOZ6k-89oTbVw-3PgAvg@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>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFuo_fx9ZzoOkZNrnyu2XmSEg4vBXZLDwsQrdxmFGp84oLmW8w>