bluetooth pairing denied
Hello!
Ive tried to pair my mobile phone with pc without success heres what ive done: 1. ive setuped a pin by doing this Code:
echo -n "1234" >/etc/bluetooth/passkeys/default Code:
<policy user="root"> 4. preformed action Code:
hcitool scan 5. ive tried to pair my box with it like this and heres what i get: Code:
obexftp -b 00:12:EE:55:89:B9 -l Code:
tail /var/log/messages Code:
tail /var/log/syslog what am i missing here? thanks alot guys |
heres what packages i have installed
Looking for bluez in package list. Please wait... DONE The list below shows all packages with name matching "bluez". [ installed ] - bluez-4.64-i486-1 [ installed ] - bluez-firmware-1.2-i486-1 [ installed ] - bluez-hcidump-1.42-i486-3 if i understood right 4x bluez dosent use plain text pin when pairing? correct me if im wrong, i came accross that i need to use bluez-simple-agent for pin recognition but i dont have it installed. can someone point me to right dirrection? im wondering how can my phone recognize the pin, and also what governs pin now to be recognized when bluez 4.64 or later is concerned is it still bluez-simple-agent or something else? i didnt came accross any latest documentation. if you can point me so i can read i would greatly apprechiated. thanks guys |
I am no expert in this area, but I do have a working bluetooth connection between my PC and my phone. I did not edit the /etc/dbus-1/system.d/bluetooth.conf file so it reflects the Slack 13.1 installed version (I am assuming you are on the same Slackware version). Nor did I put an entry into the /etc/bluetooth/passkeys/default file.
I've sent files to the phone from the PC via the KDE KBluetooth utility which (I think - was some time ago when I first did it) prompted me for a Bluetooth passkey to pair the devices. I presume that the KDE utility squirreled the passkey away someplace bu am unsure where. I tried the code that you had in your post : Code:
obexftp -b <phone address> -l |
Hi! Thank you for your response, i dont have kbluetooth installed, wondering what pin u used when u first wanted to pair those devices?
Ive tried what u said by having /etc/dbus-1/system.d/bluetooth.conf untouched and /etc/bluetooth/passkeys/ directory empty but when i want to start pairing with obex again it asks me for password. no matter i tried 0000 or 1234 it wont pair. so im just wondering how bluez-4.64 operates? want to have any good documentation so i can read about it. wondering now how passkeys are now operated and where its setuped since i read somwhere that it dosent work anymore when we setup plain text pin. Any help is greatly apprechiated Thanks guys alot and have a good one! |
I think I used "0000".
Are both your phone and the PC set up to be "discoverable" - Essential for the phone I would have thought if you are to initiate a contact from the PC. |
Hi!
When i want to check from my phone to see PC i get no devices found. Only PC see phone without problem in /etc/bluetooth/main.conf i have this values: Code:
# How long to stay in discoverable mode before going back to non-discoverable Its really strange for me. Where else should i check to make sure that my PC is visible? thanks |
Yes, my phone sees my PC (both of them, as I have the phone paired both with a desktop and laptop PC). If you do not have kdebluetooth you could try setting the PC bluetooth properties with hciconfig. There is a man page for this tool which includes commands for turning authentication on and off and for setting device class and mode. The right combination of settings here might make your PC discoverable by your phone.
Does your phone see other bluetooth devices - eg when you scan on a crowded train ? |
We are one step closer
by executing Code:
hciconfig hci0 piscan But when i do Code:
obexftp -b macaddress -l can u exectute Code:
hciconfig -a thanks alot |
Here is the output from my hciconfig -a command :
Quote:
|
thanks for help im pretty sure this is where is the problem
in /var/log/syslog i get Code:
Nov 3 23:38:25 parade bluetoothd[1546]: No agent available for 0 request since i have bluez-4.64 installed from slackware-current and i dont see i have passkey-agent installed so im wondering is that somekind script wich passkey can be used with it etc? i heard theres different agents like agent, simple-agent script bluez-simple agent but im not sure wich agent works for bluez-4.64? do i have to separately download it from somwhere or create it to make it work? thanks EDIT: Ive got it to work! from source bluez-4.64 in test directory i copied simple-agent to /usr/bin then i executed command: Code:
simple-agent hci0 macaddress then done Code:
obexftp -b macaddress -l thanks alot for the helpmy friend you put me on the right track! |
If you want to use bluetooth as a regular (non-root) user I think you have to be a member of plugdev if I understand correctly what it says in /etc/dbus-1/system.d/bluetooth.conf.
|
All times are GMT -5. The time now is 03:04 PM. |