Re: BLE advertise name

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

 



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@xxxxxxxxxx> 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?

--
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