LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Nokia cellphone as modem (https://www.linuxquestions.org/questions/slackware-14/nokia-cellphone-as-modem-650914/)

autophil 06-22-2008 01:13 PM

Nokia cellphone as modem
 
Does anyone have any good leads on getting a Nokia cellphone hooked up to the usb port of a laptop to access the web via gprs?
The laptop uses Slackware (actually Zenwalk). The cellphone has 3 options Nokia mode for if you have nokia software on the pc (which of coure i dont) and then Printing and media. And then as a storage device, which works well but i need the "cellphone as modem" type of facility.
Any leads please. Im not too smart but very determined.
phil

kummiliim 06-22-2008 01:49 PM

I did the phone/gprs/modem thing on my phone the first time a week ago as well. In my case I used bluetooth so it took a simple rfcomm to connect the phone and a little tutorial at pppd to get it to dial out. Install pppd and try a simple google search for some tutorials. Best of luck.

autophil 06-23-2008 12:28 AM

OK Thanks for your reply. Im going to work on this.
Is there a way to have the two methods of connection so that there is an option when you connect?
So when out and about to connect through GPRS and when at home to plug into the router and connect via ADSL.
Maybe its possible.
Philip.

kummiliim 06-23-2008 03:12 AM

Everything's possible. I'd understand the need (of automatically selecting an interface) if you use bluetooth but since you use usb you have to connect it anyway to get online. Just make a little script that configures and dials everything after you've connected the phone. Then run it once you want to connect. That's at least what I would suggest.

synapse 06-23-2008 07:52 PM

Hi,
I have this working, duno how right it is but it works for me so ill try to explain.

Create a file in /etc/ppp and add the following to it
Do not put a newline at the end of this file << this is questionable but i dunno if it actually affects the transmission or not.

File Name: /etc/ppp/chat-gprs

Code:

TIMEOUT                100
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                300
OK                ATE1
#OK                'at+cgdcont=1,"ip","myMTN"'
OK                'at+cgdcont=1,"ip","internet"'
#OK                ATD*99#
OK                ATD*99*#
CONNECT                ""

Then create a new folder /etc/ppp/peers and add the following file to it

File Name: /etc/ppp/peers/gprs

Code:

/dev/ttyACM0 115200
connect '/usr/sbin/chat -v -f /etc/ppp/chat-gprs'
noauth
defaultroute
debug
nocrtscts
115200
local
usepeerdns
noipdefault
#passive

Then to connect type the following as root pppd call gprs and it should connect you

Regards


All times are GMT -5. The time now is 01:26 AM.