![]() |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
I see. I made a few changes to run dnsmasq as daemon.
I've updated the script on first page. Note that I change the network from 192.168.1 to 192.168.3 to avoid conflicting with WiFi. Please try again. |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
heh, sounds like we've done some of the same work. I'm using custom scripts at this point based off the dbus script tethering example and your script. In all, it's 3 files at the moment:
1) an enhanced version of your script that uses daemons and takes params like start/stop and optional external interface to tether to (bnep0 or wlan0 generally, defaulting to bnep0 if one isn't supplied). 2) a dbus script used as a front controller to call the above script with the correct params (if neither the wlan or bnep interfaces are up, it doesn't try to setup tethering) 3) a dbus config script to trigger the front controller script So far it's working great, though the scripts aren't elegant at all. If I get some time to clean them up and test properly, i'll post them. Edit: fixed some typos... writing this from the xoom is pretty error prone on this virtual keyboard. |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
FYI.
1) It's serving the host IP address rather than interface in the dbus version. I don't set lease time as I'm supposed to know who do I serve. 2) the dbus version is triggered by preset event 3) aye |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (tested with a WiFi XOOM!)
1 Attachment(s)
I cleaned up my scripts a bit, added some documentation, and threw them into the attached tar file.
The version of the script here includes the following new features: - Adds in support for multiple concurrent tethering clients (tested using a ThinkPad and a XOOM at the same time via bluetooth PAN) - Adds in support for disabling tethering for a particular client - Automatically picks the Internet interface (though it's pretty dumb about it) - Works with included file to get dbus-scripts to automatically setup tethering on new connections - Provides additional error checks and messages (though these could definitely use more work) It's missing the pick-which-connection feature you have in the current version of your script, though I did try to make the entire script pretty verbose for easy modifications. Outside of that, using the main script is very similar to your current script except that you have to specify whether you want to "start" or "stop" the tethering. The requirements and setup is pretty much what you have already written about in great detail in the first post. Here's the script for each reference (it's also in the attached tar file): Code:
#!/bin/sh Thanks again for all of you help getting me over the humps while I was working on this, 9000. I was thinking about returning this XOOM if I couldn't tether it to the n900, but I'm digging it now... :) |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Well done jschan. ^^
|
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
found some more docs about calls on the dbus: http://wiki.maemo.org/Phone_control#...ved_connection
apparently, if you don't already have a data connection open, you can open one. unfortunately, it looks like it requires user specific data, though i'm sure a gconftool call along with some combination of grep and awk could probably generalize it. anyhow, i updated my script with it so that it makes the connection without having the prompt for a connection. the important parts are as follows: Code:
DEFAULT_IAP_ID="***SEE DOCS ABOVE***" |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Quote:
Code:
for i in `gconftool -R /system/osso/connectivity/IAP | grep /system/osso/connectivity/IAP/ | sed -e "s:\(.*\)\:\(.*\):\1:"`; do if [ "`gconftool -g $i/type`" == "GPRS" ]; then IAP=$i; fi; done |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
I succesfully paired my sony ericsson k850 to N900. I ve had some problems when I tried it a couple of months ago but now I made it. Changes of first post may helped in this and especially ip settings. Thank you 9000.
|
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Thanks guys, this is really cool. I was already quite desperate after having tried out the Joikuspot and normal Bluetooth (DUN profile) pairing between the Xoom and the N900.
I still have one minor issue though. Even on a freshly flashed PR1.3 (I also reflashed the eMMC content) the dbus-scripts do not seem to work at all, i.e. it very much looks like I don't get any events. So right now I'm running the tether.sh script manually. Any ideas where to look at? I tried to debug (http://wiki.maemo.org/DbusScripts#Th...l_--debug_flag), but couldn't see any Bluetooth-related events. |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Have you followed the configuration instructions in the corresponding page? ( http://wiki.maemo.org/DbusScripts )
|
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Did you also reboot or restart the dbus daemon after copying the tether dbus configuration script into place? It's a long shot given that the debug command launches a new instance and you aren't seeing anything, but I thought I'd ask...
|
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Well, I'm running this in the xterm as root:
Code:
/usr/bin/run-standalone.sh dbus-scripts --debug --session Code:
============ |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
@ToniA do you have any new update on using dbus? BTW, you're reminded that the dbus is not a pre-requisite on making Bluetooth-PAN tethering. You could still use the original version in #1.
The whole meaning of using Bluetooth-PAN is its extreme low power consumption. If you've to build an automatic hotspot as such, you'd better build a WiFi hotspot instead. |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Well, nothing new, I'm afraid. I don't really know where to start off on debugging the dbus-scripts.
The whole use case is to be able to use N900 as the modem for a Wifi-only Xoom. The tethering works fine, it's just that I need to run the 'tether.sh' script manually, instead of having dbus-scripts doing it for me. |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Quote:
Thanks for your feedback. You might want to raise your question on dbus-script in a separate post for more help as the issue you've encountered seem to be a general dbus-script setup problem rather than issues on Bluetooth-PAN or tethering. |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
I'm such an idiot... I can't believe in fell into this newbie trap of not having the executable bit turned on for the /usr/bin/tethering.sh.
It works like charm now. Thanks guys! And yes, the Bluetooth over PAN is exactly what I need. That's the only way to tether the Motorola XOOM into a Nokia phone, for example at the summer cottage, or on the road. |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Hi Guys,
Some good work here on getting the Xoom to tether and run with the N900 :) I bought the Wifi only Xoom also with the express intention of tethering it to my N900 but didn't realise it's limitations with ad-hoc networking until too late :( I've been trying to get the N900/Xoom tether working on mine and have followed the instruction given as closely as possible but I'm a total noob at linux so some if this is totally confusing for me. I started off following the installation instructions from 9000's original post but ran into a problem that I couldn't find iptables to install on the N900, my pc connects to my N900 and I can join the PAN however I get no internet connection, is this because iptables isn't installed and if so where can I download it? On the plus side I can now select Tether in my Xoom's Bluetooth connection just still can't use the net :( |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Quote:
In order to install iptables, you need the kernel power; and to install kernel power, you need to enable the extras-devel repository in application manager and then update the package listing. Also, this script requires root to run, so you need install rootsh as well. Please go through the instructions again, especially the pre-req part. I am on the move so I cant give you further help atm. You would like to research a bit on how to enable extras-devel repository. Hope this helps. |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Sorry I might not have been overly clear...
I've installed everything from the pre-req's with the exception of iptables. I have access to Extras-Devel (set it up from day one) and have Kernel Power installed from a previous attempt to tether using MobileHotspot unfortunately iptables package isn't showing up in the list of apps for me so I'm unable to install it. Appreciate the quick response 9000, thanks :) |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
try apt-get install iptables from xterm
|
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Quote:
Code:
|
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Quote:
Question: How do I get the Code:
echo "/home/user/bluetooth-pan.sh" | sudo gainroot |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Quote:
Or you could copy&paste from browser to the command line during Queen Beecon Widget creation. |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Quote:
|
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Thanks for the help guys, still not been able to get this working but I ended up unlocking/rooting my Xoom and replacing the supplicant file so now I can see Ad-Hoc networks and use the MobileHotspot app whilst running 3.1 :)
|
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Are there special steps to making this work with an Android Honeycomb tablet? I've been trying the steps in the 1st post, but it hasn't been working. I'm not too familiar with Linux (got far enough to get the PAN tethering has been turned on msg but no net connection) so if there are special steps can they be listed complete in one post.
|
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Quote:
|
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
@youth I just come across it. The second part about Xoom might help you find where to open tethering - provided that the N900 script is running fine which I expected you to show me for diagnosis.
http://www.droid-life.com/2011/03/01...riginal-droid/ Hope this helps. |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Quote:
Here is what shows in xterminal. Code:
Nokia-N900-42-11:/home/user# echo "/home/user/bluetooth-pan-tethering.sh" | gainroot |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Quote:
Code:
root |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Code:
Kernel IP routing table |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Quote:
|
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Quote:
3g with t-mobile I use it regularly with my laptop using BT DUN. I was hoping it would be just as easy with these honeycomb tablets. |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Quote:
Back to your issue, the script is enabling your N900 to supply Internet to PAN peers. So at least you must have an Internet connection on N900 before your peers could make use of it. I just re-check the script and it should prompt you for Internet connection first. Was it failed to connect to Internet on N900? Please check by browsing with your N900. |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
I tried it again enabling the connection first & this is what I get & it never prompts me for a connection to choose. Internet browsing within the phone works.
Code:
Nokia-N900-42-11:/home/user# echo "/home/user/bluetooth-pan-tethering.sh" | gainroot |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Quote:
In #149: Code:
+ ifconfig bnep0 down Code:
+ ifconfig bnep0 down What have you changed since #149? Say, have you paired up the devices first? |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Quote:
Trying pair again before connecting. New output: Code:
Root shell enabled |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Quote:
|
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Quote:
I considered wifi tethering, but n900 only does adhoc & Honeycomb tablets don't even see those networks w/o some workaround. Why did google have to make this so difficult? |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Quote:
Have you triggered the "Tethering" under "Bluetooth Settings" on honeycomb's side? |
All times are GMT. The time now is 09:46. |
vBulletin® Version 3.8.8