Re: How to test/debug bluetooth advertising [with hciconfig]?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Richard:

On Wed, Aug 28, 2013 at 9:12 AM, Andrei Emeltchenko
<andrei.emeltchenko.news@xxxxxxxxx> wrote:
> Hi Richard,
>
>> Thanks for your reply. That was actually very helpful: by searching
>> specifically for "ogf ocf Bluetooth specification", I was able to
>> locate the right part of the relevant document (a 600 page PDF of
>> Bluetooth 4.0 core).
>>
>> However, before I delve into this in great detail, I wonder whether
>
> Those ogf and ocf are just command identifiers, search by command you want
> to run and you will find them.
>
> Best regards
> Andrei Emeltchenko
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

Sets the advertising data:
$sudo hcitool -i hci0 cmd 0x08 0x0008 03 02 01 06 $(perl -e 'print "00
" x 28 . "\n"')
Remember that the data needs to follow the EIR/AD format: see Core Spec page1761

Enable adv
$sudo hciconfig hci0 leadv

BR,
Claudio
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux