The following configuration works for me with the latest Ubuntu (actually, 
it's been working on Debian and most previous versions of Ubuntu as well).

I have a Nokia E65 (shouldn't be a difference). I'm also using Orange, so the 
configuration should be changed for Cellcom - I think the windows 
instructions should make it clear where the differences are.


1. edit /etc/bluetooth/rfcomm.conf:

rfcomm0 {
        bind yes;

        # nokia e65
        device <your device mac address. Find it using "hcitool scan">;

        channel 2;

        comment "nokia ppp";
}

'channel 2' is good for nokia E65. Your nokia may be different (though I doubt 
it)

2. Make these changes take effect immediately by:
sudo /etc/init.d/bluetooth restart

3. create /etc/ppp/peers/orange:
debug
noauth
connect "/usr/sbin/chat -v -f /etc/chatscripts/orange-connect"
disconnect "/usr/sbin/chat -v -f /etc/chatscripts/orange-disconnect"
usepeerdns
/dev/rfcomm1 115200
defaultroute replacedefaultroute
#user "orange"
#password "orange"

#nodetach


lcp-echo-failure 0
lcp-echo-interval 0
nomagic
noccp


Note that orange doesn't need a user and password.
Also, you may want to uncomment 'nodetach' to have the script run in the 
foreground and show you the errors while you're making it work.
Note that I have 'defaultroute replacedefaultroute' which means it will take 
over as the default route (this is useful, because if you bother connecting 
over bluetooth is because your regular gateway is not working or not working 
well).

Finally, the last 4 lines are the 'magic sauce' that may be different between 
providers and between devices. Regretfully the only real way to debug it if 
it doen't work for you is trial and error. Hopefully it'll work for you out 
of the box.

4. create:
 /etc/chatscripts/orange-connect
TIMEOUT         5
ECHO            ON
ABORT           '\nBUSY\r'
ABORT           '\nERROR\r'
ABORT           '\nNO ANSWER\r'
ABORT           '\nNO CARRIER\r'
ABORT           '\nNO DIALTONE\r'
ABORT           '\nRINGING\r\n\r\nRINGING\r'
''              \rAT
TIMEOUT         12

OK              ATE1
OK              'AT+cgdcont=1,"IP","uinternet"'
OK              ATD*99***1#
TIMEOUT         30
CONNECT         ""


The two lines ("AT+cgdcont..." and "ATD*99...") may need to be changed for 
Cellcom

5. create /etc/chatscripts/orange-disconnect
ABORT           "BUSY"
ABORT           "ERROR"
ABORT           "NO DIALTONE"
SAY             "\nSending break to the modem\n"
""              "\K"
""              "\K"
""              "\K"
""              "+++ATH"
""              "+++ATH"
""              "+++ATH"
SAY             "\nPDP context detached\n"


This should probably be the same for all carriers


6. Test it with: pon orange
disconnect with: poff orange


Of course, this assumes bluetooth is working (should be a no brainer on 
ubuntu) and preferably the devices are paired to avoid stupid questions from 
the mobile device when connecting.

Works for me like a charm.

- Aviram


On Wednesday 23 July 2008 Nitzan Brumer wrote:
> Hi to ya' all
>
> I have a Nokia N95 in Cellcom and I've just upgraded my plan to the surf as
> much as you want in 129 NIS a mounth.
> Connecting to the net with my phone is very simple in windows using the
> nokia PC Suite but becomes a terible headache.
>
> I've tried the sugestions in this pages:
> http://ubuntuforums.org/showthread.php?t=492851
> http://ubuntuforums.org/showthread.php?t=735018
>
> There are few more, I cant find the links.
> anyhow, writing pon cellcom (my script name) makes a connection over BT to
> the phone but than the conection fails. I can't connect to the net.
> It might be something in my definitions, Maybe I'm not punching them right.
>
> Did anyone managed to connect a symbian nokia in cellcom? if so, I'd love
> some help.

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to