Active Topics

 


Reply
Thread Tools
Posts: 1,425 | Thanked: 983 times | Joined on May 2010 @ Hong Kong
#61
Let check your source list first:

Code:
Nokia-N900:~# cat /etc/apt/sources.list.d/hildon-application-manager.list 
deb https://downloads.maemo.nokia.com/fremantle/ssu/apps/ ./ 
deb https://downloads.maemo.nokia.com/fremantle/ssu/mr0 ./ 
deb https://downloads.maemo.nokia.com/fremantle1.2/ovi/ ./ 
deb http://repository.maemo.org/extras/ fremantle-1.3 free non-free
deb http://repository.maemo.org/extras-devel/ fremantle free non-free
deb http://repository.maemo.org/extras-testing/ fremantle free non-free
deb https://downloads.maemo.nokia.com/fremantle/ovi/ ./
 
Posts: 23 | Thanked: 2 times | Joined on Nov 2010
#62
O.K.
I am making real progress now using your method!

From a clean boot of my N900 using my Macbook as client:

I immediately initiate a PAN request from the Mac, it connects.
I then run your script.
I can ping 192.168.1.1 and successfully ssh into the N900 from the PAN.

BUT...

The phone isn't asking to start an internet connnection.
I'm going to start my gprs0 interface before initiating the PAN and see how that works...
 
Posts: 23 | Thanked: 2 times | Joined on Nov 2010
#63
First, the repos:

Code:
Nokia-N900-51-1:~# cat /etc/apt/sources.list.d/hildon-application-manager.list 
deb https://downloads.maemo.nokia.com/fremantle/ssu/apps/ ./ 
deb https://downloads.maemo.nokia.com/fremantle/ssu/205 ./ 
deb https://downloads.maemo.nokia.com/fremantle1.2/ovi/ ./ 
deb http://repository.maemo.org/extras/ fremantle-1.2 free non-free
deb http://moff.mozilla.com/latest-beta/maemo/multi/ fremantle release
deb http://repository.maemo.org/extras-devel fremantle free non-free
I tried starting my gprs connection prior to running your script.
If I do that I can't PAN to the phone.
Otherwise the PAN works fine, but the script doesn't prompt me to start an internet connection.
 
Posts: 23 | Thanked: 2 times | Joined on Nov 2010
#64
Ugh. I read back through the thread and looked at WorldKaoss' posts.
He seemed to have the same problems.
I can't get my head round this pc-connectivity-manager thing.
I'm ticking the box for bluetooth in the "none" profile but it just keeps complaining that the phone won't pair.

edit: just found your post which says no need to configure anything there.

Oh well.
I've made some progress I guess. At least I can establish a point to point PAN connection even if there is no internet sharing.

I guess I'll leave this for a while and come back to it.

Last edited by HRH_H_Crab; 2010-11-13 at 11:59.
 
Posts: 1,425 | Thanked: 983 times | Joined on May 2010 @ Hong Kong
#65
Originally Posted by HRH_H_Crab View Post
O.K.
I am making real progress now using your method!

From a clean boot of my N900 using my Macbook as client:

I immediately initiate a PAN request from the Mac, it connects.
I then run your script.
I can ping 192.168.1.1 and successfully ssh into the N900 from the PAN.

BUT...

The phone isn't asking to start an internet connnection.
I'm going to start my gprs0 interface before initiating the PAN and see how that works...
If the PAN is successfully established and you could ping from both sides then it's already 90% success. It makes no different whether the gprs0 was activated before or after the script. The script must be activated after pairing up, though.

In this caes, there are two possible obstacles get in your way:

1) The default routing of your Mac is not the N900, or the DNS was not setup probably. You would like to check this out
2) The iptables on N900 was not running successfully. You may issue the following command alone after the 4.3.1 script to see if there's any error in iptables:

Code:
iptables -F
iptables -t nat -F
iptables -t nat -A POSTROUTING -o gprs0 -j MASQUERADE
Originally Posted by HRH_H_Crab View Post
Ugh. I read back through the thread and looked at WorldKaoss' posts.
He seemed to have the same problems.
I can't get my head round this pc-connectivity-manager thing.
I'm ticking the box for bluetooth in the "none" profile but it just keeps complaining that the phone won't pair.
WorldKaoss's problem is very different from yours. Obviously there's something in the Windows 7's setting got in his way, however he does not seem to want to pursuit the case any further.

If you could establish PAN and could ping from both side then you can forget pc-connectivity-manager. I'm sure the removal of 'network' from the DisablePlugins did the trick as well. From my experience telling people with no Linux experience to edit a system file is thousand times more dangerous than install a package. It's good that you've experience in Linux.

Good luck and tell me the result.

Last edited by 9000; 2010-11-13 at 13:47.
 

The Following User Says Thank You to 9000 For This Useful Post:
Posts: 23 | Thanked: 2 times | Joined on Nov 2010
#66
The thing is - imagine I have not started gprs0.
I get the PAN working and then open a shell on the Mac.
I start pinging the phone and it is of course successful.
So I then start gprs on the phone... immediately my pings from the Mac fail.

Surely this can't be routing or DNS on the Mac side? The route to the phone shouldn't change after I start gprs! And I haven't even start dealing with domain names yet so DNS can't be an issue.

Very hard to work out how enabling gprs seems to break the PAN.
 
Posts: 23 | Thanked: 2 times | Joined on Nov 2010
#67
I've got it working!
Adding DNS seems to have fixed things.
Sorry to have put you through all this grief!

Thanks so much for your hard work!
 
Posts: 1,425 | Thanked: 983 times | Joined on May 2010 @ Hong Kong
#68
Originally Posted by HRH_H_Crab View Post
I've got it working!
Adding DNS seems to have fixed things.
Sorry to have put you through all this grief!

Thanks so much for your hard work!
That's great. Welcome to the PAN party. I think you're one of the very few people in the world actually use PAN for tethering.
 
Posts: 64 | Thanked: 109 times | Joined on Mar 2010
#69
For DHCP and Auto DNS configuration, you can inspire from:
http://wiki.maemo.org/N900_USB_router

Just add before stand-alone command:

Code:
dnsmasq -I lo -z -a 192.168.1.1 -F 192.168.1.64,192.168.1.127

PS: tested and it works with Windows 7, but probably you'll have to renew dns lease:
Code:
ipconfig /renew "Name of PAN Adapter"
 

The Following User Says Thank You to mauron85 For This Useful Post:
Posts: 1,425 | Thanked: 983 times | Joined on May 2010 @ Hong Kong
#70
Originally Posted by mauron85 View Post
For DHCP and Auto DNS configuration, you can inspire from:
http://wiki.maemo.org/N900_USB_router

Just add before stand-alone command:

Code:
dnsmasq -I lo -z -a 192.168.1.1 -F 192.168.1.64,192.168.1.127

PS: tested and it works with Windows 7, but probably you'll have to renew dns lease:
Code:
ipconfig /renew "Name of PAN Adapter"
I'll experiment with it and then update the script in #1. Thanks for your hints.
 
Reply

Tags
bluetooth-pan, tethering


 
Forum Jump


All times are GMT. The time now is 19:39.