| Versions |
 |
|
| Author |
Topic  |
|
TroNik
362 Posts |
Posted - 12 févr. 2009 : 23:27:01
|
Here you can find some small useful GPS applications I have developed. http://rapidshare.com/files/305851337/GPS_Apps_TroNik_v6.zip Package includes:
- GPSTimeSync automatically synchronizes system date and time to the GPS. It supports both NMEA and SiRF protocol.
- GPSSwitchToNMEA switches the GPS protocol to NMEA.
- GPSSwitchToSiRF switches the GPS protocol to SiRF.
- GPSStatNavOn enables Static Navigation.
- GPSStatNavOff disables Static Navigation.
All of the above apps either take command line parameters or read them from GPS.ini. If the ini file is missing or its parameters are empty, the apps automatically detect the GPS port and baudrate and save the parameters in the ini for later use. Error messages have been intentionally removed so that the apps can be used in scripts. If you want to see whether there is anything going wrong, run the _Debug version of the apps. |
http://iphonetoday.googlecode.com/ |
Edited by - TroNik on 13 nov. 2009 07:47:48
|
|
|
Ads
|
|
|
Supremo
USA
2030 Posts |
Posted - 13 févr. 2009 : 04:39:44
|
Does use of the TimeSync file have any impact on battery life, or is it simply a "one time" read of the GPS parameters? One reason "sleep" mode saves battery life (other than turning off the display) is that it also disconnects the GPS.
More general question- when a map application (pick whichever ones you know about...) turns on, does it read the system time then wait until GPS lock to get the "real" time? It seems like this would be a simple thing to do, but I'm not sure how many programs do it. |
Moderator ... MIO, AIO Forums Mio C310x,C520, Moov 300, Navigon 2100, Rightway GPS (various) "Give a man a fish and he eats for a day- Teach a man to fish and he eats for life" |
 |
|
|
damcool
9 Posts |
Posted - 13 févr. 2009 : 04:47:03
|
Hi, Tronik
That's nice work, I've updated the script for GPSTimeSync.mscr to call your soft to set the time. Works great! I've updated the script by StormyKnight. Please check out the description of the script and try it. Thanks for the great work that has been done by Tronik/StormyKnight/Osprey. Have fun of it.
Updated Script www.mydigitallife.org.uk/attachment/20090213/GPSTimeSync.zip
|
Edited by - damcool on 13 févr. 2009 06:55:40 |
 |
|
|
TroNik
362 Posts |
Posted - 13 févr. 2009 : 04:58:43
|
Supremo, 1. No, it is just one time. 2. Most of the navigation apps that I have encountered do what you are saying.
damcool, The GPSTimeSync.mscr now needs only one line: Run(ProgramsFolder\"TroNik\GPSTimeSync.exe")
|
http://iphonetoday.googlecode.com/ |
 |
|
|
Osprey
USA
2764 Posts |
Posted - 13 févr. 2009 : 05:25:33
|
TroNik, Nice job. Detection worked on my device. What is "timeout" in GPS.ini used for after successful detection? I ask because it changes to "3" for me and 3ms seems to me like far too little time to mean anything. Is it meaningful or is it a bug? Just wondering, since it's a curious change... |
Mio C320 (US), R40 firmware, WinCE 5.0 Core, MioPocket 4.0 Release 68 Latest MioPocket: MioPocket 4.0 (Release 68) - Dec 6, 2010 & ReadMe |
Edited by - Osprey on 13 févr. 2009 05:42:05 |
 |
|
|
TroNik
362 Posts |
|
|
Osprey
USA
2764 Posts |
Posted - 13 févr. 2009 : 05:54:00
|
Both, but I just opened GPS.ini from the device, itself, and WordPad showed "timeout" as 30000. It shows as "3" only when I open it on my Windows computer. I suspected truncation of the file before, too, but, now, it would appear to be ActiveSync's fault (EDIT: yep, no problem in Mass Storage mode), rather than your utility's fault. Anyways, obviously, it's nothing for you to be concerned about.
Another question: Do you think that, with your new utility, it would be safe to finally enable timesynching by default? It seems to me that, if we use a Run (instead of RunWait) command with the utility (near the start of installation, like you suggested), there would be no worry about detection failing and holding up installation, since installation wouldn't be prevented from reseting the device at the end of installation. The usual objections to enabling time synching by default seem to me to have been solved by you. What do you think? |
Mio C320 (US), R40 firmware, WinCE 5.0 Core, MioPocket 4.0 Release 68 Latest MioPocket: MioPocket 4.0 (Release 68) - Dec 6, 2010 & ReadMe |
Edited by - Osprey on 13 févr. 2009 06:10:35 |
 |
|
|
ste
712 Posts |
Posted - 13 févr. 2009 : 06:41:06
|
Osprey, TroNik,
there is a soft reset upon successfull installation. Is there any chance that time sync under Run (instead of RunWait) does not complete by that time? |
Mio C520 R48.3.9937.1026 MioPocket 4.0 SD Release 68 |
Edited by - ste on 13 févr. 2009 06:41:38 |
 |
|
|
damcool
9 Posts |
Posted - 13 févr. 2009 : 06:50:27
|
TroNik, Yes, it looks like only one line is ok. but we need some code for setup the com port somehow. Like Osprey said, the gps port scanning may mass up the activesync in some devices. My code only completed some major work of gpstimesync based on your soft. Needs more adjustment for checking or setting timezone and com port. But right now, it's enough for my mio c220. It's done here for me.
Osprey,
I think if you wanna run it in silent mode in installation, you just need seperate the part of code for waiting gps lock in another script, which returns the values of gps locking start time stamp and the time stamp when gps locking finished, of cause the status of gps locking success or not should be returned also. Just put it in run statement no wait, and when the other works of installation has been done. Check if the process is over or not, if it's done, check the return values, and do the procedures according to the return values. There maybe some time should be added, the added time value is the value of now timestamp minus gps locking finished time stamp. Otherwise, set the time according to the time stamp before gps locking.
To Both
Maybe I'll spend some time on the script enhancement this weekend. I'll post the new script, once I have it done. |
Edited by - damcool on 13 févr. 2009 09:21:47 |
 |
|
|
Osprey
USA
2764 Posts |
Posted - 13 févr. 2009 : 21:03:12
|
damcool, I'm not sure that I understand exactly what you're suggesting, but it sounds a lot more complicated than it needs to be. All that we need to do is run TroNik's GPSTimeSync.exe in the installation script. It's already silent, it does the port detection all by itself and it saves the settings by itself. Therefore, merely running it is all that's necessary; it doesn't even need a script. |
Mio C320 (US), R40 firmware, WinCE 5.0 Core, MioPocket 4.0 Release 68 Latest MioPocket: MioPocket 4.0 (Release 68) - Dec 6, 2010 & ReadMe |
 |
|
|
Osprey
USA
2764 Posts |
Posted - 14 févr. 2009 : 01:02:31
|
To go with the new apps and MioPocket, I just created a modified (and greatly simplified) GPSTimeSync.mscr and GPSModeToggle.mscr. These require MioPocket and for TroNik's apps to be in MioAutoRun\Programs\TroNik\. http://www.megaupload.com/?d=1AD43ZZH |
Mio C320 (US), R40 firmware, WinCE 5.0 Core, MioPocket 4.0 Release 68 Latest MioPocket: MioPocket 4.0 (Release 68) - Dec 6, 2010 & ReadMe |
Edited by - Osprey on 14 févr. 2009 01:29:29 |
 |
|
|
TroNik
362 Posts |
Posted - 14 févr. 2009 : 10:01:04
|
Osprey,
Regarding your scripts: In GPSModeToggle.mscr you only need:ErrorLevel("off")
Include("Variables.mscr")
Call("Variables_Common")
mode = argv[1]
#If "NMEA" was passed as the parameter or if no parameter was passed, switch to NMEA, else switch to SiRF
If(ToLower(mode) eq "nmea" OR mode eq "")
RunWait(ProgramsFolder\"TroNik\GPSSwitchToNMEA.exe")
Else
RunWait(ProgramsFolder\"TroNik\GPSSwitchToSiRF.exe")
EndIfIn GPSTimeSync.mscr you basically only need: Run(ProgramsFolder\"TroNik\GPSTimeSync.exe") But it is good that the script tells the user what is happening (not that the user can truly cancel it though). A minor improvement that you could do is to change the part that "sleeps until the user cancels the window" to StatusType(ST_MESSAGE, TRUE).
Regarding enabling timesynching by default: You could run my app right in the beginning of the Unlock so that it can run in the background (I have specially designed GPSTimeSync.exe to run in low priority). The problems that I see are: 1. It might not have time to sync till the auto restart. After a hard reset most devices cold start the GPS chip. This means that the GPS clock resets and that it will need 30 or more seconds to synchronize itself to at least one satellite. 2. My app uses the current system's timezone. At installation this is most probably different than what the user has selected in MioPocket.
The best is probably to follow my second suggestion: Run GPSTimeSyncAuto.mscr at the windows startup and kill GPSTimeSync.exe at AppLauncher.exe in case someone tries to run a NavApp before the GPSTimeSync has finished.
|
http://iphonetoday.googlecode.com/ |
 |
|
|
ste
712 Posts |
Posted - 14 févr. 2009 : 10:33:47
|
TroNik,
thanks, at last it's become clear how the whole thing works. |
Mio C520 R48.3.9937.1026 MioPocket 4.0 SD Release 68 |
Edited by - ste on 14 févr. 2009 10:45:59 |
 |
|
|
Osprey
USA
2764 Posts |
Posted - 14 févr. 2009 : 23:32:19
|
TroNik, 1. You're right. I tested that, but only checked whether the time was being sync'ed, not whether GPS.ini was being updated. 2. Good call. I hadn't thought it possible to change the type of a status window once it's already open. 3. No, scripts aren't necessary, but there's value and polish in letting the user know what's going on. Also, the more that users understand what's going on and when things do and don't work, the fewer questions that they have later on, so it's as much a support addressment as a polish one ;) |
Mio C320 (US), R40 firmware, WinCE 5.0 Core, MioPocket 4.0 Release 68 Latest MioPocket: MioPocket 4.0 (Release 68) - Dec 6, 2010 & ReadMe |
Edited by - Osprey on 15 févr. 2009 00:16:01 |
 |
|
|
velorex3wheeler
USA
66 Posts |
Posted - 04 mars 2009 : 02:17:41
|
| Tronik - were would I place this file if used with MioPocket Lite v8.4 with Stopward skin? Your program worked very well with MioPocket 2.0 v41 but I could not get my Ambeon Wifi card to work with MioPocket 2.0 so gave up on it. Thanks. Chuck |
310x-310auto.exe-HPC media player-cePIMS-MyCalculator-SkinChanger V1.0.10- Skin Smartblue 7.2se- c320- MioPocket Lite v9.1 w/Ambeon Wifi card- TTS, Stopword v2 |
 |
|
|
Codo
5 Posts |
Posted - 20 avr. 2009 : 15:50:45
|
Tronik, Can you write another set of small programs that switch static navigation on and off within a script? |
 |
|
Topic  |
|
|
|
| This page was generated in 0,6 seconds. |
 |
|