LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Nokia Phone + Bluetooth - trying to start a GRPS connection (https://www.linuxquestions.org/questions/linux-hardware-18/nokia-phone-bluetooth-trying-to-start-a-grps-connection-732502/)

suse_nerd 06-12-2009 10:47 AM

Nokia Phone + Bluetooth - trying to start a GRPS connection
 
Seems this has turned from a question to a HOWTO guide...


HOWTO get your linux box to connect with your Nokia Phone on O2 in the UK.




I am using SuSE 11.0 on an HP 2133. My files will make reference to the network specific details which you may need to change for your service plan/network. There are sites with details of the other providers:

http://www.filesaveas.com/gprs.html
http://forums.mobileburn.com/archive...php/t-695.html
http://www.mphone.co.uk/mms_wap_settings_o2.html



1.

In the file below, you need to replace my bluetooth device address with your own. The following command should give you your bluetooth address

Code:

hciconfig
Create/edit the file:
/etc/bluetooth/rfcomm.conf
Code:

#
# RFCOMM configuration file.
#

#rfcomm0 {
#      # Automatically bind the device at startup
#      bind no;
#
#      # Bluetooth address of the device
#      device 11:22:33:44:55:66;
#
#      # RFCOMM channel for the connection
#      channel 1;
#
#      # Description of the connection
#      comment "Example Bluetooth device";
#}

rfcomm0 {
        bind yes;

        device 00:1D:FD:C1:D5:A9;

        channel 1

        comment "Nokia";

 }


2.Create the files:
/etc/ppp/peers/gprs

Code:

/dev/rfcomm0 57600
connect '/usr/sbin/chat  -f /etc/ppp/peers/chat-gprs'
noauth
defaultroute
debug

/etc/ppp/peers/chat-gprs

Code:

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","mobile.o2.co.uk"'
OK              atd*99***1#
CONNECT ""

You may need to change the last command starting atd and you will need to change mobile.o2.co.uk to your service provider if you are not using O2. See the links at the top/bottom for help on both of these issues. Note the last two lines of this file are vital and small changes stopped everything from working for me.

3. To start connection type the following (replacing my bluetooth device addess with yours:

Code:

rfcomm release 1
rfcomm bind 0 00:1D:FD:C1:D5:A9 1
pppd call gprs

4.For O2 use the following in /etc/resolv.conf
You may need to change this if you do not use O2.

Code:

nameserver 193.113.200.200
nameserver 193.113.200.201


5. I don't think you need to setup a proxy in firefox, the phone deals with the proxy I think, but I found it slightly quicker to use firefox's auto-detect setting, this could just be lucky.

For help with getting it working, thanks to
Thanks to

http://tinyurl.com/4dvy2m
http://tinyurl.com/n5djpt
http://www.teaparty.net/technotes/blue-gprs.html


All times are GMT -5. The time now is 11:56 PM.