Want to add a Bluetooth Modem
Hello I have a bluetooth enabled nokia phone which can be used to connect to internet by using Bluetooth Dial up networking service. In order to do that, I should be able to add the Nokia bluetooth modem in SUSE 10.1 (Using KDE) How do I do it ___ Thanks and regards Puneit Singh
On Thursday 24 August 2006 17:31, Puneit Singh wrote:
Hello I have a bluetooth enabled nokia phone which can be used to connect to internet by using Bluetooth Dial up networking service. In order to do that, I should be able to add the Nokia bluetooth modem in SUSE 10.1 (Using KDE) How do I do it ___ Thanks and regards Puneit Singh
Yast has configuration features for bluetooth. Kbluetoothd has some functionality. I've used it for moving files from/to the phone. but not as a modem. Too slow. -- _____________________________________ John Andersen
On Fri, 2006-08-25 at 07:01 +0530, Puneit Singh wrote:
Hello I have a bluetooth enabled nokia phone which can be used to connect to internet by using Bluetooth Dial up networking service. In order to do that, I should be able to add the Nokia bluetooth modem in SUSE 10.1 (Using KDE) How do I do it ___ Thanks and regards Puneit Singh
First make sure the phone is accessible by the PCs bluetooth driver by using KBluetoothD; you should see the phone as an icon in Konq> bluetooth:/ Next you need rfcomm to connect to the phone. I just open up /etc/bluetooth/rfcomm.conf and add the phone's bluetooth address (like a MAC address) to the binding list. Now there should be a /dev/rfcomm0 device on the PC, use it as a normal modem serial port. I use KNetwordManager's Configure Dial-up Networking. Mail me directly if you need more help. E-Mail disclaimer: http://www.sunspace.co.za/emaildisclaimer.htm
On Fri, 2006-08-25 at 07:01 +0530, Puneit Singh wrote:
Hello I have a bluetooth enabled nokia phone which can be used to connect to internet by using Bluetooth Dial up networking service. In order to do that, I should be able to add the Nokia bluetooth modem in SUSE 10.1 (Using KDE) How do I do it
Until the phone company brings my adsl line, that's what I'm doing. You need two files: /etc/ppp/peers/gprs: # $Id: gprs,v 1.4 2004/04/28 08:40:32 mcfrisk Exp $ # # File: # gprs # # Description: # Serial cable, IrDA, Bluetooth and USB pppd options for GPRS phones. # See 'man pppd' for detailed option descriptions. # Most GPRS phones don't reply to LCP echo's #lcp-echo-failure 0 #lcp-echo-interval 0 lcp-max-configure 20 lcp-max-failure 20 # Keep pppd attached to the terminal: # Comment this to get daemon mode pppd nodetach # Debug info from pppd: # Comment this off, if you don't need more info passive debug debug debug debug # Show password in debug messages show-password # Connect script: # scripts to initialize the GPRS modem and start the connection, # wvdial command is for Orange SPV while other phones should work with chat #connect /etc/ppp/peers/gprs-connect-chat connect '/usr/sbin/chat -v -f /etc/ppp/peers/chatscript-gprs' #connect "/usr/bin/wvdial --chat --config /etc/ppp/peers/gprs-wvdial.conf radiolinja_usb_orange_spv" # Disconnect script: # AT commands used to 'hangup' the GPRS connection. #disconnect /etc/ppp/peers/gprs-disconnect-chat # Serial device to which the GPRS phone is connected: # /dev/ttyS0 for serial port (COM1 in Windows), # /dev/ircomm0 for IrDA, # /dev/ttyUB0 for Bluetooth (Bluez with rfcomm running) and # /dev/ttyUSB0 for USB #/dev/ttyS0 # serial port one #/dev/ttyS1 # serial port two #/dev/ircomm0 # IrDA serial port one /dev/rfcomm0 # Bluetooth serial port one #/dev/ttyUSB0 # USB serial device, for example Orange SPV # Serial port line speed 115200 # fast enough #57600 # perhaps usefull with IrDA as some phones don't like # speeds higher than this # Hardware flow control: # Use hardware flow control with cable, Bluetooth and USB but not with IrDA. crtscts # serial cable, Bluetooth and USB, on some occations with IrDA too #nocrtscts # IrDA # Ignore carrier detect signal from the modem: #local +pap # 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 #:10.0.0.1 # 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 # 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. # Example, Radiolinja operator pap-secrets: # "rlnet" * "internet" * #user "rlnet" #user None # The persist tries to reopen the connection if it is dropped. This # is usefull for example with a Nokia 7650 which only manages to # 'dial' with every second attempt or when the network likes to drop the # connection every now and then. It's not fun when the over-night # 'apt-get dist-upgrade -d -y' fails constantly... #persist #maxfail 99 # Asyncmap: # some phones may require this option. #asyncmap 0xa0000 # No magic: # some phones may require this option. #nomagic # Require PAP authentication: # some phones may require this option. #require-pap and /etc/ppp/peers/chatscript-gprs - this is a bit more tricky because it contains settings specific to your provider. The AT commands might differ slightly. Mine looks like this: TIMEOUT 12 "" ATZ OK ATH OK ATE1 OK 'AT+CBST=0,0,1;+CHSN=0,0,0,0;+CGDCONT=,,"internet"' OK ATD*99***1# TIMEOUT 22 CONNECT "" Now, open two consoles. In one type: rfcomm connect rfcomm0 to create a link via bluetooth to your phone, and then in a second console: pppd call gprs. Mine doesn't pick up DNS settings from the phone company, so I have to edit /etc/resolv.conf manually. Hope this helps. If anyone knows how to Yast-ify this, please let me know. The modem module has space for AT commands, but only three lines. Hans
On Fri, 2006-08-25 at 09:37 +0200, Hans du Plooy wrote:
On Fri, 2006-08-25 at 07:01 +0530, Puneit Singh wrote:
Hello I have a bluetooth enabled nokia phone which can be used to connect to internet by using Bluetooth Dial up networking service. In order to do that, I should be able to add the Nokia bluetooth modem in SUSE 10.1 (Using KDE) How do I do it
Until the phone company brings my adsl line, that's what I'm doing. You need two files:
/etc/ppp/peers/gprs:
---snip---
Now, open two consoles. In one type:
rfcomm connect rfcomm0
to create a link via bluetooth to your phone, and then in a second console:
pppd call gprs.
Mine doesn't pick up DNS settings from the phone company, so I have to edit /etc/resolv.conf manually.
Hope this helps. If anyone knows how to Yast-ify this, please let me know. The modem module has space for AT commands, but only three lines.
Hans
Only thing I had to do by hand was add the phones bluetooth address to /etc/bluetooth/rfcomm.conf to have it bind automagically. The rest you can do in YaST: Modem: Baud Rate: 115200 Init1: ATH Init2: ATE1 Init3: AT+CGDCONT=1,"IP","internet","0.0.0.0",0,0 {this seems to differ from phone to phone, I got it from some forum for my Moto} Provider: PhoneNum: *99***1# username: none/or internet or something (think its not used for my provider) NB: works faster if you tick "Stupid Mode" Increase your "Idle Time-out" (that took 2days of my life debugging) E-Mail disclaimer: http://www.sunspace.co.za/emaildisclaimer.htm
On Fri, 2006-08-25 at 10:00 +0200, Hans van der Merwe wrote:
Only thing I had to do by hand was add the phones bluetooth address to /etc/bluetooth/rfcomm.conf to have it bind automagically. The rest you can do in YaST:
Modem: Baud Rate: 115200 Init1: ATH Init2: ATE1 Init3: AT+CGDCONT=1,"IP","internet","0.0.0.0",0,0 {this seems to differ from phone to phone, I got it from some forum for my Moto}
Provider: PhoneNum: *99***1# username: none/or internet or something (think its not used for my provider) NB: works faster if you tick "Stupid Mode" Increase your "Idle Time-out" (that took 2days of my life debugging)
Hi Hans, I'm trying to get my globetrotter (MTN) card working through YaST/knetworkmanager/kinternet based on the stuff you did. Relevant files look like this. Chatscript: ABORT BUSY ABORT 'NO CARRIER' ABORT ERROR REPORT CONNECT TIMEOUT 10 "" "AT&F" OK "ATE1" OK "AT+CGDCONT=1,\042IP\042,\042internet\042" SAY "Calling MTN GPRS\n" TIMEOUT 60 OK "ATD*99***1#" CONNECT \c peers/globetrotter: /dev/noz0 115200 idle 7200 lock crtscts modem noauth replacedefaultroute defaultroute user Anyname password Anypassword connect "/usr/sbin/chat -V -f /etc/ppp/globetrotter-chat" noipdefault usepeerdns novj When I try to connect through knetworkmanager/kinternet, I get this: Oct 6 13:54:46 theluggage wvdial[10811]: WvDial: Internet dialer version 1.54.0 Oct 6 13:54:46 theluggage wvdial[10811]: Initializing modem. Oct 6 13:54:46 theluggage wvdial[10811]: Sending: AT&F Oct 6 13:54:46 theluggage wvdial[10811]: AT&F Oct 6 13:54:46 theluggage wvdial[10811]: OK Oct 6 13:54:46 theluggage wvdial[10811]: Sending: ATE1 Oct 6 13:54:46 theluggage wvdial[10811]: ATE1 Oct 6 13:54:46 theluggage wvdial[10811]: OK Oct 6 13:54:46 theluggage wvdial[10811]: Sending: AT +CGDCONT=1,"IP","internet" Oct 6 13:54:46 theluggage wvdial[10811]: AT+CGDCONT=1,"IP","internet" Oct 6 13:54:46 theluggage wvdial[10811]: OK Oct 6 13:54:46 theluggage wvdial[10811]: Sending: ATM1 Oct 6 13:54:47 theluggage wvdial[10811]: ATM1 Oct 6 13:54:47 theluggage wvdial[10811]: OK Oct 6 13:54:47 theluggage wvdial[10811]: Modem initialized. Oct 6 13:54:47 theluggage wvdial[10811]: Sending: ATDTATD*99***1# Oct 6 13:54:47 theluggage wvdial[10811]: Waiting for carrier. Oct 6 13:54:47 theluggage wvdial[10811]: ATDTATD*99***1# Oct 6 13:54:47 theluggage wvdial[10811]: ERROR Oct 6 13:54:47 theluggage wvdial[10811]: Voice line detected. Trying again. Oct 6 13:54:47 theluggage wvdial[10811]: Sending: ATDTATD*99***1# Oct 6 13:54:47 theluggage wvdial[10811]: Waiting for carrier. Oct 6 13:54:47 theluggage wvdial[10811]: ATDTATD*99***1# Oct 6 13:54:47 theluggage wvdial[10811]: ERROR the last four lines repeat forever. Have you seen this with yours by any chance? I tried stupid mode, and disabling dial tone detect - made no difference. Thanks Hans
On Fri, 2006-10-06 at 13:59 +0200, Hans du Plooy wrote:
Oct 6 13:54:47 theluggage wvdial[10811]: Sending: ATDTATD*99***1# Oct 6 13:54:47 theluggage wvdial[10811]: Waiting for carrier. Oct 6 13:54:47 theluggage wvdial[10811]: ATDTATD*99***1# Oct 6 13:54:47 theluggage wvdial[10811]: ERROR
Never mind, I got it going. ATDTATD*99***1# was the clue. I modified /etc/sysconfig/network/ifcfg-modem1 and removed the ATDT from DIALCOMMAND='' Now just one issue left. knetworkmanager still doesn't realise I'm connected, which means stuff like FF and Evolution thinks I'm offline (which I can force to think they're online) and gaim (which I can't). Any ideas anyone? I've looked through all the config files I know of, and don't find anything that notifies knetworkmanager of the connection. Thanks Hans
On Friday 06 October 2006 19:34, Hans du Plooy wrote:
Now just one issue left. knetworkmanager still doesn't realise I'm connected, which means stuff like FF and Evolution thinks I'm offline (which I can force to think they're online) and gaim (which I can't).
Any ideas anyone? I've looked through all the config files I know of, and don't find anything that notifies knetworkmanager of the connection.
Maybe the default route is not created when you're connected? Try to check it: route -n If it's not created, we can create it: route add default 'devicename' CMIIW, -- Fajar Priyanto | Reg'd Linux User #327841 | Linux tutorial http://linux2.arinet.org 6:12am up 19:27, 2.6.16.13-4-default GNU/Linux Let's use OpenOffice. http://www.openoffice.org
participants (5)
-
Fajar Priyanto
-
Hans du Plooy
-
Hans van der Merwe
-
John Andersen
-
Puneit Singh