0

Is it possible to set the transmission rate of a beacon to 15Hz with bluez ?I think the default rate is 1 Hz which is very low.

user3235881
  • 487
  • 2
  • 9
  • 24

1 Answers1

0

You can certainly use BlueZ to increase the transmission rate. Check out my answer here on how to set it to 10 Hz:

Is there a way to increase BLE advertisement frequency in BlueZ?

In my case, I was never able to make my dongle transmit more often than 10 Hz. But that might be dongle-specific. If the commands needed to set it to 15 Hz are:

sudo hciconfig hci0 up
sudo hcitool -i hci0 cmd 0x08 0x0008 1e 02 01 1a 1a ff 4c 00 02 15 e2 c5 6d b5 df fb 48 d2 b0 60 d0 f5 a7 10 96 e0 00 00 00 00 c5 00 00 00 00 00 00 00 00 00 00 00 00 00
sudo hcitool -i hci0 cmd 0x08 0x0006 78 00 78 00 03 00 00 00 00 00 00 00 00 07 00
sudo hcitool -i hci0 cmd 0x08 0x000a 01

If your bluetooth interface's max transmission rate is lower than 15 Hz, the commands above will probably just end up setting it to the max rate.

Community
  • 1
  • 1
davidgyoung
  • 63,876
  • 14
  • 121
  • 204
  • Thank you, is it possible for me to identify my bluetooth interface's max transmission rate ? – user3235881 May 12 '16 at 14:43
  • I think it worked I am almost not detecting the beacon anymore, 2 detection in 10 scan period, It's probably transmitting too fast – user3235881 May 12 '16 at 15:10
  • I don't think you can find the max transmission rate without getting documentation for your chipset or trial and error. It is possible to write code to count packets received per second on iOS, Android and OSX. – davidgyoung May 12 '16 at 15:26