All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marco Palumbi <marco@palumbi.it>
To: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
Cc: "linux-bluetooth@vger.kernel.org" <linux-bluetooth@vger.kernel.org>
Subject: Re: BLE advertise name
Date: Mon, 28 May 2018 12:40:22 +0200	[thread overview]
Message-ID: <0492fa2a-ab18-c7c7-1b6f-dd24c47e97f9@palumbi.it> (raw)
In-Reply-To: <CABBYNZKuGtLtvq2Ciu1Mgn-jZDnN4omc3TuYWg7eL7QsUW9ptA@mail.gmail.com>

thank you for the replay Luiz.


On 27/05/2018 09:01, Luiz Augusto von Dentz wrote:
> Hi Marco,
>
> On Sat, May 26, 2018 at 9:49 PM, Marco Palumbi <marco@palumbi.it> wrote:
>> hello to all,
>>
>> I am trying to let BlueZ advertise on BLE with a name longer than 9
>> character. is this possible?
>> it seems to me that BlueZ uses the shortname to advertise over BLE.
>> Any suggestion?
> How exactly are you trying to advertise? Btw, you should be able to
> check what type we are using in the advertisement with use of btmon.
>
I tried to play with btmon but I wasn't able to find useful information 
from it (probably I am not using it correctly..)
here is what I have done (BlueZ 5.41 - Digi Embedded Yocto 2.2-r3)

after starting the  bluetoothd

btmgmt -i hci0 le on
btmgmt -i hci0 connectable on
btmgmt -i hci0 advertising on
btmgmt -i hci0 discov on
btmgmt -i hci0 name MyVeryLongNameThatExceedsNineCharacters

now, if I search for BLE devices from an adroid phone using the "nRF 
Connct" (app from Nordic Semi for BLE tast) I can see my device shown 
only with this name:

MyVeryLong  (indeed they are 10 chars and not 9)

while if I do a "classic" ble scan from android I see it shown twice 
both with the long and the short name.

Nevertheless the android app "nRF Connct" is able to get longer names 
from devices not using BlueZ stack

is this a limit of BlueZ or there is something wrong on my setup?


  reply	other threads:[~2018-05-28 10:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-26 18:49 BLE advertise name Marco Palumbi
2018-05-27  7:01 ` Luiz Augusto von Dentz
2018-05-28 10:40   ` Marco Palumbi [this message]
2018-05-28 10:50     ` Luiz Augusto von Dentz
2018-05-28 15:01       ` Marco Palumbi
2018-05-31  7:55         ` Marco Palumbi
2018-05-31  8:26           ` Luiz Augusto von Dentz
2018-05-31  8:47             ` Marco Palumbi

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=0492fa2a-ab18-c7c7-1b6f-dd24c47e97f9@palumbi.it \
    --to=marco@palumbi.it \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=luiz.dentz@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.