Random ...
 
January 2018
S M T W T F S
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      
Tags ...
Links



Linux++:::: EDGE(ing) the Net with Bluetooth, Linux and Nokia 3110c
Posted at 31.May,2007 20:14  Comments 7 / Trackbacks 0 / Like this post!
Technorati tag(s):

Here's how I setup my Fedora with Bluetooth and connect to the Net via GPRS/EDGE on my Nokia 3110c (now, that's a mouth full).

First off, install bluez*. I did a yum install bluez-utils, bluez-libs and bluez-gnome.

Setup my bluetooth by changing /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 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 "kedai";

        # Local device class
        class 0x120104;
        # 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;
 }

Now, we need to pair the computer and the Nokia 3110c. For this we need an agent, For bluez >=3.7, there's no more passkey-agent included. I used bluetooth-applet. Run bluetooth-applet and pair the devices.

When pairing devices, we're actually agreeing on the secret/pin. That's where bluetooth-applet comes in.

This was my first stumbling block. I was confused with the use of pin_helper (for bluez <3.7) and was stuck. Carefull reading of the gentoo bluetooth wiki helped rectify things.

Once we've paired the devices, we need to start pand. This was my second stumbling block. Initially, I thought of using kppp or pppd. That went nowhere fast.

Using pand, things couldn't get any simpler. Change /etc/sysconfig/pand:

 PANDARGS='--listen --role PANU'
 PANDARGS='--search --service NAP --cache --persist'

Start pand and wait:

 May 31 19:54:56 tokey pand[5978]: Bluetooth PAN daemon version 3.7
 May 31 19:54:56 tokey pand[5978]: Inquiring
 May 31 19:55:09 tokey pand[5978]: Searching for NAP on 08:00:37:1E:BE:E0
 May 31 19:55:10 tokey pand[5978]: Searching for NAP on 00:1B:33:C9:20:B7
 May 31 19:55:12 tokey pand[5978]: Connecting to 00:1B:33:C9:20:B7
 May 31 19:55:12 tokey hcid[5621]: link_key_request (sba=00:10:C6:77:BC:5E, dba=00:1B:33:C9:20:B7)
 May 31 19:55:12 tokey pand[5978]: bnep0 connected

Well, close but no cigar. We need an IP address to actually do something. So, out of sheer impulse, I did dhclient bnep0, and voila:

 May 31 19:55:31 tokey dhclient: Internet Systems Consortium DHCP Client V3.0.5-RedHat
 May 31 19:55:31 tokey dhclient: Copyright 2004-2006 Internet Systems Consortium.
 May 31 19:55:31 tokey dhclient: All rights reserved.
 May 31 19:55:31 tokey dhclient: For info, please visit http://www.isc.org/sw/dhcp/
 May 31 19:55:31 tokey dhclient:
 May 31 19:55:31 tokey dhclient: Listening on LPF/bnep0/00:10:c6:77:bc:5e
 May 31 19:55:31 tokey dhclient: Sending on   LPF/bnep0/00:10:c6:77:bc:5e
 May 31 19:55:31 tokey dhclient: Sending on   Socket/fallback
 May 31 19:55:31 tokey dhclient: DHCPDISCOVER on bnep0 to 255.255.255.255 port 67 interval 5
 May 31 19:55:31 tokey dhclient: DHCPOFFER from 192.168.66.1
 May 31 19:55:31 tokey dhclient: DHCPREQUEST on bnep0 to 255.255.255.255 port 67
 May 31 19:55:31 tokey dhclient: DHCPACK from 192.168.66.1

So, now I'm flying with EDGE/GPRS. The speed? Haven't tested yet. Will post when I've done the test.

image


Bookmark and Share

Is this entry helpful? Comments/Donate/Click some google ads.  
Trackback is http://myzope.kedai.com.my/blogs/kedai/135/tbping 

Comments
3110c and Evolution

Nice phone you've got there. Thinking of buying it myself.

Have you tried syncing it with evolution? Any success?

Firdaus bin Aziz  at 15.Aug,2007 18:53
unfortunately

i lost the 3110c. now i have a 6300, and no, i haven't tried syncing with evolution.

kedai  at 15.Aug,2007 20:13

Can u please tell me about configuring NOKIA 3110c and PC Internet Connectivity through USB Cable Modem ?

Dee  at 10.Oct,2007 23:30
windows or linux?

if you're using windows, you should be ableto connect using nokia pc suite.

if you're using linux, you should be able to connect using kppp or other dialers available. only thing is, the number to dial is something like #99### iirc

kedai  at 12.Oct,2007 09:53
kjh

setup

kamal  at 14.Aug,2008 03:14

Ive been strugling for days to connect to Internet via gprs with my FC 10 distro to Nokia 6120c. Bluetooth is also not detecting.....i found a method but it fails. May be because of the setting in 'resolv.conf' file. How to get my 'nameserver' IP ? Please help this newbie....:)

zulf  at 19.Jan,2009 13:28
check out ..

http://myzope.kedai.com.my/blogs/kedai/224 and see if that works?

kedai  at 19.Jan,2009 20:32
Post a comment