![]() |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Quote:
In terms of getting a bluetooth symbol but not the tethering symbol showing: when you pair the n900, are you seeing tethering on the Xoom's n900 bluetooth profile? If so, you might be running into the same problem I *think* I did. I did this all in somewhat of a hurry, but I believe the fix was to make sure the n900 was setting the Xoom's dns values in the dnsmasq run settings. See the script I posted a while ago for the commands and just try adding the dns values to the end of 9000's dnsmasq run command. |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
1 Attachment(s)
Playing around with it again & got it to work!
Not doing anything special but it seem very particular in how it starts up. 1. Devices are paired but have to be connected too. 2. Then run that bluetooth-pan-tethering.sh script 3. Now it should be tethered for internet. Doesn't look like you have to be connected to the net on the n900 first for it to work either. Did it as a last step & it worked. Now if there were a way to have the tablet just activate the net connection on the n900 when it needs it & a way to connect them w/o having to manually activate that script every time or at least a shortcut for it. Hopefully it'll work the same on the Samsung Tab 10.1 that's gonna replace this Transformer tomorrow. |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Glad to see it works for another tablet. Samsung Tab 10.1 should work too as it is running honeycomb.
|
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
hi,
@9000 i tried your howto to share my n900 connection with my eeepad transformer (android honeycomb), but it doesn't work. could you help me to debug ? i followed the howto, and the script didn't reported any errors into the terminal. i installed kernel power for user v47, iptables and pc connectivity manager from extras-devel pr1-3. i don't know what to do with the options in pc-connectivity-manager... @youth i saw in the pic bluetooth tethered, i don't have this on mine ! have you done something special to get this message ? thanks for helping me ps:sorry for my english |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
The tablet was already paired with the phone & I then connected them. After that ran the script bluetooth-pan-tethering.sh & that symbol came up. Then made sure the phone had a net connection.
That said I just got a different tablet the Samsung Tab 10.1 & I'm having trouble establishing that "Bluetooth Tethered" connection reliably. I hope it's not a hardware issue though it is working right now as I type this message. |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Quote:
For diagnosis please give me the output of the following in N900 after you pairing them up and triggered the script: Code:
root |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
actually, i'm downgrading kernel-power on v46 and i will give some feedback.
thx |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
I know it's not comparable but i try bluetooth tethering with an android phone (2.2) with the asus eeepad and everything works fine.
iptables v1.4.6 2.6.28.10power46 so here some commands: ifconfig Code:
bnep0 Link encap:Ethernet HWaddr XX:XX:XX:XX:XX:XX Code:
Kernel IP routing table Code:
1151 nobody 2160 S /usr/sbin/dnsmasq -k -i lo -a 127.0.0.1 -z |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
@Cowboy everything seems fine. Are u sure there is no error during execution? Can you show us the output?
|
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
root
Code:
Nokia-N900:/home/user# ./bluetooth-pan-tethering.sh |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Everything seems to be running fine on N900 side. Would you please show us with photos how you connect to N900 in eeePad? Thanks.
|
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
1
http://img4.hostingpics.net/pics/315219scst1.png 2 http://img4.hostingpics.net/pics/290952scst35.png 3 http://img4.hostingpics.net/pics/784918scst4.png 4 http://img4.hostingpics.net/pics/498057scst5.png 5 bnep0 only appear on n900 (ifconfig) when i click here http://img4.hostingpics.net/pics/696227scst6.png I tried Youth solution: start the script then start gprs connection but it doesn't work. I also tried gprs connection first then the script same result as before. http://img4.hostingpics.net/pics/349478scst7.png http://img4.hostingpics.net/pics/507910scst9.png I think it's an asus eee pad transformer problem i will try your script on ubuntu. thanks for your help. http://hpics.li/9999c3f |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Let's see if you've followed the correct sequence:
1) Pair up the devices (bnep0 will be created) 2) Start the Internet connection on N900 (gprs0 will be created) 3) Start the script on N900 (the forwarding, routing and DHCP established) 4) Press "Acces Internet" (It's call "Tethering" in English version, the Android will attempt to request N900 for IP address and DNS by DHCP request) The problem usually arises in step 4, because it'd timeout before your android getting the DHCP reply. If this happen, try running the script again. The script is reentranable such that it can be run as many time as you like. Oh btw, can you show me the screenshot after you've done step 4? It should have some signal. |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
i done exactly in this order but got no results:
1) Pair up the devices (bnep0 will be created) = ifconfig doesn't show bnep0 !? 2) Start the Internet connection on N900 (gprs0 will be created) = ok 3) Start the script on N900 (the forwarding, routing and DHCP established) = ok 4) Press "Acces Internet" = on the previous screenshot it' number 5 so i tried to tether from ubuntu 10.04 (lts) (blueman + NMPANSupport plugin) to asus eeepad and it works (screenshot below) and i tried to tether from n900 (with your script) to ubuntu and it also works !! It gets frustrating not to understand what is happening. The only thing that may seem problematic to me, is the point of creating a bnep0 when pairing. bnep0 only appears when I press on the "Use internet access eeepad" screenshot 5 in the previous post. ubuntu sharing its connection on asus eee pad transformer = lagging but works http://img4.hostingpics.net/pics/381...0626155757.png 9000: Quote:
|
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
@Cowboy Can you setup the IP on eeePad manually? It seems that it can't get the IP address from DHCP server in N900.
|
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
i got it work i can tether from n900 to asus eee pad transformer.
@9000 i don't see any option to set manually ip address, only on wifi options. i started the script and at the same time pressed "connect" on eeepad |
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)
9000:
Quote:
1) pairing devices 2) making a gprs connection n900 3) open a terminal on n900 and logging as root 4) on eeepad going in bluetooth options 5) n900 starting the script and at the same time clicking on eeepad connect to n900 tethering works pretty well. Thanks again 9000 for your script and trying helping me with this. http://img4.hostingpics.net/pics/822...6261915151.png |
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:
|
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
I've also got an asus transformer, I've managed to get it to tether to the n900 using your PAN script...
only issue I had was that when tethered it still behaved like there was no internet connection... then I found that iptables had been uninstalled when I uninstalled v47 of the power kernel in order to install v46... now, all is well :) thanks for the script! |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Quote:
|
Re: [HOWTO] N900 Bluetooth-PAN Tethering (tested with a WiFi XOOM!)
Just like to say a big thanks to jschan and 9000 for all they've written on this topic.
I used jschan's tether scripts with dbus and finally got an unrooted Samsung Tab 10.1 running Android 3.1 tethered via Bluetooth PAN to the N900. The only change I made was to uncomment this line: Code:
#echo 1 > /proc/sys/net/ipv4/ip_forward Code:
echo 1 > /proc/sys/net/ipv4/ip_forward After following jschan's instructions: 1. Turn on BT on the N900 2. Pair gtab with n900 3. N900 BT status icon should turn blue 4. In Wireless & networks > Bluetooth Settings on the gtab your device should be listed as 'Paired' with the Spanner Icon and a darker Bluetooth Tethering icon to the left. 5. Tap the Spanner 6. Under 'Profiles' tap 'Tethering - use for Internet Access' 7. In the status are of the gtab a bright blue Tethering icon will appear, per the screenshot from Youth. Note with the dbus scripts installed I didn't have to manually run the tethering script to start the process. Battery usage seems ok as well. Also, I don't have PC Connectivity Manager or Bluez Switch installed. big thanks again. |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Thanks for your report.
I'm researching on the reason why some device can't get the DHCP, may be update the script very soon. |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Hi, the Tab only got an IP address via the N900 when that ip_forward line was uncommented. Prior to that, pairing and 'connection' was completed but without an IP being provide.
I used jschan's tethering script here: http://talk.maemo.org/showpost.php?p...&postcount=124 You can see here: # Enable IP forwarding #echo 1 > /proc/sys/net/ipv4/ip_forward echo 1 > /proc/sys/net/ipv4/conf/$INTERFACE/forwarding echo 1 > /proc/sys/net/ipv4/conf/$EXTERNAL_INTERFACE/forwarding That it was commented out. I tried your initial script right back on page 1 of this thread but it didn't work, although that does have the ip_forward line uncommented. Hope that helps. |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
It uses Google's DNS. It should use your ISP DNS instead.
But as long as it works for you it is fine. ;) |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Hi Guys,
I'm having a bit of an odd time... It worked fine yesterday to my Transformer (Not Optimus Prime :P). I've tried to connect today, but the script says "Bnep0 does not exist" Not sure whats gone wrong :S I've tried reinstalling Libicd2 to no avail.... |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Have you paired them up?
|
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
I haven't been able to get mine to pair properly. Tried with my Asus Transformer and an iPad. The icon (on the n900) only stays blue for a moment with the Transformer. It goes blue permanently with the iPad. Neither of them show any profiles as being available, despite being paired. (Also, the Transformer shows it as being paired regardless of whether or not the bluetooth is actually on, so I think it only pairs when you select a profile).
'lsmod | grep bne' shows nothing, and ifconfig doesn't show bnep0 at any stage. The lines referring to it in your script just produce 'no such device'. Quote:
Code:
if [ $(whoami) != "root" ]; then |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
1 Attachment(s)
Quote:
One tip about the auto connect functionality: if the Internet connection is already up, I never seem to have any problems with my Xoom getting a good connection. However, when the N900 has to establish the connection, it takes longer to get through the script and start up DMASQ, thereby causing the same timing issue some of the other guys have experienced, I believe. Simply breaking the bt connection from the tablet and then re-establishing it always fixes the issue since the Internet connection doesn't have to re-establish itself at that point. I'm guessing all Honeycomb tablets (such as your Galaxy) would behave the same way. Cheers, Code:
#!/bin/sh |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Hi,
I am very interested by N900 bluetooth-PAN not for internet connection shared. I just want a remote connection connection via SSH on N900 using BT. I installed the needed package and i successfully pairing the N900 (Windows Seven - ad hoc network). Now i am just looking for the N900 ip address to connect on with putty. Is someone can help me ? Best Regards |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
And another quqestion :
"Setup IP network for server (N900)" ?? How ? Best Regards |
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:
Thanks for response. I don't see the BT ip address : bnep0 Link encap:Ethernet HWaddr inet6 addr: fe80::ee9b:5bff:fe58:d8ac/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:207 errors:0 dropped:0 overruns:0 frame:0 TX packets:4 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:57851 (56.4 KiB) TX bytes:172 (172.0 B) Any ideas ? I have an ip address for my PC : Ethernet adapter Bluetooth Network Connection: Connection-specific DNS Suffix . : Link-local IPv6 Address . . . . . : fe80::c92e:cbc6:80a9:20ec%15 Autoconfiguration IPv4 Address. . : 169.254.32.236 Subnet Mask . . . . . . . . . . . : 255.255.0.0 Default Gateway . . . . . . . . . : Thanks for help |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Quote:
It works thanks a lot ! |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Hi, thank you all for your contribution to this helpful thread. I finally got my new gtab 10.1 connected to my n900 and able to use its internet connection. It's a little tricky at first but once I understood the whole process it seems simple enough.
The only tricky part is when to press the "use for Internet connection" under Bluetooth setting [ Profiles ] in my GTab, It need to be pressed before the script is activated, and then there's only like 1 or maybe 2 sec window to activate the script on n900 before it times out. If successful, the big bluetooth icon on the lower right coner of my GTab task bar should popup in bright blue color, otherwise, the whole process has to be done again. I will create a small program in QT to simplify the whole process. Here's what i have in mind for the program. 1. Click Program Icon to initiate the connection:
What do you guys think, simple enough? Hell, Maybe I just write the whole thing without using tether.sh script.:) or maybe not because some command has be run as root. :mad: |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
There's already dbus support and with the blue switch widget, I think we already have support for what you are proposing. I'm sure I'm misunderstanding in some way though...
|
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
This is fantastic, and eliminated the need for me to use the wifi hotspot method. It did seem that I had to pair the device AFTER I ran the script the first time for the device to recognize the PAN profile. Thanks a thousand, 9000.
|
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)
If you are wondering why your Xoom only tethers once... There's a bug in the latest system upgrade (Android 3.2), now it requires a reboot before you can tether again.
|
All times are GMT. The time now is 09:43. |
vBulletin® Version 3.8.8