Detect internal GPS device - Windows Mobile Development and Hacking General

Hello guys!
Can anyone help me to resolve next problem: I want to determine that internal GPS device is present in PPC or Smartphone. Can I do it programmatical or analizing regestry?
Regards.

This app called GPSTest does good job of searching the com ports and displaying the output from there.
http://www.smartphone.net/software_detail.asp?id=3170
Surur

Thanks, but I want solution for my app. So maybe someone know how it can be implemented. I searched all regestry, compare two devices with internal GPS and without but failed. Maybe I missed something.

surur said:
This app called GPSTest does good job of searching the com ports and displaying the output from there.
http://www.smartphone.net/software_detail.asp?id=3170
Surur
Click to expand...
Click to collapse
Besides, this App scanning all COM port to determine where GPS device, this is OK, but it couldn't say that it internal or external GPS.
Besides, it doesn't work on my MOTO Q9H.

here is a hint: GPS Test 1.04
Requirements: A bluetooth or built in GPS unit.

any ideas?

So you want to programmatically determine if a device has built-in GPS or not.
A quick and dirty way would be to take the model number and compare it to a list of known devices.
As I said, quick and dirty.
Surur

I think the only 'real' way to do it is scan the com ports like GPSTest and GPSViewer do. I mean if there was a better way, why doesn't existing software use it?

surur said:
Do you want to programmatically determine if a device has built-in GPS or not.
Click to expand...
Click to collapse
exactly.
surur said:
A quick and dirty way would be to take the model number and compare it to a list of known devices.
As I said, quick and dirty.
Surur
Click to expand...
Click to collapse
it's not a solution, sorry.

Enumerate the com ports on the device, opening each in turn and listen for $GPRMC messages?

...or for the device configured in the GPS control panel, look at the following registry key: HKEY_LOCAL_MACHINE\System\CurrentControlSet\GPS Intermediate Driver\Drivers\Control Panel Configured Device
or see http://www.geoframeworks.com/forum/Forum45-1.aspx

gingercat said:
Enumerate the com ports on the device, opening each in turn and listen for $GPRMC messages?
Click to expand...
Click to collapse
nice, but in this case I'll found com port on wich GPS device is present, but I don't know if this is Internal or External device.

gingercat said:
...or for the device configured in the GPS control panel, look at the following registry key: HKEY_LOCAL_MACHINE\System\CurrentControlSet\GPS Intermediate Driver\Drivers\Control Panel Configured Device
Click to expand...
Click to collapse
nice again ))) but some devices (for example MOTO Q9h) has empty regestry but Intermediate driver works and getting fixes.
and Smartphone doesn't have any Control Panel for GPS ((((

Chainfire said:
I think the only 'real' way to do it is scan the com ports like GPSTest and GPSViewer do. I mean if there was a better way, why doesn't existing software use it?
Click to expand...
Click to collapse
ok, I'll found COM port, but how can I determine is this internal device?

I don't think it possible to distinguish between the two reliably. What does it matter, after all? GPS is GPS

Once the COM port detected I think you should be able to know whether it's a BT connection or not (I think you can retrieve configured BT connections and know which COM ports are concerned). Then you should know if you have an internal GPS.

TheFox37 said:
Once the COM port detected I think you should be able to know whether it's a BT connection or not (I think you can retrieve configured BT connections and know which COM ports are concerned). Then you should know if you have an internal GPS.
Click to expand...
Click to collapse
unfortunately I have such device as MOTO Q9H, internal GPS device is configured throw bluetooth port ((( and I steel couldn't get clear algorithm for all devices.

unfortunately after analyzing big library as GeoFramework I understood that no universal way to detect internal GPS device ((( it's very sadly

Related

yes the old tom tom and serial port...

i have tt3 and a wired gps which i would normally disable the ir port but the settings have chaged and i cannot see the ir disable button any more?
i have 2003se the button is already UNchecked what else do i have to do?
com 1 does not exist and boy do i need it!
Are you saying that you have no "beams" section under settings/connections? If you cant see it how do you know it is disabled? If it is disabled the only other thing that I can think of that will take com 1 is an external keyboard driver, this would also need to be disabled, the external keyboard setting is usually under programs rather than settings.
First thing to do is a soft reset and then check the beam again, i dont now why but 2003 looses the boxes sometimes. if beam is disabled then the only other thing i have come across is If you have paired a bluetooth unit with your phone, this may be your other problem. some bluetooth units have serial port facilities and grap com 1. just delete the paring then repair but say no to the serial port and you should be ok.
thanks - cruisin-thru
it was the external keyboard driver i completely forgot i had that installed!
simple but it worked
i was in quedgeley this morning!
QUOTE:i was in quedgeley this morning.
You have my sympathy. :wink:

Bluetooth Navman 4400 not working..?

Hi all,
Just a quick question:
On my Hermes I have detected and setup my Bluetooth Navman 4400 via the Bluetooth Manager. Under Comm Ports it is showing as Com5. Authentication Pass Key Required is checked (Though I have tried both On & Off). In Settings/Connections/GPS I have set the Active port for Applications to 4 and the Hardware Port to 5 (Baud Rate 4800).
I have Tried OziExplorer and the Applet "GPS Info" and neither seem to get or instigate a session with the Navman device.. Now I have noticed that the Navman Continues to "Double Blink" which means it has not instigated a session with anything and thus is blissfully unaware that the Hermes should or is trying to communicate with it.
Funny thing is, the Navman unit works perfectly with my 2003SE Blue Angle PDA..
So am I doing something wrong or made and oversight?
Any Help would be appreciated..
Thankyou in advance..
outgoing com port
apologies if this was obvious to you when you set it up.
Make sure when you set up com port to associate with your navman, that you pick 'outgoing' and not 'incoming'. this was not obvious to me because I was thinking of the direction of data flow, not which side initiates the connection. I would re-pair and reconfigure the port a few times, but I suspect you already have. I use com9 with my iblue, perhaps com5 is already used by something else.
wwwes said:
apologies if this was obvious to you when you set it up.
Make sure when you set up com port to associate with your navman, that you pick 'outgoing' and not 'incoming'. this was not obvious to me because I was thinking of the direction of data flow, not which side initiates the connection. I would re-pair and reconfigure the port a few times, but I suspect you already have. I use com9 with my iblue, perhaps com5 is already used by something else.
Click to expand...
Click to collapse
Yeah had similar problems initially, but got that sorted (In & Out). I was told that The GPS Manager would handle the "in's" I just need to set the OUT (Hardware)..
If you try to use an allocated Port (say Com6) it comes up with an error indicating the port is not available.
My GPS Software (Both Oziexplorer & GPS Info) both show the port allocated by the GPS manager as "active" ..
All strange'ness to me..

pocket google earth

how do guys to activate the gps connection when using google earth in athena?
i tried many times and just can't open the gps.....
how to do the gps port setting?
thanks!
parkertseng said:
how do guys to activate the gps connection when using google earth in athena?
i tried many times and just can't open the gps.....
how to do the gps port setting?
thanks!
Click to expand...
Click to collapse
I was just playing with Google Maps myself. If I figure it out I'll post the answer. Meanwhile, anyone know how to get it to work?
http://www.htcwiki.com/page/Configure+Smartphone+for+Google+Mobile+Maps+with+Bluetooth+GPS
Found this info but don't have time to test it. If you becide to give it a try please post any notes and results.
I am looking for the same answer.
There appears to be lots of posts on the net around registy edits to configure bluetooth gps devices and also some on needing other gps software to "activate" the 'software' port first so that google maps can see this port.
I only have 3dtracking and gm on my ameo. 3dtracking only works if you configue it to the hardware port (port 5) .
So I'm looking for a tweak that allows gm to see either the hardware port or software port without assistance from anther program.
I am not concerned about having multiple gps software running and as the s/w port is proving tempremental seemingly I would be quite happy for a fix to work directly with port 5.
Any ideas ?
I gave up on google maps and used the Live! Search app instead.
This actualy seems better than google maps, and works directly to com5 so no need for messing around.
If you get GM working , let us all know though!
Same problem here - but use Live! Maps instead, works firsttime and very well..
Seems that the google maps app doesn't interrogate the WM5 GPS applet very well, and there's no menu options to force it. Maybe there's a regkey you can change, or some way to tell it where the GPS is, but until someone finds it, MS will continue to get my viewing...
Pyrofer said:
I gave up on google maps and used the Live! Search app instead.
This actualy seems better than google maps, and works directly to com5 so no need for messing around.
If you get GM working , let us all know though!
Click to expand...
Click to collapse
I also have given up on Google Maps. Installed Live Search and it seems to be better and worked directly with Com4 on my x7500. I noticed that when going at 100 miles per hour, the maps have problems loading fast enough though. ;-)
Live Search is nice and even though I kept Google Maps loaded on my phone, I'm using Live Search more when TomTom doesn't meet my need. I like the aerial views of Live Search and traffic map.
It seems to me the GPS w/ the Advantage does not want to play nicely with WM5 GPS applet. Even when I change the software port, nothing I have recognizes it through that port. Only ports 4 and 5 seem to work. Com port 5 seems to be the true hardware port.
Everyone seems to have had problems the first time around with Google Maps. Thats because it looks for a GPS signal through com port 2, and only com port 2 (can't be changed). Of course, this was never made public knowledge, so it took people a bit to figure out.
So until someone provides a software fix for either, we're out of luck.
GPS Possible Soution.
First, my control panel GPS settings are COM4 for software, COM5 for hardware and the Auto checked.
I use Pharos GPS / Ostia. If I load Ostia and use com5 the gsm lite blinks green then yellow then green then yellow. I think the yellow means the gps port is on???
Ostia get it's satellites then works as expected.
THEN...... I turn the Ostia GPS off. Change the port to COM4 and it works just fine, however the blinking changes from yellow then green to just green.
If I open Ostia with COM4 I can't get GPS to work. It won't even let me use the port. If I change it to COM5, it blinks green then yellow, gets the fix, then change to COM4, it blinks just green, then eveything is fine.
I don't think the Control Panel GPS Settings work unless the GPS is turned "on" or "activated" by using the hardware port first.
Is there someway to "activiate" it manually?
As far as google maps, COM2 is not forced. I used it on my Tytn with a bluetooth GPS on COM8 for the software port.
hammermedia said:
As far as google maps, COM2 is not forced. I used it on my Tytn with a bluetooth GPS on COM8 for the software port.
Click to expand...
Click to collapse
Interesting, google maps worked for on Com 8? I had a Hermes (8525) as well, but it only worked on software com port 2. I then read that most others were only able to get it to work on com 2 as well. Of course, you had to tweak the registry in order to even access the GPS panel. I did read about someone with an Ipaq w/ built in GPS who had it working on com port 6, but then again, perhaps his hardware port was com port 2.
Was com port 8 your hardware port or your software port, and was the other port set to, then? Just trying to get an idea for what worked and didn't.
On the Advantage, I'm not even sure if changing the software port to emulate another port for the signal in the GPS panel even does anything. So far, my guess would be no.
I have the same problem with all of you. The GPS of X7500 works fine for the programs "Destinator" and "GPS Tuner" but it doesn't work for "Google Maps" in any port and combination of ports. Any solution from Google or HTC?

WifiFoFum? GPS over bluetooth?

Has anyone managed to get WiFiFoFum to work (without breaking TomTom)?
I can get the WiFi bit of it to work, but not the GPS.
Is it possible to access GPS over bluetooth from a PC? How?
jrp said:
Has anyone managed to get WiFiFoFum to work (without breaking TomTom)?
I can get the WiFi bit of it to work, but not the GPS.
Is it possible to access GPS over bluetooth from a PC? How?
Click to expand...
Click to collapse
Yes, I run the latest WiFiFoFum on my Athena without a problem. It even picks up the coordinates from the GPS after I setup the Comm port.
Haven't tried it. You would have to setup your Athena to accept BlueTooth connections, then you may have to configure a serial port for your laptop to connect to. Give it a try and let us know how it works.
EDIT: How was TomTom "broken" by the way?
After I installed Wififofum Tomtom seemed unable to get a GPS fix until I removed it. What com port numbers did you use?
How do I link that Bluetooth com ports to the GPS com ports?
I have to run out for the moment but try this.
After you run WiFiFoFum, make sure it's really closed down before you try TomTom. Reinstall it, run it, then to make sure it's off go to Start, Settings, System, Memory and make sure it's not running under the Running Programs tab. WiFiFoFum may be locking down the Comm port denying access to TomTom. Also, make sure you're running WiFiFoFum2...the latest version.
As for setting the comm port, you'll have to research this. I've done it before but don't remember how and have never tried on my Athena. You may want to check the manual or google for the solution. Sorry I wasn't much help in this area.

The GPS problem thread

OK, plenty of tom tom, igo, naviman, laviman threads. This one is for general GPS issues...for example goolemaps and igo are moaning about lack of GPS, ive tried turning of bluetooth thinking that thats taken up some come ports etc but no joy.
I've reset and can get it working from time to time so not total failure
Thoughts, suggestions etc?
dogbreath said:
OK, plenty of tom tom, igo, naviman, laviman threads. This one is for general GPS issues...for example goolemaps and igo are moaning about lack of GPS, ive tried turning of bluetooth thinking that thats taken up some come ports etc but no joy.
I've reset and can get it working from time to time so not total failure
Thoughts, suggestions etc?
Click to expand...
Click to collapse
settings->GPS->software(first tab)->define a com port, your choice
->hardware (second tab)->leave this port at none
->advanced (third tab) -> CHECK, auto manage
in google maps, set software to let windows manage your gps automatically.
if this solves the problem, we can talk about igo, if not, it's something else
Thanks for taking the time to reply, all my settings are as you stated...after a reboot it works, even in the lounge watching tv
strange, works sometimes and then doesnt.
Noticed someone has the same on the igo thread
to me the gps Hardware works absolutely fine. I am shocked in seeing that MN7 reports 7 satellites inside the house, even if not stable, and that HDOP outside building is an amazing 1.1 meters with 9 satellites being received. quickgps is also great, BTW.
The only issue (see navigon thread) is that Navigon doesn't keep the gps port alive....but i found a workaround. Works perfectly with TomTom, but TomTom doesn't want to sell you TT7 so....byebye TomTom
I have observed some flakiness with GPS when you let programs just figure out the settings for themselves.
For example, TomTom would keep aquiring and then dropping the GPS fix every few seconds - when there should have been a good 11-satellite lock.
After I configured all apps to force them to use COM4 at 4800bps (as configured in Settings-> System -> "External GPS Settings"), I've had no more problems.
J
ILikeFish said:
I have observed some flakiness with GPS when you let programs just figure out the settings for themselves.
For example, TomTom would keep aquiring and then dropping the GPS fix every few seconds - when there should have been a good 11-satellite lock.
After I configured all apps to force them to use COM4 at 4800bps (as configured in Settings-> System -> "External GPS Settings"), I've had no more problems.
J
Click to expand...
Click to collapse
This SHOULD be the way to configure. what happening is:
by doing the settings->GPS, OS takes over the actual GPS hardware, and channel the data to a virtual software port (the port on the first tab, say port 4).
by default TomTom is set to "use built-in GPS" which is the actual hardware, so TomTom and Windows Mobile are fighting over control of the actual hardware, the only way to resolve is to time-slice (share) the hardware-> you get 1 second use of it and i get 1 second use of it. this is why if you set to use com4, it will actually work BETTER.
google maps and live search were developed closely with windows mobile, when you set to use "auto gps" in these two applications, these to software actualy passes the handle to windows mobile operating system, and let the OS auto configure. so even though on the surface those two apps are showing auto-manage (despite the similar naming from the settings->gps 3rd tab), they are actually letting the OS auto-manage, and behind the scene, the software is pointing to the software port (com 4) you have set in the settings->gps.
Can't change hardware port
I am able to change hardware port and baud rate on settings-external gps, but those do not get saved. When I open settings-external gps again, hardware port always goes back to none/4800. My IGO8 still seems to get a lock relatively quickly those
I've noticed that disabling the A-GPS solve the "repeated get fix / loose fix" issue. Also, disabling the GPS logging with Schaps' advanced utilities helps the GPS work smoother.
clandestino_usr said:
I've noticed that disabling the A-GPS solve the "repeated get fix / loose fix" issue. Also, disabling the GPS logging with Schaps' advanced utilities helps the GPS work smoother.
Click to expand...
Click to collapse
These are the standard settings on my german 1.14 ROM.
clandestino_usr said:
I've noticed that disabling the A-GPS solve the "repeated get fix / loose fix" issue. Also, disabling the GPS logging with Schaps' advanced utilities helps the GPS work smoother.
Click to expand...
Click to collapse
What tool do you use to disable A-GPS?
You can use Schaps Advanced Configuration Tool (http://www.touchxperience.com/).
The relevant settings are under the 'GPS' section.
You need to have .NET Compact Framework 3.5 installed for the app to work.
Hi
There is an application called GPSTest which I have used before and it works on the HD.
I have used this also in the past on a Tytn II that was no behaving right with TomTom (turned out it was TT misbehaving again!)
I have version 1.04 from http://www.chartcross.co.uk/products/WM00002_details.asp
This is freeware.
When I run it the result is COM4 & 9800 Baud.
Regards, D
changing GPS configuration
I guess the question I have is whether it is worth doing? Right now I have software port enabled to COM4, no hardware port, and A-GPS enabled. If I disable A-GPS, and change settings to hardware port (e.g. com4/9600), does my gps performance improve?
Thanks
I have a big problem with my GPS.... no GPS find on my device !
I have software port enabled to COM4, no hardware port 4800 bauds & GPS in auto mode by WM
Schaps Advanced Configuration Tool :
- assisted GPS : disabled
- log file : \windows\GPSLogFile.txt
- old log file : \windows\GPSLogFileBack
- Max. log file size : 0
GPSTest : GPS setting in auto, but impossible to find the GPS in my touch HD !
and the same if I try with TT7 or google map !
Please help me
dj_gigi said:
I have a big problem with my GPS.... no GPS find on my device !
I have software port enabled to COM4, no hardware port 4800 bauds & GPS in auto mode by WM
Schaps Advanced Configuration Tool :
- assisted GPS : disabled
- log file : \windows\GPSLogFile.txt
- old log file : \windows\GPSLogFileBack
- Max. log file size : 0
GPSTest : GPS setting in auto, but impossible to find the GPS in my touch HD !
and the same if I try with TT7 or google map !
Please help me
Click to expand...
Click to collapse
Just to make sure, are you trying it while outside with a clear view of a good chunk of the sky?
Petrov.
dj_gigi said:
I have a big problem with my GPS.... no GPS find on my device !
I have software port enabled to COM4, no hardware port 4800 bauds & GPS in auto mode by WM
Schaps Advanced Configuration Tool :
- assisted GPS : disabled
- log file : \windows\GPSLogFile.txt
- old log file : \windows\GPSLogFileBack
- Max. log file size : 0
GPSTest : GPS setting in auto, but impossible to find the GPS in my touch HD !
and the same if I try with TT7 or google map !
Please help me
Click to expand...
Click to collapse
I almost have the same problem. Just got my HD this morning and wanted to try GPS, but there is even no Settings=GPS icon. When I tried the Google Maps, it did not find any GPS hardware. This was not a problem of being in a clear sky, there is something wrong as no GPS is recognized to start with. Would anyone be able to point us to the right direction please.
Regards,
michael_r said:
I guess the question I have is whether it is worth doing? Right now I have software port enabled to COM4, no hardware port, and A-GPS enabled. If I disable A-GPS, and change settings to hardware port (e.g. com4/9600), does my gps performance improve?
Thanks
Click to expand...
Click to collapse
Anybody can help with this? Thansk
hmm, tried gps test had gps one minute and not the next
Solution , work-around?
I had the same problem, in 5 nav apps, gps hardware drops every few secs and come back again.
Tried reg edit (buffers, com ports, etc) portforwarders, standing on my head, nothing.
Solved by doing full back-up, hard reset. all was well. put back-up back, without reg offcourse, still worked fine.
just had to do some work because of lost reg settings, like settings for some progs..
Hope this helps.
Cheers.
zSpinner said:
I had the same problem, in 5 nav apps, gps hardware drops every few secs and come back again.
Tried reg edit (buffers, com ports, etc) portforwarders, standing on my head, nothing.
Solved by doing full back-up, hard reset. all was well. put back-up back, without reg offcourse, still worked fine.
just had to do some work because of lost reg settings, like settings for some progs..
Hope this helps.
Cheers.
Click to expand...
Click to collapse
Dude, this backup...you talking ROM re-install or backup of data like contacts and then hard reset?

Categories

Resources