You are not logged in.
After a lot of messing about I now have bluetooth installed on my 2G (default xandros) and a working gprs connection via an ericsson k700i and t-mobile.
Here are the steps invoved for anyone interested:
1. Install bluetooth stack on epc
enable 701 repositories
install bluez-utils and libbluetooth2
Plug in the usb BT dongle and enable with
sudo hciconfig hci0 up
check it's up and running
sudo hciconfig
If you need to start BT use
sudo hciconfig hci0 up
find bluetooth dongles MAC address
sudo hcitool dev
Edit BT config
sudo nano /var/lib/bluetooth/<BT MAC address>/config
edit name of BT dongle and change 'mode configurable' to 'mode discoverable'
2. Configure your mobile phone for gprs. I use t-mobile:
GPRS APN address: general.t-mobile.uk
Username : user (alt: wapuser)
Password: wap
Other mobile providers gprs settings are at http://www.mphone.co.uk/mms_wap_settings_t_mobile.html
Verify you can browse via gprs from your mobile
3. Pair epc to phone
Download and Install 3egprs config utility from http://www.3eportal.com/index.php?optio … p;Itemid=1
Make sure bluetooth is turned on in the phone as 3egprs install goes straight into a config wizard.
The wizard asks you for a pin - use 0000
And also your mobile gprs APN see step 2 above
After installing the 3gprs deb and going through the initial wizard, I edited hcid.conf:
sudo nano /etc/bluetooth/hcid.conf and added
discovto 0; to devices section below lm accept;
Find the phones MAC address
sudo hcitool scan
00:16:20:19:C7:07 K700i
If it doesn't work reset
sudo hciconfig hci0 reset and try hcitool scan again
find the phones DUN
sdptool search DUN channel
Check both MAC and DUN above are in rfcomm.conf
sudo nano /etc/bluetooth/rfcomm.conf
4. To use the gprs connection.
Disable your wireless via the icon in task bar.
In easy mode and click internet/egprs icon to start gprs connection.
In advanced mode, sudo gprs.
Your phone will acknowledge and establish a gprs connection
NOTE despite what the author of 3egprs says, I do not initaite bluetooth pairing from the phone. Indeed when I try to do so the phone still does not find the epc.
Conversely I was also unable to initiate pairing from the epc to the phone with;
sudo hcitool cc k700i
Which made using the 3egprs config utility vital.
5. Taking down BT and gprs
Conserve battery by turning off when not in use;
Turn off gprs
In easymode click internet/egprs icon.
In advanced mode, sudo gprs.
Turn off BT dongle
sudo hciconfig hci0 down
6. What to do if you come back the next day and it is no longer working:
Once up and running it all seems to work reliably BUT getting it running after a reboot seems to be a problem. I have found that the following streps need to be done:
Id sudo hciconfig shows UP RUNNING and not UP RUNNING PSCAN ISCAN,
and sudo hcitool scan, gives an inquiry fail
enter sudo hciconfig hci0 reset
and then verify your phone can now be seen
sudo hcitool scan
scanning... <phone MAC address> <name>
Click the egprs icon and your phone will now connect to gprs.
Getting bluetooth and gprs working on my epc has been 2 days of frustration. I hope the above helps others.
Last edited by bikeman (2008-04-15 3:57:27 am)
Offline
You say your phone won't initiate pairing. That's very unusual. Most phones have a list of Bluetooth devices and the option to "add new device". Or do you mean your phone can't see your eee in a scan?
In any case, you may have an easier time if you use this script
http://www.3eportal.com/index.php?optio … p;Itemid=1
Offline
cjdshaw wrote:
In any case, you may have an easier time if you use this script
http://www.3eportal.com/index.php?optio … p;Itemid=1
The script does nothing except facilitate gprs config setup and I already used it. The script requires the phone to initaite pairing and even the scripts author admited to me that he does not know how to initiate pairing from the epc. Seems to be a real mystery!
Are you saying that the epc can't initiate pairing?
I initiate from the pc not the phone when I use my xp laptop.
When I try to search for devices from the phone (turns out it can), it doesn't find the epc.
Last edited by bikeman (2008-04-10 11:21:33 am)
Offline
I've had this problem before. It seems the Eee very easily makes itself undiscoverable. Have a look in
/var/lib/bluetooth/<BLUETOOTH ADDRESS>/config
If it doesn't say "mode discoverable", delete the whole
/var/lib/bluetooth/<BLUETOOTH ADDRESS>
folder, reboot and try to initiate pairing from the phone again.
Offline
Not sure what to actually do here, I get no such file or directory at
/var/lib/bluetooth/00:15:83:09:36:97/config
How do I delete the whole
/var/lib/bluetooth/<BLUETOOTH ADDRESS>
folder?
Last edited by bikeman (2008-04-10 12:32:10 pm)
Offline
Hmmm. What is the contents of /var/lib/bluetooth? It should have the hardware address of your Bluetooth adapter, i.e. what you get when you type
sudo hcitool dev
Offline
devices:
hci0 00:15:83:09:36:97
I don't have a bluetooth directory
cd /var/lib/bluetooth/
bash: cd: /var/lib/bluetooth/: no such file or directory
Last edited by bikeman (2008-04-10 12:38:50 pm)
Offline
Hi,
I know this problem, the Motorola RAZR V3 can't initiate a paring too.
http://eeepc.one.pl/bluetooth.html#english
I had to install python-gtk additionally and called it with
passkey-agent /usr/bin/bluepin [MAC-OF-THE-PHONE]
When I then accessed the phone via wvidal (in my eyes the easiest solution, can be found here too) i got the pairing dialog.
Greetings
Offline
re cap:
my phone can initiate paring but my eee pc is apparently undiscoverable. Advice to delete /var/lib/bluetooth/<BLUETOOTH ADDRESS> hasn't gone anywhere because I dont have this directory!
I am not sure what the gprs config utility from 3eportal.com is supposed to do but my rfcomm.conf file is still blank.
I am really hacked off with this now - so much for 'easy to..' more like 'exasperating to..'
Offline
I am really hacked off with this now - so much for 'easy to..' more like 'exasperating to..'
I don't believe that anyone has said that pairing a phone via Bluetooth (which isn't even supplied with the EEE...) would be easy?!
Perhaps have a look at http://forum.eeeuser.com/viewtopic.php?pid=23948#p23948 - in particular the lines about bluetooth-applet - and see if that works.
Offline
bikeman wrote:
re cap:
my phone can initiate paring but my eee pc is apparently undiscoverable. Advice to delete /var/lib/bluetooth/<BLUETOOTH ADDRESS> hasn't gone anywhere because I dont have this directory!
I am not sure what the gprs config utility from 3eportal.com is supposed to do but my rfcomm.conf file is still blank.
I am really hacked off with this now - so much for 'easy to..' more like 'exasperating to..'
OK, ignoring your rather negative attitude, it sounds like when you installed Bluetooth, you've messed up the default config files. Your /etc/bluetooth/hcid.conf should contain
#
# 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 auto;
# 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 "<EEE PASSKEY>";
}
# Default settings for HCI devices
device {
# Local device name
# %d - device id
# %h - host name
name "%h-%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;
}with <EEE PASSKEY> replaced by a numerical code and your /etc/bluetooth/rfcomm.conf should contain
#
# RFCOMM configuration file.
#
rfcomm0 {
# # Automatically bind the device at startup
bind yes;
#
# # Bluetooth address of the device
device <YOUR PHONES BLUETOOTH ID>;
#
# # RFCOMM channel for the connection
channel <PHONE'S DUN CHANNEL>;
#
# # Description of the connection
comment "GPRS Connection";
}Try creating these and making the /var/lib/bluetooth directory with
sudo mkdir /var/lib/bluetooth
and rebooting. You'll also need /etc/default/bluetooth and /etc/init.d/bluetooth but I'm hoping these are intact from the bluez-utils install.
Offline
Oh, and 30 seconds of Googling showed that to initiate pairing from the Eee, you type
hcitool cc <phone id>
Offline
cjdshaw, in bikeman's defence he has a 2G eeepc and didn't have the bluetooth items that come on a 4G. I've been having him change his repos and by looking at what I have on my 4G, told him to install blue-utilez and libbluetools2. Since I really know nothing about bluetooth, I've probably screwed something up for him. (Picture the blind leading the blind).
If there are other things he needs on his 2G to get this working, he has the p701 repos. I'm not sure if I had him add another one "tuxfamily" or not. If he needs other packages, please tell him what and which repo to make active to obtain the proper tools.
Offline
etc/bluetooth/hcid.conf and etc/bluetooth/rfcomm.conf are both intact as far as I can see.
However what is the 'phones BT id' - I have entered the BT dongle's MAC address returned with hcitool dev. Isn't this right?
And where do I get the phones DUN channel from?
content of /var/lib/bluetooth/00:15:83:09:36:97/config is
name bluetooth
tried adding
'mode discoverable' but it made no difference
/home/user> cd /etc/default/bluetooth
bash: cd: /etc/default/bluetooth: Not a directory
/home/user> cd /etc/init.d/bluetooth
bash: cd: /etc/init.d/bluetooth: Not a directory
As you can see from above I do not have the above two directories. Do I just MK them and reboot? How to I rebuild their contents?
/home/user> sudo hcitool cc k700
Can't create connection: Input/Output error
Thanks for your assitance.
Last edited by bikeman (2008-04-11 4:59:09 am)
Offline
I have now got this working after 2 days of frustration. So that others may benefit I have recorded the steps and edited my original post above.
The thread title 'initiate bluetooth pairing...' obviously doesn't cover the thread subject anymore and should perhaps be changed.
I hope this helps others avoid the problems I experienced. If useful could this be made sticky or put in wiki?
Offline
Glad to hear you got it working. FYI, try doing
sudo hcitool cc 00:16:20:19:C7:07
Offline
since I have a 4G Eee PC.. do I start at step 3. Pair epc to phone?
I have installed 3egprs and have bluetooth running via dongle from the Eee PC. My mobile phone (Dopod 838 Pro w/ Windows Mobile 6) is connected to the internet and I have turned on internet sharing via bluetooth.
Acording to my phone settings, the AP is 'internet' - so this is what I put in the 3egprs. When I click the icon in the internet tap - it says that GPRS is running (as I side point, if I click it again, it still says its running.. ie it doesn't turn off). But the browser cannot load any webpages and I can't tell if there's a real connection to the phone - do I need to do something in network? I've got very stuck!
Offline
On the assumption that you can actually browse the internet via your phone, I suggest you delve a bit deeping into your phone's gprs settings because 'internet' is not a valid APN. Also have a look at http://www.mphone.co.uk/mms_wap_settings.html for uk mobile operator gprs settings.
Offline
I've got the same problem, I think. My phone can't seem to find the EEEPC any more. Mine's a 4G and my phone's a Sony EricssonW380i. The dongle was working fine when I first tested it before I installed the deb file. They also talked to eachother as far as I could tell when I was setting up the passkeys, but they seem to have fallen out with eachother now! My phone can normally initiate communication with other mobiles but doesn't give me an option to connect with the EEEPC. Bizarre.
I've tried to follow what people have suggested to get it to work, but it really has to be in baby language for me, being a hopeless newbie! (I'm amazed that I managed to download the deb file, so I'm doing well...)
Offline
All i want to do is send music files from my eee to my LG cookie KP501and vis a vis i tried these steps ( i really don't know if these are the ones i should be looking at ) .But my phone couldn't detect the eee pc when i downloaded the 3gprs i think it is any help plus i don't get the bit when you edit name of BT and set to mode discoverable how do you do that????
Offline
Hope this might help another newbie like me.
I can transfer pictures and music between my eeepc 4G, Xandros. and my Nokia 2630 phone.
Works with an ASUS WL-BTD201M Dongle adapter and also with a "Tiny" style one.
I started by trying "Using Bluetooth peripherals with the Eee" from the EeeUser Wiki and every thing seemed connected.
Then did "Adding Additional Software Repositries" also from the wiki.
Then dowloaded kbluetooth (sudo apt-get install kbluetooth) which I think comes from the xepc repositry.
Then Ctrl alt T to open a console and launch kbluetooth (sudo kbluetooth)
After trial and error realised that the adapter needs to be configured to be discoverable and I had to delete all previous pairings from the phone that had used the same dongle.
Then open a picture from the gallery on the phone and send via bluetooth. Abracadabara - a dialog opens on the eeepc to accept the file.
Offline