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)

Kossuth 2014-02-11 13:01

Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
 
Open the file main.conf in your text editor of choice (notes/leafpad/etc) on your N900 and just edit the line (remove the network and input entries) and then save the file over the old one. Be warned to stay away from editing the file in for example Windows computer and then transfer it back, because some editor add extra linebreak characters that may break the functionality of the .conf file.

Leafpad is my choice, and can be found in repos. Just install it with HAM, FAPman or apt-get and run it in the x-terminal like

Code:

leafpad /etc/bluetooth/main.conf

scy 2014-11-15 11:58

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

The N900 can provide Internet access to an Android Nexus 7 tablet (2012 / wifi only) via bluetooth pan.

On the tablet I used the app "EasyTether Pro". With this app, I have a check box for my paired bluetooth devices to "use as Internet connection". On m N900 I followed the bluetooth-pan setup from the wiki page.

(Note: Today 2014-11-15 this app is free of charge via amazon-app-shop)

zerox 2015-03-19 13:06

Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
 
Following the upgrade of Busybox Power to busybox-power_1.21.1power1, as described here, it is necessary to change all occurrences of /usr/bin/brctl in /etc/udev/rules.d/50-bnep.rules to /usr/sbin/brctl in the configuration described in Viqsi's post 258 in the present thread.

dy1ng 2015-08-08 20:43

Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
 
Guys,
Is there any way to share the N900's wifi connection to an old WM2003 PDA via bluetooth?

Halftux 2015-08-08 20:56

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

Originally Posted by dy1ng (Post 1479028)
Guys,
Is there any way to share the N900's wifi connection to an old WM2003 PDA via bluetooth?

Depends on if the PDA supports one of the following bt connection methods then it is possible.

PAN
rfcomm ppp
(DUN - I think you can only use the modem not wifi)

biketool 2015-10-30 09:32

Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
 
I have given up on getting QT Mobile Hotspot to work on my Nexus 7 flo, even after switching from Ubuntu Touch to Cyanogen no luck in establishing a working ad-hoc network.
So now I have PAN installed using this:
http://talk.maemo.org/showpost.php?p...&postcount=258
and with these changes:
http://talk.maemo.org/showpost.php?p...&postcount=283


It works, I am even posting this with my Ubuntu laptop over the PAN connection.
Still no working internet connection to the Nexus 7(2013) running Cyanogen 12.1-20151029.
I can pair, I click the bluetooth box for internet connection, but no actual connection begins working, only infrastructure WiFI points work so far, and I don't know the console commands in Android to diagnose the network.
I would be happy if I could find ANY way to tether my Nexus to My N900, because the price paid for a tablet is lost for the most part, except when flying, if I am unable to use the tablet online when mobile.

Halftux 2015-10-30 11:07

Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
 
@biketool
You can try also genwall to make a wifi hotspot (ad-hoc) or to make a pan connection and forward your internet to the client. Will add wifi ad-hoc to genwall help soon.

For ad-hoc and a crippled android this looks interesting.

I don't own an useless android device but maybe I can lend one to make a tutorial for forwarding internet to it.

biketool 2015-10-30 12:30

Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
 
Yea, android is not a normal linux, no familiar networking command except ping works, but Ubuntu Touch which is better on the normal shell commands is still too much an app desert.
I had hoped that since I couldn't get ad-hoc hotspot functioning with Ubuntu on the Nexus Cyanogen and F-Droid would get me the function I wanted.

Does genwall clash with the persistent PAN settings, ie. do I need to undo the changes?
What is the deal with crippled droid devices, is it the drivers, hardware, or what? I had thought that Cyanogen would do the job giving me a rooted device with full access.

Halftux 2015-10-30 13:19

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

Originally Posted by biketool (Post 1487153)
Does genwall clash with the persistent PAN settings, ie. do I need to undo the changes?

At least you need to remove 50-bnep.rules file because genwall is working with bnep and you don't need a bridge.
In principle genwall do not change system files and should work with stock firmware + kernel power.
However genwall is highly configurable thats why it is maybe not so easy.

For bluetooth you need to edit /etc/bluetooth/main.conf for activating the bluetooth network which you already did.

Quote:

Originally Posted by biketool (Post 1487153)
What is the deal with crippled droid devices, is it the drivers, hardware, or what? I had thought that Cyanogen would do the job giving me a rooted device with full access.

I don't know so much about the software mods of android devices. But I guess the hardware is not limiting.

My own experience with android device were very bad, because they not supporting features which I use everyday, so they were useless for me and working with them and get things running were very time consuming compared to a personal computer and all my former smartphones.

However maybe I am thinking to much that a smartphone or tablet should behave like a computer.
But nowadays this is definitely not the case. They are mainly made for people who don't have a clue about pc's.

biketool 2015-10-31 15:47

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

Originally Posted by Halftux (Post 1487158)
My own experience with android device were very bad, because they not supporting features which I use everyday, so they were useless for me and working with them and get things running were very time consuming compared to a personal computer and all my former smartphones.

However maybe I am thinking to much that a smartphone or tablet should behave like a computer.
But nowadays this is definitely not the case. They are mainly made for people who don't have a clue about pc's.

My feelings exactly, and my first experience was with a worthless unrooted Nook Android tablet. I have to either decide that it is possible to obtain a N900 like experience, light computer without a physical keyboard, with this tablet in Cyanogen or Ubuntu Touch or if I can accept that it is a $300 PDF viewer. Getting the tablet to tether with the N900 for net is key though.

(EDIT)
I would actually prefer to use PAN, but perhaps Android/Cyanogen wifi just needs a wpa supplicant even for open mode?
http://www.androidsim.net/2011/08/ho...-networks.html

biketool 2015-10-31 17:45

Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
 
Frack, how do you get android to list network interfaces in ifconfig?!?!?
I had to guess on wlan0 no idea what they call bluetooth PAN...
(not bnep0)

Halftux 2015-10-31 18:51

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

Originally Posted by biketool (Post 1487205)
I would actually prefer to use PAN

Did you tried genwall? Does your android have the pand command?

Quote:

pand --connect XX:XX:XX:XX:XX:XX
When not you could try this app: Pan for root users

Quote:

Originally Posted by biketool (Post 1487205)
, but perhaps Android/Cyanogen wifi just needs a wpa supplicant even for open mode?

I guess it is more a problem about wep, that is not really supported. You can try to make a wpa ad-hoc with a laptop (windows or linux) and see if this is working.

biketool 2015-10-31 20:02

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

Originally Posted by Halftux (Post 1487215)
Did you tried genwall? Does your android have the pand command?

I will give genwall a try once I get some hacking time. There is a setting for bluetooth networking once linked, I have to assume it detects PAN and tries to connect.



Quote:

Originally Posted by Halftux (Post 1487215)
When not you could try this app: Pan for root users

Maybe this is me being silly but I only enabled F-Droid for software repo on the Cyanogen, which is stripped of Google stuff. I dont like having google stick their fingers into my tablet, even Ubuntu is creepy in requiring a launchpad login. I have been looking for the APK from a trusted source, though I wonder what it might break, this is not a maemo or debian repo but android anarchy.

nokiabot 2015-11-01 03:03

Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
 
pan teathering from android works you might need to dig for it to attain perfection and i do not have a android also my experience with them was awful i.e strange kind of device and os intregation plus dosent really bring anything new to the table and on top of that it dosent work like i expect and it was a year back i think on jellybean tablets .

biketool 2015-11-01 20:18

Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
 
Started using a different shell app, I think it logs in as root but also behaves properly, ifconfig and apt-get actually do something.
So int bt-pan shows up on the nexus as created and linked, but just like ad-hoc wifi it is not taking an IP form the dhcp on the N900.
Wish I knew what was the equivelant of /var/log/syslog on android/cyanogen so I could watch the connection log.

Sohil876 2015-11-01 20:42

Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
 
Why are you going through all that? does your android device not support pan? if it does then you just have to enable pan on n900, restart it, pair it with your android device (if paired before activating pan, unpair and re pair), then in your android device's bt menu, just click on your n900 a checkbox something like "use this devices internet" should be there, just check it and it should share connection. Im tethring my n900 to my android devices (a phone with v4.4, a tab with v2.3) like this and it works just fine without even root or shells.

biketool 2015-11-01 20:52

Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
 
Sohil876, I have been doing exactly that, but the android tablet is not taking an Ip address from the DHCP on the N900 though my Ubuntu laptop happily does.

I removed the modifications form thsi thread and have just installed genwall. Lots of uber hackyness, my network basics traingin and distance from the 90s where I used them everyday means I will need to sleep and try again tomorrow, ugh iptables hacking. fortunately there is this to help, http://talk.maemo.org/showpost.php?p...5&postcount=62

Halftux 2015-11-01 21:09

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

Originally Posted by biketool (Post 1487288)
Sohil876, I have been doing exactly that, but the android tablet is not taking an Ip address from the DHCP on the N900 though my Ubuntu laptop happily does.
[/url]

Maybe you can try this. Don't know if it helps but worth a try.

Sohil876 2015-11-01 21:53

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

Originally Posted by biketool (Post 1487288)
Sohil876, I have been doing exactly that, but the android tablet is not taking an Ip address from the DHCP on the N900 though my Ubuntu laptop happily does.

Try using bt pan when youve enabled offline mode in nexus 7 and only one connection bluetooth is on on n7, disable wifi and others on it. If even that didnt work read THIS , also see the last solution.

biketool 2015-11-02 07:29

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

Originally Posted by Sohil876 (Post 1487299)
Try using bt pan when youve enabled offline mode in nexus 7 and only one connection bluetooth is on on n7, disable wifi and others on it. If even that didnt work read THIS , also see the last solution.

Already did that too, I think the only way is to hand enter all of the Ip, routing, and dns. This looks like the only way to go, as anything where the N900 is a DHCP fails, though my Nexus DHCPs fine from my Netgear wireless router and other infrastructure APs, if I recall PAN uses a bluetooth equivalent to ad-hoc networking so no surprise the problem is similar.
http://android.stackexchange.com/que...doing-it-wrong
Is this 1990 again? Am I a teenager building a network from win3.0 PCs and some borrowed coax 10-T net cards?

peterleinchen 2015-11-02 07:48

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

Originally Posted by biketool (Post 1487312)
...
Is this 1990 again? Am I a teenager building a network from win3.0 PCs and some borrowed coax 10-T net cards?

Everything repeats in circles, ya know? :p
(for me it was at least 3.11)

zerox 2015-11-02 13:56

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

Originally Posted by biketool (Post 1487141)
Still no working internet connection to the Nexus 7(2013) running Cyanogen 12.1-20151029.
I can pair, I click the bluetooth box for internet connection, but no actual connection begins working

Bluetooth PAN works with my Nexus 7 (2012) running stock Lollipop 5.1.1. However, the process of initiating the connection is unreliable. Sometimes it works on the first attempt, sometimes it works on the tenth attempt. I have not been able to spot a pattern to this behaviour. Once the connection is established, the performance is excellent, and the android apps seem unaware that wifi is switched off.

biketool 2015-11-08 10:58

Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
 
Zerox,
Are you using the Cyanogen bluetooth manager or another app to help. I have downloaded EasyTether but it is pretty sketchy wanting to add 'drivers' (a series of scripts and bins) to the N900 or other device(not sure if they have soemthing campatible with Maemo5)
http://mobile-stream.com/easytether/drivers
This looks like hard work on their part but also gives me trust issues downloading bins form random sites on the internet.
Do you often get a BT connection but not DCHP an IP address?

biketool 2015-11-17 11:32

Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
 
So it turns out my problem above is that stock Android PAN DHCP is just super unreliable, that's all(unless a Cyanogen update just fixed a problem). I give it a try AND wait for 3.5G to connect; it turns out that I eventually get a connection as long as I click "Internet Access" in the settings, verify that 3.5G is up on the N900, then check for actual access in a browser; rinse and repeat sometimes two or three tries until success.

biketool 2015-11-17 19:11

Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
 
And here we go again, planets and stars were in a rare allignment which allowed my tablet to work with PAN. No idea what dark magic was employed, but the spell has worn off.

As I type here it is working again after about 15min of repeated attempts.

No idea if it was several tries at software restarting both bluetooth radios, as well as shutting off my BT headset linked to the N900, but PAN finally worked again.

Effing unreliable android crap...

biketool 2017-10-03 20:12

Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
 
Android(Cyanogen - LineageOS) seems to have gotten better along with me learning to force my N900 onto the net usually by checking mail and then surfing from my tablet.
This BT tethering function is possibly the one which goes the furthest in extending the life of my N900 as I can leverage the connectivity with a wifi only tablet for effective web browsing.
Anyone who still has a dev account, why has this not been packaged into a deb?
Even better if some GUI scripting to let us switch it on and off form the notification area though as implimented I have it running ready at all times and love it.
Put this collection of scripts as a package on extras-testing!!

jschan 2017-10-03 23:31

Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
 
My N900 was rendered useless to me years ago from the sim card mounting issue, but it's awesome to read that we have people still using this effectively today.

Halftux 2017-10-04 08:56

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

Originally Posted by biketool (Post 1535760)
Put this collection of scripts as a package on extras-testing!!

You can have a look at genwall it has the same feature but more flexible.

biketool 2018-03-14 10:21

Re: [HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
 
I have set up a Maemo Garage page to preserve the files and hopefully soon upload to extras development.
https://garage.maemo.org/projects/pan900


All times are GMT. The time now is 04:11.

vBulletin® Version 3.8.8