From: Andrei Emeltchenko <andrei.emeltchenko.news@gmail.com>
To: Richard Neill <rn214@richardneill.org>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: How to test/debug bluetooth advertising [with hciconfig]?
Date: Wed, 28 Aug 2013 13:39:58 +0300 [thread overview]
Message-ID: <20130828103920.GD15469@aemeltch-MOBL1> (raw)
In-Reply-To: <521DCF49.5020807@richardneill.org>
Hi Richard,
On Wed, Aug 28, 2013 at 11:22:01AM +0100, Richard Neill wrote:
> Dear All,
>
> I'm trying to get "hello world" working from the shell between 2
> Bluetooth 4 dongles, in LE advertising mode. I wonder whether I
> could ask for some pointers?
>
> As I understand it, Bluetooth low-energy supports up to 31 bytes of
> arbitrary text in the advertising packet. So it should be possible
> to set one dongle up in LE-advertising mode, and a second in LE-scan
> mode, and to transfer the "hello world" message from one to the
> other.
>
> I'm rather stuck at the moment. I've discovered that there is an "LE
> Set Advertising Data" command, 0xcf (from "hciconfig hci0
> commands_list"), and that "hcitool -i hci0 cmd 0xcf XXX YYY ZZZ" is
$ hcitool cmd --help
Usage:
cmd <ogf> <ocf> [parameters]
Check ogf and ocf from the Bluetooth Specification.
Best regards
Andrei Emeltchenko
next prev parent reply other threads:[~2013-08-28 10:39 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-28 10:22 How to test/debug bluetooth advertising [with hciconfig]? Richard Neill
2013-08-28 10:39 ` Andrei Emeltchenko [this message]
2013-08-28 11:09 ` Richard Neill
2013-08-28 11:10 ` Richard Neill
2013-08-28 11:54 ` Andrei Emeltchenko
2013-08-28 14:35 ` Richard Neill
2013-08-28 12:12 ` Andrei Emeltchenko
2013-08-28 14:10 ` Claudio Takahasi
2013-08-28 14:45 ` Richard Neill
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130828103920.GD15469@aemeltch-MOBL1 \
--to=andrei.emeltchenko.news@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=rn214@richardneill.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox