![]() |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
I will do some further testing when I return back to town, I have just the phone with me, I'm on a trip for 3-5 days.
|
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
I suppose the script will 'turn-on/enable' PAN on N900 but is there also a script to 'turn-off/disable' after using?
|
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Quote:
I didn't add the part to disable PAN because I reckon people would still want to use bluetooth (e.g. headset) even when they don't need PAN (Like I usually do). If you really want to save battery, you can simple turn off bluetooth entirely by using bluezwitch I recommended in paragraph 3.5 of the instructions on the first page. Let me know if you've further query. ^^ |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
can i use my broadband pc internet via bluetooth or usb cable on n900?
|
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Quote:
First you should make your Windows sharing internet. I can't give you procedures on this, as different version of Windows has different setup. You must consult Windows experts on this. Of course, it'd be much easier if your PC is running Linux. Second, you need to pair up the PAN such that the N900 and PC is within the same PAN. It's like your PC and N900 is in the same LAN. i.e. follow the procedures up to section 4.2. After you established the PAN, you must setup the IP of your PC as followed: Code:
IP: 192.168.1.2 Code:
root Now you must setup the default route. All intranet and internet traffic will go thru the default, therefore you must make sure no other default exist. In your N900: Code:
root Finally, you can't browse web without DNS: Code:
root I'm in a rush, may be you'd have question with the procedure above. Nevertheless feedback and I'll help you . |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Hi, I'm very new to the N900 - loving the device so far.
Just posting to enquire whether this is still the "preferred" solution to setting up the N900 as a pan server? It seems a bit clunky to me. Also, where the heck can I get the pc-connectivity suite from? It doesn't seem to be in any of the pre-configured repositories? |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Quote:
Quote:
|
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
There seems to be an awful lot of contradictory posts about setting up the phone as a PAN server. I read your post, but then I saw this:
http://wiki.maemo.org/Fremantle_Unsu...tooth_profiles I have removed "network" from the list of disabled plugins and my Macbook now sees the phone supports the PAN service. However its not picking up an IP address (it auto-configures itself from the 169 range) and bnep0 on the phone has no address bound. I wonder if I need to manually configure IP on each side and mess around with iptables to get routing happening. Either way this is one feature that worked a lot better on my ancient Sony Ericsson W595! |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Quote:
The article I wrote and the script I posted is exactly telling you how to establish PAN by manually configuring IP on both side. The iptables is just there to establish Internet sharing thingy. I could have packaged it but since I don't think there are too many people using PAN anyway....so... As a matter of fact you're one of the very few people who are actually interested in PAN. Yep, N900 is awesome, but so far not much people would really appreciate its power. Bluetooth PAN is in fact perfect for tethering for N900, due to its extremely low power consumption. Enjoy. |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
The wiki doesn't actually mention anything about maemo-pan.
It just says if you remove "network" from the disabled plugins list in the bluetooth main.conf then PAN will work. I'm going to install iptables and use your script and manually configure the network on both sides and see where that gets me. Changing the subject totally, I lived in HK from 1977 until the early '90s! Awesome place! ;) |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Hi,
I've got an N900 up and working with Bluetooth PAN as per your details above and it seems to work perfectly, my question is if there is an easy way to auto enable the PAN setup on the N900 when a device connects? I was originally using DUN to connect from my PC to the N900 for connectivity and I've got an iPAD and a few other devices now that I want to use from time to time via PAN to the N900 and they all seem to want to do DHCP once they connect so I was looking for away to do that. Any thoughts? Thanks Tom |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Quote:
Quote:
Quote:
|
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Quote:
1) Have you PC/iPad join the N900's PAN 2) Make sure you've connected to the Internet, press the Queen Beecon button that triggers the script Just two steps to reestablish your PAN for tethering. However, I understand that you want DHCP and the script would be triggered automatically when the PAN is established. I'll see what I can do and update you later after research. |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
I wonder whether it would make things even simpler if we could somehow make use of bridging?
When I use PAN with my SE, the device that I am connecting to the PAN picks up an address from the providers network range - its almost as though the phone is just bridging the connection it gets across the PAN? |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Quote:
What is SE BTW? Can you show me the screenshot? |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Quote:
I can't show a screenshot unfortunately. |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Quote:
|
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
well, first things first back to your method:
i'm not having much luck. here is one problem for starters: BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash) Enter 'help' for a list of built-in commands. Nokia-N900-51-1:~# apt-get install pc-connectivity-manager Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package pc-connectivity-manager Nokia-N900-51-1:~# How can I install the pc-connectivity-manager? I should note (in case it is useful information for anyone): When I was messing around on my own, and had removed "network" from the list of disabled plugins in /etc/bluetooth/main.conf issuing a request to connect to the network on my N900 from my Mac brought up a bnep0 interface on my phone and caused my Mac to autoconfigure an interface. With "network" disabled, any attempt to initiate a connection causes an error message on my Mac (Bluetooth Network unavailable) and no bnep0 is brought up on the phone. I am guessing therefore that "pc-connectivity-manager" must somehow replace the role of the bluetoothd network plugin and provide the pan server on the phone side?! Regarding the script for my Z: #!/bin/bash pand --connect <phonebluetoothmac> --service NAP --autozap ifdown bnep0 ifup bnep0 (with bnep0 set to use dhcp in /etc/network/interfaces ofc.) |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
You need to enable extras-devel in your repositories list and then update in order to get that pc-connectivity-manager. Actually you need that repository in order to get iptables. I'll add that step when I get home thanks for your feedback.
|
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
I had no problem installing iptables with "apt-get install iptables".
(even without extras-devel) |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Let check your source list first:
Code:
Nokia-N900:~# cat /etc/apt/sources.list.d/hildon-application-manager.list |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
O.K.
I am making real progress now using your method! :D 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... |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
First, the repos:
Code:
Nokia-N900-51-1:~# cat /etc/apt/sources.list.d/hildon-application-manager.list 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. |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
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. :confused: 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. :( |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Quote:
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 Quote:
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. |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
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. |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
I've got it working! :D
Adding DNS seems to have fixed things. Sorry to have put you through all this grief! ;) Thanks so much for your hard work! |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Quote:
|
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
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" |
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Quote:
|
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Can I share my N900's internet connection with a sony ericsson k850 over bluetooth?
|
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Quote:
|
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Quote:
|
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Have you followed my instructions on #1?
|
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Quote:
|
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
The script is to be run after the devices are paired up. Have you paired them up?
|
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Yeah the devices are paired but the script seems not running. On the k850 I see the message "Communication failure. Try again or contact your operator for support." so I do not have the correct settings also.
|
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Are you sure you're establishing a PAN with N900 not DUN?
|
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Under streaming settings (on the k850) I ve set the PanUDefaultAccount with your settings described on the first post. It has also a proxy selection which is disabled.
|
Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
Try run the following as root:
Code:
iptables -L |
All times are GMT. The time now is 04:08. |
vBulletin® Version 3.8.8