maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC) (https://talk.maemo.org/showthread.php?t=58570)

jschan 2011-06-21 02:12

Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
 
Quote:

Originally Posted by youth (Post 1030572)
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.

I haven't looked at it in a while, but when I was getting the Xoom working, I noticed the initial script looked like it might have gotten the dbus-send command to prompt for the internet connection truncated. I don't use it, so I forgot to follow up on that (sorry 9k).

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.

youth 2011-06-21 05:02

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.

9000 2011-06-21 05:11

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.

Cowboy 2011-06-23 11:39

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

youth 2011-06-23 18:45

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.

9000 2011-06-24 03:25

Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
 
Quote:

Originally Posted by Cowboy (Post 1037092)
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

eeepad transformer is one of the coolest tablets available recently. ;)

For diagnosis please give me the output of the following in N900 after you pairing them up and triggered the script:

Code:

root
ifconfig bnep0
route
ps ax | grep dnsmasq


Cowboy 2011-06-24 08:44

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

Cowboy 2011-06-24 14:19

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 
          inet addr:192.168.3.1  Bcast:192.168.3.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:10 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1978 (1.9 KiB)  TX bytes:128 (128.0 B)

gprs0    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 
          inet addr:xx.32.xx.1  P-t-P:xx.32.xx.1  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP  MTU:1400  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:10
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:98 errors:0 dropped:0 overruns:0 frame:0
          TX packets:98 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:6346 (6.1 KiB)  TX bytes:6346 (6.1 KiB)

phonet0  Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 
          UP POINTOPOINT RUNNING NOARP  MTU:4000  Metric:1
          RX packets:5769 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1487 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:1488024 (1.4 MiB)  TX bytes:72787 (71.0 KiB)

route
Code:

Kernel IP routing table
Destination    Gateway Genmask        Flags Metric Ref Use  Iface
192.168.3.0  *    255.255.255.0  U      0        0    0      bnep0
default          *    0.0.0.0  U      0        0    0      gprs0

ps aux | grep dns

Code:

1151 nobody    2160 S    /usr/sbin/dnsmasq -k -i lo -a 127.0.0.1 -z
 1625 nobody    4292 S    /usr/sbin/dnsmasq -k -I lo -z -a 192.168.3.1 -F 192.1

i don't know if it's a terminal display error: ... -F 192.1

9000 2011-06-24 16:34

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?

Cowboy 2011-06-24 16:43

Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
 
root
Code:

Nokia-N900:/home/user# ./bluetooth-pan-tethering.sh
+ IP_ADDR=192.168.3.1
+ NETMASK=255.255.255.0
+ DHCP_RANGE=192.168.3.100,192.168.3.127
+ RUNFILE=/var/run/btpan_tethering.pid
+ DNSMASQ=/usr/sbin/dnsmasq
+ modprobe ipt_MASQUERADE
+ iptables -F
+ iptables -t nat -F
+ iptables -t nat -A POSTROUTING -o gprs0 -j MASQUERADE
+ echo 1
+ ifconfig bnep0 down
+ ifconfig bnep0 up
+ ifconfig bnep0 192.168.3.1 netmask 255.255.255.0 up
+ start-stop-daemon -S -p /var/run/btpan_tethering.pid -m -b -x /usr/sbin/dnsmasq -- -k -I lo -z -a 192.168.3.1 -F 192.168.3.100,192.168.3.127 -b
+ run-standalone.sh dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:Bluetooth PAN Activated



All times are GMT. The time now is 15:23.

vBulletin® Version 3.8.8