Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows 10 Connect to Bluetooth Classic Device without Pairing

According to Microsoft's latest docs:

Do I have to pair Bluetooth devices before using them? You don't have to for Bluetooth RFCOMM (classic) devices. Starting with Windows 10 release 1607, you can simply query for nearby devices and connect to them. The updated RFCOMM Chat Sample shows this functionality.

However, when I try to connect to my devices using this chat sample, I get a notification that asks me to "set up the device", like I was going through a normal pairing process.

Am I missing something?

The snippet of code that I changed from the sample:

var rfcommServices = await bluetoothDevice.GetRfcommServicesAsync(BluetoothCacheMode.Uncached);
like image 957
Dirk Avatar asked Dec 12 '17 21:12

Dirk


2 Answers

First thing to test is the bluetooth protocol used to be RFCOMM in both client and server. Link Check that both client and server hardware support the RFCOMM Check the bluetooth versions in both client and server link

based on wikipedia bluetooth has many protocols.

Second is to check windows version

enter image description here

like image 178
Ibrahim Kais Ibrahim Avatar answered Oct 25 '22 06:10

Ibrahim Kais Ibrahim


Taken from msdn resources:

Windows 10 Mobile is currently limited to connections with only paired devices. In Windows 10, you can programmatically pair/unpair. See scenarios 8 and 9:

https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/DeviceEnumerationAndPairing

Here’s is the related MSDN documentation on pairing and the relevant device selectors for enumeration.

https://msdn.microsoft.com/en-us/library/windows/apps/windows.devices.enumeration.deviceinformationpairing.aspx

https://msdn.microsoft.com/en-us/library/windows/apps/windows.devices.bluetooth.bluetoothdevice.aspx

But I also know that you can use direct bluetooth connections on lower level and this way windows won't suggest you pairing. For example, that's how things work with 32feet.net library, discussed in this answer (I worked with it and it was fine, however it is currently unsupported so please beware of it).

like image 25
Jehy Avatar answered Oct 25 '22 08:10

Jehy