You are not logged in.

#1 2006-12-02 14:40:24

IsSuE
Member
Registered: 2006-04-29
Posts: 309

[Help] Bluetooth

Hi there

I tried the last few hours to make a pair out of my pc and my mobile via bluetooth. I installed bluez-libs and utils and did hcitool scan. my mobile was found, so i tried hcitool cc address, but nothing happened. I also tried to make a PIN entry field pop up, as shown in many how-tos across the net, but none helped. Can anyone help me setting up bluetooth? here is my hcid.conf

# HCI daemon configuration file.
#

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

# PIN helper
        pin_helper /etc/bluetooth/givepin;

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

        # 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 "1337";
}

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

        # 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;
}

Offline

#2 2006-12-02 17:25:46

urke
Member
Registered: 2006-09-27
Posts: 11

Re: [Help] Bluetooth

In hcid.conf set :

security auto;

and restart bluetooth (/etc/rc.d/bluetooth restart).
Then try to pair from mobile. When mobile ask for PIN type 1337 (or whatever you set as "passkey" in hcid.conf).

If you have problems with finding PC from mobile try:

# hciconfig hci0 piscan

Offline

#3 2006-12-02 21:24:43

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: [Help] Bluetooth

urke wrote:

Then try to pair from mobile. When mobile ask for PIN type 1337 (or whatever you set as "passkey" in hcid.conf).

That is outdated. The PIN is now obtained via dbus. You can either use "bluetooth-applet" from the bluez-gnome package or enter "passkey --default 1337" before trying to pair with the device.

Offline

#4 2006-12-02 21:42:30

urke
Member
Registered: 2006-09-27
Posts: 11

Re: [Help] Bluetooth

brain0 wrote:

You can either use "bluetooth-applet" from the bluez-gnome package or enter "passkey --default 1337" before trying to pair with the device.

Of course you're right, but

IsSuE wrote:

I also tried to make a PIN entry field pop up, as shown in many how-tos across the net, but none helped.

So I thought this old method could work.

Offline

#5 2006-12-12 20:02:39

IsSuE
Member
Registered: 2006-04-29
Posts: 309

Re: [Help] Bluetooth

mhh now i got it running, but i cant access my filesystem on the mobile. its an nokia 6233. i am trying with wammu/gammu

Offline

#6 2006-12-13 09:04:22

chrismortimore
Member
From: Edinburgh, UK
Registered: 2006-07-15
Posts: 655

Re: [Help] Bluetooth

IsSuE wrote:

mhh now i got it running, but i cant access my filesystem on the mobile. its an nokia 6233. i am trying with wammu/gammu

Are you just wanting to copy stuff from, say, your gallery?  Obexftp is better for that kind of thing.  I've had it working with a 6234, which is basically the 6233.


Desktop: AMD Athlon64 3800+ Venice Core, 2GB PC3200, 2x160GB Maxtor DiamondMax 10, 2x320GB WD Caviar RE, Nvidia 6600GT 256MB
Laptop: Intel Pentium M, 512MB PC2700, 60GB IBM TravelStar, Nvidia 5200Go 64MB

Offline

#7 2006-12-13 16:38:34

IsSuE
Member
Registered: 2006-04-29
Posts: 309

Re: [Help] Bluetooth

that is exactly what i want smile
i am now trying obexftp, is there probably a GUI for it?

Offline

#8 2006-12-13 16:43:30

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: [Help] Bluetooth

configuring obexftp confused me.  I gave up after about 10 minutes of messing with it, but at least i got my devices to show up (I needed an hciconfig hci0 down && hciconfig hci0 up) and all that jazz...

Bluetooth is a bit confusing still.  The dependency on dbus even more so.

Offline

#9 2006-12-13 16:45:39

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

Re: [Help] Bluetooth


Mr Green

Offline

#10 2006-12-13 16:58:59

IsSuE
Member
Registered: 2006-04-29
Posts: 309

Re: [Help] Bluetooth

phrakture wrote:

configuring obexftp confused me.  I gave up after about 10 minutes of messing with it, but at least i got my devices to show up (I needed an hciconfig hci0 down && hciconfig hci0 up) and all that jazz...

Bluetooth is a bit confusing still.  The dependency on dbus even more so.

obexftp is not that confusing so far. actually you got nearly nothing to configure. The only thing is to type obexftp -b -l and your directories are listed. then download them via obexftp -g

but a gui would be nice anyway. looking at the obex page right now...

Offline

#11 2006-12-14 09:25:20

chrismortimore
Member
From: Edinburgh, UK
Registered: 2006-07-15
Posts: 655

Re: [Help] Bluetooth

For all you KDE users, kdebluetooth uses openobex as a backend, so you can use konqueror as a GUI.


Desktop: AMD Athlon64 3800+ Venice Core, 2GB PC3200, 2x160GB Maxtor DiamondMax 10, 2x320GB WD Caviar RE, Nvidia 6600GT 256MB
Laptop: Intel Pentium M, 512MB PC2700, 60GB IBM TravelStar, Nvidia 5200Go 64MB

Offline

#12 2006-12-14 10:20:09

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

Re: [Help] Bluetooth

bluetooth:/  /


Mr Green

Offline

Board footer

Powered by FluxBB