register HID with SDP error
Waitman Gobble
gobble.wa at gmail.com
Sat Mar 21 15:20:02 UTC 2015
On Sat, Mar 21, 2015 at 7:55 AM, maksim yevmenkin
<maksim.yevmenkin at gmail.com> wrote:
>
> Hello!
>
>> Yes, thank you Max, that helps alot.
>>
>> One question, where is "Class" set? I believe this is causing me trouble
>
> You can set device class via hcicontrol. There is a command to do it. You can also use configuration option that is going to be set when device attaches. Please take a look at /etc/rc.d/Bluetooth and how it starts things. You can create per-device configuration file that will set class, name etc.
>
> Thanks
> Max
>
Hey, that works! Thank you.
hccontrol Write_Class_Of_Device 02:50:40
so now I have to figure out how to send the PIN that the connecting
device demands to receive. I suppose it's sending 0000. But it appears
there has to be a human action in this case.
< HCI Command: Accept Connection Request(0x01|0x0009) plen 7
> HCI Event: Command Status(0x0f) plen 4
> HCI Event: Role Change(0x12) plen 8
> HCI Event: PIN Code Request(0x16) plen 6
< HCI Command: PIN Code Request Reply(0x01|0x000d) plen 23
> HCI Event: Command Complete(0x0e) plen 10
> HCI Event: Connect Complete(0x03) plen 11
--
Waitman Gobble
Los Altos California USA
510-830-7975
More information about the freebsd-bluetooth
mailing list