I can't connect to a bluetooth headset when the headset is connected to a computer


Question

http://en.miui.com/thread-247552-1-1.html



Basically I got an error that I insert wrong pin or password. However, I can connect to the device before without problem.



So I tried the only thing that make sense. I remove the device from my PC.



Then I can connect.



However, it's very strange. That means if a device is paired with some device and I lost the device, I will not be able to ever pair that device with anything.



Or is it because I happen to be close to the computer?



http://en.miui.com/data/attachment/forum/201603/24/124058xr2qq3eurgymnquq.png.thumb.jpgenter image description here



Am I correct here?



What's actually happen with bluetooth? Should we pair a bluetooth device with one and only one device all of the time? What about if we pair with one and the pair is gone?


Answer

Your title talks about connecting, but the question body talks about pairing. These are two different things.



When you pair a Bluetooth peripheral (such as a headset) with a central (such as a phone or PC), the two devices swap cipher keys that allow them to keep their radio transmissions secure in future. Once they're paired, they remember the cipher keys forever. They can later connect to each other without having to pair again. If you like, pairing is like swapping phone numbers, while connecting is like calling their phone.



Normally, if you leave Bluetooth turned on on a phone or PC, it will keep looking for peripherals it has paired with before, and automatically connect to them as soon as they're in range. This makes it a lot easier for you, because you just have to turn on the headset and it's immediately ready to use. In this case it seems to have caused some confusion, though.



Any Bluetooth device can pair with several devices: exactly how many depends on the device, and how much memory it has. Some very cheap headsets may only pair with one, but usually they can remember up to a dozen pairings. When you pair with too many devices, it just forgets the oldest pairings. (Like erasing your old friends' phone numbers from your phone book to make space for newer friends.) Bluetooth centrals can pair with lots of devices at once.



Just like you can only call one phone at a time, a Bluetooth peripheral can only be connected to one central at a time. It needs to disconnect before another central can try to connect to it.



In your case, it looks like the headset was connected to the PC when you tried to pair it with your phone. This couldn't work, because a second central can't connect to the same peripheral. When you unpaired it from the PC, the PC also disconnected, which then made it available for the phone to connect to. In practical terms, what this means is that if you want to keep using it for both, and you want to control whether the PC or phone connects to it, either keep unpairing and pairing again (like you already did), or turn off Bluetooth on the PC when you want to connect with your phone (and vice-versa).


Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes