LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Accessing net thru GPRS on my Slack machine (https://www.linuxquestions.org/questions/slackware-14/accessing-net-thru-gprs-on-my-slack-machine-361318/)

corbis_demon 09-08-2005 01:00 AM

Accessing net thru GPRS on my Slack machine
 
Hi,
I have a Nokia 3230 phone, and I would like to access the net on my PC thru it. I have GPRS active on my service. How do I configure my slack box to connect? Please advice.

ledow 09-08-2005 06:35 AM

Can't speak for that particular brand of phone, but I have a Nokia 6230 or something and it's just a pain in the backside.

Basically, you need a way to connect the phone to the computer (supported data cable, bluetooth adaptor, irDA adaptor etc.). I use irDA. Using irDA between my phone and my PC, my phone appears as just a plain serial device.

I can then just point stuff like kppp etc. to use the serial device that it creates and, voila, it connects and dial just like an old-fashioned modem (albeit incredibly slow on my mobile because I get 9600bps, not GPRS as I'm a cheapskate that doesn't want to pay a fortune for GPRS). You can also issue bog-standard Hayes AT modem commands and get responses (very useful when testing).

If your modem appears as a plain serial connection, it's easy. Bluetooth, I should imagine, would be a pain in the backside to configure in Linux (don't know, never tried) and need an adaptor. Data cables might be serial or USB, serial ones would *probably* let you do exactly as above, USB ones might be a lot more finnicky/not work at all. irDA requires a Linux-supported irDA adaptor (most laptops have one).

You could also check out http://www.gnokii.org/ because apparently some mobiles are not so simple as to let you use AT commands. I couldn't see your make of phone on their FAQ, however. I don't know if that means there isn't any support for it yet.

marlonxp 11-20-2005 12:53 PM

I have an ir adaptor but it comes up as unknown device in mandrake 10.1.......how did u install urs?

maginotjr 11-21-2005 06:44 AM

I use GPRS trhough bluetooth.

the things I use is
bluez apps (bluetooth only)
rfcomm (I think its needed to ir too, its the rfcomm device who make my pppd connect to the cell phone like a serial modem device)

malo_umoran 11-21-2005 07:53 AM

I use it pretty often and it's easy (with bluetooth).

1. install bluez-utils and bluez-libs
2. modprobe all modules you might need: usbcore,bluetooth,rfcomm,hci_usb
3. find out the MAC address of your phone (for your bluetooth device in your phone)
4. turn on the bluetooth device and bind it with your phone:
Code:

# hciconfig hci0 up
# rfcomm release $PHONE_MACADDRESS
# rfcomm bind 0 $PHONE_MACADDRESS 1

5.If you don't have /dev/rfcomm0, make it with:
Code:

mknod /dev/rfcomm0 c 216 0
6. run hci daemon:
Code:

hcid -f /etc/bluetooth/hcid.conf
or even better:
Code:

ps -C hcid >/dev/null || hcid -f /etc/bluetooth/hcid.conf
!! hcid.conf must be configured. usually check the path to "pin_helper" which should be included in bluez-utils. pin_helper might be just a shell script which echos your pin code:
Code:

#!/bin/bash
echo "PIN:00"      ## 00 is the PIN

7. modify your /etc/bluetooth/rfcomm.conf ... (enter mobile phone mac address and name)

8. use any modem connection software to dial "*99***1#". that is the usual GPRS number. I use wvdial an it's working great. do not forget your username and password.

of course, you might make a shell script with alle the commands I used above, make a nice icon-shortcut on your desktop and that's it ;-)

M.

maginotjr 11-21-2005 08:20 AM

Quote:

of course, you might make a shell script with alle the commands I used above, make a nice icon-shortcut on your desktop and that's it ;-)
yep, I have made a script that make all the modprobe, rfcomm binding and connections, pppd dial, route add and dns setting :D
but I dont use icon in the desktop ... ;)

malo_umoran 11-21-2005 08:24 AM

well, me neither ... I use one of my Fn+Fxx combinations ...
Fn+F5=just bluetooth
Fn+F6=gprs over bluetooth (with a nice xterm interface :-)
Fn+F7=wireless
Fn+F8=ethernet

modem also has its combination which i never use :)

M.

maginotjr 11-21-2005 08:28 AM

Hmm

are you using openobex with your bluetooth to send and get files from the cell?

malo_umoran 11-21-2005 08:38 AM

yes, i do ... I used gnome-bluetooth (and I still use it for single files), but kdebluetooth+konqueror are able to browse the phone and it's easier to handle files that way.

M.

malo_umoran 11-21-2005 08:42 AM

a today is coming my bluetooth headset ... i want to test it with bluetooth-alsa and skype, i could be fun :)

M.

marlonxp 11-21-2005 09:02 AM

this is great for you all but none has even addressed my questions :(.......................I have an usb-ir dongle under mandrake 10.1 it shows up under unknown devices.....its a sigmatel dongle some help please....:cry: p.s. i know this isnt the mandrake forum but;i conducted a genral search and this is the best i cld find.

malo_umoran 11-21-2005 09:21 AM

a sigmatel dongle is supported by the kernel. turn it on in the kernel in "Infrared-port device drivers"

M.

marlonxp 11-21-2005 01:29 PM

err i ahve no idea how to do tht..:(... could someone who can help inbox me there msn/yahoo/googletalk screen name?

malo_umoran 11-22-2005 02:43 AM

Quote:

Originally posted by marlonxp
err i ahve no idea how to do tht..:(... could someone who can help inbox me there msn/yahoo/googletalk screen name?
with kernel 2.6.14.2:
Code:

# cd /usr/src/linux
# make menuconfig
go to :
> "Networking >
> "IrDA (infrared) subsystem support"  (turn it on)>
> Turn on: "IrCOMM protocol"
> go to "Infrared-port device drivers"
> Turn on ("M") what you want: IrTTY, IrPORT, SigmaTel

M.

maginotjr 11-22-2005 04:08 AM

files.maginot.com.br/forum


I dont know, but maybe this can help.

marlonxp 11-22-2005 05:38 AM

Um rember im a noob to linux.......where am i to type tht? i tred from the run command.... didnt work......from the other comand prompts no luck either.... how do i even knw what kernal i have?......bear with me im a windows uder... hope to be ex windows soon :-D

maginotjr 11-22-2005 05:44 AM

every command from a console (terminal) window or from the terminal it self (alt+fn)
when you see a '#' in the begining of the command then its because you must be superuser (root) to run it... to become root type 'su' and then the passwd...
when you see a '$' its because the command can be ran by a normal user

to know what kernel you have type: uname -a

to list the loaded modules: #lsmod
to load a module: #modprobe <module-name> or #insmod <path-to-module>

and so on ...


[ ]'s

marlonxp 11-22-2005 05:49 AM

Im gonna try now.....Btw thanx alot for all your hel i really appreciate it. :)

marlonxp 11-22-2005 06:38 AM

[marlon@localhost marlon]$ su
Password:
[root@localhost marlon]# modprobe
Usage: modprobe [-v] [-V] [-C config-file] [-n] [-i] [-q] [-o <modname>] <modname> [parameters...]
modprobe -r [-n] [-i] [-v] <modulename> ...
modprobe -l -t <dirname> [ -a <modulename> ...]
[root@localhost marlon]# /usr/src/linux
bash: /usr/src/linux: No such file or directory
[root@localhost marlon]# cd /usr/src/linux
bash: cd: /usr/src/linux: No such file or directory
[root@localhost marlon]# cd usr/src/linux
bash: cd: usr/src/linux: No such file or directory
[root@localhost marlon]# cd
[root@localhost root]# cd /usr/src/linux
bash: cd: /usr/src/linux: No such file or directory
[root@localhost root]# make menuconfig
make: *** No rule to make target `menuconfig'. Stop.
[root@localhost root]#
[root@localhost root]# uname -a
Linux localhost 2.6.8.1-12mdk #1 Fri Oct 1 12:53:41 CEST 2004 i686








nothing is working :(

maginotjr 11-22-2005 06:47 AM

I think that gprs trhough infrared will be a step you must do in some future, close or distante, but first you need start to learn the basis of the command line....

here in LinuxQuestions.org there are a lot of material for who are starting in linux.

no more.
cheers

marlonxp 11-22-2005 07:39 AM

The main thing i want this for is gprs internet... if i cannot get that.... *sighs*

maginotjr 11-22-2005 07:57 AM

isnt something easier to do for someone without ANY experience in linux...


All times are GMT -5. The time now is 11:38 AM.