From: Benjamin Adler <benadler@gmx.net>
To: Marcel Holtmann <marcel@holtmann.org>
Cc: "linux-bluetooth@vger.kernel.org" <linux-bluetooth@vger.kernel.org>
Subject: Re: Receiving data in BLE non-connectable undirected advertisements
Date: Mon, 03 Mar 2014 09:10:02 +0000 [thread overview]
Message-ID: <531446EA.6020701@gmx.net> (raw)
In-Reply-To: <D7B9B661-DFF0-4AB7-8CAD-F2ACC8FDDBE8@holtmann.org>
Hello Marcel,
On 28.02.2014 15:46, Marcel Holtmann wrote:
> You can just write an advertising receiver by using Bluetooth HCI
> User Channel feature from the 3.13 kernel. With the help of
> src/shared/hci.c (if that license is acceptable to you), this is
> trivial. If the license is not acceptable, then you have to
> write your own HCI handling.
>
> The BlueZ source code contains samples in form of tools/ibeacon.c
> and others on how to write such small program for direct access
> of the HCI interface. If you use this sample code, then please
> comply with the license as well here.
regarding the license, this is more of a hobby project, so GPL is perfect.
Looking at hci.{c,h}, there is (except for the license) not a single
comment that would help explain things (to bluetooth-newcomers). The
functions might have descriptive names, but I'm missing the bigger picture.
Reading ibeacon.c, I get the impression the code is made for sending
advertisements, not for receiving them. I might be wrong though, there's
no comments either. None of the other filenames in tools/ made me hope I
could find sample code for receiving non-connectable advertisements.
Marcel, could you either point me to some sample code, or help me
understand hci.c (or list the required steps) so that I can write my own?
thanks!
ben
next prev parent reply other threads:[~2014-03-03 9:10 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-28 15:00 Receiving data in BLE non-connectable undirected advertisements Benjamin Adler
2014-02-28 15:13 ` Adam Warski
2014-02-28 15:38 ` Benjamin Adler
2014-02-28 15:54 ` Adam Warski
2014-02-28 15:46 ` Marcel Holtmann
2014-03-03 9:10 ` Benjamin Adler [this message]
2014-03-03 15:28 ` Marcel Holtmann
2014-03-04 22:02 ` Benjamin Adler
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=531446EA.6020701@gmx.net \
--to=benadler@gmx.net \
--cc=linux-bluetooth@vger.kernel.org \
--cc=marcel@holtmann.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