It seems that getting an internet connection in the center of Bucharest is a complicated now as ever so the gprs connection to my phone which I pay and almost never used came to mind as an idea. Not really usable for internet but not to remain completely disconnected.

So here is a short guide to connect to internet using bluetooth and my T630 phone for a GPRS Vodafone connection.

Bluetooth

Find the mac of the phone

#hcitool scan<br></br>Scanning ...<br></br>      00:0F:D5:7B:XX:XX       T630

List the services

#sdptool browse 00:0F:D5:7B:XX:XX <br></br>Browsing 00:0F:D5:7B:XX:XX ...<br></br>Service Name: Dial-up Networking<br></br>Service RecHandle: 0x10000<br></br>Service Class ID List:<br></br>  "Dialup Networking" (0x1103)<br></br>  "Generic Networking" (0x1201)<br></br>Protocol Descriptor List:<br></br>  "L2CAP" (0x0100)<br></br>  "RFCOMM" (0x0003)<br></br>    Channel: 1<br></br>Profile Descriptor List:<br></br>  "Dialup Networking" (0x1103)<br></br>    Version: 0x0100<br></br><br></br>Service Name: Voice gateway<br></br>Service RecHandle: 0x10002<br></br>Service Class ID List:<br></br>  "Headset Audio Gateway" (0x1112)<br></br>  "Generic Audio" (0x1203)<br></br>Protocol Descriptor List:<br></br>  "L2CAP" (0x0100)<br></br>  "RFCOMM" (0x0003)<br></br>    Channel: 3<br></br>Profile Descriptor List:<br></br>  "Headset" (0x1108)<br></br>    Version: 0x0100<br></br>....<br></br>

Configure the bluetooth com port

#cat /etc/bluetooth/rfcomm.conf<br></br><br></br>rfcomm1 {<br></br>   bind yes;<br></br>   device 00:0F:DE:CB:59:EE;<br></br>   channel 1;<br></br>   comment "Dial-up Networking";<br></br>}<br></br>

Restart bluetooth service

/etc/init.d/bluetooth restart<br></br>

PPPD configuration

The /etc/ppp/peers/gprs
file:

#cat /etc/ppp/peers/gprs<br></br><br></br>/dev/rfcomm1 115200<br></br>connect "/usr/sbin/chat -v -f /etc/chatscripts/gprs"<br></br>noauth<br></br>noipdefault<br></br>defaultroute<br></br>#if it's the case replace your default route<br></br>replacedefaultroute <br></br>usepeerdns<br></br>crtscts<br></br>debug<br></br>user internet.vodafone.ro<br></br>password vodafone<br></br><br></br># Prevent dial line checking via lcp packages, as it<br></br># doesn't work with T630 and causes it to disconnect<br></br>lcp-echo-interval 0<br></br>lcp-echo-failure 0<br></br>

The /etc/chatscripts/gprs file:

#cat /etc/chatscripts/gprs<br></br># Abort strings<br></br>ABORT BUSY <br></br>ABORT 'NO CARRIER' <br></br>ABORT VOICE <br></br>ABORT 'NO DIALTONE'<br></br>ABORT 'NO ANSWER' <br></br>ABORT DELAYED<br></br><br></br># Modem init<br></br>'' ATZ<br></br><br></br># Selection of the PDP Context (eg here you choose which of the data connections<br></br># set on the phone you want to use). The parameters are CID, protocol (IP or PPP), <br></br># APN. If your provider gives you a string, use that one (with the right CID).<br></br>'OK' 'AT+CGDCONT=4,"IP","internet.vodafone.ro"'<br></br><br></br># QoS requirements: requested and minimum acceptable<br></br>'OK' 'AT+CGQREQ=1,0,0,0,0,0'<br></br>'OK' 'AT+CGQMIN=1,0,0,0,0,0'<br></br><br></br># "Dial string". 4 is the CID.<br></br>'OK' 'ATD*99***4#'<br></br><br></br>TIMEOUT 30<br></br><br></br>CONNECT<br></br>

Start/stop the connection:

#pon gprs<br></br>#tail -f /var/log/syslog<br></br>#ping www.google.com<br></br>PING www.l.google.com (64.233.183.99) 56(84) bytes of data.<br></br>64 bytes from nf-in-f99.google.com (64.233.183.99): icmp_seq=1 ttl=235 time=3791 ms<br></br>64 bytes from nf-in-f99.google.com (64.233.183.99): icmp_seq=2 ttl=235 time=3160 ms<br></br>64 bytes from nf-in-f99.google.com (64.233.183.99): icmp_seq=4 ttl=235 time=3552 ms<br></br>64 bytes from nf-in-f99.google.com (64.233.183.99): icmp_seq=5 ttl=235 time=3595 ms<br></br>...<br></br>14 packets transmitted, 13 received, 7% packet loss, time 24215ms<br></br>#poff gprs<br></br>

Hope it helps.