Skip to contentSkip to conversation

Transmit Power Level (TPL)

Bluez-users Mahtab Hossain 2 participants 2 messages May 30, 2006 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Hi,

I have been trying to work on the various signal strength values (RSSI, LQ & TPL) for quite sometime now. Though I am successful in getting RSSI & link quality (LQ) for my dongles (from both hcitool command & my own program), I always get Transmit Power level (TPL) as 0 - I have tested in various distances. My dongles are either ISSC or Broadcom-based (no CSR dongles) - all of them support "power-control" feature.

And Marcel, I had also digged your code and saw that, you take a parameter for transmit power level calculation (the "type" field) in "hci_read_transmit_power_level" function and you set the parameter as:
type = (argc>1) ? atoi(argv[1]) : 0;

Since no argument is given, the type field is always 0. Does it have any significance? I have also seen that this type field is not required for RSSI or LQ calculation.

Finally, I only see "Get_Link_Quality" and "Read_RSSI" in bluetooth specification 1.0.B - no mention of "Transmit Power Level" there. My dongles are bluetooth 1.2, so, is there a possibility that they didn't provide transmit_power_level status value similar to that previous specification. I think bluetooth specification 1.0.B is the free one available till now. If later versions are available, could anyone please provide me the link.

Lastly, if anyone could get bluetooth transmit power level (TPL) values other than 0, please let me know (preferrably with the dongles and bluetooth versions used in the dongles).

Thanks
Mahtab

---------------------------------
Be a chatter box. Enjoy free PC-to-PC calls with Yahoo! Messenger with Voice.

_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

maintainer
#1 lore raw

Hi Mahtab,

Quoted 7 lines

I have been trying to work on the various signal strength values (RSSI, LQ & TPL) for quite sometime now. Though I am successful in getting RSSI & link quality (LQ) for my dongles (from both hcitool command & my own program), I always get Transmit Power level (TPL) as 0 - I have tested in various distances.
My dongles are either ISSC or Broadcom-based (no CSR dongles) - all of them support "power-control" feature.

maybe ISSC and Broadcom simply don't implement it correct. Get yourself a CSR based dongle and retest.

Quoted 4 lines

And Marcel, I had also digged your code and saw that, you take a parameter for transmit power level calculation (the "type" field) in "hci_read_transmit_power_level" function and you set the parameter as:
type = (argc>1) ? atoi(argv[1]) : 0;

Why don't you read the specification. If you give it 0 it will request the current power level and with 1 it request the maximum power level.

Quoted 5 lines

Finally, I only see "Get_Link_Quality" and "Read_RSSI" in bluetooth specification 1.0.B - no mention of "Transmit Power Level" there. My dongles are bluetooth 1.2, so, is there a possibility that they didn't provide transmit_power_level status value similar to that previous specification.

You should double check with "hcidump -X -V" that they really not report and error and hcitool is doing it wrong. But it can happen that they didn't actually implement transmit power level at all and they always return the value 0.

Quoted 3 lines

I think bluetooth specification 1.0.B is the free one available till now. If later versions are available, could anyone please provide me the link.

The current Bluetooth specification is version 2.0 and you should always use this one.

Regards

Marcel

_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users