You are not logged in.

#1 2008-07-03 00:43:12

synthead
Member
Registered: 2006-05-09
Posts: 1,337

Using a phone as a bluetooth modem among other things

Fairly soon here, I'm going to put a computer in my car (with Arch, of course) and use my 3G cell phone for internet.  How would I go about pairing the phone to my computer and how would I configure my phone as a modem?

Offline

#2 2008-07-03 04:33:44

synthead
Member
Registered: 2006-05-09
Posts: 1,337

Re: Using a phone as a bluetooth modem among other things

Oh, it's a LG CU-515 phone and I'm using a Broadcom bluetooth device.  I know the bluetooth on my laptop works, and I can see my phone with my laptop and vice versa.  Also, the phone supports tethering and a ton of other things ... it's not locked down from what I can tell, I checked that big_smile

Offline

#3 2008-07-03 06:13:49

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Using a phone as a bluetooth modem among other things

bluez.org is where you need to go, it has everything you need. I don't know what our wiki has on bluetooth, but it would probably be worth a look too,

Offline

#4 2008-07-04 20:57:53

synthead
Member
Registered: 2006-05-09
Posts: 1,337

Re: Using a phone as a bluetooth modem among other things

bluez.org doesn't have any kind of comprehensive documentation at all from what I found.  And the "Bluetooth" entry in our wiki is very lacking too.  However, this morning, I searched for "bluez" in the wiki and found this one: http://wiki.archlinux.org/index.php/Blu … GPRS_Howto ... pretty much exactly what I was looking for tongue

And now I'm in a hunch tongue  Everything is going great, but when I run dsptool search DUN, it works for a few moments, then my phone says "Accept Bluetooth request from pwn ?"  Sweet, I say yes, and it saks me for pwn's pin.  I enter my pin, 45272, and the phone acts like nothing happened.  Then, back at the command line, I see ...

[root@pwn bluetooth]# sdptool search DUN
Inquiring ...
Failed to connect to SDP server on 00:E0:91:EB:1C:0C: Permission denied

Permission denied?  I gave it the right pin ...

Here's 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 "45272";
}

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

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

    auth enable;
    encrypt enable;
}

Last edited by synthead (2008-07-04 20:59:02)

Offline

Board footer

Powered by FluxBB