Mediator, thanks for the links.
Mehul, I am not able to edit the hcid.conf file in etc/bluetooth. Y'day I was able to do it. But not today. I am opening it as a administrator from the right-click context menu. I get the following error message.
*i142.photobucket.com/albums/r116/kiran_rkk/Miscellaneous/ScreenshotCustom.png
Prakash, I will consider you suggestion. But let me just use this installation for few days and get the feel.
----------------------------------------------------------------------------------------------------------------------------------
Ok... finally I got it solved by playing around with Admin rights and changing User and Root password. Now I could edit it without problems.
I configured all the files to connect to GPRS mobile via bluetooth.
Now upon dialing #wvdial GPRS, I get the error message as:
"Sorry, No modem was detected".
I checked /dev/...folder and couldn't see modem folder. From where can I get this modem settings?
Finally I got it working by doing some work arounds.
But there is one problem. I am not able to pair the mobile with PC.
This is the edited content of
hcid.conf:
Code:
#
# HCI daemon configuration file.
#
# HCId options
options {
# Automatically initialize new devices
autoinit yes;
# Security Manager mode
# none - Security manager disabled
# auto - Use local PIN for incoming connections
# user - Always ask user for a PIN
#
security user;
# Pairing mode
# none - Pairing disabled
# multi - Allow pairing with already paired devices
# once - Pair once and deny successive attempts
pairing multi;
# Default PIN code for incoming connections
passkey "BlueZ";
}
# Default settings for HCI devices
device {
# Local device name
# %d - device id
# %h - host name
name "BlueZ(%d)";
# Local device class
class 0x3e0100;
# Default packet type
#pkt_type DH1,DM1,HV1;
# Inquiry and Page scan
iscan enable; pscan enable;
# Default link mode
# none - no specific policy
# accept - always accept incoming connections
# master - become master on incoming connections,
# deny role switch on outgoing connections
lm accept;
# Default link policy
# none - no specific policy
# rswitch - allow role switch
# hold - allow hold mode
# sniff - allow sniff mode
# park - allow park mode
lp rswitch,hold,sniff,park;
}
And this is the content of
rfcomm.conf:
Code:
#
# RFCOMM configuration file.
#
rfcomm0 {
# # Automatically bind the device at startup
bind no;
#
# # Bluetooth address of the device
device 00:12:EE:05:CB:1C;
# 11:22:33:44:55:66;
#
# # RFCOMM channel for the connection
channel 1;
#
# # Description of the connection
comment "Example Bluetooth device";
}
This is the BT address scan details:
Code:
[root@localhost ~]# hcitool scan
Scanning ...
[B]00:12:EE:05:CB:1C[/B] Kiran RKK
When I connect to the bluetooth address, I get the connection in mobile. It asks me whether to add the device. I clicked yes. Then it asks for PIN code. It refuses '1234'. I also tried adding the same code i use in Windows XP. It also is refused.
Here is the error:
Code:
[root@localhost ~]# rfcomm connect 00:12:EE:05:CB:1C
Can't connect RFCOMM socket: Connection refused
There is no bluepin file in
/usr/local/bin/bluepin file
Can anyone help me pairing the device?
One more thing I would like to add up is, after I do all these things my Windows XP again asks for pairing. I enter the code and the mobile gets paired. I understand that pass code for pairing is stored in BT software and not OS, So I guess something is overriding the pass code in Linux due to which I have to again pair in Windows too.