Reply
Thread Tools
Posts: 1 | Thanked: 0 times | Joined on Nov 2010
#51
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
 
Posts: 1,425 | Thanked: 983 times | Joined on May 2010 @ Hong Kong
#52
Originally Posted by HRH_H_Crab View Post
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.
IIRC you don't need to touch the corresponding option in main.conf if you follow my procedures. Thank you for your feedback.

Originally Posted by HRH_H_Crab View Post
I'm going to install iptables and use your script and manually configure the network on both sides and see where that gets me.
Actually it's easier than you thought. Good luck.

Changing the subject totally, I lived in HK from 1977 until the early '90s!

Awesome place!
Good to hear that. ^^ Please kindly feedback if possible. Thanks.
 
Posts: 1,425 | Thanked: 983 times | Joined on May 2010 @ Hong Kong
#53
Originally Posted by tgwtoronto View Post
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
What I'm doing now is to create a Queen Beecon icon to trigger the script in section 4.3.1:

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.
 
Posts: 23 | Thanked: 2 times | Joined on Nov 2010
#54
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?
 
Posts: 1,425 | Thanked: 983 times | Joined on May 2010 @ Hong Kong
#55
Originally Posted by HRH_H_Crab View Post
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?
Are you sure it is PAN, not DUN?

What is SE BTW?

Can you show me the screenshot?
 
Posts: 23 | Thanked: 2 times | Joined on Nov 2010
#56
Originally Posted by 9000 View Post
Are you sure it is PAN, not DUN?

What is SE BTW?

Can you show me the screenshot?
SE = Sony Ericsson and I am sure it is PAN and not DUN. I used a script on my "client" device (Sharp Zaurus) which issued the command "pand" from bluez-compat to issue the connection.

I can't show a screenshot unfortunately.
 
Posts: 1,425 | Thanked: 983 times | Joined on May 2010 @ Hong Kong
#57
Originally Posted by HRH_H_Crab View Post
SE = Sony Ericsson and I am sure it is PAN and not DUN. I used a script on my "client" device (Sharp Zaurus) which issued the command "pand" from bluez-compat to issue the connection.

I can't show a screenshot unfortunately.
If it is a scipt can you show me here?
 
Posts: 23 | Thanked: 2 times | Joined on Nov 2010
#58
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.)

Last edited by HRH_H_Crab; 2010-11-13 at 10:07.
 
Posts: 1,425 | Thanked: 983 times | Joined on May 2010 @ Hong Kong
#59
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.
 
Posts: 23 | Thanked: 2 times | Joined on Nov 2010
#60
I had no problem installing iptables with "apt-get install iptables".

(even without extras-devel)
 
Reply

Tags
bluetooth-pan, tethering


 
Forum Jump


All times are GMT. The time now is 20:51.