![]() |
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 )
|
All times are GMT. The time now is 04:08. |
vBulletin® Version 3.8.8