You are not logged in.

#1 2007-10-07 17:47:17

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,899
Website

Bluetooth pains...RESOLVED

Hi,

I have got all the bluetooth tools for gnome installed but I cannot seem to pair my phone to pc

hcitool scan shows nothing tried hcitool hci0 up as user and root still nothing ... restarting /etc/rc.d/bluetooth does notthing either

scanning from phone does not show up pc... so something is not right

maybe I need a module to load?

anyway here is my hcid.conf

# HCI daemon configuration file.
#

# HCId options
options {
        # Automatically initialize new devices
        autoinit yes;

        # Security Manager mode
        #   none - Security manager disabled
        #   auto - Use local PIN for incoming connections
        #   user - Always ask user for a PIN
        #
        security auto;

        # Pairing mode
        #   none  - Pairing disabled
        #   multi - Allow pairing with already paired devices
        #   once  - Pair once and deny successive attempts
        pairing multi;

        # Default PIN code for incoming connections
        passkey "1234";
}

# Default settings for HCI devices
device {
        # Local device name
        #   %d - device id
        #   %h - host name
        name "Arch (%d)";

        # Local device class
        class 0x000100;

        # Default packet type
        #pkt_type DH1,DM1,HV1;

        # Inquiry and Page scan
        iscan enable; pscan enable;

        # Default link mode
        #   none   - no specific policy 
        #   accept - always accept incoming connections
        #   master - become master on incoming connections,
        #            deny role switch on outgoing connections
        lm accept;

        # Default link policy
        #   none    - no specific policy
        #   rswitch - allow role switch
        #   hold    - allow hold mode
        #   sniff   - allow sniff mode
        #   park    - allow park mode
        lp rswitch,hold,sniff,park;
}

Have had it working under arch before ?

Last edited by Mr Green (2007-10-10 17:53:45)


Mr Green

Offline

#2 2007-10-07 17:51:51

buttons
Member
From: NJ, USA
Registered: 2007-08-04
Posts: 620

Re: Bluetooth pains...RESOLVED

If you put your phone in discovery mode and run

sudo hcitool scan

(or hcitool scan as root), what happens?


Cthulhu For President!

Offline

#3 2007-10-07 17:57:04

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,899
Website

Re: Bluetooth pains...RESOLVED

nothing ;-( as root


Mr Green

Offline

#4 2007-10-07 18:09:32

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,899
Website

Re: Bluetooth pains...RESOLVED

:: Stopping bluetooth subsystem:  pand dund rfcomm hidd sdpd hcid        [DONE] 
:: Starting bluetooth subsystem:  hcid                                   [DONE]

looks odd.....


Mr Green

Offline

#5 2007-10-07 18:46:16

Dheart
Member
From: Sofia, Bulgaria
Registered: 2006-10-26
Posts: 956

Re: Bluetooth pains...RESOLVED

I got it once working, but it took me four fuckin hours and after I rebooted the pc I couldn't get it to work so for bluetooth connection between pc and phone I use WindowsXP @ VirtualBox - it's not quite the solution, but it takes a lot less time.

Anyway...I have a few URLs bookmarked (although I lost the one that helped me the most, and I've tried to find it a few times again, but without success)

URL#1 (Although I can't remember what exactly did I need it for

(Half an hour later, after browsing fot the second URL, that I could not locate either hmm)
OOkey now I remember that the most usefull URL (that I cannot locate) adviced users to make this:

[root@lightbringer dheart]# cat /usr/bin/bluetooth
#!/bin/sh
#load bluetooth modules
modprobe hci_usb
modprobe rfcomm
modprobe l2cap
modprobe sco

#start up daemons
hcid
sdpd

#load up device
hciconfig hci0 up

#register local opush channel (for recieving files)
sdptool add --channel=10 OPUSH

#binding all rfcomm devices
rfcomm bind all

script to start bluetooth and then follow the instructions in the first URL (although I don't quite remember what I did)

Here is my hcid.conf (you might want to try it)

[root@lightbringer dheart]# cat /etc/bluetooth/hcid.conf
#
# HCI daemon configuration file.
#

# HCId options
options {
    # Automatically initialize new devices
    autoinit yes;

    # Security Manager mode
    #   none - Security manager disabled
    #   auto - Use local PIN for incoming connections
    #   user - Always ask user for a PIN
    #
    security none;

    # Pairing mode
    #   none  - Pairing disabled
    #   multi - Allow pairing with already paired devices
    #   once  - Pair once and deny successive attempts
    pairing once;

    # Default PIN code for incoming connections
    pin_helper /etc/bluetooth/pin
}

# Default settings for HCI devices
device {
    # Local device name
    #   %d - device id
    #   %h - host name
    name "BlueZ (%d)";

    # Local device class
    class 0x3e0100;

    # Default packet type
    #pkt_type DH1,DM1,HV1;

    # Inquiry and Page scan
    iscan enable; pscan enable;

    # Default link mode
    #   none   - no specific policy 
    #   accept - always accept incoming connections
    #   master - become master on incoming connections,
    #            deny role switch on outgoing connections
    lm accept;

    # Default link policy
    #   none    - no specific policy
    #   rswitch - allow role switch
    #   hold    - allow hold mode
    #   sniff   - allow sniff mode
    #   park    - allow park mode
    lp rswitch,hold,sniff,park;
    discovto 0;
}

My victim you are meant to be
No, you cannot hide nor flee
You know what I'm looking for
Pleasure your torture, I will endure...

Offline

#6 2007-10-07 19:35:42

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,899
Website

Re: Bluetooth pains...RESOLVED

Wow thanks for that I give it a go... I use the daemon script in rc.d to start bluetooth  although its backgrounded [@] not sure if that makes any difference like you it took me hours to try to figure it out [last time I was running Arch]

When it works its great :-)

Thanks again

MrG


Mr Green

Offline

#7 2007-10-08 02:52:00

rockinchado
Member
Registered: 2007-07-11
Posts: 10

Re: Bluetooth pains...RESOLVED

I'm not sure if this will help you at all of not but in order to pair my phone with my box, I had to run 'passkey-agent --default <pin>' in order to set the pin that I had to pair it with.  Otherwise my phone would ask for a pin and my computer didn't have one set.

Offline

#8 2007-10-10 08:31:09

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,899
Website

Re: Bluetooth pains...RESOLVED

Can find phone with hcitool scan .... can find my arch box from my phone [but will not pair with pin] if I transfer from pc to phone same thing accept [then pair nothing!]

All services are running as far as I know

Real pain because I had it working under Ubuntu [and Arch before!]

One thing I have noticed I do have to run /etc/rc.d/bluetooth restart from terminal before phone is discovered feeling now that I should not background it in rc.conf?

/me keeps trying :-)

Do I need to add a group or set up permissions?

Last edited by Mr Green (2007-10-10 08:32:29)


Mr Green

Offline

#9 2007-10-10 17:53:27

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,899
Website

Re: Bluetooth pains...RESOLVED

Right this is what I did .... went into System -- Prefs -- Bluetooth preferences Mode of Operation Visible and Connectable for other devices [checked box!]

Bonded devices should show your phone etc... three icons  connected, a star, a lock

ie trusted

Managed to transfer files no problem

Will set topic to RESOLVED

thanks for all your help

MrG


Mr Green

Offline

#10 2007-10-10 20:21:50

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Bluetooth pains...RESOLVED

Mr Green wrote:
:: Stopping bluetooth subsystem:  pand dund rfcomm hidd sdpd hcid        [DONE] 
:: Starting bluetooth subsystem:  hcid                                   [DONE]

looks odd.....

It does look odd indeed, but the bluetooth rc script fires up a lot of sub-services (rfcomm, pand, dund, etc.) which are not communicated by the daemon smile. This is perfectly fine.

At the topic starter: does your mobile see the computer? If your computer does not see any bluetooth devices, that is one possible problem - as in: it's one you definitely need to fix wink.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#11 2007-10-11 05:47:43

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,899
Website

Re: Bluetooth pains...RESOLVED

Sometimes I have to restart bluetooth daemon before it finds my mobile phone maybe backgrounding it is the problem

bluetooth is a pain to set up :-) maybe I will add a wiki page for gnome-bluetooth

now a phone contacts and message manager now that would be cool


Mr Green

Offline

#12 2007-10-11 10:02:57

Dheart
Member
From: Sofia, Bulgaria
Registered: 2006-10-26
Posts: 956

Re: Bluetooth pains...RESOLVED

Mr Green wrote:

Sometimes I have to restart bluetooth daemon before it finds my mobile phone maybe backgrounding it is the problem

bluetooth is a pain to set up :-) maybe I will add a wiki page for gnome-bluetooth

now a phone contacts and message manager now that would be cool

That would be VERY cool, because next time I want to use bluetooth I would't have to boot up my virtual pc! I want wiki entry from you!


My victim you are meant to be
No, you cannot hide nor flee
You know what I'm looking for
Pleasure your torture, I will endure...

Offline

#13 2007-10-11 16:37:04

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,899
Website

Re: Bluetooth pains...RESOLVED

yeah ok will do....:-)


Mr Green

Offline

Board footer

Powered by FluxBB