Questions tagged [pairing]
Bonding of two devices, eg two smartphones, or a computer and keyboard. Term is commonly heard in combination with Bluetooth. When pairing successfully completes, a bond forms between the two devices. This enables those two devices to connect to each other in the future without repeating the pairing process to confirm device identities. When desired, the user can remove the bonding relationship.
pairing
248
questions
41
votes
2
answers
32k
views
Programmatically pairing with a BLE device on Android 4.4+
Does anyone have a complete working example of how to programmatically pair with a BLE (not Bluetooth Classic) device that uses passkey entry (i.e. a 6-digit PIN) or Numeric Comparison on Android 4.4 ...
33
votes
13
answers
31k
views
Pair new device over Wi-Fi not working in Android Studio Bumblebee
when I try to pair a device, neither QR code or Pairing code work and just get stuck searching for a device...
I have a phone with Android 11 & 12 and Wi-Fi debugging is on.
19
votes
2
answers
21k
views
Android Bluetooth - Paired vs Connected, what's the difference?
android noob here!
Is there a difference between when two android devices (smartphones) are 'paired' and when they're 'connected'? If so, what is the difference when transferring data from one to the ...
13
votes
1
answer
11k
views
Bluetooth Difference between pairing and paging, bonding
When I study Bluetooth, I am confused to understand Bluetooth connection and pairing, bonding, etc.
As far as I know, Bluetooth Connection has these steps:
Inquiry - discover
Paging - using the ...
12
votes
3
answers
38k
views
Android Bluetooth pairing without the user enter a PIN code and confirmation using the Android API
I'm a beginner in Android programming since I only started three months ago.
I'm doing a project which connects the Android app to Arduino using Bluetooth. I already have a code for the Android app (...
11
votes
2
answers
2k
views
Pre-pairing bluetooth devices
I would like to be able to pre-pair bluetooth devices, to save the step of user confusion when using the app. I have discovered that there is a patent for
System, method and apparatus for pre-pairing ...
11
votes
11
answers
5k
views
Pairing new device on Android Studio BumbleBee over Wifi
I have recently updated to Android Bumblebee.
And I am trying to connect my device wireless through wifi . But I get always get the message as seen in screenshot below .
I have updated to latest ...
11
votes
0
answers
718
views
Phone (as peripheral role) doesn't show Pairing dialog when in JustWorks pairing mode
I'm writing an Android application that connects to a physical device via BLE. Android app will act as peripheral role while the device is central. Device I/O Capabilities is also set to ...
9
votes
2
answers
14k
views
Bluetooth "out of band" (OOB) pairing on Android?
I've been searching the internet and haven't seen anything in the way of how to exactly implement OOB pairing. I was hoping somebody here could point me to some example code to help me out. The chat ...
9
votes
0
answers
5k
views
Android Remote control app (on phone) for controlling Android TV
I've skimmed through the Google TV Pairing protocol and downloaded the TV Paring protocol sample code from https://code.google.com/p/google-tv-pairing-protocol/
I've also read about the Anymote ...
8
votes
2
answers
6k
views
Problem with pairing device using wifi in android studio
I want to pair my android device by scanning QrCode in device manager android studio.
Sometime it works but often it doesn't work.
when I scan QrCode it waits in state below
I try ways below:
1- ...
8
votes
1
answer
2k
views
Windows iot/apps Programmatic Bluetooth Pairing
I'm trying to broadcast a bluetooth signal from a Raspberry Pi 2 running Windows Iot Core so that I can connect to it from smartphones and other devices, but I've been stuck for the last couple days ...
7
votes
1
answer
4k
views
Android Bluetooth Peripheral: Connection terminated by peer (Status 19)
Developed an application which acts as peripheral and connects with other device (central only).
It's working fine in devices having OS version 6.0, but getting some issues in Nougat 7.0.
I've ...
7
votes
2
answers
3k
views
BLE with Android 5.0 : How to get a device to act as Central AND Server?
I'm using two Android 5.0 devices to communicate through Bluetooth Low Energy and I wan't :
Device 1 to act as Central and Server.
Device 2 to act as Peripheral and Client.
This is the behavior I'...
6
votes
4
answers
6k
views
Error connecting to mac from visual studio
I have the right IP address although when I go to connect to my mac I get this error message:
An error occurred while generating the SSH keys. Please check that the environment is properly configured....
6
votes
1
answer
2k
views
Find optimal unique neighbour pairs based on closest distance
General problem
First let's explain the problem more generally. I have a collection of points with x,y coordinates and want to find the optimal unique neighbour pairs such that the distance between ...
6
votes
3
answers
20k
views
Android Bluetooth accept() / connect() with already paired devices
I am having trouble connecting two Android devices via Bluetooth, which happens only when they have been paired before. I am running one as the server and the other as the client.
Here is the ...
6
votes
3
answers
6k
views
Programmatically bonding to BLE device on Android
I'm writing an Android application in which I'd like to programmatically bond to a custom BLE device. I have the manual bonding working in which the user enters the PIN using the standard Android ...
6
votes
2
answers
6k
views
Android Bluetooth not Showing Pairing Dialog
I am trying to pair my HTC myTouch 3G with a Bluetooth device that will stream data via SPP to the phone. I have looked at the Chat examples and found them lacking for what I need due to the fact of ...
6
votes
1
answer
666
views
Android Bluetooth pairing Security
Since I upgraded to android 4.2 I'm having trouble when I try to pair a device
The device should be paired but now it says that across_user_permission is required.
Here is the error log :
error:...
6
votes
0
answers
2k
views
BLE Out of band (OOB) pairing on iOS (13+)
I'm working on an iOS application (for iOS 13+), that should use the most secure BLE pairing method, Out of Band pairing (OOB) (which usually uses an NFC tag for BLE address/temporary key (TK) storage)...
6
votes
0
answers
926
views
Show default Bluetooth pairing request dialog
I am really struggling with this problem and I cannot find a way to do it. I need to show the default dialogs from Android when pairing with a Bluetooth device.
Right now I achieved to pair them ...
5
votes
1
answer
12k
views
Connecting to a already paired Bluetooth device
Recently I tried to get a pairing process to work programatically and I succeded. But I recently found out that the users of my application can be connected to several of "interesting" devices. So I ...
5
votes
0
answers
1k
views
Bluetooth pairing in iOS: how to tell if pairing dialog will come up?
I am using Apple's Core Bluetooth example code (here, with slight modifications) to scan for Bluetooth Low Energy devices and connect with the device I want. On the first connect this brings up the ...
5
votes
0
answers
1k
views
Secure BLE pairing - is it possible?
I'm trying to make a BLE device that actually pairs securely. As far as I know the transport encryption (using AES) is secure in all versions of BLE, once the 'Long Term Key' has been exchanged.
BLE 4....
4
votes
1
answer
9k
views
bluetoothctl does not show bluetooth low energy (BLE) device
I would like to pair my Bluetooth Low Energy Sport Watch (Suunto Ambit 3) to my Raspberry PI 3 B V1.2
I am using the RaspianOS Version 10 buster with kernel Version 5.4.79-v7+
This OS contains the ...
4
votes
1
answer
4k
views
An error occurred while generating the SSH keys. Please check that the environment is properly configured
Whenever I try to connect to my mac using visual studio 2019 I get this error message:
An error occurred while generating the SSH keys. Please check that the environment is properly configured. ...
4
votes
1
answer
737
views
How to get my app to send Bluetooth pairing request via NFC
I am trying to get two Android devices (M & O) to Bluetooth pair via NFC and have only just now managed to get it to partially work after weeks of Googling, trial-and-error and more Googling. At ...
4
votes
0
answers
2k
views
iOS10 Core Bluetooth returns ERROR "Authentication is insufficient" for write request
My iOS application receives "Authentication is insufficient" ERROR for write request when the procedure involve pairing.
iOS(Core Bluetooth) returns the ERROR if its OS version is 10 or more.
Until ...
4
votes
0
answers
2k
views
Android/Bluetooth programmatically pairing options
I have a list of BluetoothDevice and I want to pair programmatically with one of them that has a PIN.
I have read several posts here in which the subject is discussed, but I've found two very ...
4
votes
0
answers
3k
views
Programmatic Bluetooth PIN on iOS
If I obtain the PIN for a BLE device via some out-of-band means (e.g. QR code), is it possible to programmatically tell iOS the PIN so that it doesn't prompt the user when you connect?
I believe it ...
4
votes
0
answers
1k
views
UWP: BluetoothDevice.FromBluetoothAddressAsync throws 0x80070002 exception on non-discoverable & unpaired BT device
I'm trying to pair from a Universal Windows C# app to a Bluetooth - Serial converter, without user interaction.
Development is in Visual Studio 2015 under Windows 10 Pro, but app is intended to run ...
4
votes
0
answers
2k
views
Android: Programmatically pair bluetooth device
I'm trying to programmatically pair a phone to a bluetooth device. Although I am able to do so, a window still pops up asking the user to enter the PIN.
Is there any way to hide this window?
What I'm ...
4
votes
1
answer
943
views
Core Bluetooth: Cannot get iPhone (the central) and Mac (the peripheral) to pair
I am developing an iPhone application and a Mac application that communicate with each other via Bluetooth LE. The iPhone is the central, and the Mac is the peripheral. I would like the iPhone ...
3
votes
3
answers
18k
views
Auto-accept bluetooth pairing possible?
In the Android 2.3.3 BluetoothChat example with with createInsecureRfcommSocketToServiceRecord() API, users are still prompted to accept the pairing request, even though no PIN code is presented.
Is ...
3
votes
5
answers
6k
views
How to zip each individual element from two lists into one list using OCaml
If I have an input of a tuple containing two lists of integers of the same length, and I want my output to be a list of these two lists zipped, after extracting these two lists from the tuple how do I ...
3
votes
1
answer
6k
views
device.createInsecureRfcommSocketToServiceRecord doesn't work properly
I dowloaded the BluetoothChat sample project here :
https://android.googlesource.com/platform/development/+/master/samples/BluetoothChat?autodive=0%2F
The fact is, when I'm launching the app on two ...
3
votes
1
answer
326
views
IRK distribution when devices connected with public address
I have a question, for BLE experts, regarding the IRK exchanged when bonding occurs between two BLE devices with public address. I don't remember where I saw the statement that if during exchange keys ...
3
votes
2
answers
57
views
Generating group id for pairs of data frames in R [duplicate]
I have six data frames, some of which contain the same structure and values but some are not.
I have compared all combinations of those data frames using identical() in loop function and summarized ...
3
votes
1
answer
515
views
increase Android BLE bonding / pairing dialog timeout
I have an android app that connects to a BLE device and pairs with it using BleDevice.createBond(). the issue is that the dialog could disappear before the user noticing it.
here is a screenshot of ...
3
votes
1
answer
2k
views
Can I auto pairing and connect 2 BLE devices?
If I develop 2 BLE devices(not phone, not android), can I program them to auto pairing and connect?
Let's say, BLE A advertise BLE B, B authenticate A, B request connect to A, A and B connected, B is ...
3
votes
2
answers
5k
views
How to setup Bluez 5 to ask pin code during pairing
I implemented the org.bluez.Agent1 interface using QDbus and I would like to set a fixed pin (that I will provide to the users) in order to authenticate all the pairing request and reject them if the ...
3
votes
1
answer
2k
views
Android studio: Discovered Bluetooth device name not found and struggling to pair to device
I've developed an app that uses a specific Bluetooth module (an HC-06) to communicate with it, but first it needs to pair with it, and it does so using the following code...
BluetoothAdapter ...
3
votes
3
answers
303
views
Can multiple Android Wears can be paired to a single Android Device
Is it possible to pair multiple Android wears pointing or paring to a single Android device?
Running Android 4.3 and above.
I know that an Android wear cannot be paired with two or more Android ...
3
votes
1
answer
2k
views
Android BLE - Double 'Pairing Request' Dialog / Popup - Causing Failed Connection On 1st Try
I am further developing an Android App that acts as a wireless firmware updater for these Remotes / FOBs that our company produces for some of our products. These FOB's can connect to our app via ...
3
votes
0
answers
408
views
BlueZ API - OOB process?
How works OOB as pairing process for a LE setup, so NO classic bluetooth bredr?
Regardless of NFC as wireless transfer mechanism I was thinking of doing the following process manually as proof of ...
3
votes
1
answer
3k
views
Android : Programmatically pair a bluetooth device; Incorrect pin or passkey on some devices?
What I want to do :
I'm developping an Android specific app where I must pair a device automatically, without even displaying the usual dialog box to ask the user to input a passcode.
My code is ...
3
votes
0
answers
636
views
bluetooth pairing-dialog does not show up;
I am currently working on a bluetooth application and I am able to connect to paired and unpaired devices already but if i try to connect to a unpaired device the pairing dialog does not show up ...
2
votes
2
answers
924
views
Xcode 14 keeps stating iPhone has recently restarted, even though it has not [duplicate]
I am trying to build an app onto my iPhone using Xcode 14.
The app builds correctly and launches on an Simulator no problem. However, when I attach my iPhone 13 in the code device window it comes up ...
2
votes
1
answer
4k
views
User permission to pair with Bluetooth device
I was reading "Performing Common Central Role Tasks" and it has info on how to discover peripheral and how to connect to peripheral, but I cant seem to find how to check if user selected Cancel or ...