about the RSSI value: I need to get RSSI value from remote devices, and i found something in IOBluetooth.h file, for HCI layer, but there is no instructions about how to use them
about the RSSI value: I need to get RSSI value from remote devices, and i found something in IOBluetooth.h file, for HCI layer, but there is no instructions about how to use them
- Subject: about the RSSI value: I need to get RSSI value from remote devices, and i found something in IOBluetooth.h file, for HCI layer, but there is no instructions about how to use them
- From: "Yan Zhang" <email@hidden>
- Date: Fri, 2 Feb 2007 15:01:04 +0100
typedef UInt8 BluetoothHCICommandOpCodeGroup;
typedef UInt16 BluetoothHCICommandOpCodeCommand;
typedef UInt16 BluetoothHCICommandOpCode;
typedef UInt32 BluetoothHCIVendorCommandSelector;
#define BluetoothHCIMakeCommandOpCode( GROUP, CMD ) ( ( ( ( GROUP ) & 0x003F ) << 10 ) | ( ( CMD ) & 0x03FF ) )
#define BluetoothHCIMakeCommandOpCodeEndianSwap( GROUP, CMD ) ( CFSwapInt16HostToLittle ( BluetoothHCIMakeCommandOpCode( GROUP, CMD ) ) )
#define BluetoothHCIExtractCommandOpCodeGroup( OPCODE ) ( ( ( OPCODE ) >> 10 ) & 0x003F )
#define BluetoothHCIExtractCommandOpCodeCommand( OPCODE ) ( ( OPCODE ) & 0x03FF )
#define BluetoothHCIMakeCommandOpCodeHostOrder(GROUP, CMD ) OSSwapLittleToHostConstInt16( ( ( ( GROUP ) & 0x003F ) << 10 ) | ( ( CMD ) & 0x03FF ) )
.
.
.
.
.
// Command Group: Status
kBluetoothHCICommandGroupStatus = 0x05,
kBluetoothHCICommandReadFailedContactCounter = 0x0001,
kBluetoothHCICommandResetFailedContactCounter = 0x0002,
kBluetoothHCICommandGetLinkQuality = 0x0003,
kBluetoothHCICommandReadRSSI = 0x0005,
.
.
.
typedef UInt8 BluetoothHCIRSSIValue;
typedef struct BluetoothHCIRSSIInfo BluetoothHCIRSSIInfo;
struct BluetoothHCIRSSIInfo
{
BluetoothConnectionHandle handle;
BluetoothHCIRSSIValue RSSIValue;
};
any body has any ideas? I really need the RSSI value!
thank you very much!
--
Best Regards From
Yan
张彦
------------------------------------------------------------
From Ningbo China
Now in Karlskrona Sweden
Polhemsgatan 27A
371 40 Karlskrona
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden