Active Topics

 


Reply
Thread Tools
anapospastos's Avatar
Posts: 553 | Thanked: 183 times | Joined on Oct 2009 @ Not decided
#81
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

&

bnep0 Link encap:Ethernet HWaddr C0:38:F9:18:40:FF
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:161 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:37112 (36.2 KiB) TX bytes:0 (0.0 B)
__________________
My name was Maemo, then it became Meego and now I'm getting a third one. I am Sailfish.
 
Posts: 1,425 | Thanked: 983 times | Joined on May 2010 @ Hong Kong
#82
Let see if you can ping to your 850. In your N900:
Code:
ping 192.168.1.2
 
anapospastos's Avatar
Posts: 553 | Thanked: 183 times | Joined on Oct 2009 @ Not decided
#83
No it doesn't answer. Something is wrong with the N900 I think. I tried with proxy enabled on k850 but again no luck.
__________________
My name was Maemo, then it became Meego and now I'm getting a third one. I am Sailfish.
 
Posts: 1,425 | Thanked: 983 times | Joined on May 2010 @ Hong Kong
#84
I just notice that there isn't any IP address in the 'ifconfig bnep0' output, and your iptables queue is empty, which means the script isn't even run properly. It's required in section 4.3.3 that you must have root privilege to run the script.

Do you have rootsh installed? If so, please enter run and run the script again to see if the IP address has been setup correctly.
 
anapospastos's Avatar
Posts: 553 | Thanked: 183 times | Joined on Oct 2009 @ Not decided
#85
Ok now the script is working but ip tables are still empty. "ifconfig bnep0" output is

Code:
bnep0     Link encap:Ethernet  HWaddr C0:38:F9:18:40:FF  
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::c238:f9ff:fe18:40ff/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:20 errors:0 dropped:0 overruns:0 frame:0
          TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1822 (1.7 KiB)  TX bytes:766 (766.0 B)
The k850 should get a new ip or it shares this from N900?
__________________
My name was Maemo, then it became Meego and now I'm getting a third one. I am Sailfish.
 
Posts: 1,425 | Thanked: 983 times | Joined on May 2010 @ Hong Kong
#86
Originally Posted by anapospastos View Post
Ok now the script is working but ip tables are still empty. "ifconfig bnep0" output is

Code:
bnep0     Link encap:Ethernet  HWaddr C0:38:F9:18:40:FF  
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::c238:f9ff:fe18:40ff/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:20 errors:0 dropped:0 overruns:0 frame:0
          TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1822 (1.7 KiB)  TX bytes:766 (766.0 B)
The k850 should get a new ip or it shares this from N900?
The script has not (yet) handle dhcp, so you must setup the IP address on your k850 manually.
 
anapospastos's Avatar
Posts: 553 | Thanked: 183 times | Joined on Oct 2009 @ Not decided
#87
I 've set manually the ip as also dns, gateway etc but it refusing to connect.
__________________
My name was Maemo, then it became Meego and now I'm getting a third one. I am Sailfish.
 
Posts: 1,425 | Thanked: 983 times | Joined on May 2010 @ Hong Kong
#88
no ping to peer side? Is there any way to check whether the PAN has successfully establish on your 850 side? Have you tried to pair up PAN with you N900 to other device like a PC?

Just to make sure, are you sure you setup the IP of the correct interface on your 850? In N900 it is bnep0, which is setup by my script.
 
Posts: 22 | Thanked: 6 times | Joined on Dec 2009
#89
Thanks for the tutorial, it works for me with Gentoo on my notebook.

However, although I'm not "afraid" to use the terminal, there still is a huge drawback in comparison to tethering via DUN: I can't seem to get it working without running something in the terminal. I understand that bnep0 is created dynamically on the N900 when I'm establishing the connection, but bnep0 doesn't have an IP after the connection is established. Digging through some Debian documentation, I set the IP address and up script in /etc/network/interfaces, but neither is applied. Following the bluez PAN documentation, there's the --devup option for pand, but setting Script under [PANU Role] in /etc/bluetooth/main.conf on the N900 to your setup script doesn't do a thing.
Is anyone deep enough into the N900/Debian side of things to have the final clue for me?
 
Posts: 1,425 | Thanked: 983 times | Joined on May 2010 @ Hong Kong
#90
Originally Posted by eezo View Post
Thanks for the tutorial, it works for me with Gentoo on my notebook.

However, although I'm not "afraid" to use the terminal, there still is a huge drawback in comparison to tethering via DUN: I can't seem to get it working without running something in the terminal. I understand that bnep0 is created dynamically on the N900 when I'm establishing the connection, but bnep0 doesn't have an IP after the connection is established. Digging through some Debian documentation, I set the IP address and up script in /etc/network/interfaces, but neither is applied. Following the bluez PAN documentation, there's the --devup option for pand, but setting Script under [PANU Role] in /etc/bluetooth/main.conf on the N900 to your setup script doesn't do a thing.
Is anyone deep enough into the N900/Debian side of things to have the final clue for me?
NP, what you're working on interested me too. Let's make it work.

What my script does is very simple: setup the IP on bnep0 and create the forwarding for internet access.

If you've seen the bnep0, N900 is pretty much done everything it has to do. You're using Gentoo I'm sure you understand what I mean, and you must see there's nothing in N900 that blocks your way in this case.

That's why I'd like you to check whether there's anything blocked on 850 size. I'm not going to blame 850 for anything poorly written, but there's still a lot of things that can go wrong in 850 if you can't open the terminal and look at the interface directly.

Say, if you've setup the IP on the wrong interface on 850, of course it won't work.

Also, it's chance that there's a startup sequence in 850 that when the PAN is establish it'd automatically do something that is not your intent, and drop the PAN entirely if that sequence failed. That's what we want to find out.

Sorry about the terminal things, but actually I don't go to the terminal to trigger that script everytime when I am using it (daily in fact). I trigger the script through Queen Beecon Widget once I got the PAN established.
 
Reply

Tags
bluetooth-pan, tethering


 
Forum Jump


All times are GMT. The time now is 21:24.