Thread
:
[HOWTO] N900 Bluetooth-PAN Tethering (N900 supplies Internet Access for PC)
View Single Post
Estel
2013-11-09 , 22:24
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#
270
Thanks, I'll try to dissect that python script and try to reproduce results via some shell one, when I got time. As for your question, I'm using Viqsi's method (with your fixes, as I belive, already incorporated into original post) + corrected /usr/bin into /usr/sbin.
The result is, that it *doesn't* automatically connect GPRS for me during PAN initiation (maybe something about not having GPRS set to auto-connect when internet is demanded from programs, in Maemo?), but if I connect/disconnect GPRS manually while PAN is active (and clients are "leeching" net access), changes are propagated seamlessly. No need to reconnect anything bluetooth related, tethering clients reach internet as soon as host ("main" N900) can reach it.
/Estel
// Edit
I just re-read your post, and obviously, I missed the "without touching N900" part, so I think that you're also *not* having problems with auto-propagation of network access change, and you're thinking *only* about more robust way to keep GPRS alive during PAN usage, even after disconnects.
What about something like:
Code:
while true; do <bits of code that connect GPRS here>; sleep 5; done
...which would be called only when PAN network is "alive"? It should result in "watchman" script sleeping in background, getting alive only if GPRS disconnects, trying to reconnect it after 5 seconds, then.
/Estel
__________________
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover
MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1
|
ereswap
|
bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!
Last edited by Estel; 2013-11-09 at
22:32
.
Quote & Reply
|
The Following User Says Thank You to Estel For This Useful Post:
Kossuth
Estel
View Public Profile
Send a private message to Estel
Find all posts by Estel