All of lore.kernel.org
 help / color / mirror / Atom feed
* Reading manufacturer-specific advertisement data from BLE device
@ 2017-02-08 16:23 Simon Falsig
  2017-02-10 11:39 ` Marcel Holtmann
  0 siblings, 1 reply; 2+ messages in thread
From: Simon Falsig @ 2017-02-08 16:23 UTC (permalink / raw)
  To: linux-bluetooth

Hi,

I'm currently trying to read manufacturer-specific data from an advertisement from a custom BLE device, using the BlueZ D-Bus API, but can't seem to get it working.

I can see my device when doing a scan in bluetoothctl, but haven't figured out how to get to the actual advertisement data. I've tried modifying bluetoothctl to get the "ManufacturerData" property, but this is not found (g_dbus_proxy_get_property returns false). Also, no ManufacturerData property (or similar) shows up for the device in d-feet.

I have a small utility that just uses the hci API directly, and using that, I can get the complete contents of the advertisement, including the manufacturer-specific data. Full data is (in hex):

02 01 06 03 02 e0 c0 11 ff 00 02 01 03 00 00 00 00 00 00 00 00 5d 58 0e 94

Is there something wrong in the way I'm sending out the data, or do I need to register for data in some way to get it working for the D-Bus API also?

I'm using BlueZ 5.37 on KUbuntu 16.04 (running in VirtualBox), using an Aircable Host XR4 Bluetooth adapter connected over USB. BLE device is a custom solution, based on a TI CC2650 chip, using the TI BLE-Stack 2.2.0.

Any hints or comments are appreciated!

Thanks in advance,
Simon Falsig

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Reading manufacturer-specific advertisement data from BLE device
  2017-02-08 16:23 Reading manufacturer-specific advertisement data from BLE device Simon Falsig
@ 2017-02-10 11:39 ` Marcel Holtmann
  0 siblings, 0 replies; 2+ messages in thread
From: Marcel Holtmann @ 2017-02-10 11:39 UTC (permalink / raw)
  To: Simon Falsig; +Cc: linux-bluetooth

Hi Simon,

> I'm currently trying to read manufacturer-specific data from an advertisement from a custom BLE device, using the BlueZ D-Bus API, but can't seem to get it working.
> 
> I can see my device when doing a scan in bluetoothctl, but haven't figured out how to get to the actual advertisement data. I've tried modifying bluetoothctl to get the "ManufacturerData" property, but this is not found (g_dbus_proxy_get_property returns false). Also, no ManufacturerData property (or similar) shows up for the device in d-feet.
> 
> I have a small utility that just uses the hci API directly, and using that, I can get the complete contents of the advertisement, including the manufacturer-specific data. Full data is (in hex):
> 
> 02 01 06 03 02 e0 c0 11 ff 00 02 01 03 00 00 00 00 00 00 00 00 5d 58 0e 94
> 
> Is there something wrong in the way I'm sending out the data, or do I need to register for data in some way to get it working for the D-Bus API also?
> 
> I'm using BlueZ 5.37 on KUbuntu 16.04 (running in VirtualBox), using an Aircable Host XR4 Bluetooth adapter connected over USB. BLE device is a custom solution, based on a TI CC2650 chip, using the TI BLE-Stack 2.2.0.
> 
> Any hints or comments are appreciated!

not sure when the support for ManufacturerData went into BlueZ. However try the latest version and run btmon to verify it is actually transmitted in the advertising report itself.

Regards

Marcel


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-02-10 11:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-08 16:23 Reading manufacturer-specific advertisement data from BLE device Simon Falsig
2017-02-10 11:39 ` Marcel Holtmann

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.