network manager + bluetooth GSM/UMTS

Marius Gedminas marius at pov.lt
Sun Oct 12 00:26:31 UTC 2008


On Sat, Oct 11, 2008 at 12:30:43PM +0200, Ronald van der Pol wrote:
> So network manager supports GSM/UMTS.

Sort of.

> Is this documented somewhere?

/usr/share/doc/network-manager/README.Debian, partially, but that
assumes you've already got ppp configured.

> I want to use a bluetooth GSM/UMTS phone.

That's what I did:

  * added an entry for the phone to /etc/bluetooth/rfcomm.conf

        rfcomm0 {
                bind yes;
                # Bluetooth address of the device
                device XX:XX:XX:XX:XX:XX;
                # RFCOMM channel for the connection
                channel	1;
                # Description of the connection
                comment "My phone";
        }

  * added /etc/ppp/peers/bt

        hide-password
        noauth
        connect "/usr/sbin/chat -v -f /etc/chatscripts/bt"
        debug
        /dev/rfcomm0
        115200
        crtscts
        defaultroute
        replacedefaultroute
        noipdefault
        user ignored
        remotename bt
        ipparam bt
        usepeerdns
        # my phone rejects CCP; by avoiding the ConfRej chitchat maybe I'll make pon a bit faster
        noccp
        # these seem to be needed to avoid spontaneous automatic disconnects after 2
        # minutes
        lcp-echo-interval 0
        lcp-echo-failure 0
        # ifup ppp0 dislikes pppd going into background when ppp0 is not yet up
        updetach

  * added /etc/chatscripts/bt

        ABORT BUSY ABORT 'NO CARRIER' ABORT VOICE ABORT 'NO DIALTONE' ABORT 'NO DIAL TONE' ABORT 'NO ANSWER' ABORT DELAYED
        '' ATZ
        OK-AT-OK ATDT*99#
        CONNECT \d\c

  * added the following line to /etc/ppp/pap-secrets

        ignored * ignored

  * configured dialup on the phone (APN and other stuff)

  * tested the connection with 'pon bt'; plog shows you the status from
    the pppd log.

  * paired the phone with the laptop (first attempt to access the
    rfcomm0 device pops up a PIN dialog on both).

  * added a line to /etc/network/interfaces

      iface ppp0 inet ppp
        provider bt

  * restarted network manager

Now I can open network manager and choose my dialup connection from its
menu; however n-m doesn't understand that the connection succeeded and
thinks I'm offline when I'm actually online.

I think all this is needlessly complicated, and I await a version of
network manager that lets me set it up from a nice GUI window listing
all discoverable Bluetooth phones in the vicinity.

Marius Gedminas
-- 
America and England are two countries separated by a common language.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20081012/25c25735/attachment.pgp>


More information about the ubuntu-users mailing list