$ hcitool scan
$ sdptool browse <mac add.>
$ sudo gedit /etc/bluetooth/rfcomm.conf
rfcomm0
{
bind yes;
device <mac add.>;
channel <DUN channel>;
comment "My Phone";
}
$ sudo rfcomm bind 0 <mac add.> <channel>
$ sudo gedit /etc/wvdial.conf
[Modem0]
Modem = /dev/rfcomm0
Baud = 115200
SetVolume = 3
Dial Command = ATDT
Init1 = ATZ
Init3 = ATM1L3
FlowControl = CRTSCTS
[Dialer BT]
Username = aa
Password = aa
Phone = *99***1#
Stupid Mode = 1
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Inherits = Modem0
$ sudo wvdial BT
What did i do??anantkhaitan said:Hey gr8 now Ubuntu supports easy pairing.. anyways I am giving the whole procedure because pathiks has totally messed up his first post :
aks@aks-laptop:~$ sudo wvdial BT
[sudo] password for aks:
Sorry, try again.
[sudo] password for aks:
WvDial<*1>:WvDial: Internet dialer version 1.56
WvDial<Err>: Cannot open /dev/rfcomm0: No such file or directory
WvDial<Err>: Cannot open /dev/rfcomm0: No such file or directory
WvDial<Err>: Cannot open /dev/rfcomm0: No such file or directory
aks@aks-laptop:~$ sudo rfcomm bind 0 00:17:4B:59:93:CD 3
aks@aks-laptop:~$ sudo gedit /etc/wvdial.conf
aks@aks-laptop:~$ sudo wvdial BT
WvDial<*1>: WvDial: Internet dialer version 1.56
WvModem<*1>: Cannot get information for serial port.
WvDial<*1>: Initializing modem.
WvDial<*1>: Sending: ATZ+CGDCONT=,,"airtelgprs.com"
WvDial Modem<*1>: ATZ+CGDCONT=,,"airtelgprs.com"
WvDial Modem<*1>: OK
WvDial<*1>: Sending: ATQ0 V1 E1 S0=0 &C1 &D2+FCLASS=0
WvDial Modem<*1>: ATQ0 V1 E1 S0=0 &C1 &D2+FCLASS=0
WvDial Modem<*1>: OK
WvDial<*1>: Sending: ATM1L3
WvDial Modem<*1>: ATM1L3
WvDial Modem<*1>: OK
WvDial<*1>: Modem initialized.
WvDial<*1>: Sending: ATDT*99#
WvDial<*1>: Waiting for carrier.
WvDial Modem<*1>: ATDT*99#
WvDial Modem<*1>: CONNECT
WvDial Modem<*1>: ~[7f]}#@!}!} } }2}#}$@#}!}$}%\}"}&} }*} } g}%~
WvDial<*1>: Carrier detected. Starting PPP immediately.
WvDial<Notice>: Starting pppd at Sun Dec 16 20:09:17 2007
WvDial<Notice>: Pid of pppd: 5966
WvDial<*1>: Using interface ppp0
WvDial<*1>: Disconnecting at Sun Dec 16 20:09:25 2007
WvDial<*1>: The PPP daemon has died: A modem hung up the phone (exit code = 16)
WvDial<*1>: man pppd explains pppd error codes in more detail.
WvDial<Notice>: Try again and look into /var/log/messages and the wvdial and pppd man pages for more information.
WvDial<Notice>: Auto Reconnect will be attempted in 5 seconds
$ sdptool browse 00:17:4B:59:93:CD
$ cat /var/log/messages
$ sudo /etc/init.d/bluetooth restart
Nothing man.. i was talking of a platform independent procedure..this Distro Tags which may confuse a newcomer.. You know better!!pathiks said:What did i do??
aks@aks-laptop:~$ sdptool browse 00:17:4B:59:93:CD
Browsing 00:17:4B:59:93:CD ...
Service Name: Hands-Free Audio Gateway
Service RecHandle: 0x10008
Service Class ID List:
"Handfree Audio Gateway" (0x111f)
"Generic Audio" (0x1203)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 1
Language Base Attr List:
code_ISO639: 0x454e
encoding: 0x6a
base_offset: 0x100
Profile Descriptor List:
"Handfree Audio Gateway" (0x111f)
Version: 0x0101
Service Name: Headset Audio Gateway
Service RecHandle: 0x10009
Service Class ID List:
"Headset Audio Gateway" (0x1112)
"Generic Audio" (0x1203)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 2
Language Base Attr List:
code_ISO639: 0x454e
encoding: 0x6a
base_offset: 0x100
Profile Descriptor List:
"Headset"
(0x1108)
Version: 0x0100
Service Name: OBEX File Transfer
Service RecHandle: 0x1000a
Service Class ID List:
"OBEX
File Transfer" (0x1106)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 10
"OBEX" (0x0008)
Language Base Attr List:
code_ISO639: 0x454e
encoding: 0x6a
base_offset: 0x100
Profile Descriptor List:
"OBEX
File Transfer" (0x1106)
Version: 0x0100
Service Name: SyncMLClient
Service RecHandle: 0x1000b
Service Class ID List:
UUID 128: 00000002-0000-1000-8000-0002ee000002
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel:
11
"OBEX" (0x0008)
Language Base Attr List:
code_ISO639: 0x454e
encoding: 0x6a
base_offset: 0x100
Profile
Descriptor List:
"" (0x00000002-0000-1000-8000-0002ee000002)
Version: 0x0100
Service Name: Nokia OBEX PC Suite
Services
Service RecHandle: 0x1000c
Service Class ID List:
UUID 128: 00005005-0000-1000-8000-0002ee000001
Protocol
Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 12
"OBEX" (0x0008)
Language Base Attr List:
code_ISO639: 0x454e
encoding: 0x6a
base_offset: 0x100
Profile Descriptor List:
""
(0x00005005-0000-1000-8000-0002ee000001)
Version: 0x0100
Service Name: OBEX Object Push
Service RecHandle: 0x1000d
Service Class ID List:
"OBEX Object Push" (0x1105)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 9
"OBEX" (0x0008)
Language Base Attr List:
code_ISO639: 0x454e
encoding: 0x6a
base_offset: 0x100
Profile
Descriptor List:
"OBEX Object Push" (0x1105)
Version: 0x0100
Service Name: Imaging
Service RecHandle: 0x1000e
Service
Class ID List:
"Imaging Responder" (0x111b)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel:
15
"OBEX" (0x0008)
Language Base Attr List:
code_ISO639: 0x454e
encoding: 0x6a
base_offset: 0x100
Profile
Descriptor List:
"Imaging" (0x111a)
Version: 0x0100
Service Name: Dial-Up Networking
Service RecHandle: 0x1000f
Service Class ID List:
"Dialup Networking" (0x1103)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 3
Language Base Attr List: code_ISO639: 0x454e
encoding: 0x6a
base_offset: 0x100
Profile Descriptor List:
"Dialup Networking" (0x1103)
Version: 0x0100
$ sudo /etc/init.d/bluetooth restart
$ sudo wvdial BT
$ cat /var/log/messages
Dec 19 12:11:28 aks-laptop kernel: [ 24.004000] ACPI: Sleep Button (CM) [SLPB]
Dec 19 12:11:28 aks-laptop kernel: [ 24.108000] ACPI: AC Adapter [AC0] (on-line)
Dec 19 12:11:30 aks-laptop kernel: [ 26.736000] ppdev: user-space parallel port driver
Dec 19 12:11:31 aks-laptop kernel: [ 27.200000] audit(1198046490.940:3): type=1503 operation="inode_permission" requested_mask="a" denied_mask="a" name="/dev/tty" pid=5260 profile="/usr/sbin/cupsd"
Dec 19 12:11:31 aks-laptop kernel: [ 27.300000] apm: BIOS not found.
Dec 19 12:11:31 aks-laptop kernel: [ 27.604000] Failure registering capabilities with primary security module.
Dec 19 12:11:31 aks-laptop dhcdbd: Started up.
Dec 19 12:11:31 aks-laptop kernel: [ 27.784000] Bluetooth: L2CAP ver 2.8
Dec 19 12:11:31 aks-laptop kernel: [ 27.784000] Bluetooth: L2CAP socket layer initialized
Dec 19 12:11:31 aks-laptop kernel: [ 27.816000] [fglrx] Maximum main memory to use for locked dma buffers: 803 MBytes.
Dec 19 12:11:31 aks-laptop kernel: [ 27.816000] [fglrx] module loaded - fglrx 8.37.6 [May 25 2007] on minor 0
Dec 19 12:11:32 aks-laptop kernel: [ 27.836000] ACPI: PCI Interrupt 0000:01:05.0[A] -> GSI 17 (level, low) -> IRQ 18
Dec 19 12:11:32 aks-laptop kernel: [ 28.028000] Bluetooth: RFCOMM socket layer initialized
Dec 19 12:11:32 aks-laptop kernel: [ 28.028000] Bluetooth: RFCOMM TTY layer initialized
Dec 19 12:11:32 aks-laptop kernel: [ 28.028000] Bluetooth: RFCOMM ver 1.8
Dec 19 12:11:33 aks-laptop kernel: [ 29.736000] [fglrx] total GART = 130023424
Dec 19 12:11:33 aks-laptop kernel: [ 29.736000] [fglrx] free GART = 114032640
Dec 19 12:11:33 aks-laptop kernel: [ 29.736000] [fglrx] max single GART = 114032640
Dec 19 12:11:33 aks-laptop kernel: [ 29.736000] [fglrx] total LFB = 134217728
Dec 19 12:11:33 aks-laptop kernel: [ 29.736000] [fglrx] free LFB = 119828480
Dec 19 12:11:33 aks-laptop kernel: [ 29.736000] [fglrx] max single LFB = 119828480
Dec 19 12:11:33 aks-laptop kernel: [ 29.736000] [fglrx] total Inv = 0
Dec 19 12:11:33 aks-laptop kernel: [ 29.736000] [fglrx] free Inv = 0
Dec 19 12:11:33 aks-laptop kernel: [ 29.736000] [fglrx] max single Inv = 0
Dec 19 12:11:33 aks-laptop kernel: [ 29.736000] [fglrx] total TIM = 0
Dec 19 12:11:41 aks-laptop kernel: [ 37.048000] hda-intel: Invalid position buffer, using LPIB read method instead.
Dec 19 12:17:50 aks-laptop syslogd 1.4.1#21ubuntu3: restart.
Dec 19 12:31:28 aks-laptop -- MARK --
Dec 19 12:51:28 aks-laptop -- MARK --
Dec 19 13:11:28 aks-laptop -- MARK --
Dec 19 13:31:28 aks-laptop -- MARK --
Dec 19 13:51:28 aks-laptop -- MARK --
Dec 19 14:11:28 aks-laptop -- MARK --
Dec 19 14:15:00 aks-laptop kernel: [ 7436.420000] PPP generic driver version 2.4.2
Dec 19 14:15:00 aks-laptop pppd[6149]: pppd 2.4.4 started by aks, uid 1000
Dec 19 14:15:00 aks-laptop pppd[6149]: Using interface ppp0
Dec 19 14:15:00 aks-laptop pppd[6149]: Connect: ppp0 <--> /dev/rfcomm0
Dec 19 14:15:03 aks-laptop pppd[6149]: PAP authentication succeeded
Dec 19 14:15:03 aks-laptop kernel: [ 7439.640000] PPP BSD Compression module registered
Dec 19 14:15:03 aks-laptop kernel: [ 7439.692000] PPP Deflate Compression module registered
Dec 19 14:15:05 aks-laptop pppd[6149]: LCP terminated by peer
Dec 19 14:15:08 aks-laptop pppd[6149]: Connection terminated.
Dec 19 14:15:08 aks-laptop pppd[6149]: Modem hangup
Dec 19 14:15:08 aks-laptop pppd[6149]: Exit.
Dec 19 14:15:25 aks-laptop pppd[6194]: pppd 2.4.4 started by aks, uid 1000
Dec 19 14:15:25 aks-laptop pppd[6194]: Using interface ppp0
Dec 19 14:15:25 aks-laptop pppd[6194]: Connect: ppp0 <--> /dev/rfcomm0
Dec 19 14:15:27 aks-laptop pppd[6194]: PAP authentication succeeded
Dec 19 14:15:29 aks-laptop pppd[6194]: LCP terminated by peer
Dec 19 14:15:32 aks-laptop pppd[6194]: Connection terminated.
Dec 19 14:15:32 aks-laptop pppd[6194]: Modem hangup
Dec 19 14:15:32 aks-laptop pppd[6194]: Exit
[Modem0]
Modem = /dev/rfcomm0
Baud = 115200
SetVolume = 3
Dial Command = ATDT
Init1 = ATZ
Init3 = ATM1L3
FlowControl = CRTSCTS
[Dialer BT]
Username = aa
Password = aa
Phone = *99***1#
Stupid Mode = 1
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Inherits = Modem0
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem = /dev/ttyACM0
Phone = *99#
Idle Seconds = 300
Modem Type = Analog Modem
Baud = 230400
Auto DNS = 1
Dial Command = ATDT
Ask Password = 0
ISDN = 0
Carrier Check = No
Password = xxx
Username = xxx
linux-8swx:~ # wvdial BT
--> WvDial: Internet dialer version 1.56 (abuild@mandelbrot)
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
--> Sending: ATQ0
--> Re-Sending: ATZ
--> Modem not responding.
try *99#I'm not able to connect to Mobile Office in Ubuntu 7.10 via the USB connecting method given on first page. I get a "Configuration does not specify a valid phone number" error even though I entered *99***# which is the correct number. Please help.