Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Mar 2015 10:06:46 -0700
From:      Maksim Yevmenkin <maksim.yevmenkin@gmail.com>
To:        Waitman Gobble <gobble.wa@gmail.com>
Cc:        "freebsd-bluetooth@freebsd.org" <freebsd-bluetooth@freebsd.org>, Iain Hibbert <plunky@ogmig.net>
Subject:   Re: register HID with SDP error
Message-ID:  <CAFPOs6rJ_SaKjmXrbr%2Bpa9BoVL2HtjkzoyBo015BFK1QB9ZVsQ@mail.gmail.com>
In-Reply-To: <CAFuo_fzSMNvwewpkKxcLr9aHyTcwaVgcreLtexSo=FNzNhC6og@mail.gmail.com>
References:  <CAFuo_fy9xRU2T3GUPY8116yZCUd8sL9pBQ9ixXnMwO56niJFog@mail.gmail.com> <CAFuo_fzdmB79qdoH8P5EcO_ZZoa=_id6h=eqFBXvP_a%2B3WMkLw@mail.gmail.com> <CAFuo_fzB3A5L3vivH7Z80OEoBtVEHftEYE4LUkhnrkguzL5GDA@mail.gmail.com> <CAFuo_fzrk%2BWLXivZrnTsGQD%2BS7mq%2BUSXB7Mn6%2BJT=y64JakGSw@mail.gmail.com> <CAFPOs6q3iVcNthF=S--UgTm=5wA0HM6coqB7AcmCKb=55OWdTQ@mail.gmail.com> <CAFuo_fxgBVKxmzbJs%2B-XDz%2Bu4tb2_i3eYXSa-oiOoU%2BQD6ApwQ@mail.gmail.com> <CAFPOs6r_D7bcGCMP_bP%2BQtZgKt7Oj5jRJ2v872RODekn%2B6xv1Q@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> <CAFPOs6rYXOFPk5_nqXivToUvGRjXDMS=XL60RyKbMQm7nP8wFg@mail.gmail.com> <CAFuo_fw5-YtH_sj3Ft52hpfXEP8QCkweptJzT0eUSos9DoBZ%2BA@mail.gmail.com> <CAFuo_fzSMNvwewpkKxcLr9aHyTcwaVgcreLtexSo=FNzNhC6og@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello,

[...]

> I think I'm getting close, I finally have a good scan with bthidcontrol
>
> Note that bthidcontrol doesn't seem to connect after sdpd is restarted
> on the server, unless I do sdpcontrol browse first.

hmm... i'm sorry, i do not follow. both bthidcontrol(8) and
sdpcontrol(8) are using exactly the same way to obtain sdp records. it
should not make any difference.


> #sdpcontrol -a 00:1b:dc:06:94:d3 browse

[...]

> # bthidcontrol -a 00:1b:dc:06:94:d3 query

[...]

this looks better to me.

> latest version at https://github.com/waitman/sdpd/blob/master/hid.c

thanks! i will take a look. few minor nits: attribute list must be
sorted. when generating protocol descriptor list and additional
protocol descriptor list, you may re-use one function, i.e. additional
protocol descriptor list is just a protocol descriptor list wrapped
into a sequence. you hardwired lots of hid related things. while its
ok for testing, i feel like it should be moved to parameters so
clients can set those up as needed.

> I didn't see a "bool(8)" defined in sdp.h, I was thinking maybe it was
> the same as UINT8 but then I noticed Iain's post that showed a
> 'bool(8)' as 0x28 instead of 0x08, thank you.

huh? from /usr/include/sdp.h

/* Unsigned integer */
#define SDP_DATA_UINT8                                  0x08

/* Boolean */
#define SDP_DATA_BOOL                                   0x28

thanks,
max



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