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)

droll 2012-05-15 06:48

Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
 
this works great with a desktop PC. how can i share this with multiple PCs?

9000 2012-05-15 07:09

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

Originally Posted by droll (Post 1206866)
this works great with a desktop PC. how can i share this with multiple PCs?

On the network side yes it supports multiple devices. However, the script needs to be modified if pairing a new device created a new network interface.

Tell me if the script doesn't work when you pair an additional device into PAN, and I will resolve that with you.

droll 2012-05-15 22:42

Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
 
this is what i do
1. connect laptop 1 to n900 via btpan
2. connect laptop 2 to n900 via btpan
3. run your script on n900

after i run your script DHCP kicks in and laptop 1 gets an IP address. however, laptop 2 never gets assigned an IP. laptop 1 can browse the internet and laptop 2 obviously fails.

help??

droll 2012-05-15 22:44

Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
 
also, you said something about if pairing a new device created a new interface? with ifconfig, i don't see any new interface being created. i still have
a: phonet00-00
b: lo
c: gprs00-00
d: bnep0

9000 2012-05-16 06:21

Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
 
Would you please try manually enter the ip address, network mask and gateway in laptop 2 to see if they could connect? Just in case, do you use the same ip address as in laptop 1. Say it should have 192.168.3.100, and your laptop 2 shall use 192.168.3.200, for example.

droll 2012-05-16 07:27

Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
 
i tried it. doesn't work. seems the packets are not being routed. i was careful to ensure no IP conflicts since laptop 1 is on DHCP. and i know there's nothing wrong with the BT setup on both laptops because when i reverse the sequence then laptop 2 can surf and laptop 1 cannot. :(

9000 2012-05-16 08:15

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

Originally Posted by droll (Post 1207246)
i tried it. doesn't work. seems the packets are not being routed. i was careful to ensure no IP conflicts since laptop 1 is on DHCP. and i know there's nothing wrong with the BT setup on both laptops because when i reverse the sequence then laptop 2 can surf and laptop 1 cannot. :(

Slow down a bit. Can your laptop 2 ping 192.168.3.1 after manually setting up the ip address. Have you set the netmask and gateway right. You would better show me the output of 'route' (for Linux) or 'route print' (Windows).

droll 2012-05-17 01:25

Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
 
i'll test that again. right now i'm only using laptop 1.

my settings - (i modified the variables in your script)
- my DHCP range is 192.168.8.100 - 127.
- my n900 gateway ip is 192.168.8.11
- netmask is class c
- i use gprs for connection to internet

with laptop 1 fixed ip, i cannot ping 192.168.8.11 but i can surf the internet
with laptop 1 dhcp ip, i cannot ping 192.168.8.11 but i can surf the internet
i enable ssh on 192.168.8.11. from laptop 1, i can ssh into 192.168.8.11 so i know connectivity is working.

i will try later with laptop 2 and see what happens. something i find odd though is i remember i could ping 192.168.8.11 a few days ago when i started using this. hmmmm....anyway, i shall report my test with laptop 2 here later when i get to the machine. also, i will show you printout of my routing table. btw i'm using windows on both laptops.

here is route print from laptop 1
Code:

IPv4 Route Table
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway      Interface  Metric
          0.0.0.0          0.0.0.0    192.168.8.11    192.168.8.121    40
        127.0.0.0        255.0.0.0        On-link        127.0.0.1    306
        127.0.0.1  255.255.255.255        On-link        127.0.0.1    306
  127.255.255.255  255.255.255.255        On-link        127.0.0.1    306
      192.168.8.0    255.255.255.0        On-link    192.168.8.121    296
    192.168.8.121  255.255.255.255        On-link    192.168.8.121    296
    192.168.8.255  255.255.255.255        On-link    192.168.8.121    296
        224.0.0.0        240.0.0.0        On-link        127.0.0.1    306
        224.0.0.0        240.0.0.0        On-link    192.168.8.121    296
  255.255.255.255  255.255.255.255        On-link        127.0.0.1    306
  255.255.255.255  255.255.255.255        On-link    192.168.8.121    296
===========================================================================
Persistent Routes:
  Network Address          Netmask  Gateway Address  Metric
      169.254.0.0      255.255.0.0    192.168.0.104      1
===========================================================================

it may be way over my head but seeing how the first entry is 0.0.0.0 for everything else and it has the lowest metric (40) so it looks like it'll work.

9000 2012-05-17 02:02

Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
 
droll thank you very much for your help in testing. I would have tested it with myself but I haven't been switching on my N900 for quite sometime, but I will help you as much as I can anyway.

Probably this script could be useful to someone, but bluetooth tethering is so common nowaday and almost all smartdevices offer this functionality. Still it could help people understand local area network and tethering by reading our posts, I hope.

janszoon 2012-08-26 20:50

Re: [HOWTO] N900 Bluetooth-PAN Tethering (tested with a WiFi XOOM!)
 
Quote:

Originally Posted by jschan (Post 980832)

If you want to install my scripts, just install dbus-scripts if you haven't already, untar the attached tar file into a new /opt/tether directory, copy the "tether-dbus-config" file into the /etc/dbus-scripts.d directory, and restart dbus-scripts.

how do you restart dbus-scripts ?


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

vBulletin® Version 3.8.8