webOS Nation Forums >  webOS apps and software >  webOS development > Possible tether work-around
Possible tether work-around

  Reply
 
LinkBack Thread Tools Display Modes
Old 06/30/2009, 12:15 PM   #221 (permalink)
Member
 
Join Date: Jun 2009
Posts: 52
Likes Received: 0
Thanks: 6
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by aonic View Post
The usb tether part is ready, the code to enable/disable usbnet is also ready, just need to throw in a button for that in the view.

If you guys like I can release my app for those two things tonight and then continue work on the adhoc part of it, or do you need both?
I'd also prefer the USB method, so if you've got something I'd love to try it too.
tweak41 is offline   Reply With Quote
Old 06/30/2009, 12:31 PM   #222 (permalink)
Member
 
mu7efcer's Avatar
 
Join Date: Mar 2008
Posts: 921
Likes Received: 7
Thanks: 169
Thanked 229 Times in 141 Posts
Default

Quote:
Originally Posted by aonic View Post
If you guys like I can release my app for those two things tonight and then continue work on the adhoc part of it, or do you need both?
I vote release early and release often. That way you can take contributions from others. $0.02.
mu7efcer is offline   Reply With Quote
Old 06/30/2009, 12:53 PM   #223 (permalink)
Member
 
Join Date: Jun 2009
Posts: 308
Likes Received: 0
Thanks: 18
Thanked 657 Times in 59 Posts
Default

Will do. I'll post later tonight, including instructions on installing the shell service.
aonic is offline   Reply With Quote
Thanked by frank828, neoGTR22, tozfeekum
Old 06/30/2009, 02:25 PM   #224 (permalink)
Member
 
neoGTR22's Avatar
 
Join Date: Jul 2003
Posts: 246
Likes Received: 16
Thanks: 41
Thanked 21 Times in 14 Posts
Default

Quote:
Originally Posted by aonic View Post
Will do. I'll post later tonight, including instructions on installing the shell service.
Can't wait.
__________________
Neil
Handspring Visor Deluxe > Treo 600 > Palm Pre > iPhone 4s & Touchpad 32gb
neoGTR22 is offline   Reply With Quote
Old 06/30/2009, 02:28 PM   #225 (permalink)
Member
 
cjmedina26's Avatar
 
Join Date: Aug 2007
Posts: 193
Likes Received: 2
Thanks: 6
Thanked 11 Times in 6 Posts
Default

Usb is fine for me to I already have the bluetooth part down
cjmedina26 is offline   Reply With Quote
Old 06/30/2009, 03:40 PM   #226 (permalink)
Member
 
mu7efcer's Avatar
 
Join Date: Mar 2008
Posts: 921
Likes Received: 7
Thanks: 169
Thanked 229 Times in 141 Posts
Default

I've made a modification to the tether.sh script that jhoff posted, to get it to gather status. E.g.

tehter.sh status
returns "on" if all 3 componets of tethering are enabled: (wifi, nat, ip forwarding)
returns "off" otherwise

I want to modify jhoff's code so that when you start the app it will query the status and put the toggle in the correct position. I'm looking at the devmode app as a way of doing this. It appears to have a "configure" function. That does everything. But I can't find where that function is called. Does webOS when starting the tether-assistant.js automatically call both setup and configure?

For details see the following file on the pre:

/usr/palm/applications/com.palm.app.devmodeswitcher/app/controllers/devmodeswitcher-assistant.js

Anyone? Bueller?
mu7efcer is offline   Reply With Quote
Old 06/30/2009, 07:36 PM   #227 (permalink)
Member
 
Join Date: Jun 2009
Posts: 13
Likes Received: 0
Thanks: 3
Thanked 1 Time in 1 Post
Default

Hi Jhoff,

Looks like I got your app up, but could not install the org.webosinternals.services IPKG-Opt. It kept coming back as:

-----
root@castle:/opt/bin# ipkg-opt install org.webosinternals.services
Nothing to be done
An error ocurred, return value: 4.
Collected errors:
Cannot find package org.webosinternals.services.
Check the spelling or perhaps run 'ipkg update'
root@castle:/opt/bin#
-----

Not sure what i need to do, but the package was downloaded to "/opt/bin"
mykael is offline   Reply With Quote
Old 06/30/2009, 07:42 PM   #228 (permalink)
Member

 
Join Date: Apr 2003
Location: Boston-area
Posts: 6,973
Likes Received: 116
Thanks: 418
Thanked 1,252 Times in 710 Posts
Default

Quote:
Originally Posted by mykael View Post
Hi Jhoff,

Looks like I got your app up, but could not install the org.webosinternals.services IPKG-Opt. It kept coming back as:

-----
root@castle:/opt/bin# ipkg-opt install org.webosinternals.services
Nothing to be done
An error ocurred, return value: 4.
Collected errors:
Cannot find package org.webosinternals.services.
Check the spelling or perhaps run 'ipkg update'
root@castle:/opt/bin#
-----

Not sure what i need to do, but the package was downloaded to "/opt/bin"
Okay to tell ipkg-opt that it's a file, I believe you need to keep the .ipk extension at the end of it.

Also, for some reason when I kept the name as-is, I was having issues. I renamed it to shell.ipk and then did ipkg-opt install shell.ipk and it worked fine. Maybe that'll work for you as well.
jhoff80 is offline   Reply With Quote
Old 06/30/2009, 07:48 PM   #229 (permalink)
Member
 
Join Date: Jun 2009
Posts: 13
Likes Received: 0
Thanks: 3
Thanked 1 Time in 1 Post
Default

I'm also interested in your App AONIC, let me know if I can test it as well
mykael is offline   Reply With Quote
Old 06/30/2009, 07:50 PM   #230 (permalink)
Member
 
cjmedina26's Avatar
 
Join Date: Aug 2007
Posts: 193
Likes Received: 2
Thanks: 6
Thanked 11 Times in 6 Posts
Default

can anyone package it to install via email. im still on 1.03 and would like to try that way thanks
__________________

using my acer aspire tethered to my palm pre
cjmedina26 is offline   Reply With Quote
Old 06/30/2009, 07:51 PM   #231 (permalink)
Member
 
Join Date: Jun 2009
Posts: 13
Likes Received: 0
Thanks: 3
Thanked 1 Time in 1 Post
Default

Thanks for the fast reply Jhoff,

I went ahead and renamed it to shell.ipk and got this error now:

ipkg: invalid magic
mykael is offline   Reply With Quote
Old 06/30/2009, 08:30 PM   #232 (permalink)
Member

 
Join Date: Apr 2003
Location: Boston-area
Posts: 6,973
Likes Received: 116
Thanks: 418
Thanked 1,252 Times in 710 Posts
Default

Quote:
Originally Posted by mykael View Post
Thanks for the fast reply Jhoff,

I went ahead and renamed it to shell.ipk and got this error now:

ipkg: invalid magic
Sorry, never seen that one before.
jhoff80 is offline   Reply With Quote
Old 06/30/2009, 08:35 PM   #233 (permalink)
Member
 
Join Date: Jun 2009
Posts: 13
Likes Received: 0
Thanks: 3
Thanked 1 Time in 1 Post
Default

Basically what i did was:

"cd /opt/bin/ directory
wget http: //gitorious.org/webos-internals/applications/trees/master/org.webosinternals.services
mv org.webosinternals.services shell.ipk
ipkg-opt install shell.ipk"


Thats how i got that error, was that the correct way to install?
mykael is offline   Reply With Quote
Old 06/30/2009, 08:49 PM   #234 (permalink)
Member

 
Join Date: Apr 2003
Location: Boston-area
Posts: 6,973
Likes Received: 116
Thanks: 418
Thanked 1,252 Times in 710 Posts
Default

Quote:
Originally Posted by mykael View Post
Basically what i did was:

"cd /opt/bin/ directory
wget http: //gitorious.org/webos-internals/applications/trees/master/org.webosinternals.services
mv org.webosinternals.services shell.ipk
ipkg-opt install shell.ipk"
/org.webosinternals.services/org.webosinternals.services-0.4_all.ipk


Thats how i got that error, was that the correct way to install?

I think maybe that it might be that when you do it like that it's giving you just the directory.

Try this link directly to it.

http://gitorious.org/webos-internals...94b2490bfaaae5
jhoff80 is offline   Reply With Quote
Thanked By: mykael
Old 06/30/2009, 09:03 PM   #235 (permalink)
Member
 
Join Date: Jun 2009
Posts: 10
Likes Received: 0
Thanks: 12
Thanked 0 Times in 0 Posts
Default

Seen someone beat me to the punch.
JWille is offline   Reply With Quote
Old 06/30/2009, 10:06 PM   #236 (permalink)
Member
 
mu7efcer's Avatar
 
Join Date: Mar 2008
Posts: 921
Likes Received: 7
Thanks: 169
Thanked 229 Times in 141 Posts
Default

Quote:
Originally Posted by mykael View Post
ipkg: invalid magic
That error happens when the file that you're trying to install is not actually a .ipk file. It means that you haven't downloaded the correct file.

Click on this link. Then on the page that comes up, right click on the link and copy. Then wget that link.
mu7efcer is offline   Reply With Quote
Thanked by mykael, tweak41
Old 07/01/2009, 04:06 AM   #237 (permalink)
Member
 
Join Date: Jun 2009
Posts: 52
Likes Received: 0
Thanks: 6
Thanked 2 Times in 2 Posts
Default

jhoff80,

I packaged your tethering app into an ipk and installed on my pre via wget method and then ipkg-opt installed it. I also installed the webosinternals.services package that was mentioned a few posts up on this page. However, when I run the app and move the slider in the app, nothing happens. I feel as though I'm missing a step...did I miss something in the pages between your tutorial post and now?

Last edited by tweak41; 07/01/2009 at 04:19 AM.
tweak41 is offline   Reply With Quote
Old 07/01/2009, 07:15 AM   #238 (permalink)
Member
 
Join Date: Jun 2009
Posts: 308
Likes Received: 0
Thanks: 18
Thanked 657 Times in 59 Posts
Default

MOVED: http://forums.precentral.net/showthread.php?p=1735750



Instructions (version 1.1.1):
Root into your pre, in command line type the following commands:
Code:
cd /tmp/
mount -o remount rw, /

wget http://vz.aonic.net:8080/~raja/pre/net.aonic.my-tether_1.1.1_all.ipk
ipkg install net.aonic.my-tether_1.1.1_all.ipk

wget http://gitorious.org/webos-internals/applications/blobs/raw/db385edfa3f71ceb98401c16dd94b2490bfaaae5/org.webosinternals.services/org.webosinternals.services-0.4_all.ipk
ipkg install org.webosinternals.services-0.4_all.ipk

rm org.webosinternals.services-0.4_all.ipk net.aonic.my-tether_1.1.1_all.ipk
mount -o remount ro, /

/usr/bin/luna-send palm://com.palm.applicationManager/rescan {}
Update to 1.1.1

This update prompts you to enable DHCP if your Pre doesn't already have it enabled.

If you already installed a previous version, here are instructions to upgrade:
Code:
cd /tmp/
mount -o remount rw, /

http://vz.aonic.net:8080/~raja/pre/net.aonic.my-tether_1.1.1_all.ipk
ipkg install net.aonic.my-tether_1.1.1_all.ipk

rm net.aonic.my-tether_1.1.1_all.ipk
mount -o remount ro, /

/usr/bin/luna-send palm://com.palm.applicationManager/rescan {}
Update to 1.1

I just made a new version with some tweaks and UI friendly additions. Now the application detects if tethering is already enabled and puts the toggle in the correct place based on that.
It also prompts you to enable USBNET if you try to toggle without enabling it.

If you already installed 1.0, here are instructions to upgrade:
Code:
cd /tmp/
mount -o remount rw, /

wget http://vz.aonic.net:8080/~raja/pre/net.aonic.my-tether_1.1_all.ipk
ipkg install net.aonic.my-tether_1.1_all.ipk

rm net.aonic.my-tether_1.1_all.ipk
mount -o remount ro, /

/usr/bin/luna-send palm://com.palm.applicationManager/rescan {}
You should see "My Tether" in your launcher, if not, reboot. Let me know how it goes.

Last edited by aonic; 07/07/2009 at 09:41 AM.
aonic is offline   Reply With Quote
Old 07/01/2009, 08:33 AM   #239 (permalink)
Member
 
Join Date: Jun 2006
Posts: 66
Likes Received: 0
Thanks: 12
Thanked 3 Times in 3 Posts
Default

Great work!

Two caveats: make sure the operating system is rw before installing and the Pre has to be restarted for the icon to show up in the launcher. These are pretty much common knowledge, but I forgot both so I thought I would remind folks.

-darren
darrenf is offline   Reply With Quote
Old 07/01/2009, 08:36 AM   #240 (permalink)
Member
 
Join Date: Jun 2009
Posts: 308
Likes Received: 0
Thanks: 18
Thanked 657 Times in 59 Posts
Default

Thank you!

I believe the ipk system handles making it rw, and the reason I said to install the shell service last is because the shell services postinstall script refreshes the launcher.

Downloading to /tmp avoids having to manually change w to rw and back to w.

I may be wrong_ but that's how it worked for my pre.

Quote:
Originally Posted by darrenf View Post
Great work!

Two caveats: make sure the operating system is rw before installing and the Pre has to be restarted for the icon to show up in the launcher. These are pretty much common knowledge, but I forgot both so I thought I would remind folks.

-darren
aonic is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0