I'm trying to connect my Microsoft Band 2 to Windows 10 via bluetooth to start working through the sample projects given in the sdk, but I can't seem to get connected.
I've worked through all the solutions mentioned in the link below, but none seem to apply specifically to the Band 2. Any suggestions?
Microsoft Band SDK on Windows 8,1
Edit with Solution:
The problem was caused because I was running my Windows app through a virtual machine and Bluetooth was shared between the host and the VM. I fixed the problem by using a USB Bluetooth Adapter only available to the VM, restored my band to factory settings, paired it via USB to the Band app, then paired it to Bluetooth. Now works perfectly.
is your Band paired to your Windows machine? You have to pair it first. If it is, did you setup the app manifest for the BT device?
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
Hi I have a USB RFID Reader/Writer with name "Silicon labs CP210x", I develop a windows app with C# in Visual studio 2015 that could Read/Write on RFID Card, its worked fine...
I change my Windows on my notebook (prev Windows and new Windows are Windows 10) and install Visual Studio 2017...Now when I open solution and run application see this error:
System.ArgumentOutOfRangeException occurred
HResult=0x80131502
Message=The maximum baud rate for the device is 8190.
While googling in this error, I see some guys say that the error related to baudrate of reader But the reader and my application work fine until I change Windows and it should not related to baudrate ...ِI think its dont related to driver because the driver work on prev windows fine...Does anyone have any experience in this error?
I also encountered this problem and it was solved by uninstalling Silicon Labs Windows 10 Universal drivers and installing the Silicon Labs Windows 7/8/8.1/10 drivers.
This error has not been reported before.
Have you tried opening the port with a standalone PC serial terminal program like Teraterm or Realterm? I have seen C# hardcoding DCDs for the serial ports that have caused issues previously.
Can you go to your Device Manager, open Ports, right-click on the CP210x port, bring up Properties, go under Details, and scroll down to Bus reported device description? That should have the actual chip type listed, ie "CP2102N USB to UART Bridge Controller".
Also, it would be a good idea to update the driver as well. Windows Update should provide the latest driver, but you can compare your version to the version on the Silicon Labs website at https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers
I have come to the point that my Windows phone emulator can not be connected to wireless network.
My system is connected through WLAN. I am getting error:
"System.Servicemodel.CommunicationException"
How do I connect to Wireless Network?
You can't connect your emulator to a different network that the one your computer is connected to, for a simple reason : your emulator isn't a physical device, and therefore does not have it's own network card. It gets it's internet connection from the computer on which the emulator runs. If you really need this connection to test your app, the only way is to test it on a physical device.
Check this Windows Phone 8 emulator can't connect to the internet I also suffered a lot from this. The solution that worked for me is deleting the emulator from the hyper v manager and recreating it from visual studio
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 writing a BT app on an android to connect to a lab device/hardware. At the present time I have a device on loan. However it is not possible for me to always have one while I am developing for it, (commuting, out of town, etc) Therefore I am creating an emulator for it and will run that emulator on my Windows desktop so that my Android client code can make connections to it.
The android code is built with .NET/xamarin and works fine connecting to the real device.
I am comfortable with C++ or C# on the desktop.
I have found this code http://www.codeproject.com/Articles/252882/Bluetooth-Server-Programming-on-Windows online to create and accept BT connections. it looks like a very good start for what I wish to do - which is build a state machine/emulator to mimic the real device. However I have been unable to connect my android device to it.
Note - the connection is a serial port connection. (the UUI coming from the android device is the "well known" serial port connection ("00001101-0000-1000-8000-00805F9B34FB")
I am not sure how to configure the windows 7 desktop and bluetooth services to allow this server/emulator program to accept connections.
I have paired the devices, but unable to connect.
How can I accept incoming Bluetooth serial connections in the C++ or C# code running on Win7 desktop?
If you want to do low level stuff like establish a connection via bluetooth through a C# app then you will need to access the bluetooth stack via its API. If your device is running the Microsofts Bluetooth Stack then you can look at 32feet.net's managed wrapper for Microsofts Bluetooth API. If you have the Widcomm stack then you will have to locate Widcomm's API for it.
To access the microsoft bluetooth stack, you can use the BthUtil.dll.
BthUtil.dll is an unmanaged dll which is part of the Microsoft Bluetooth stack. It's typically utilised for tasks such as turning the bluetooth radio on or off via a function called BthSetMode
(see MSDN for documentation - http://msdn2.microsoft.com/EN-US/library/aa456007.aspx)
You can check the following links:-
http://www.youtube.com/watch?v=Jn05CU3mxzo
Also, check the 32feet.Net
A Brief description of 32feet.Net
32feet.NET is a shared-source project to make personal area networking technologies such as Bluetooth, Infrared (IrDA) and more, easily accessible from .NET code.
Supports desktop, mobile or embedded systems.
32feet.NET is free for commercial or non-commercial use.
If you use the binaries you can just use the library as-is, if you make modifications to the source you need to include the 32feet.NET License.txt document and ensure the file headers are not modified/removed. The project currently consists of the following libraries:-
Bluetooth
IrDA
Object Exchange
Bluetooth support requires a device with either the Microsoft, Widcomm, BlueSoleil, or Stonestreet One Bluetopia Bluetooth stack. Requires .NET Compact Framework v3.5 or above and Windows CE.NET 4.2 or above, or .NET Framework v3.5 for desktop Windows XP, Vista, 7 and 8.
Link
http://32feet.codeplex.com/
Feature link for 32feet.Net
http://32feet.codeplex.com/wikipage?title=Feature%20support%20table&referringTitle=Documentation