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)

youth 2011-06-19 20:34

Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
 
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


9000 2011-06-20 01:20

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

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


I don't see any gprs connection there. How does your N900 connect to Internet?

youth 2011-06-20 02:05

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

Originally Posted by 9000 (Post 1032354)
I don't see any gprs connection there. How does your N900 connect to Internet?


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.

9000 2011-06-20 02:19

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

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

Android is not (yet) comparable to PC in terms of connectivity. People has to wait til Android 3.x (Honeycomb) to have Bluetooth PAN profile included in the connection settings. (and good luck with DUN) Before that, people used to root and tinker to get Bluetooth PAN/DUN work. So, consider yourself lucky to have gotten a honeycomb, otherwise you might have to root yours like others. ;)

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.

youth 2011-06-20 02:50

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
Root shell enabled
+ 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: SIOCGIFFLAGS: No such device
+ ifconfig bnep0 up
ifconfig: SIOCGIFFLAGS: No such device
+ ifconfig bnep0 192.168.3.1 netmask 255.255.255.0 up
ifconfig: SIOCSIFADDR: No such device
+ 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
Nokia-N900-42-11:/home/user# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default * 0.0.0.0 U 0 0 0 gprs0
Nokia-N900-42-11:/home/user#


9000 2011-06-20 04:06

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

Originally Posted by youth (Post 1032383)
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
Root shell enabled
+ 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: SIOCGIFFLAGS: No such device
+ ifconfig bnep0 up
ifconfig: SIOCGIFFLAGS: No such device
+ ifconfig bnep0 192.168.3.1 netmask 255.255.255.0 up
ifconfig: SIOCSIFADDR: No such device
+ 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
Nokia-N900-42-11:/home/user# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default * 0.0.0.0 U 0 0 0 gprs0
Nokia-N900-42-11:/home/user#


I spot errors in creating the device bnep0 which did not happen in your previous output you posted at #149: http://talk.maemo.org/showpost.php?p...&postcount=149

In #149:
Code:

+ ifconfig bnep0 down
+ ifconfig bnep0 up
+ ifconfig bnep0 192.168.3.1 netmask 255.255.255.0 up

In your last post:
Code:

+ ifconfig bnep0 down
ifconfig: SIOCGIFFLAGS: No such device
+ ifconfig bnep0 up
ifconfig: SIOCGIFFLAGS: No such device
+ ifconfig bnep0 192.168.3.1 netmask 255.255.255.0 up
ifconfig: SIOCSIFADDR: No such device

Now the gprs0 appreas in the routing table while bnep0 is missing.

What have you changed since #149? Say, have you paired up the devices first?

youth 2011-06-20 04:47

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

Originally Posted by 9000 (Post 1032412)
Now the gprs0 appreas in the routing table while bnep0 is missing.

What have you changed since #149? Say, have you paired up the devices first?

Restarted the n900 & started the 3g connection before connecting the tablet.

Trying pair again before connecting.

New output:

Code:

Root shell enabled
+ 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
/usr/sbin/dnsmasq already running.
+ run-standalone.sh dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:Bluetooth PAN Activated
Nokia-N900-42-11:/home/user# route
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


9000 2011-06-20 05:49

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

Originally Posted by youth (Post 1032428)
Restarted the n900 & started the 3g connection before connecting the tablet.

Trying pair again before connecting.

New output:

Code:

Root shell enabled
+ 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
/usr/sbin/dnsmasq already running.
+ run-standalone.sh dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:Bluetooth PAN Activated
Nokia-N900-42-11:/home/user# route
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


What were the problems you got in #151 and #155?

youth 2011-06-20 06:26

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

Originally Posted by 9000 (Post 1032447)
What were the problems you got in #151 and #155?

Not sure. Most of this linux stuff is above my head so I'm just trying different things following the steps best I can. The tablet is connected but isn't getting an internet connection & has no IP. One of the posters here somehow got it to work with his xoom but it's confusing to follow.

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?

9000 2011-06-20 06:38

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

Originally Posted by youth (Post 1032462)
Not sure. Most of this linux stuff is above my head so I'm just trying different things following the steps best I can. The tablet is connected but isn't getting an internet connection & has no IP. One of the posters here somehow got it to work with his xoom but it's confusing to follow.

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?

It'd really help if you could feedback the problems you encountered in details. Nevertheless, you've done correctly on N900 in view of the output in #157.

Have you triggered the "Tethering" under "Bluetooth Settings" on honeycomb's side?


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

vBulletin® Version 3.8.8