Network Sharing (RNDIS - USB), MTU & other settings - Networking

Could somebody post their RNDIS-specific (USB) network sharing settings?
Browsing on the handset itself poses no problem, but if I'm using the network through ICS, then I can't even get on google.com (though I can connect to simple services like jabber)
I tried fiddling with MaxSend and the MTU, to no avail.
Guest system is Linux.
My handset is an HTC Diamond (DIAM100).

I can't make anything out of your reply.
Nevermind.

I'm having exactly the same problem with ubuntu and my Touch HD. http gets a few kb of data, ssh gets a few lines and then they both timeout. however icmp/ping continues to work flawlessly through and after this.
the same phone in the same location works just fine when the same computer is running Windows. very annoying!

Like I mentioned, I guess this has something to do with the MTU, though I can't get a lock on the right one.
Unless it depends on something else.

oh aye, yeah, I meant to say that I'm just relying on NetworkManager doing The Right Thing(tm) just now. I'll boot into Windows later tonight and rip some of the settings out of it. I think it is possible to get Windows to report the MTU and other settings quite easily
Sent from a laptop... not the tiny Touch HD keyboard as per my previous post

You'll be glad to know it's fixable I'm posting this just now from a working RNDIS modem connected to Ubuntu. I blogged about it over here http://lodge.glasgownet.com/2009/05/31/rndis-modem-linux/
It is, however, essentially following the guidelines laid out in this forum post - http://ubuntuforums.org/showthread.php?t=935203
It would appear that the rndis code needs a small patch in order to ignore an error condition. Once the code is patched, it works great
Kyle

Related

Tether Windows Mobile 6 and Linux WITH USB NOT BT[SOLVED]

SOLVED: USE USB-RNDIS-LITE FROM SYNCE'S WEBSITE
Now that the wmodem app has been pushed out in favor of 'internet sharing', how can we do this? I notice that the wmodem app still exists on my phone ( ppc 6800) but when i tap to open it nothing happens.
I have been playing around, and getting desperate here, since I seem to be the only one interested. They figured out the iphone in a matter of a week or so!
I was thinking maybe it was possible using the iphone technique by setting up a proxy on the phone and doing it via wifi, but the siftware is missing.
The only hope that I have now is to maybe utilize the program 'synce' to accomplish this. Since I heard pdanet tethers through an activesync connection (which is what synce does), maybe it'd be a matter of a few 'route' and 'iptables' commands.
One other note, my phone is recognized as different things depending on what option I have set in 'connections>usb to pc' with 'advanced network functionality' set to off, the ipaq driver gets loaded and this is how i can use synce. With the box checked it shows up as an eethernet rndis device and cdc_ether and rndis_host modules are loaded. however, when i turn on the internet sharing app it gets recognized as a whole different UNKNOWN device. Im thinking a patch to the right mmodules might fix this, and i'm not using the module usb-rndis-lite because it never worked for me, even though i saw a patch for that module that does just that, make the system recognize it as an ethernet device.
Someone else chime in here, I cant be the only linux enthusiast with a cell phone out there. We dont ALL live in the parents basement
I HAD TO EDIT TO SPECIFY I NEED A USB SOLUTION AND NOT BLUETOOTH
watson540 said:
Now that the wmodem app has been pushed out in favor of 'internet sharing', how can we do this? I notice that the wmodem app still exists on my phone ( ppc 6800) but when i tap to open it nothing happens.
I have been playing around, and getting desperate here, since I seem to be the only one interested. They figured out the iphone in a matter of a week or so!
I was thinking maybe it was possible using the iphone technique by setting up a proxy on the phone and doing it via wifi, but the siftware is missing.
The only hope that I have now is to maybe utilize the program 'synce' to accomplish this. Since I heard pdanet tethers through an activesync connection (which is what synce does), maybe it'd be a matter of a few 'route' and 'iptables' commands.
One other note, my phone is recognized as different things depending on what option I have set in 'connections>usb to pc' with 'advanced network functionality' set to off, the ipaq driver gets loaded and this is how i can use synce. With the box checked it shows up as an eethernet rndis device and cdc_ether and rndis_host modules are loaded. however, when i turn on the internet sharing app it gets recognized as a whole different UNKNOWN device. Im thinking a patch to the right mmodules might fix this, and i'm not using the module usb-rndis-lite because it never worked for me, even though i saw a patch for that module that does just that, make the system recognize it as an ethernet device.
Someone else chime in here, I cant be the only linux enthusiast with a cell phone out there. We dont ALL live in the parents basement
Click to expand...
Click to collapse
To quote Sherlock Holmes...."Elementary Watson"...you do a search.
I'll ignore the fact you posted the same thing in multiple places. I'll also ignore the fact you apparently can't be bothered to do a search on "linux internet sharing" and want someone else to do it for you.
http://forum.xda-developers.com/showthread.php?t=319978&highlight=linux
http://forum.xda-developers.com/showthread.php?t=318255&highlight=linux+internet+sharing
http://forum.xda-developers.com/showthread.php?t=324632
sorry to say, i've been googling this for weeks and it has eluded me. but thanks for the links, even though you decided to flame me. I'll check them out and report back if they work or not.
P.S. - I dont deny I also posted thisin the titan forum, I posted it here because obviously it gets more views here and it's not just a titan question.
Now lemme go see if any of your links actually work.. )
FIRST EDIT: Maybe I should have specified I need to do this via USB for 1: bluetooth is slower, when tethering to evdo, and 2: i dont have bluetooth.
My bad for not specifying but maybe you can be less snappy to me now. I imagine all your links are for bluetooth, i only checked out the first on so far, but we'll see. Im gonna edit my first post to say USB
watson540 said:
sorry to say, i've been googling this for weeks and it has eluded me. but thanks for the links, even though you decided to flame me. I'll check them out and report back if they work or not.
P.S. - I dont deny I also posted thisin the titan forum, I posted it here because obviously it gets more views here and it's not just a titan question.
Now lemme go see if any of your links actually work.. )
FIRST EDIT: Maybe I should have specified I need to do this via USB for 1: bluetooth is slower, when tethering to evdo, and 2: i dont have bluetooth.
My bad for not specifying but maybe you can be less snappy to me now. I imagine all your links are for bluetooth, i only checked out the first on so far, but we'll see. Im gonna edit my first post to say USB
Click to expand...
Click to collapse
Good luck with that..to my knowledge the usb drivers to connect to wm6 under linux don't exist because the usb connection is totally different for usb internet sharing than it was for USB dun. WM6 has not been around long enough for many people under linux to fool with it. The only options I can think of off top of my head is to try to force ndiswrapper into using the drivers that come with activesync 4.5 (that's where you'll have to extract the windows drivers) or run vmware or virtualbox which can both pass usb devices to a vm and have the phone be used by XP inside a vm..then set the linux box to use the xp connection as a gateway..a kludgy hack at best.
While the theoretical top speeds of EVDO do outpace bluetooth none of the articles I've read indicated people in real life situations had been able to GET these speeds from their provider. If you can, more power to you. For my use of edge the $5 bluetooth dongle was alot easier.
I also had an idea to use ndiswrapper as well, wasnt real sure of the drivers to use. I was aware of the internet sharing app changing device id's and it not acting as a modem.
But, as you'll see in my first post, the phone is recognized as a usb rndis device. you can see this by looking at the tail of dmesg. It's just that when you start the internet sharing app, the phone changes its device id again. Also as I already stated, there is a patch for the usb-rndis-lite driver that comes with synce, that supposedly makes the box recognize it as an ethernet device while in internet sharing mode, so maybe its a matter of putting some device id's into cdc_ether.ko or corresponding module.
Another idea, would be to somehow get the wmodem app working on the phone itself, as I said it's still there in wm6, it just wont start. I have also seen in the phines registry plenty of reference to the phone acting as a modem so the framework is still there as well, ITs just a matter of getting the wmodem app going! Probably a registry key somewhere. In fact in the WMODEM registry key itself, the one you use to disable NAI, here is a key called WMODEMDUN, but every time i set it to one from the default zero it changes back. I hate to buy a bt adaptor for only this reason when i know there is an existing solution for usb out there, but yeah you're right..wm6 just hasnt been around long enough
So in short, with wm6 the phone emulates a usb rndis ethernet device instead of modem, it actually shows up as eth1 on my box, but when i start the internet sharing app the device id changes to an unknown one.
Also i wanted to add, I have definitely tether with xp and virtualbox easily, been doing that since i got the phone, so to anyine windering it's possible for sure. would be perfect if i could route that back to the host os.
watson540 said:
I also had an idea to use ndiswrapper as well, wasnt real sure of the drivers to use. I was aware of the internet sharing app changing device id's and it not acting as a modem.
But, as you'll see in my first post, the phone is recognized as a usb rndis device. you can see this by looking at the tail of dmesg. It's just that when you start the internet sharing app, the phone changes its device id again. Also as I already stated, there is a patch for the usb-rndis-lite driver that comes with synce, that supposedly makes the box recognize it as an ethernet device while in internet sharing mode, so maybe its a matter of putting some device id's into cdc_ether.ko or corresponding module.
Another idea, would be to somehow get the wmodem app working on the phone itself, as I said it's still there in wm6, it just wont start. I have also seen in the phines registry plenty of reference to the phone acting as a modem so the framework is still there as well, ITs just a matter of getting the wmodem app going! Probably a registry key somewhere. In fact in the WMODEM registry key itself, the one you use to disable NAI, here is a key called WMODEMDUN, but every time i set it to one from the default zero it changes back. I hate to buy a bt adaptor for only this reason when i know there is an existing solution for usb out there, but yeah you're right..wm6 just hasnt been around long enough
So in short, with wm6 the phone emulates a usb rndis ethernet device instead of modem, it actually shows up as eth1 on my box, but when i start the internet sharing app the device id changes to an unknown one.
Also i wanted to add, I have definitely tether with xp and virtualbox easily, been doing that since i got the phone, so to anyine windering it's possible for sure. would be perfect if i could route that back to the host os.
Click to expand...
Click to collapse
You can route it back to the host by running a proxy and/or bridging the interfaces (virtual box.org has instructions on that).
Certain versions of AKU 3.0 and up come with a wmodem app that still has usb and infrared (not bluetooth) in addition to the internet sharing. They may still use the old method and you may be able to use them as a model to get it working on yours. If I remember correctly the NBD wizard rom had both internet sharing and a modem link application like that.
I can tell you this..DON'T try to flash a rom onto your phone using virtualbox.
I might try to route it through virtualbox then, for now. I did try to google that as well but i couldnt think of any defining keywords.
For now, flashing is out of the question,,, because my phone is CID LOCKED? I'm not so sure of the terminology cause i just got into pda's. But I know atm I cant flash anything that isnt signed by htc. Its only a matter of time i'm sure/hope.
In the meantime, hopefully people that are too cheap to buy a bt adaptor such as myself might figure out how to run the wmodem app that exists already on the phone

Problems with PAM disconnecting as soon as it connects

Ok, so I've had issues with vista and pam before, but I have a new one, that I can't find anything about on google, on here, or anywhere else so far. I have a laptop with vista 64 home premium that I can PAM with mogul's ICS using my phone or my wife's (both are on the unlimited PAM plan.) My wife's laptop runs vista 32 home premium, and both of our phones have an identical issue when trying to tether with it, meaning its not an issue with the phones. When connecting to PAM on her laptop, 7/10 time, it will go through the steps, and when the vista networking gets done with identifying, pulling an IP from the phone ICS, and checking for connectivity (which vista does by pinging a server by domain name to determine that the DNS is working in addition to the network being open) it will be up for a split second, then disconnect. Sometimes it will disconnect after Identifying, but before making the connectivity check. The rest of the time, it connects and works fine. We have tested other cables, and recently I tested it under safe mode with networking, and made my first progress.
Under Safe mode with networking, it will connect perfectly every time. The hard part now, is I do not know what program or device conflict could be causing it to disconnect immediately after completing connection. Has anyone had this issue and found any other programs or hardware to interfere?
I haven't had this proble in specific but I did have a problem with using ICS in vista to let my PS3 go online via my laptop using the mogule as my internet connection, in one instant it actually gave me the blue screen of death. I have to say that with Ubuntu and Vista the best way to use the phone as modem is to run ICS (on the phone) and hit connect (I'm speaking about the usb method) the phone will say check cable or something and then hook the cable up. This way has eliminated the quick disconnect witch i experience in Ubuntu a few times.
Hope this help

RDT Remote desktop

hey there guys new one here just signed up not long a go i my sell got the htc hd2 from t-mobile seems pertty good but i got a little issue
Cannot connect with current connection settings to change your current connection settings tap settings
I’m running Windows xp home with a Dlink EBR 2310 Router.
I’ve forwarded port 3389
I have tried the local Ip-adress and my computer Ip-adress, and I have allow connection for remote desktop.
What am I doing wrong???
Any help would be greatly appreciated.
hum ok then i know same thing every forum you go to newbie thing well i used Google and the search bar
are you trying to connect while on the same network (i.e. you're at home on your phone where your computer, and router are)?
or are you trying to connect while at another wi-fi location? (away from the location where your computer is)?
at home please note remote desktop is new with me but however i found tutorials at pocketpc i know computers pretty well but this has me stumped....
what would it have to do with the net work? I should be able to connect to my pc even if i was down the street also my computer is not running off WiFi or a wireless router.
I'm no expert by any means, but I managed to connect to remote desktop by using this:
Computer: (use your computers IP address, not your routers)
User: (should be the same as your normal sign in)
Password: (self explanitory)
Domain: (Leave blank)
This worked for me, but I am on the same network as my computer.. I DON'T know how to log in from another wi-fi point.
Izod2010, let me know if this works (on your home network)
If somebody knows how to get remote desktop from an outside Wi-Fi point, please let me (us) know.
Cannot connect with current connection settings to change your current connection settings tap settings
so that's a no it didn't work with My IP or local IP
do you have the Wi-Fi on you phone turned on? I tried to connect without turning on my phones Wi-Fi the first time.
Once I turned it on.. it went without any issues.
nope still same message♠
should i use the router login?
check these out:
http://www.ehow.com/how_5232336_use-remote-desktop-mobile.html
step 2 might fix it.
or check out youtube...
http://www.youtube.com/watch?v=iCs4GQma7IQ
(I didn't mess with my router like he said.. It didn't have those setting available to me)
yea no matter what i do it dont work i guess its either phone side or my pc not sure whats wrong.
oh, btw. what operating system are you running? I think you have to have XP professional or newer to run RDT... and like the one website said (that I linked to).. I believe that you need to go into it (on your computer) and allow RDT accessability from outside computers.
other than that, I have no idea.
finally got this working...
upsetting that i can't turn it off/on.. but still bad ass regardless
ProjektFuze said:
upsetting that i can't turn it off/on..
Click to expand...
Click to collapse
What do you mean? What can't you turn on/off?
For Remote Desktop you must have XP Pro. XP Home and all other "Home" Windows do not come with the Remote Desktop Server. They do come with the Remote Desktop Client (RDC) so you can connect from the "Home" PC to some other "Pro" system. But you cannot use Remote Desktop Client (RDC) from anything to cennect to a "Home" Windows System. For a "Pro" system, right click on "My Computer", select "Properties" and then select the "Remote" tab to turn on Remote Desktop Server.
I realize this thread is old and technically solved...However I just experienced this same error message and after searching and not finding an answer wanted to post what solved mine for the next person like me.
STUPID...but I just flashed a new ROM and couldn't get signed into RDM--My Data Connection was turned off by default on the new ROM. I didn't realize this until after getting extremely frustrated.
Hope it helps someone in the future
Did you get this to work?
Hello,
could you ever get this to work out??
It was working fine on my touchpro 2, and I used it almost everyday with no problem.
ever since I got my HD2, it NEVER worked, and I tried every way possible. Every time I asked I was told to do the steps mentioned in your post replies and they told me you're a newbie maybe you can't figure it out, Ive been using windows mobile for nearly 10 years now, and I used remote desktop since it was first launched!! and it worked perfect every time.
There is a problem that I can't figure out, Im a computer software engineer and Ive been trying EVERYTHING possible. Something is missing, and wm experts and neglecting this, thinking that we're newbies and just can't figure it out.
Can someone tell me how i can get a small navigation window in remote desktop ? Watch this vide http://www.youtube.com/watch?v=QFiDZ_wBAtM&feature=channel PLS help
You need Pro version of windows XP-vista or Windows 7 to use Remote desktop
I have Windows 7 Ultimate... but i ask about small window in PPC (Touch Pro 2) which let me navigate after zoom in.

HOW to USB tether Vibrant with MacOS X (TMO)

I am coming from a g1 originally (back before cyanogen had 1000 followers), most recently a N1 (busted the screen last Friday, doh!). One thing I enjoyed is being able to tether to either of the old phones with wifitether. Lack of CM6 and a stable wifitether.apk for the vibrant leaves me unable to work while I am out and about without wifi access.
Did some reading around, and playing and this is what worked for me. I have a rooted vibrant (but this su shouldn't be needed), macbook pro, and os x 10.6.4.
*** Note: I had to have USB debugging enabled to get MacOS X to prompt setting up the vibrant as a USB modem. Not having this enabled didn't work.***
1. Connect your Vibrant to your Mac with the USB cable.
2. MacOS should prompt you saying that there is a device connected and not set up. If it does not, click on the Apple Menu, select system preferences. Select the Network pane.
3. The device should have been named as SAMSUNG_Android. Select it.
4. Start with the advanced options. Click the button that says 'Advanced.'
5. Under the Modem tab, use these options:
Model: Samsung​Model: GPRS (GSM/3G)​APN: epc.tmobile.com​CID: 1​
6. I left the DNS, WINS, and Proxies tabs alone
7. I read on a blackberry forum that under the PPP tab, 'TCP Compression' had to be checked.
8. Click 'OK' and return to the Network Pane.
9. I used these settings for the SAMSUNG_Android configuration.
Telephone Number: *99#​Account Name: username​Password: password​
*** Note: I remember from the pre-Android days that the username/password didn't matter. I believe the keys to it working on TMO are the number and APN, and most likely the Modem info. ***
This is what worked for me on Tmobile in Florida. Your mileage may vary. If you can get this to work with different settings, please share here.
Works like a charm! Thanks OP. This is being posted from my tethered Mac.
zoid_99 said:
Works like a charm! Thanks OP. This is being posted from my tethered Mac.
Click to expand...
Click to collapse
Oh yeah, and I'm not rooted.
will def have to check this out when I get home
I figured something like this would work, but I never really bothered past *99***#* GPRS/GPRS
Nice! Thanks! I was wondering if that would work when I saw the modem prompt pop up. I just didn't have time to chase down the settings. Works fine here.
I did some more reading on some old forums, and confirmed that the username and password are not important. They should work with empty fields.
It wouldn't work with me for blank U/P, but with 'username' and 'password', I am happily tethered.
Thanks, OP.
Jon C said:
It wouldn't work with me for blank U/P, but with 'username' and 'password', I am happily tethered.
Thanks, OP.
Click to expand...
Click to collapse
Good to know. Thanks for testing! The forums I was reading were old and for blackberries and winmo. Thought the settings wouldn't make a difference for the device.
This is the first time usb tethering actually works for me on any device. Even with usb tethering enabled in CM6 on my nexus one i could never get it to work, only wifi tethering did. Just did this, and i'm currently tethered. First time I plugged in my vibrant and that samsung_network popped up I had an idea I could tether but i never looked into it. thnx OP
Well, that tethering method is one that only works on PC's.
Anyone know if this works on Tiger 10.4? I dont seem to have the same options under the modem tab...i dont have samsung listed as a possible model, nor the gsm portion of the model or a place to put the apn?
Actually, if you set USB mode to Kies, tethering should work with Cradlepoint router or XP/Vista/7 with Kies Suite installed.
I tested it with Behold II (Samsung USB studio mode) and use Samsung Mobile Modem for setting up dial-up networking, and it works 100%.
No USB debugging required.
Running 10.6.4 and this works. Currently USB tethered and not rooted. Thanks OP!
Running 10.6.4
NOT rooted.
Got 1.6Mbit down and 1.2Mbit with 0 bars. (I know the bars aren't accurate but just saying that the signal isn't as strong as it could be) Faster than my cable upload.
Thanks OP!
Running 10.6.4.
Not working.
I get a message that says, "The communication device selected for your connection does not exist. Verify your settings and try reconnecting."
Question: In the network devices panes is the the 'SAMSUNG_Android' device connected with a green light before you hit the connect button. Mine is amber and the status is "Not Connected".
My other configured devices (Parallels Host adapter) are green and show connected statuses, even though I don't even have Parallels installed anymore.
Then again, I had all kinds of fits just making my sd cards mount on this mac. I think my phone is really defective. I still have one more day on my remorse period. Oh well.
How do I do this with a Windows PC? XP or Windows 7. Thanks!
cashless said:
Running 10.6.4.
Not working.
Click to expand...
Click to collapse
Strange.
Mine is amber until it connects. Once connected, you have a call timer in the status bar, and the notification orb turns green.
I followed the instructions perfectly, and it works without a hitch.
You're just using 'username' and 'password'?
Oh, if you need to purge your system of Parallels (I recommend this), use AppZapper. I remember Parallels messed with my system settings and caused a number of issues. Alternatively, you could try reinstalling the latest OSX firmware update, or trashing the USB preferences and instructions to generate a new file.
Jon C said:
Strange.
Mine is amber until it connects. Once connected, you have a call timer in the status bar, and the notification orb turns green.
I followed the instructions perfectly, and it works without a hitch.
You're just using 'username' and 'password'?
Oh, if you need to purge your system of Parallels (I recommend this), use AppZapper. I remember Parallels messed with my system settings and caused a number of issues. Alternatively, you could try reinstalling the latest OSX firmware update, or trashing the USB preferences and instructions to generate a new file.
Click to expand...
Click to collapse
Didn't need AppZapper, but getting rid of the Parallels connection fixed the problem!
Thanks!
This is awesome. Worked for me on 10.5.8 with settings given by OP. Thanks again!

GPS Tether via USB with simultaneously tethering Internet via Ad-hoc WiFi

I have searched several times, usually while on the road, so only now and then, but all total I must have searched for weeks worth of days trying to find an answer.
I found one.
What I wanted to do was take my T-Mobile G1's GPS receiver AND its Internet connection and forward both of these on to my laptop running Windows XP. I really would prefer a Linux solution, and I found one, but while in Linux my needs change slightly enough that the solution I found wasn't worth trying at that time. So I used Windows. As will most other people reading this, so.... >shrug<
I know it's not a very popular topic (not that it's non-popular; it's just that most people don't care enough to worry about it). However, that said, I know some poor pleb is out there trying to do exactly the same thing I found out how to do with exactly the same hardware and software, so I wanted to post how I did it.
MODS: I've not found anything detailing specifically this method on XDA and I did search before, but Google and I have been having communication problems in our relationship so I haven't been as proficient with results as usual. Therefore, if this has already been posted by someone else somewhere else, please forgive me, and feel free to pop a link in here, or merge, or whatever is appropriate. -- Thanks.
--------------------------------------------------
Required:
Rooted phone. which will require...
A computer with a USB port AND a WiFi device of some kind.
Install on the computer:
* the Android SDK
* com0com
* com2tcp - Which MIGHT be included in com0com, I don't remember.
* Something to use it with (Google Earth, for instance)
And on the phone, install the following:
* Android-Wifi-Tether (WiFi Tether for Root Users)
* ShareGPS <-- Just a link to a page with a QR code. The dev's page says to get it from Android Market.
That's a lot of stuff, but if you NEED this, it's worth it.
First and foremost, get ADB working. Beyond the scope of this post, go to Google for more info on doing this. Make sure, though, that your phone's debugging is enabled (Menu > Settings > Applications > Development).
Once ADB works, install the software above in the appropriate places. For com2tcp, put its executable file somewhere in the system path. I used c:\windows\system32 for it (and for ADB, come to think of it) but many people might balk at this, as though it's some holy ground on which lowly mortal files shalt not tread. Whatever. Find a hole it'll fit in and make sure it's in your system path.
After installing ALL of the above software, do this, in this order:
1) Connect the phone to the laptop via USB.
ON THE LAPTOP
2) Open com0com from your start menu.
3) Either remember these names for the com ports (at the top of the com0com window) OR name them more memorably. I'll use COM1 and COM2, but ONLY BECAUSE MY LAPTOP DOESN'T ALREADY HAVE THESE TWO PORTS. You can call them PORT1 and PORT2 if you want, or CHUNKY1 and CHEWY234 but I used COM1 and COM2. So, the rest of these instructions will be the way I did it -- you'll have to adjust them accordingly, and if you're not smart enough to figure out how to do so or what I mean by that, then I can't help you. After naming them, hit APPLY.
3b) On your first time running com0com, it'll want you to install new devices, twice. LET IT. Just let it do the automatic thing and you'll be fine.
4) Open the command prompt (Windowkey-R, "cmd", ENTER) (or Start, Programs, Accessories, Command Prompt).
5) In the command prompt, type in:
Code:
adb forward tcp:50000 tcp:50000
and hit enter. This creates the forwarding of the phone's internal communications to the USB (I think). Assuming there are no errors (if there are, you either did something wrong or you did something wrong (like getting ADB working)) then type in the following
Code:
com2tcp --telnet \\.\COM1 127.0.0.1 50000
and hit enter. This uses the above-created forward of comms and attaches it to the virtual COM port made with com0com in step 3. This time, assuming there are no errors, you should see some diagnostic output.
ON THE PHONE
6) Open ShareGPS.
6b) In ShareGPS, Menu > Settings, select Use USB and deselect Use Bluetooth. The Format is irrelevant to what we're doing, and Create NMEA is not needed for the HTC Dream hardware as the output already is in NMEA format AFAICT. Back out of the settings screen.
7) Tether your Internet connection. OPTIONAL: If your laptop already has Internet access somehow else, you can ignore this step.
8) Open and connect your mapping application on the laptop. YMMV, depends on your software, I can't help you here. In Google Earth, go to Tools, GPS, and click the REALTIME tab. Select NMEA, not Garmin. Select other options as appropriate (like auto follow). Hit start. You should, if it works, see diagnostic output in your command prompt window as well as a connection message on the phone in ShareGPS. In Google Earth, YMMV, but I at first saw no icon, and second I saw a little blue dot. Problem is, in GE, it quickly disconnects and reconnects. You might have better luck with GooPs Free.
If you use GooPs Free, it might not pop up in front. Look down in your system tray, and you'll find the GooPs icon. Right-click it, and select "Open GooPs". you'll be presented a small window. Click options. For the COM port, use one of the two that you made with com0com (if one doesn't work, try the other). Default rate worked for me, Hardware flow control. Autoconnect, Autoscan are set for me. The rest of the options should be pretty self-explanatory. If not, I can't help you (it's midnight here and I'm oh so tired right now) (but I REALLY wanted to get this posted to help anyone else). IF everything works, you'll have an obnoxiously large 3D arrowhead right where you are in Google Earth. If not, you'll have to troubleshoot the errors.
-----------------------------------------
Feel free to ask questions in reply, as I'll of course subscribe to this thread, but understand that I can't answer all questions as I barely understand enough to get this working myself.
ALSO, KNOW THIS: YOUR PHONE WILL BECOME LESS STABLE. I noticed a significant increase of unprompted reboots of my phone after futzing with these programs. Sometimes it lasted a few minutes, but usually it goes for hours. Further, they don't seem to be an issue until I start GPS tethering, so maybe it's not so bad.
You CANNOT use GPS Tether and USB Internet Tether at the same time. If you need to tether your phone's Internet, install WiFi Tether for Root Users (link above) and set it up accordingly. You should be able to launch WiFi tether at any time, but I would recommend doing it before forwarding the ADB GPS ports.
I do sincerely hope this helps someone, and if not, hopefully it will save time and not waste it.
Best Regards to All
Edits below:
WARNING: IF YOU PERFORM THIS HACK, AND THAT'S WHAT IT IS, YOU **WILL** SEE SUCH A HUGE DRAIN ON YOUR G1'S WIMPY LITTLE BATTERY THAT EVEN WITH IT PLUGGED IN AND "CHARGING" YOU WILL STILL HAVE A DRAIN UPWARD OF 35 PERCENT PER HOUR. ALSO, YOUR PHONE WILL GET HOT. NOT WARM. HOT. THINK ABOUT IT: YOU'RE CHARGING, YOU'RE RUNNING WIFI, AND YOU'RE RUNNING GPS ALL AT THE SAME TIME YOUR CUSTOM HACK ROM IS RUNNING YOUR CPU AT ITS MAXIMUM SPEED.
YOU HAVE BEEN WARNED.
How to in Linux
Hai
I am using an Ubuntu desktop...and might am interested in knowing hw to do it in Linux?
Regards
kumar
I wish I could help with that. While I use Linux too (Ubuntu, I think, on my laptop and Sabayon on my desktop), and used to use it as my primary OS, I do not know enough about it to do this. For starters, I've never gotten a decent working load of Google Earth on my laptop in Linux. When I was researching this, I found that 99% of what I found was based in Windows, and I was short on time so trying things in Linux was an unaffordable luxury. Everything takes me forever in Linux because I have to learn it first, and then start screwing with it.
For starters, though, you have to get ADB working, and then port forwarding the GPS to the phone's USB (done through ADB). From that point, I think Linux might *just* be able to handle getting the data visible to apps like Google Earth natively. I would start my search with "usb-to-telnet forwarding". Or "accessing USB with telnet", since really once you do the ADB forward, the phone is sending data direct to the USB port.
Edit: Of course, you'll also still need ShareGPS on the phone... I think...
I really don't know enough though to be able to provide the help I'm thinking you need/want, but hopefully this can at least get you started on the right track. If you figure it out, please post back to this thread...
Cheers,
CJ Chitwood
Linux Solutions???
I am going to dive into getting this working with Ubuntu on my EeePC. Right off the bat I'm thinking why not send the GPS to the netbook over bluetooth and use use the USB tether for the internet access? I'll see what my untrained brain can come up with.
Thanks for the post on this issue, I've been looking into this for 2 years.
Right, that should work if your Asus can receive GPS over bluetooth, and the USB tether for internet would save you a little on battery as you could kill the WiFi on both devices. My only problem was that my laptop did not have a bluetooth transceiver on it, so I was stuck doing it the bobo way. Story of my life, really
Glad it helped!
Thank you for this guide, I used some other applications though.
For my HD2 (running on Android 2.3.5) I used BlueNMEA, you can get it from the Android Market
I connected my phone with my laptop (running Win. 7), installed SDK and used ADB).
With ADB I used the commands from the BlueNMEA guide:
Code:
Using BlueNMEA over USB
-----------------------
Needs the Android SDK.
Connect your phone to a computer with the USB data cable. On the
computer, type "adb forward tcp:4352 tcp:4352". Now you can get NMEA
data by connecting to TCP 4352 on your computer.
For virtual ports I used HW VSP, quite simple to setup, I used COM9, typed 127.0.0.1 as address and the port 4352. It creates a service so this is a 1 time job.
At first I used GPSGate, but this didn't work with BlueNMEA.
GPSGate works with ShareGPS, same principle I guess.
For testing my GPS on my laptop I use OpenCPN, it shows my location perfectly.
The phone is also very stable, no problems at all.
The internet part doesn't concern me, because I have internet at my laptop .
I've been searching for a method to use my Android as a GPS mouse and I found this, thought I'd share my findings with you.
The fastest way to do this is via Bluetooth I think, but my laptop has no Bluetooth, ordered one @ Ebay for 5$, hope this saves me all the hassle.
The only thing I'm wondering, since I'm not familiar with Android SDK, is the ADB forwarding still alive after a reboot?
BTW, for people still searching for a Linux guide: http://sharedroid.jillybunch.com/user_linux.html
Thank you very much for that! Nicely informative.
AFAIK, the adb forward is gone after a phone reboot. However, I've never actually tested it. I've also not looked for a way to undo it...
cj chitwood said:
Thank you very much for that! Nicely informative.
AFAIK, the adb forward is gone after a phone reboot. However, I've never actually tested it. I've also not looked for a way to undo it...
Click to expand...
Click to collapse
I've fooled around a bit with the phone, every time I disconnect/connect I have to forward the port using ADB, ow well, I'll use Bluetooth as soon as I have my dongle.
The best part is this works, so I'm sure it will also work with Bluetooth.
I know for Windows Mobile it is possible to tether GPS through activesync,
which I used for my HD2 when it was stock Windows Mobile.
I use this when I'm at sea, I'm a sailor so it's nice to track my course.

Categories

Resources