webOS Nation Forums > webOS apps and software > webOS development > Possible tether work-around
First ... 2 3 4 5 6 7 8 9 10 11 12 17  ... Last
Member: dsackr
at: 05:23 AM 06/24/2009
Originally Posted by jack87:
you have to do the steps listed above while being logged in via ssh

but before your run then tether.sh file type 'stop PmConnectionManager' then when you are done tethering in the putty screen hit Ctrl+C then type 'start PmConnectionManager'
Great find! Now we can clean up the code of tether.sh a bit to automatically stop the PmConnectionManager service and restart it when we are done - and we can completely remove the while loop:

Originally Posted by :
#---------------- begin code --------------------------

stop PmConnectionManager

iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

read -p "Press any key to stop tether"

start PmConnectionManager

#---------------- end code --------------------------
Now there is no need for ctrl+c or additional commands... just connect over the putty or ssh session with ssh tunneling and run tether.sh!

BTW - I was running pandora the entire time I had tether.sh running with this new code and never dropped a packet...
Reply
Member: jhoff80
at: 05:55 AM 06/24/2009
Originally Posted by dsackr:
Great find! Now we can clean up the code of tether.sh a bit to automatically stop the PmConnectionManager service and restart it when we are done - and we can completely remove the while loop:



Now there is no need for ctrl+c or additional commands... just connect over the putty or ssh session with ssh tunneling and run tether.sh!

BTW - I was running pandora the entire time I had tether.sh running with this new code and never dropped a packet...
Have you tested only with Pandora running in the background though, or without anything else running on the Pre as well?

The reason I ask is because it died after 30 seconds for me (though it might've been that it lost the Bluetooth connection because Putty became unresponsive as well) so I was wondering if you need a constant data stream on the Pre to keep it active.
Reply
Member: muchtall
at: 09:30 AM 06/24/2009
Originally Posted by dsackr:
#---------------- begin code --------------------------

stop PmConnectionManager

iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

read -p "Press any key to stop tether"

start PmConnectionManager

#---------------- end code --------------------------
Actually you still need to turn on ip_forward after turning off PmConnectionManager:

Originally Posted by :
#---------------- begin code --------------------------

stop PmConnectionManager

echo 1 > /proc/sys/net/ipv4/ip_forward

iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

read -p "Press any key to stop tether"

start PmConnectionManager

#---------------- end code --------------------------

Reply
Member: lcars123
at: 10:51 AM 06/24/2009
Originally Posted by jack87:
you have to do the steps listed above while being logged in via ssh

but before your run then tether.sh file type 'stop PmConnectionManager' then when you are done tethering in the putty screen hit Ctrl+C then type 'start PmConnectionManager'
Yep, this was it. It's working great now. Thanks, much faster than bluetooth and no dropping the connection.
Reply
Member: Grubish
at: 11:24 AM 06/24/2009
What are the chances of placing this code into an IPK so we can install it as an email link application? I am really wanting the tethering but cant Root my device for lack of knowledge.
Reply
Member: jack87
at: 11:44 AM 06/24/2009
Sweet! I am glad we got this going. Very nice. Now I'm no expert at writing code but I have this crazy idea of making a switch on the pre to turn that script on and off. Is there anyone that can take a look at the 'my flashlight' thread and check put pregame's flash light code and make an app like that for this code?... After that's done and released mayve work on turning it to an ipk for all to enjoy..


I would go forth on doing this except I do not even know where to start.
Reply
Member: jack87
at: 12:13 PM 06/24/2009
Originally Posted by emkman:
Sorry I took so long.
pre dev wiki: USBnet networking setup
Still don't have OS X 10.5 working yet, or DNS resolution on windows. But SSH works fine. I assume OpenBGP's suggestion works fine as well. Jack87, if you can let me know if the the usb0 interface shows up in 10.4, that would be great. Thanks guys.
where did you disappear to.. did you get my reply about mac osx 10.4? have you been fallowing what ive been doing on this thread? any ideas with the info to make something awesome?
Reply
Member: jack87
at: 12:32 PM 06/24/2009
Originally Posted by muchtall:
Actually you still need to turn on ip_forward after turning off PmConnectionManager:
My speed from home changed my tether.sh file to muchtall code although i changed any key to enter since any key didnt work good job dsacker and muchtall




Reply
Member: mykael
at: 02:27 PM 06/24/2009
That was nice, after USB Tethering the speeds have drastically increased, thanks again. Just wish BT tethering would stick, i loose bluetooth connection periodically...

I'm getting 1.18 mb/s down and .20 mb/s up.
Reply
Member: ms2474
at: 02:51 PM 06/24/2009
Orem, Utah is good to see. I live there so its good to speeds like that.
-I'm working on the bluetooth problem (the bluetooth loses connection periodically)
Reply
Member: jack87
at: 02:57 PM 06/24/2009
Originally Posted by ms2474:
Orem, Utah is good to see. I live there so its good to speeds like that.
-I'm working on the bluetooth problem (the bluetooth loses connection periodically)
I live in salt lake but when you do the speed test i,m not actually checking from salt lake to orem the internet connection could be coming from anywhere in the US i believe its more from the east cost so it will actually react faster to servers based out of the east coast.
Reply
Member: jack87
at: 03:33 PM 06/24/2009
has anyone tried using google maps after applying this mod? mine doesnt seem to want to load right now and i dont know if its because of something from this mod or not.

Update:
I reset my pre and it started working now..
Reply
Member: aonic
at: 03:46 PM 06/24/2009
Originally Posted by jack87:
Sweet! I am glad we got this going. Very nice. Now I'm no expert at writing code but I have this crazy idea of making a switch on the pre to turn that script on and off. Is there anyone that can take a look at the 'my flashlight' thread and check put pregame's flash light code and make an app like that for this code?... After that's done and released mayve work on turning it to an ipk for all to enjoy..


I would go forth on doing this except I do not even know where to start.
I can do this, except I havent really been following this thread or the methods in this thread too closely. Do you want to work with me on this?

My AIM is in my profile.
Reply
Member: peazley
at: 03:54 PM 06/24/2009
k, so I'm new to this whole pre thing, just rooted and modded pretty much everything in the wiki, had some troubles, figured everything out and have a pretty good understanding of the file system now... The last thing I need is tethering, I was on the Sero plan before tethering, now I'm paying double and would like to have tethering, problem is I'm on OS X 10.5, for some reason the BT connection won't work, passkey from mac never pops up on pre, pre and mac see each other, just do not connect. Vista connects fine to my pre... What about USB? that would be fine with me, I always found I get faster speeds tethering with other phones with USB vs BT. What exactly are the steps to making this work, I've read all seven pages, and I see whats going on, but I really don't want to be inputting code unless its exactly what I need. I get confused with the discussion going back and forth between USB and BT. Basically what do I need to do to make a USB tether work, starting from scratch (after rooting of course)
Reply
Member: Wonder420
at: 03:54 PM 06/24/2009
So, I have a complete WiFi tether working --- it involves setting up Ad-Hoc mode, and then running the IPTables thing.

Is there a way to turn on the DHCP server for the WiFi Ad-Hoc like we can do for the USB Networking?
Reply
Member: mu7efcer
at: 04:04 PM 06/24/2009
Originally Posted by mu7efcer:
Thanks for this. But just FYI, this does not appear to work in Vista x32. Vista won't install the driver.
Ok. After some experimentation, I was able to get usbnet working on 32bit Vista Home Premium. I followed the instructions here:

predev.wikidot.com/usbnet-setup

But I couldn't install the usbnet driver provided on that page. But I was able to find a driver builtin to Vista that appears to work. Here's what I did:
  1. On Pre: usbnet enable
  2. Reboot Pre
  3. Plug in Pre to USB on Vista
  4. In wizard that comes up asking for driver software, I chose ignore.
  5. Then I went into the device manager, by right clicking on "My Computer" and selecting "Manage", then clicking on "Device Manager"
  6. There was a device called "USB Ethernet Gadget". I right clicked on it and selected "Update Driver Software..."
  7. In the wizard that came up, I clicked "Brows my computer for driver software"
  8. In the next page, I clicked "Let me pick from a list of deice drivers on my computer"
  9. It asked me to pick a type of hardware. I chose "Network Adapter"
  10. Under "Manufacturer", I chose "Microsoft Corporation". (Note: this is not the same as "Microsoft")
  11. In "Network Adapter", I chose "Remote NDIS based Internet Sharing Device.
  12. Then I clicked Next.

Once that finished, I had to manually enable and configure the RNDIS adapter that showed up on the device. I haven't got it working with dnsmasq yet. But I'm able to ssh into my pre over usb. A significant step up from doing it over Bluetooth.
Reply
Member: mu7efcer
at: 04:18 PM 06/24/2009
And holy mackeral! USB is a metric ton faster than bluetooth.

Speedtest just showed 2.09Mb/s download and 0.28Mb/s upload.

Under bluetooth this was more like 0.48Mb/s down & 0.28Mb/s up.
Reply
Member: compnetbobby
at: 04:46 PM 06/24/2009
Originally Posted by mu7efcer:
Ok. After some experimentation, I was able to get usbnet working on 32bit Vista Home Premium. I followed the instructions here:

predev.wikidot.com/usbnet-setup

But I couldn't install the usbnet driver provided on that page. But I was able to find a driver builtin to Vista that appears to work. Here's what I did:
  1. On Pre: usbnet enable
  2. Reboot Pre
  3. Plug in Pre to USB on Vista
  4. In wizard that comes up asking for driver software, I chose ignore.
  5. Then I went into the device manager, by right clicking on "My Computer" and selecting "Manage", then clicking on "Device Manager"
  6. There was a device called "USB Ethernet Gadget". I right clicked on it and selected "Update Driver Software..."
  7. In the wizard that came up, I clicked "Brows my computer for driver software"
  8. In the next page, I clicked "Let me pick from a list of deice drivers on my computer"
  9. It asked me to pick a type of hardware. I chose "Network Adapter"
  10. Under "Manufacturer", I chose "Microsoft Corporation". (Note: this is not the same as "Microsoft")
  11. In "Network Adapter", I chose "Remote NDIS based Internet Sharing Device.
  12. Then I clicked Next.

Once that finished, I had to manually enable and configure the RNDIS adapter that showed up on the device. I haven't got it working with dnsmasq yet. But I'm able to ssh into my pre over usb. A significant step up from doing it over Bluetooth.
Dont see any USB Ethernet Gadget, it installed a palm pre, what you think?
Reply
Member: Narfler
at: 07:03 PM 06/24/2009
Installed SP3 and usbnet works now.
Reply
Member: emkman
at: 08:11 PM 06/24/2009
Originally Posted by jack87:
where did you disappear to.. did you get my reply about mac osx 10.4? have you been fallowing what ive been doing on this thread? any ideas with the info to make something awesome?
Sorry, I am very busy outside of my Pre world between work and friends. You have done a great job investigating and developing the solution. Thanks to everyone for the updated script as well! The only thing I was gonna ask about OS X 10.4 is for you to run 'ifconfig' from the terminal and see if the interface shows up there. Honestly, I am not suprised if it it doesn't work, because the Pre uses a custom 'g_composite' module, as opposed to the vanilla 'g_ether' one. The source code for the BUG Mac usbnet driver is available on their site, but I doubt I can figure out the modifications needed. Anyone ever write mac drivers?
Reply
First ... 2 3 4 5 6 7 8 9 10 11 12 17  ... Last
webOS Nation Forums > webOS apps and software > webOS development > Possible tether work-around