Using GPRS from Linux
This page describes how to connect to GPRS from linux.
My environment
1. RedHat Enterprise Linux 4 Update 2
2. D-Link DBT-120 Bluetooth USB dongle
3. Nokia N70 phone
Connecting
1. After inserting the USB dongle:
- hciconfig hci0 up
2. Run the Bluetooth pin daemon:
- hcid
3. Look for your phone:
- sdptool search DUN
4. Make a Bluetooth RFCOMM connection to the phone:
- rfcomm connect 0 00:15:A0:7F:A7:D8 3 In the above command '0' will cause rfcomm to create '/dev/rfcomm0'. The MAC address is the address of the phone, discovered with the SDP search. The number '3' is the rfcomm channel number, also discovered in the SDP search. As the connection is being established, you will have to enter the pairing Pin number on both the phone and on Linux. After the pairing occurs, you will then have to accept the connection request to the phone from Linux by using the 'OK' soft key.
5. I don't think the following is needed:
- rfcomm bind all
6. PPP required (the first time I used it) the following:
- mknod /dev/ppp c 108 0
7. Start PPP and get connected through GPRS to the internet:
- pppd rfcomm0 115200 call gprs
8. Have fun.
Files
1. Put the following files into /etc/ppp/peers:
2. Put the following file into /etc/bluetooth:
3. Put the following file in your home directory (or a convenient place):
