The Following 52 Users Say Thank You to 9000 For This Useful Post: | ||
aBs0lut3z33r0, alfmar, alphalux, amin007110, anapospastos, archebyte, Benson, biketool, bunanson, clasificado, Cowboy, Cue, Estel, Fargus, fpp, fw190, gionni88, gixx, handaxe, Helmuth, imo, inkirby, JadeH, jcharpak, jschan, jukey, Liknus, maacruz, Macros, Maj3stic, mauron85, Megaltariak, MINKIN2, MJ m, mtrower2, MyNokiaN900, Natan_xy, pfontana77, phedders, pthimon, rajil.s, rcull, sconf, shanttu, StefanL, uvatbc, verrnum, vinsci, vkelim, wwweagle, xopher, YoDude |
|
2010-07-16
, 09:58
|
Posts: 346 |
Thanked: 271 times |
Joined on Jan 2010
|
#2
|
|
2010-07-16
, 10:43
|
Posts: 1,425 |
Thanked: 983 times |
Joined on May 2010
@ Hong Kong
|
#3
|
Thanks, for me, USB native tethering, bluetooth DUN and mobilehotspot stop working after 20 minutes, maybe that I will have more luck with that one
|
2010-07-16
, 21:07
|
Posts: 346 |
Thanked: 271 times |
Joined on Jan 2010
|
#4
|
|
2010-07-16
, 21:23
|
Posts: 729 |
Thanked: 155 times |
Joined on Dec 2009
|
#5
|
|
2010-07-17
, 06:51
|
Posts: 1,425 |
Thanked: 983 times |
Joined on May 2010
@ Hong Kong
|
#6
|
Ok, so I tried:
On Ubuntu: It seem that there is no native Bluetotooth PAN support, it is surely a solution but I have not the head for that ATM.
On XP with WIDCOMM Bluetooth Software: It seem that it support PAN but it is not listed on N900 supported services when I scan it so I can't use PAN with N900.
|
2010-07-17
, 06:53
|
Posts: 1,425 |
Thanked: 983 times |
Joined on May 2010
@ Hong Kong
|
#7
|
The Following User Says Thank You to 9000 For This Useful Post: | ||
|
2010-07-19
, 01:24
|
Posts: 39 |
Thanked: 2 times |
Joined on Jun 2010
|
#8
|
|
2010-07-19
, 01:36
|
Posts: 1,425 |
Thanked: 983 times |
Joined on May 2010
@ Hong Kong
|
#9
|
Hi! just a quick question..can a pc share internet connection to n900 (via bluetooth)?
|
2010-08-14
, 22:45
|
Posts: 515 |
Thanked: 193 times |
Joined on Oct 2009
|
#10
|
Tags |
bluetooth-pan, tethering |
|
Tethering is the use of a mobile device such as a mobile phone to supply Internet access for another device. The following is to show you how to make N900 to supply Internet access to a PC via Bluetooth-PAN (Personal Area Network). This is the reverse idea of Bluetooth PAN: Tethering N900 from another phone.
There're already three commonly used tethering methods around: USB tethering (Nokia PC-Suite), WiFi hotspot (Mobile Hotspot, Joikuspot) and Bluetooth DUN (Dial-Up Network, bluetooth-dun). The advantages and disadvantages to use Bluetooth-PAN are as listed in next section.
2 Advantages and Disadvantages
2.1 The advantage of Bluetooth-PAN tethering:
2.1.1 Bluetooth-PAN doesn't require cable as in USB tethering
2.1.2 Bluetooth-PAN consumes much less battery power than WiFi hotspot, even when setting WiFi power to 10mW (Most important factor in my opinion)
2.1.3 Bluetooth-PAN is supposed to be faster than Bluetooth-DUN
2.1.4 The tethering method of Bluetooth-DUN might not work with some mobile carriers
2.2 The disadvantage of Bluetooth-PAN tethering:
2.2.1 Not all mobile devices supports Bluetooth-PAN, though PC and Mac are usually supported
2.2.2 The effective distance of use is shorter than Wifi
2.2.3 No security implementation (but WiFi's WEP is next to nothing anyway, see aircrack-ng)
2.2.4 Peer-to-Peer connection (verse one-to-many connection in Wifi Hotspot)
3 Prerequisites
3.1 Install rootsh
3.2 Install Kernel Power (or any other kernel that support iptables)
3.3 Install iptables
3.4 Install pc-connectivity-manager - Tablet PC-Connectivity Manager
3.5 Install bluezwitch (Optional)
3.6 Turn off WiFi, unless you're very familiar with IP routing
4 Detail Instructions
4.1 Pairing PC and N900 as Bluetooth-PAN
Pairing Bluetooth-PAN is as easy as pairing a bluetooth headphone.
4.1.1 (On N900) Switch on Bluetooth in N900 and make it search-able
4.1.2 (On PC) Discover the Bluetooth device, define a password and then pair up
4.1.3 (On PC) Join the Personal Area Network. The joining method depends on your Bluetooth device, e.g. EagleTec Bluetooth USB will has an icon on the taskbar on which PAN can be found by right clicking it. You mileage may vary.
4.1.4 (On PC) You might require to choose among PANU, GN or NAP under PAN. You should choose NAP, but it actually makes no difference for our purpose.
4.2 Setup IP network for client (PC or Mac)
After pairing up, and the PAN between your PC and N900 is established, then you should setup an IP network on top of it.
4.2.1 A Bluetooth Network Connection should appear in the Connection Setting of your PC (or Mac).
Setup the network with the following information:Choose to acquire IP and DNS automatically from the server. (Thanks to mauron85's suggestion)4.3 Setup IP network for server (N900)
4.3.1 Create a script under /home/user/ and save it as bluetooth-pan-tethering.sh
(Note to users in talk.maem.org: you may also download the tarball attached and extract it under /home/user/ in xterminal)
4.3.2 Make the script executable
Wait 10 second until you see "Bluetooth PAN Tethering Activated". Now you PC can access the Internet via your N900's Internet Connection.
5 Troubleshooting
5.1 DNS - in Step 4.2.1 points the DNS to 192.168.3.1, expecting the N900 answers to your DNS queries. However, if that doesn't work for you:
5.1.1 Add an DNS entries into the /etc/resolv.conf, the following is an example of the resolv.conf using Google Public DNS, you may enter the DNS of your Internet service provider:
5.2 After pairing up the PC and N900 in Step 4.1, a bnep0 device should appear in N900. There's a chance that bnep0 device was not created automatically. You may use the following command under Xterminal of N900 to verify:
Reinstall libicd2 if you still couldn't find your bnep0 (JadeH)
The module works fine in v46. Downgrade your kernel-power. (at your own risk)
6 References
6.1 Bluetooth PAN: Tethering N900 from another phone: http://talk.maemo.org/showthread.php?t=37710
6.2 HOWTO : Bluetooth Tethering with Nokia N900 (by DUN): http://syntacticsugar.nl/2009/12/03/...th-nokia-n900/
6.3 HowTo set up common PAN scenarios with BlueZ's integrated PAN support: http://bluez.sourceforge.net/contrib/HOWTO-PAN
7 Feedback
Please send me feedback or suggestion so that I can improve the steps.
EDIT: Inserted 3.3. It seems that pc-connectivity-manager is essential for PAN to work for most configuration.
EDIT: Attached the tarball of the script in 4.3.1
EDIT: Added procedures to setup sudoers added under 4.3.3
EDIT: Inserted 3.3 for iptables installation. It is now a standalone package that need to be installed explicitly.
EDIT: Added 3.6 such that WiFi will not get in the way of PAN routing
EDIT: Removed the method to setup sudoers in section 4.3.3, and directly run as root, to make the procedures simpler
EDIT: Added iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE
(commented) in the script 4.3.1 for internet via WiFi instead of GPRS.
EDIT: Thanks to mauron85's suggestion in setting up DHCP and DNS. Main script in 4.3.1 modified.
EDIT: Troubleshooting updated (JadeH)
EDIT: dnsmasq will not run as daemon. Script edited. Use network 192.168.3 instead of 192.168.1 as the latter is used by WiFi
EDIT: ipt_MASQUERADE isn't loaded after upgrading to kernel-power v47
[HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
[HOWTO] N900 WiFi Hotspot (shell script version)
N900: Useful Tips (a summary)
Last edited by 9000; 2011-06-22 at 01:19.