Link to home
Start Free TrialLog in
Avatar of Nasser Hamdan
Nasser HamdanFlag for United Arab Emirates

asked on

Bluetooth Wireless signal strength detection via C#

Hi All,

I have a bluetooth speakers connected to my PC, and i want a C# applications that can detect the bluetooth wireless connection strength?
is that doable, if yes can anyone give an example?

Thanks,
Avatar of HenrikBerglund
HenrikBerglund

Hi,

There are two commands in Bluetooth that alllowes you to check this, HCI_Read_Link_Quality and HCI_Read_RSSI. You need to check with your Bluetooth stack vendor if they support this in their API.
Avatar of Nasser Hamdan

ASKER

HI,

thanks for your reply, but this is my first time working with bluetooth, can u place these commands within c# sample code, or how to start?
Hi,

The problem is that Microsofts built in Bluetooth stack does not support Bluetooth A2DP profile, which is what I would guess that your speakers is using. Thus, you have some other Bluetooth stack installed on your computer. So, you need to:

- Figure out what Bluetooth stack is on your system. There are several different vendors that do support A2DP and I guess either you got it delivered with your computer or installed it when you installed the speakers.
- Locate the the API documentation for that stack and check if it supports what you want to do.
- After that its time to getting to C# stuff...

Sorry, I wish it had been easier...

Okay then, how i can know what bluetooth stack my PC is using?

Here are some ideas:
- Check control panel, maybe the Bluetooth configuration program shows the vendor id or stack name(Broaddcom, widcomm, toshiba, bluesolei, ..)
- Check device manager, the stack will have installed lots of devices in ports/audio etc. maybe the name is shown there.
- Check in c:\program files for any bluetooth stuff.
- Check speaker install cd,
- search for bluettoth on c:,
- search regedit for bluetooth
- You should have found it before reaching this line...


Okay man, i have disocvered that its bluesolei, so now from where to get a sample c# that communicate with it?
ASKER CERTIFIED SOLUTION
Avatar of HenrikBerglund
HenrikBerglund

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial