Tether Windows Mobile 6 and Linux WITH USB NOT BT[SOLVED] - Windows Mobile Development and Hacking General

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

Related

AAAHHHHH this phone stinks!!!!!!!!

WHY DOSN'T Activesync work?????
I can put up with Activesync not working under VPC on my Mac but I CANNOT put up with it not Activesyncing with a brand new 2 month old IBM laptop running XP Pro and all the latest patches.
Is it the phone that is at fault or Microsoft or a combination?????
My old PDA2K Activesyncs fine on BOTH VPC and the IBM so why not this device?
Anyone PLEASE HELP ME.......
Robin
Are you using ActiveSync v.4.1?
If it is a Windows Mobile 5 device (Wizard, Universal) instead of a Windows Mobile 2003SE Device, you need a minimum version 4.1 of ActiveSync
Yup it is a Wizard and I am using AS 4.1.
I have tried Firewall on, off, VPN on, off.
I have de-installed and re-installed 4.1.
Still NOTHING.
The Laptop see's new hardware, says it has installed okay and then AS does NOTHING.!!!!!!!!
Robin
in my case it was the firewall
you sure both your windows and software firewall is off?
also check in network connections that your phone network connection is connected
what happens in activesync... errors? does it display its trying to sync ? just "it is not syncing" doesnt help
If the laptop sees the device as new hardware and not the actual device it means that you do not have active Synch 4.1 or that the installation was borked . because 4.1 includes the drivers for this phone to be recognized by windows.. so if you had 4.1 it would show your phone name and then it might not have worked , but not the way you are describing it now.
Also you might wanna put up a bit more objective title when posting something like this if you want psotive feedback instead of flamez...
very good point avocaz
totally missed the point that it does detect but possibly does not install which would be down the active sync 4.1 not being there
akash84 said:
in my case it was the firewall
you sure both your windows and software firewall is off?
also check in network connections that your phone network connection is connected
what happens in activesync... errors? does it display its trying to sync ? just "it is not syncing" doesnt help
Click to expand...
Click to collapse
1. Certainly I turned off the Windows Firewall, don't know about any other Firewall. HOWEVER the fact my PDA2K can connect surely rules out a Firewall problem?
2. Don't know how to do this? I am a Mac user and am using XP JUST to sync my phone.
3. Nothing happens in Activesync. I get the normal, bing bong chime. but the AS icon does not turn green or open.
If I manually open AS and tellit to cennect it cannot find an attached PDA.
On the other hand if I attach my PDA2K I get the bing bong, the icon turns green, AS opens fine.
Is that clearer?
Is there any more info you need?
Robin
akash84 said:
very good point avocaz
totally missed the point that it does detect but possibly does not install which would be down the active sync 4.1 not being there
Click to expand...
Click to collapse
But surely the fact that when I connect my PDA2K AS 4.1 opens and works indicates it IS there and working?
If I check its version it says 4.1?
AS 4.1 is the first instal of AS on this machine, never had an earlier version on it.
Sorry about the title but I guessed I would at least get some response with it. :lol:
I am pulling my hair out here and don't want to return the phone but without a computer connection it is totally useless to me.
Robin
Its not your desktop. Its the AS client on the device itself that causes these problems. Apparently, the next ROM Update is supposed to fix all AS issues. Just hold on till mid-Jan.
universaldoc said:
Its not your desktop. Its the AS client on the device itself that causes these problems. Apparently, the next ROM Update is supposed to fix all AS issues. Just hold on till mid-Jan.
Click to expand...
Click to collapse
Sounds reasonable HOWEVER if I cannot get the damn thing to connect to a PC I am never going to be able to laod the new rom to fix the problem it won't connect to a pc, so I won't be able to connect ot a PC ...........
I am losing it big time...
How would I install the update without a PC connection?
Robin
Use the wifi to download the rom ? Sorry your having problems but this phone definately doesnt stink. Havent put mine down since Christmas day .... the wife is definately not pleased. She keeps giving it daggers :lol:
Okay
My FIRST bit of success.
I found out my laptop has a IRD port and the phone HAS connected via this so it is most certainly a USB issue.
Now the question is can a rom update be done of IRD or does it need to be the USB connection?
Robin
PS WiFI download would not help as the rom needs to be loaded FROM a PC.
Just a thought, but are you connecting via a usb hub?
Best not to, and I find always using the same usb socket also helps...
Robster said:
WHY DOSN'T Activesync work?????
Click to expand...
Click to collapse
Had the same problem.
What helped me is: http://support.microsoft.com/default.aspx?scid=/support/pocketpc/tshoot/activesync/default.asp
Good luck,
Radek
DO NOT INSTALL ROM UPDATE VIA IR.
It should be done via USB ONLY. Thats one of the main instructions in the ROM update page that pops up on executing the RU file.
I had problems because of the ports. AS4.X needs a hand full of ports to communicate with the PPC, in my case TCP Port 990 was already in use.
B744 said:
Just a thought, but are you connecting via a usb hub?
Best not to, and I find always using the same usb socket also helps...
Click to expand...
Click to collapse
No, I am connecting dirtectly to the laptop.
Robin
S0NIC said:
I had problems because of the ports. AS4.X needs a hand full of ports to communicate with the PPC, in my case TCP Port 990 was already in use.
Click to expand...
Click to collapse
HOw do I check this, I am not very PC Literate.
I am much more used to a Mac where things normally 'just work' :?
I have just noticed a couple of things following some of the Microsoft trouble shooting guide.
If I have AS open on the KJAM it shows the spinning green button and that it is trying to connect, still nothing on the PC end.
HOWEVER what I did notice on the PC end in Device Manager is that a Windows mobile-based device appears under netowrk connectors.
So SOME KIND of connection IS happening.
Robin
PS Many thanks for being a sounding board for me and your helpful ideas, it is very much appreciated, I just wish I was making more progress.
Let me set the record straight.
This phone does NOT stink. The more I use it the more I like it.
Certainly it is a big improvement over my PDA2K in size and usability.
HOWEVER I still cannot get it to connect to my laptop and I am getting so frustrated cause its the last thing left for me before I really start to LIKE this phone..............
Any more ideas out there because I have tried everything I can think of with no luck at all except via IRDA.
Robin

Controlling PC over WiFi

Is there a program that allows you to use your Wizard to remotely control your PC over Wifi?
I remember my friend had one on his Universal that allowed him to use bluetooth to control his PC but I don't remember the name. Also, not sure if it was the phone's fault but the picture was slow to refresh. Unfortunately, he's now sold his Universal and said good riddance to anything affiliated with it...
There were a couple of programs that let you use your Wizard as a keyboard input device but do these also let you control mouse and let you see what's going on?
Yes, try this!
Kain Goan said:
Is there a program that allows you to use your Wizard to remotely control your PC over Wifi?
I remember my friend had one on his Universal that allowed him to use bluetooth to control his PC but I don't remember the name. Also, not sure if it was the phone's fault but the picture was slow to refresh. Unfortunately, he's now sold his Universal and said good riddance to anything affiliated with it...
There were a couple of programs that let you use your Wizard as a keyboard input device but do these also let you control mouse and let you see what's going on?
Click to expand...
Click to collapse
there is a terminal services client built in as well...
Thanks for the replies.
Yeah... the in built Terminal Services Client didn't work for me and I guessed that it was just the inbuilt stuff being useless.
Unfortunately the vncviewer doesn't seem to work either. I'm beginning to suspect that there's something wrong with my Wizard or my home WiFi setup in general.
Oh well, time to go fiddlin'
On my device it works perfectly. You can also run the program on your desktop pc to test it.
Can you ping your pocket pc from a desktop pc?
No, I can't ping my Wizard; I tried this first and nothing goes through.
I had thought that my router wasn't letting anything through but I can ping the other computer on my network just fine.
I did try the program but I can't connect to the other computer on my network. I only know the basic home networking stuff so it's probably something to do with my wireless router. Do the ports matter?
The ports don't matter because ping takes place far under the TCP/UDP layer. On my router (fritzbox 7050) there is an option where you must allow that wifi devices may communicate with each other in general. This is the only restriction I can think of if your other computers are hardwired.
However, I can ping my wizard just fine when he's connected to my router. Have you enabled DHCP? If so, try to (disable it and) manually assign an IP to the wizard.
My router (Belkin F5D7633) doesn't have any options to enable or disable communications.
I tried assigning the IP address manually and switching DHCP off and this has allowed pinging but I still can't use either the inbuilt terminal services or the vncviewer.
I think I'm going to give up trying to use my Wizard for this and just stick with a laptop...
Maybe this should be said, but I thought you surely know ....
In order to use the vncviewer program, there has to be a vncserver program running on some machine. try realvnc for example http://www.realvnc.com/.
Install this on a local desktop machine and then try that viewer again.
If you already did that, then sorry :wink:
:lol: Don't be sorry. Actually I already have the free verison of VNC running on all my machines and I have a license for Access Remote PC from a while ago to transfer files when my Windows XP stopped displaying some folders across the network.
I think that's where my problem is: either in my network or in my operating system. I do access my PC from my laptop but I just thought it'd be nice if I could do it from my phone too. Oh well... but thanks for the help though, you've been very thorough :lol:
no problem :wink: the last thing I would try in your case is to open up a general server on your desktop pc with a program like netcat. then grab a telnet application or the internetexplorer on ppc and try to connect there with that. worth a try at least...
How can i use this with macs? Is there another software available?

GENE - Internet access thru PC's Bluetooth Connection

I recently successful upgrade my GENE to WM 6.1 because i had many problems.
One of my problems is how to connect my GENE to my PC thru Bluetooth connection, my PC has WIFI connected to router at home.
i searched forums too much for accurate steps to do so, and i think it is a good idea to help all ppl here if i got a clear procedure to do so here.
Thanks in Advance.
I have no time to explain step-by-step here, but the first thing you have to do is make activesync works with bluetooth. When you are done, you could open PIE or opera and access the internet.
ramersonw said:
the first thing you have to do is make activesync works with bluetooth. When you are done, you could open PIE or opera and access the internet.
Click to expand...
Click to collapse
Any how, i appreciate your reply.
i'll try to google about this solution.
thanks a ton
Its very easy. I do it all the time.
Make sure BT is on on both PC and phone.
open activesync on phone and right softkey-> connect via bluetooth.
if they aren't paired you'll get the standard pairing screen etc.
now, when pairing make sure activesync is open on the desktop. And make sure activesync-> connection settings on the PC has 'allow connection to one of the following set to the correct COM port for BT (mine is COM12) Ideally, after doing this right, you should have 'activesync' appear as one of the services that your desktop can provide via BT.
Accept and repeat the first step
Note: If you get a dialog asking if serial connection should be made then accept it. (will come on PC)
once connected go to activesync on the PC. In options, select 'The internet' as the network the PC is connected to.
Just play around with the basic settings.
One thing to note is that you might have to configure the COM port on activesync in the desktop.
I set the COM ports up once long ago (purely by trying every combo there was) and forgot exactly how. I think it'll vary from PC to PC. However, I've been re-pairing a lot over and over again cause I've been trying out a lot of different ROMs... And I've not needed to change the COM port settings even once.
Basically, all you need is to connect to activesync via BT and you'll be able to use you's PC's connection on the phone.
This is for XP btw. Vista is mostly similar. I think its more straightforward though... most of the things are done automatically.
Hope it helped
Ya, follow charge1313's advice and if you dont get internet access even after this, download the attached registry file and double click it on your PC and reboot. This will enable the functionality, sometimes it gets disabled specially if you install Windows Vista Service Pack 2.
Have Fun!
krazy_about_technology said:
Ya, follow charge1313's advice and if you dont get internet access even after this, download the attached registry file and double click it on your PC and reboot. This will enable the functionality, sometimes it gets disabled specially if you install Windows Vista Service Pack 2.
Have Fun!
Click to expand...
Click to collapse
WAY OFF TOPIC
@krazy:
When did SP2 get released ? Whats the size?
Addicted2xda said:
WAY OFF TOPIC
@krazy:
When did SP2 get released ? Whats the size?
Click to expand...
Click to collapse
SP2 was released on 26 May to public. To get it, go here :
http://technet.microsoft.com/en-us/windows/dd262148.aspx
Size depends on the download you choose, for 32bit machines its 348 MB in size.
Installing it freshened up my 1 year old Vista installation a bit, it became a little speedier. To tell you about the changes, the only thing i have noticed myself is the change of bluetooth stack to version 2.1 of bluetooth standard. The whole interface of bluetooth, the dialog boxes etc are also changed to a bit leaner looking ones
Both ways working .............
hmmmmmmmmmmmm Krazy/charge world

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

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

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