I've written an application using 32feet library. It works on Windows 7,8,10. I can find my device, connect to it, send and receive data, but the application doesn't work on Windows XP. It can't find any bluetooth devices. I need to get it working on XP.
What could be the reasons for that? Does somebody knows?
Related
We are looking to access and use Bluetooth profiles in our WPF application using C# in Visual Studio 2017.
Issue details:
Platform: Windows 10 Pro - version 1803.
Issue brief: We are trying to access Bluetooth profiles via desktop(c#) of connected phones, however on windows 10 the profile show enable but the profiles are not working eg: HFP connects, however, the voice is not heard
We have tested this on following Bluetooth devices:
1.Bluetooth CSR 4.0 Dongle (CSR8510 A10) (Note: this Bluetooth connects and show HFP and works as expected, however, the Bluetooth does not show on the device list and hence we cannot connect programmatically using c#)
2.IOGEAR's Bluetooth 4.0 (Model GBU521W6) (Shows on device list and our application can detect a device, however, HFP is not working as expected both from the application or from normal device section)
Required Profiles:
1.Hands-Free Profile (HFP)
2.Message Access Profile (MAP)
3.Phone Book Access Profile (PBAP)
We have Already Tried with following:
Updating drivers
Tried uninstall install many times
Used android, ios, and windows phone's
Side note: Our application with same code works on windows 7
MAP abd PBAP is not a problem because both are OBEX based (which is RFCOMM).
However there can be some problems with HandsFree. It works great with BlueSoile drivers. But with standard microsoft may not work.
The first step it to use BluetoothSetServiceState with HFP UUID to tell windows to install drivers for your device's HFP profile. If function succeed you should see 2 audio devices appeared in your system: one is Inout and other is Output. You can find them using any media API (DirectSound, legacy API).
To be able to work with PBAP and MAP you need anyhow connect to your device through RFCOMM. WinSock or any other way is good.
Please note that the method above works only with Microsoft Bluetooth drivers. Other drivers (BlueSoleil, Toshiba) have absolutely different API so you have to add it into your application if need to support them.
Or you can simple take a look on BluetoothFramework
I'm fairly new to C#, and I'm currently working on integrating an Arduino Uno with a Kinect for Windows sensor. I'm building on someone else's work migrating the environment to a Windows 8.1 App, and to the new Kinect sensors released in 2014. I've looked everywhere else on how to integrate serial communication into Windows 8.1 apps, but it appears that it hasn't been done before, or the functionality has not been added to Windows 8.1, evidenced by the error I get when I attempt to add the System.IO.Ports library. So my question is whether this can be worked around or not. I'm using Visual Studio 2013, .NET v4.6, and the target platform is x86. Any more information can be provided on request. Thank you so much!
EDIT on 10/08/15 at 14:03: I've figured out that if I can write a Windows Forms Arduino COM interface and call that from within the 8.1 App when the serial ports need to be initialized or written to, it might work. Am I addressing this correctly? It would be great to know if this was the right way to approach it. Thanks again!
You are basically right, you have to create three apps, win8.1, proxy and serial handler. The resulting app won't be allowed in the windows store.
Here is an example app
Excellent How To here
In a normal Windows Forms Application for laptops (not a Windows store application) I need to communicate with a Bluetooth device.
For communicating with Bluetooth I need Windows' Bluetooth libraries:
see this link
Can anyone tell me how to add this reference into a normal application ?
My impression is that Microsoft has totally forgotten that normal applications need to communicate with Bluetooth as well sometimes .
Or am I overlooking something ?
I think this question has been asked in different forms but there is no clear answer.
I want to be able to discover all available BLE device and connect to any of them. My peripheral device advertises a certain service. I read about 32feet.NET library and tried to use it but apparently it does not support BLE, and the only way I can scan my device through this library is to connect to windows first and then do the discovery.
I also went through this article: Acuire data by C# from BLE but it didn't work for my device and I couldn't do any scanning. I even bought TI BLE dongle and tried their sample app: TI sample app but it didn't work with my peripheral device.
Then I tried to use Windows 8 sample code for BLE Heart-rate app it worked fine with a heart rate BLE sensor, but still I couldn't get it to work with my peripheral device.
I thought there is a problem with my device but there is an app in iPhone called LightBlue which discovers BLE devices and can act as a peripheral device too, I even used that app but couldn't get it to work with Windows.
So my question is, is there any way or library or anything for C# that I can use to scan BLE devices and connect to them and send/received date?
Thanks
I wasn't able to find a library for Windows Form styled programs, however, Universal Windows Apps have the Windows.Devices.Bluetooth namespace which will allow you to do everything you described (it's a little rough around the edges, though).
I am a wp8 developer and searching for a way to deploy my app on device "without the cable". I have searched over the web and could find nothing helpful. I know about he "Application Deployment" tool in WP8 SDK and my phone is also Developer Unlocked. I know how to simply deploy an app on windows phone. All i am looking for is to know, Is there any way I can deploy my application to my phone without using the phone cable?
Lets say i dont have my cable with me, what options do I have now?
Currently you can't debug an app on your phone without the USB cable. You can do this when developing for Windows 8.x so perhaps with the coming WP8.1 update we'll get the same feature for the phone..
There is the beta testing you could do for a test deployment through the store but the app will run through the cert. process so this is no option for testing while developing and there is no debugging.
You can only use the cable to deploy to your device. If you dont have a cable with you, just use the emulator.