linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How can you set Transmit power level in Bluetooth LE mode for an LE beacon?
@ 2016-10-09 16:11 Steve Gladden
  2016-10-11 16:50 ` Steve Gladden
  0 siblings, 1 reply; 13+ messages in thread
From: Steve Gladden @ 2016-10-09 16:11 UTC (permalink / raw)
  To: linux-bluetooth@vger.kernel.org

Hi, 
My name is Steve and I am located in Ann Arbor Michigan USA.  

I am new  bluetooth LE and lately am obsessed with Bluetooth LE beacons and trying them out.   

I have read article after article and page after page about how people have setup up beacons with USB BT 4.0 interfaces 
as well as serial bluetooth boards.  

I am currently experimenting with a beacon running on a Raspberry Pi-B and using an external USB Bluetooth 4.0 class 1 dongle.  

My frustration is that I have not been able to find any useful information in how to change the Transmitter power level when in 
LE mode.   

The dongle appears to be working at default level below zero dbm. 

The whole point of building your own beacon this way is to be able to customize it and setting the power level is an important key item
that should be easily accessible yet I find that NOBODY ever even mentions it let alone do they explain or provide a way to set the power.  
 

Every text that I have found that details beacon setups from command line never bother to mention setting beacon TX power.   

All the pages I have found seem to copy each other and repeat the same information over & over 
But never get around to even mentioning or discussing setting the power output level of the blutooth dongle.  

sudo hcitool -i hci0 cmd 0x08 0x0008 1E 02 01 1A 1A FF 4C 00 02 15 [ 92 77 83 0A B2 EB 49 0F A1 DD 7F E3 8C 49 2E DE ] [ 00 00 ] [ 00 00 ] C5 00

The byte just left of the last one is the "reported" TX level that you are transmitting at.  
Which means you're supposed to know (or guess?) what dbm level you are actually transmitting at and set it here to display to the world what your transmitter level is set to so they can range (guess or estimate distance from TX).  
This value does not influence or reflect actual transmit power.   

Please help!!   

Could use any pointers.   

I'm a hardware guy as well so not very experienced in software/programming but I'm willing to try anything to get control of this.  

Been at this for over a week and have some working beacons but no control of transmit power level.  

Am using Trendnet USB dongles which appear to use a Cambridge Chip.  But I'm not exactly sure which chip.  


:~# lsusb
Bus 001 Device 007: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)


root@raspberrypi:~# hciconfig hci0
hci0:   Type: BR/EDR  Bus: USB
        BD Address: 00:15:83:EA:0A:B9  ACL MTU: 310:10  SCO MTU: 64:8
        UP RUNNING
        RX bytes:780 acl:0 sco:0 events:50 errors:0
        TX bytes:1110 acl:0 sco:0 commands:50 errors:0















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

end of thread, other threads:[~2016-10-24 21:24 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-09 16:11 How can you set Transmit power level in Bluetooth LE mode for an LE beacon? Steve Gladden
2016-10-11 16:50 ` Steve Gladden
2016-10-11 17:38   ` Barry Byford
2016-10-11 17:52     ` Steve Gladden
2016-10-12  5:00       ` Hieu Le
2016-10-12  7:22         ` Johan Hedberg
2016-10-12 15:33         ` Steve Gladden
     [not found]           ` <CAHFy41_8FzDF-jATapn20Km8vbX6nt44DN9uPnazDMOJ_yD=Kw@mail.gmail.com>
2016-10-13 13:54             ` Steve Gladden
2016-10-16 21:56             ` Steve Gladden
2016-10-16 22:48               ` Jason Anderssen
2016-10-17  4:15                 ` Steve Gladden
2016-10-19  7:22                   ` Andrei Emeltchenko
     [not found]                 ` <E870213FE4F9C248AE722569E8374C6A386A32B414@X2.michiganbb.local>
2016-10-24 21:24                   ` Steve Gladden

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).