Blog Forum Wiki Links Contact Us NetbookUser
RunCore Pro IV SSD Transforms your ASUS EEE PC by increasing 
performance 5-40X. Your satistfaction guaranteed RunCore Pro 70mm SATA Mini PCI-e SSD
RunCore Pro IV 70mm SATA II Mini PCI-e SSD
RunCore Pro IV 2.5 Inch SATA II SSD

You are not logged in.

#1 2007-11-10 9:14:48 pm

nick5768
New member
Registered: 2007-11-07
Posts: 3

[HowTo] Using your Windows Mobile 5 Device for Internet Access

[Edit 11/20/2007]
Ericmoritz has posted a much more user friendly way to do this later in the thread:
Click here for instructions.

If you need help adding the extra repositories he describes that here.


Below is the original post.  Read above for an easier way!



This worked for me using a Samsung Blackjack (Windows Mobile 5 Smartphone) and a Belkin F8T001 ver. 2 USB Bluetooth adapter.

If you try this out and it does or doesn't work please post here with your hardware!

I tried using this post but was getting error messages so I tried using a script I had used to access the internet through my phone on Ubuntu 7.10.  So far it seems to be working fine (this post is done using that connection *fingers crossed*).

I am by no means a Linux guru so if there is a redundant step or a better way to do this please post!

1.  Make your phone discoverable by going to Start, Settings, Connections, Bluetooth, Bluetooth and checking the "Make this device visible to other devices" box.

2. Open a terminal on your EEE and issue the following command:
sudo hcitool scan

3. You should see your phone followed by it's bluetooth MAC address(for example 00:11:22:33:44:55).  Highlight the MAC address and copy it (Click the edit menu, then click copy).  Paste it into a safe place (a text editor window or something).

4. Go into your terminal again (Ctl-Alt-T) and issue the following command:
sudo nano /etc/bluetooth/hcid.conf

5. Find the line called security and change it from “user” to “auto”.

6. Press Ctl-O and then hit enter when prompted.  Then press Ctl-X.

7. On your phone go to Start, Settings, Connections, Bluetooth, Bluetooth, Menu, Devices, Add new Device.  Add the EEE with the passcode of “1234”.

8. Go back into the terminal (Ctl-Alt-T) and type the following command:
nano bton.sh

9. Paste in the following:

Code:

#!/bin/bash

sudo killall dhcpd
sudo pand -K
sudo modprobe bnep
sudo hcitool scan
sudo pand –role PANU –service NAP –connect 00:11:22:33:44:55 –nodetach
sudo dhclient bnep0

Replace the “00:11:22:33:44:55” with the MAC address that you copied to a safe place earlier.
10. Press Ctl-O and then hit enter when prompted.  Then press Ctl-X.

11. In a terminal window type the following command:
sudo chmod +x ./bton.sh

Done!

Now just open the Internet Sharing program on your phone, set the PC Connection to Bluetooth PAN, and click connect.  On the EEE open a terminal window and type “./bton.sh”.

It should work!

Post here with feedback.

Last edited by nick5768 (2007-11-20 6:23:21 pm)

Offline

 

#2 2007-11-15 3:39:42 pm

chrismoo
Senior Member
From: VA
Registered: 2007-10-19
Posts: 298
Website

Re: [HowTo] Using your Windows Mobile 5 Device for Internet Access

This is why my EEE is now running XP and Bluetooth was working in under 5 mins......Linux is not ready for mainstream use...not even the GUI Bluetooth stuff on Gutsy Ubuntu works.......I wish I could have kept the stock OS or Ubuntu but I need my Bluetooth!

Offline

 

#3 2007-11-16 4:50:07 am

Molotov
Member
Registered: 2007-11-15
Posts: 16

Re: [HowTo] Using your Windows Mobile 5 Device for Internet Access

Nice guide for Bluetooth.

I'd like to add that this can be done through WiFi on both WM5 and WM6 using this extremely well written guide found on XDA-Developers.

http://forum.xda-developers.com/showthread.php?t=341398

Perhaps it is worth adding both the bluetooth and the Wifi method of internet sharing using these devices to the wiki? With the authors' permission of course.

Offline

 

#4 2007-11-16 4:55:48 am

shoegazer
Member
Registered: 2007-11-12
Posts: 20

Re: [HowTo] Using your Windows Mobile 5 Device for Internet Access

Mods - can we also sticky this or one of the previous posts - I foresee this will be a popular question which people fail to do searches on smile

Kaiser post: http://forum.eeeuser.com/viewtopic.php?id=1344

cheers

Offline

 

#5 2007-11-16 10:00:58 am

TabulaRasa
Senior Member
Registered: 2007-11-12
Posts: 128

Re: [HowTo] Using your Windows Mobile 5 Device for Internet Access

Left my dongle home, but will try this when i get back.  So far, this looks like the easiest instructions yet.  would be awesome if someone could create a tray icon to click to activate the bluetooth connection.


I am an N800 refugee.  EEE PC is my new fav gadget.  Just got USB DUN working flawlessly on a Motorola Q via wvdial.  w00t!
I finally forced myself to create a howto. if you need clarification, just ping me by emai or on the forum.
http://forum.eeeuser.com/viewtopic.php?id=3922

Offline

 

#6 2007-11-17 1:13:49 am

ericmoritz
Member
Registered: 2007-07-28
Posts: 40

Re: [HowTo] Using your Windows Mobile 5 Device for Internet Access

Here is an easier way:

First, I had trouble with the stock bluez-util because it uses dbus to handle the pin.
I added  the extra xandros repositories from the wiki and installed bluez-gnome

Next we can test bluetooth by starting the dbus and bluetooth services:

Code:

/home/user/> sudo /etc/init.d/dbus start
/home/user/> sudo /etc/init.d/bluetooth start

Next, start the bluetooth-applet

Code:

/home/user/> bluetooth-applet

Fire up internet sharing on the blackjack as mentioned earlier and click "Connect"

Test pand

Code:

/home/user/> sudo hcitool scan
Scanning ...
        00:1B:98:C4:CD:E4       SGH-i607
/home/user/> sudo pand -c 00:1B:98:C4:CD:E4 -n
pand[32143]: Bluetooth PAN daemon version 3.7
pand[32143]: Connecting to 00:1B:98:C4:CD:E4
pand[32143]: bnep0 connected

If all goes well, bluetooth-applet should intercept the pin request and ask you to type in the pin you typed into the phone when it asked for one.  After the eee and the phone pair you should see that the phone now says connected.  We're almost there.  Click disconnect on the phone

Now here comes the magic.  Edit /etc/network/interfaces and add the following:

Code:

iface bnep0 inet manual
    down dhclient -r -pf /var/run/dhclient.$IFACE.pid $IFACE
    down pand -K
    up pand -Q -n
    up dhclient -pf /var/run/dhclient.$IFACE.pid $IFACE

Now all you have to do is "sudo ifup bnep0" and "sudo ifdown bnep0" to bring up the interface.

Note that "pand -Q -n",  This is like the "pand -c" command but "-Q" maked pand search for a PAN access point.  If this proves troublesome for you, feel free to change that line to a "pand -c"  with the mac address of your phone

To tie everything together you need to add to the bottom of /usr/sbin/services.sh:

Code:

/etc/init.d/dbus start
/etc/init.d/bluetooth start

To start bluetooth-applet automatically, add this below "wapmonitor &" in /usr/bin/startsimple.sh:

Code:

bluetooth-applet &

There you, that should simplify things a bit.

Eric.

Last edited by ericmoritz (2007-11-17 1:20:48 am)

Offline

 

#7 2007-11-17 8:26:42 am

mini_oreo
New member
Registered: 2007-11-17
Posts: 3

Re: [HowTo] Using your Windows Mobile 5 Device for Internet Access

hi I am having trouble pairing my bluetooth with black jack. It didn't intercept the passcode. I put in 1234. It is unable to connect. any  suggestions?
thanks

Last edited by mini_oreo (2007-11-17 8:45:58 am)

Offline

 

#8 2007-11-17 8:43:55 am

ericmoritz
Member
Registered: 2007-07-28
Posts: 40

Re: [HowTo] Using your Windows Mobile 5 Device for Internet Access

Sorry, I forgot that a lot of linux novices use a eee

To install the applet do the following

Add the extra software repositories described here:

http://wiki.eeeuser.com/addingxandrosrepos

Then do the following:at

Code:

sudo apt-get update
sudo apt-get install bluez-gnome

That should install the bluetooth-applet

Good luck,
Eric.

Offline

 

#9 2007-11-17 8:47:24 am

mini_oreo
New member
Registered: 2007-11-17
Posts: 3

Re: [HowTo] Using your Windows Mobile 5 Device for Internet Access

thanks eric.  that did it, but still unable to pair because passcode is incorrect. where do you see the code? I put in 1234. it didn't work

Last edited by mini_oreo (2007-11-17 8:50:08 am)

Offline

 

#10 2007-11-17 9:10:58 pm

ericmoritz
Member
Registered: 2007-07-28
Posts: 40

Re: [HowTo] Using your Windows Mobile 5 Device for Internet Access

With bluetooth-applet running, you should see a dialog pop up asking for a pin when you execute the pand -c [mac] command.  The pin you type on the eee will be what you type in your phone.

Last edited by ericmoritz (2007-11-17 9:12:52 pm)

Offline

 

#11 2007-11-18 5:56:10 am

ojuice
New member
Registered: 2007-11-18
Posts: 1

Re: [HowTo] Using your Windows Mobile 5 Device for Internet Access

Great work EricMortiz. can confirm it works on MDA Vario II with WM6. Posting this via phone!
Couldn't get it to work for ages as failed to connect- same problem as mini-oreo
I had to run the Bluetooth-Applet via KDE ( wouldn't work from terminal)
Then pops up and askes for the passkey i used on the phone (1234)

Offline

 

#12 2007-11-18 9:28:51 pm

mini_oreo
New member
Registered: 2007-11-17
Posts: 3

Re: [HowTo] Using your Windows Mobile 5 Device for Internet Access

It is working for me now. thank you very much for your help.

Offline

 

#13 2007-11-18 11:07:07 pm

spicypixel
Member
Registered: 2007-11-10
Posts: 75

Re: [HowTo] Using your Windows Mobile 5 Device for Internet Access

Is there anyway to do this via USB from my XDA Exec/HTC Universal?

Offline

 

#14 2007-11-19 10:00:13 pm

mikee805
Member
Registered: 2007-11-16
Posts: 16

Re: [HowTo] Using your Windows Mobile 5 Device for Internet Access

spicypixel wrote:

Is there anyway to do this via USB from my XDA Exec/HTC Universal?

The Universal is a WM5 device I posted USB tethering instructions  based off my blackjack here: http://forum.eeeuser.com/viewtopic.php?id=2436

Let me know if that works for you.

Offline

 

#15 2007-11-27 6:35:53 pm

Neil
Moderator
From: Berkshire, England
Registered: 2007-11-25
Posts: 6543
Website

Re: [HowTo] Using your Windows Mobile 5 Device for Internet Access

I basically followed ericmoritz’ guide (above), but, this didn’t work for me, so I made a slight change. The change was this:

After installing bluez-util, and running bluetooth-applet from a new terminal, I opened the Bluetooth Applet from the tray on the EEE, and set the dongle to visible and connectable mode. Having done this, I used Settings/Bluetooth on the TyTN to add the EEE as a new device, using the passcode “1234″ - I found that this created a suitable partnership between the two devices.

I then closed Bluetooth-Applet (Ctrl+C in the terminal which launched it), and uninstalled it (sudo apt-get remove bluez-util)

Then, I followed the guide as written, although, it is worth noting that, before running sudo ifup bnep0, you need to have tapped “Connect” in Internet Sharing on the device, otherwise it will fail.

Hope this helps anyone struggling with the existing guide.

Offline

 

#16 2008-01-05 9:27:29 pm

fmcpherson
New member
Registered: 2007-12-27
Posts: 9

Re: [HowTo] Using your Windows Mobile 5 Device for Internet Access

Above there are instructions to: "To tie everything together you need to add to the bottom of /usr/sbin/services.sh:"

Is it ok to put those additional commands in th script even if you don't have a Bluetooth dongle connected? I don't plan keeping the dongle connected all the time, so I need to know if the commands will work even if the dongle isn't connected allowing me to just plug it in when connected. I am guessing that I am will need to run these commands everytime I plug the dongle in.

Offline

 

#17 2008-01-06 8:07:09 am

Neil
Moderator
From: Berkshire, England
Registered: 2007-11-25
Posts: 6543
Website

Re: [HowTo] Using your Windows Mobile 5 Device for Internet Access

Yes, it's fine to add to the script even if you do not plan on keep the dongle attached all the time- at least, I haven't had a problem.

Offline

 

#18 2008-01-11 5:58:45 pm

MaxP
New member
Registered: 2008-01-11
Posts: 5

Re: [HowTo] Using your Windows Mobile 5 Device for Internet Access

I'm new to Linux, and struggling though this!!

It seems to be going well so far, but the command:

    sudo pand -c BTADDRESS -n

keeps telling me:

    pand[2649]: Bluetooth PAN daemon version 3.7
    pand[2649]: Connecting to BTADDRESS
    pand[2649]: Connect to BTADDRESS failed.  Connection refused(111)

Can anyone tell me what I'm doing wrong?


Not sure if this is related, but the paired device on my phone is showing no services!

Phone I'm using is a T-Mobile MDA Vario II (UK).


Thanks.

Offline

 

#19 2008-01-15 6:17:40 am

MaxP
New member
Registered: 2008-01-11
Posts: 5

Re: [HowTo] Using your Windows Mobile 5 Device for Internet Access

This appears to be due to my MDA Vario II not liking being used as a modem. 

Have tried from my XP laptop and still can not connect, but when I move my SIM card to another (very basic) phone it works perfectly.

But then, neither phone will work on my Linux installation!


Any ideas would be appreciated, but at this point I have given up!

Offline

 

#20 2008-02-02 2:57:06 pm

bikeaway
New member
Registered: 2008-02-02
Posts: 1

Re: [HowTo] Using your Windows Mobile 5 Device for Internet Access

I am a newbies and know nothing on Linux.  But, I was successfully connect my EE to tmo wing using bluetooth pan as described by ericmoritz.  But I do I go to firefox and surf the net.  do I need to more command?

Offline

 

#21 2008-04-10 4:54:53 pm

bikeman
Senior Member
Registered: 2008-04-04
Posts: 141

Re: [HowTo] Using your Windows Mobile 5 Device for Internet Access

I don't understand, how can you test pand via the console once the bluetoth-aplet has been started. The console is disabled until you ctrl-c and then the applet stops.

Even with the applet running my k700i doesn't find the epc.

How do I initaite pairing from the epc instead?

Offline

 

#22 2008-04-10 4:56:58 pm

Neil
Moderator
From: Berkshire, England
Registered: 2007-11-25
Posts: 6543
Website

Re: [HowTo] Using your Windows Mobile 5 Device for Internet Access

I don't understand, how can you test pand via the console once the bluetoth-aplet has been started. The console is disabled until you ctrl-c and then the applet stops.

Open another terminal?

Or else run bluetooth-applet with an ampersand:

Code:

bluetooth-applet &

Offline

 

#23 2008-05-20 6:46:30 am

bigbloke
Member
From: S Wales UK
Registered: 2008-05-18
Posts: 81

Re: [HowTo] Using your Windows Mobile 5 Device for Internet Access

ah!

So I now appreciate the the Windows MODEM application on my WM5 vario II relys on DUN not Bluetooth PAN and that the internet sharing application to which you collectively refer in this is not the windows modem application...;-)

Ok - for those of you stuck with an AKU2.x.x mda vario II  (like I was) take heart ! there is now a genuine wm6 upgrade for t-mobile varioII users

google for modaco wm6 vario II for the links

So now to rebuild my VII into a WM6 VII and follow the other threads

Hope this helps somebody out there

Regards

BB

Offline

 

#24 2008-05-21 3:18:34 am

bigbloke
Member
From: S Wales UK
Registered: 2008-05-18
Posts: 81

Re: [HowTo] Using your Windows Mobile 5 Device for Internet Access

Molotov wrote:

Nice guide for Bluetooth.

I'd like to add that this can be done through WiFi on both WM5 and WM6 using this extremely well written guide found on XDA-Developers.

http://forum.xda-developers.com/showthread.php?t=341398

Although Molotov's  post was several months ago, I thought I would add a caveat (since it tripped me up!)

In the documentation linked to above it states :

Code:

Requirements:

1. A Windows Mobile device with a working version of the Internet 
Sharing application (introduced in Windows Mobile 5 AKU3).

Not all WM5 devices feature the AKU3 build. My own Vario II was aku 2.x.x  - to find out, run a WM5 registry editor on the phone (e.g. merlin regedit) and search for the string AKU . Mine revealled AKU 2.3.0 although it was a WM5 device.

The Wireless Modem application installed on AKU2 build Phones is not Bluetooth PAN compatible. It is I understand based upon the DUN
profile. and therefore requires a PPP link , and chap / pap authentication, as well as an AT+CDGCONT chat script. Micro$oft , in their infinite wisdom decided to try and do away with serial (like they did in tablet pc) but it seems that they may back down in a future release. See:

http://blogs.msdn.com/windowsmobile/arc … h-dun.aspx

Hope this helps

Regards

BB

Last edited by bigbloke (2008-05-21 3:24:50 am)

Offline

 

#25 2008-05-28 2:54:13 pm

strangethingz
New member
Registered: 2008-05-27
Posts: 1

Re: [HowTo] Using your Windows Mobile 5 Device for Internet Access

Hey everyone, I'm relatively new to linux... I love this forum! I love Ubuntu! That said, I've been having a problem getting Internet Sharing via bluetooth to work with my wm6 phone. I know this is a guide for wm5, but I've tried everything I can find for wm6 devices and I always run into the same problem. I have Hardy 8.04 installed. Everything is working great, but when I run the following command:

sudo pand -c XX:XX:XX:XX:XX:XX -n    (where X's are replaced with the mac address I get from the hcitool scan)

I get this error every time:

pand[6457]: Bluetooth PAN daemon version 3.26
pand[6457]: Connecting to XX:XX:XX:XX:XX:XX
pand[6457]: Connect to XX:XX:XX:XX:XX:XX failed. Protocol error(71)

I've search all over the place but I can't figure this one out. Anyone out there have any ideas what I can try to get past this error?

I'm trying to connect to a T-Mobile Dash running WM6.

Offline

 

Board footer

Powered by PunBB 1.2.15
© Copyright 2002–2005 Rickard Andersson