GPRS internet connection via bluetooth with SE T610
When you’re running around in the mountains with your nifty Dell X1 and you just have to check if your server is still running, be sure to also have your cell phone in your pocket and follow these steps to get online.
Warning: When fooling around trying to make this work, the settings on my phone got corrupted (quite strange that this is possible indeed…) so I had to get new settings from my provider (for free, online).
Note: I’ve got a Sony Ericsson T610 and use the Norwegian provider Tele2. If you use another provider some of these settings must be changed. (Feel free to post a comment with the correct ones.)
Note: My current installation of Wordpress is a bit buggy about the " versus ". In the config files there should be no escaped double-quotes.
Thanks goes to Jan Øystein
- Confirm that your GPRS connection works locally on your phone, i.e. visit a wap site.
- Find the CID for the WAP connection on your phone: On my T610
- Communication -> Data communication -> Data accounts
- Find the account that has “internet” as its APN (or similar; I’ve got
internet.tele2.no.
My CID is “1″, your might be something else.
- On your computer, log in as root and create/modify the following files:
- /etc/bluetooth/rfcomm.conf
rfcomm0 { bind yes; device XX:XX:XX:XX:XX:XX; channel 1; comment "My phone"; }where XX:XX:XX:XX:XX:XX is your phone MAC address (can be found with ‘hcitool scan‘) - /etc/ppp/options.gprs
# Most GPRS phones don't reply to LCP echo's lcp-echo-failure 0 lcp-echo-interval 0 # Debug info from pppd: # Comment this off, if you don't need more info #debug # Show password in debug messages #show-password hide-password # Username and password: # If username and password are required by the APN, put here the username # and put the username-password combination to the secrets file: # /etc/ppp/pap-secrets for PAP and /etc/ppp/chap-secrets for CHAP # authentication. See pppd man pages for details. #user "username" # Check the settings on your phone, and use the same user name: # User name for Tele2 (Norwegian): user "wap" # Keep pppd attached to the terminal: # Comment this to get daemon mode pppd nodetach #Bluetooth device as given in /etc/bluetooth/rfcomm.conf /dev/rfcomm0 # Serial port line speed 115200 # Ignore carrier detect signal from the modem: local # IP addresses: # - accept peers idea of our local address and set address peer as 10.0.0.1 # (any address would do, since IPCP gives 0.0.0.0 to it) # - if you use the 10. network at home or something and pppd rejects it, # change the address to something else #:010.010.010.010 #:010.010.010.011 # (Don't use IP addresses when using "noipdefault") # pppd must not propose any IP address to the peer! noipdefault # Accept peers idea of our local address #ipcp-accept-local # Add the ppp interface as default route to the IP routing table defaultroute # Newer pppd's also support replacing the default route, if one is # already present, when the GPRS connetion should be set as the default route # to the network #replacedefaultroute # DNS servers from the phone: # some phones support this, some don't. usepeerdns # ppp compression: # ppp compression may be used between the phone and the pppd, but the # serial connection is usually not the bottleneck in GPRS, so the # compression is useless (and with some phones need to disabled before # the LCP negotiations succeed). novj nobsdcomp novjccomp nopcomp noaccomp # The phone is not required to authenticate: noauth nocrtscts
- /etc/ppp/chat.gprs
TIMEOUT 5 #ECHO ON SAY "Kobler opp via mobil" ABORT 'nBUSYr' ABORT 'nERRORr' ABORT 'nNO ANSWERr' ABORT 'nNO CARRIERr' ABORT 'nNO DIALTONEr' ABORT 'nRINGINGrnrRINGINGr' '' rAT TIMEOUT 12 OK ATE1 #OK AT+cgdcont=YOUR_CID_NUMBER_GOES_HERE,"IP","internet" #OK ATD*99***YOUR_CID_NUMBER_GOES_HERE# OK AT+cgdcont=1,"IP","internet.tele2.no" OK ATD*99***1# CONNECT ''
- /etc/ppp/pap-secrets
# Secrets for authentication using PAP # client server secret IP addresses ####### redhat-config-network will overwrite this part!!! (begin) ########## ####### redhat-config-network will overwrite this part!!! (end) ############ # Secrets for authentication using PAP # client server secret IP addresses wap * wap
- /etc/ppp/peers/gprsbt
file /etc/ppp/options.gprs #connect "/usr/sbin/chat -v -s -f /etc/ppp/chat.gprs" connect "/usr/sbin/chat -f /etc/ppp/chat.gprs"
- Unplug/disconnect all other running networks, turn on bluetooth on your phone (if necessary restart bluetooth on the laptop with ‘
service bluetooth restart‘) and start the dailup script with the commandpppd call gprsbt
- /etc/bluetooth/rfcomm.conf
Comments are welcome…
These steps are applicable to other phones as well: T630, T68i, K700,
K750, K750i, etc. Maybe even Nokia phones. Samsung? LG? Siemens? Qtec?
January 4th, 2006 at 09:30:06
Hm, I sometimes seem to have a DNS lookup problem. It can be solved by doing a ‘
echo "nameserver XXX.XXX.XXX.XXX" >> /etc/resolv.conf‘ (whereXXX.XXX.XXX.XXXis a DNS of your ISP.Any suggestions about this would be appreciated!
November 9th, 2006 at 15:37:30
K700I PHONE FUNCTION GPRS SETING