Skip to contentSkip to conversation

Power Transmit Level

Bluez-devel Israel Guío Muñoz 2 participants 2 messages Dec 5, 2005 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Hi all,

I am using bluez-libs and utils 2.22 to measure the current transmit power level in my application. I get good results when the power level is over zero, but when a negative value should be returned, I get extremly high values instead; for example, 250. My opinion is that this value is treated as unsigned integer when it is a signed integer. I am running on Debian, in case it matters.
If somebody has observed the same, please tell me so. I don't know whether the problem is in my computer or in the stack.

Thanks.

maintainer
#1 lore raw

Hi Israel,

Quoted 8 lines

I am using bluez-libs and utils 2.22 to measure the current transmit power level in my application. I get good results when the power level is over zero, but when a negative value should be returned, I get extremly high values instead; for example, 250.
My opinion is that this value is treated as unsigned integer when it is a signed integer. I am running on Debian, in case it matters. If somebody has observed the same, please tell me so. I don't know whether the problem is in my computer or in the stack.

take a look at the source code and the Bluetooth specification.

Regards

Marcel

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel