Thor77 / Blueproximity

Run a command once a bluetooth device is in/out of a range
GNU General Public License v2.0
66 stars 15 forks source link

pin needed, but not accepted #12

Closed Thor77 closed 8 years ago

Thor77 commented 8 years ago

When running blueproximity, my mobile phone asks me for a pin. When I enter the pin from /etc/bluetooth/pin, I get the error "could not connect" ("Kopplung fehlgeschlagen") on the mobile phone. blueproximity stays in the state "no connection found, trying to establish one".

Thor77 commented 8 years ago

Logged In: YES user_id=114903 Originator: NO

Ok, I'll put my last post into the FAQ and manual then... (By highno)

Thor77 commented 8 years ago

Logged In: YES user_id=1692926 Originator: YES

wohoot, it works :) (By thstaerk)

Thor77 commented 8 years ago

Logged In: YES user_id=114903 Originator: NO

Ok, I got it: Please install the gnome-bluetooth applet if that is not there yet. With Ubuntu the package's name is bluez-gnome. After starting the applet (bluetooth-applet) you should configure your computer as laptop and visible to others. (Right click on the new Bluetooth icon and click on Preferences/Einstellungen) Afterwards take your phone and do something similar to these steps: (I have a nokia 6230)

  1. If BlueProximity is running, rightclick on its icon and select "Pause"
  2. Take the phone and enter the BT menu
  3. Move to "Paired Devices" (Gekoppelte Geräte)
  4. Select Options->"Pair new device" (Neues Gerät koppeln) The phone should look for unpaired bluetooth devices in reach. It should then show at least your notebooks name (as found in the bluetooth applets settings)
  5. Select your notebook and it should ask you for your pin. Now enter the pin from /etc/bluetooth/pin.
  6. The bluetooth applet should now state that it trusts your mobile (created bonding).
  7. You should now change the settings for the notebook on your phone, so select the notebook
  8. Select Options->connect without confirmation (Automatische Verbindung ohne Bestätigung) and set that to Yes. Now you are ready to use BlueProximity. Please note again that the above steps are only valid on a nokia 6230 - if your phone is different, you should adopt the above procedure to your phones menu setup. If BlueProximity is still in Pause mode click on Pause again. It should now connect without any hassle.

Hope this helps - it will go into the next versions manual/FAQ.

Bye Lars (By highno)

Thor77 commented 8 years ago

Logged In: YES user_id=114903 Originator: NO

This error relates to the phrase "device must be paired already". This pin exchange is a process of exchanging a shared key to secure the communication of two bluetooth devices. This step is called "Pairing" and has to be done only once for each device-device combination. To be honest, I had problems with that too. I will have to recheck how I solved it. I believe it had to do with some other app I installed to communicate to the phone which did the pairing alright. I didn't need any other pin entry after that pairing. Please stay tuned for this one... (By highno)