Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Share Your Creations
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Share Your Creations Show your developed application to Basic4ppc community. Please include source code if possible.

GPSlog

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-03-2009, 06:31 AM
Senior Member
 
Join Date: Apr 2007
Location: Arlington, Washington USA
Posts: 180
Default GPSlog

I wrote this app because I always have my cell phone with me (Omnia 910) and often want a GPS snapshot of my current location. The locations log (Location, Latitude, Longitude, & Altitude) is saved as a CSV file.

This program uses the Microsoft intermediate GPS driver (gpsdriver.dll) and I am running the program under WM 6. It uses extensive code (and the compass image) found in the Open Source Programs section of the forum.

I have many thanks for, and much appreciation of the real brains that figured out and developed the libraries and code necessary to make GPS programming a reality on my device. What I did was pretty much cosmetic, but I would up with a program that works the way I want it to work.

The program is not functional on the desktop, of course, but you can run it there to view the about and help files and to see the layout of the main GPS page, the satellites page, and the Log page.

It is, of course, freeware and I hope others find it useful.
_____________
New version 11 Sept 2009, see post #4 for description.
Version 1.3 12 Dec 2009 - added support for Google Earth kml files.
Version 1.4 22 Dec 2009 - improved editing (including manually adding a location), and table sort.
(zip file includes all dll files for convenience).
Attached Files
File Type: zip GPSlog_V1.4.zip (239.1 KB, 172 views)

Last edited by dlfallen : 12-23-2009 at 04:31 AM. Reason: New Version
Reply With Quote
  #2 (permalink)  
Old 10-03-2009, 07:08 AM
Ariel_Z's Avatar
Basic4ppc Veteran
 
Join Date: May 2009
Posts: 246
Default

Looks nice... I have no Omnia, I hope it's working well
Reply With Quote
  #3 (permalink)  
Old 10-03-2009, 09:27 PM
Senior Member
 
Join Date: Apr 2007
Location: Arlington, Washington USA
Posts: 180
Default

Thanks. It doesn't require an Omnia. Although the Omnia is a WQVGA device I programmed it for QVGA. it should work on any device running WM 5 or greater, perhaps also on a PPC. Of course, I have no way of testing on other devices. I'd sure like to hear from others what it works on and whether it works with an external GPS.

-Dave
Reply With Quote
  #4 (permalink)  
Old 11-04-2009, 06:37 PM
Senior Member
 
Join Date: Apr 2007
Location: Arlington, Washington USA
Posts: 180
Default

I have added a few refinements to this GPS program.

(1) Picking any two locations calculates the distance between them (see screenshot).
(2) Confirm deletions from log table (I got tired of accidental erasures).
(3) SIP automatically appears/hides when appropriate.
(4) Position Dilution of Precision is displayed and interpreted (Ideal, Excellent, Good, Moderate, Fair, Poor).
(5) Several usability tweaks.
(6) Compiled with autoscale and emulator tested for QVGA, VGA, WQVGA, WVGA. Doesn't work with square (320 x 320) devices.

Feedback appreciated!

-Dave
Attached Images
File Type: jpg GPSDist.jpg (34.7 KB, 128 views)
Reply With Quote
  #5 (permalink)  
Old 12-12-2009, 11:39 PM
Senior Member
 
Join Date: Apr 2007
Location: Arlington, Washington USA
Posts: 180
Default

Version 1.3:

Added support for Google Earth kml file support. Now the stored GPS locations can be saved to a kml file which, when double clicked, will take you to Google Earth (if installed) with all of your stored locations marked.

Thanks to chanppc for the kml code!
Reply With Quote
  #6 (permalink)  
Old 12-23-2009, 04:33 AM
Senior Member
 
Join Date: Apr 2007
Location: Arlington, Washington USA
Posts: 180
Default

Version 1.4

I improved editing of log files.

Added ability to manually add a location.

Implemented table sort.
Reply With Quote
  #7 (permalink)  
Old 05-28-2010, 01:57 PM
Basic4ppc Veteran
 
Join Date: Jan 2009
Location: Bayern, Germany
Posts: 489
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hello david.

I have been playing with your App and also have workt on this some. Like adding some wav sound filles, for directions. But now I do have a slight problem.
The App uses gpsdriver.dll. HTC HD uses its own build it GPS. I would like to use an external Bluetooth GPS the Batt Power = 8 h.

How can I with some help maybe, set up a Comm Port for the App ?
This way I am able to continue to use and work on the Program. For external Bluetooth Gps I need to use Comm Port 8 on the HTC HD Phone. A test with a different App that uses Comm Port settings, works with the HTC HD.

Thank you for all HELP on this...

Best Regards.

William
Reply With Quote
  #8 (permalink)  
Old 05-29-2010, 10:23 PM
Basic4ppc Veteran
 
Join Date: Jan 2009
Location: Bayern, Germany
Posts: 489
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hi all.

I did enjoy Davids App GPSlog. Using it with the HTC HD Device (Internal GPS), it runs pretty darn good. I added a thing or two.
But, the internal GPS Device, (HTC HD) needs alot of Batt Power. I thougt it might be better and tried my extern Bluetooth Device. Hours use = 8. Now, after a few weeks I got the HTC HD working with a Com Port. Super ! Heck, its about time now.

Heres the Deal: I Pmd David asking if it would be possible to maybe help so GPSlog would run using GPSSerial.dll. (to add a
Com port).

I'm happy you are getting satisfaction using GPSlog. I also find it very handy.
I'm not sure I can help you as (1) I am not very knowledgeable in serial communications, and (2) I have no external GPS hence no way to debug or test any such changes. I can see that I would use the Serial2 library to add a Com port but I don't know what, if anything, I need to do to get the GPS to use this port. Of course, you are free to experiment yourself or seek help from other users that are more knowledgeable than I.
Good luck! If you still think I may help, please contact me again.
-David

I really like working with this and want to continue adding Sound.
Off and On I am working on real sound for Heading using a timer so we can set the Interval 5/10/15 minutes, for live sound. Also add a Sound On/Off option.

I myself as David also are not very knowledgeable at this sort of thing. Would it be possible Please, to maybe get a little
help on this one ? I think this would also serve as very good Learn Material, on how to make a GPS App using GPS Driver.dll
use Serial2.dll. to get Com Port Access.

Thank you.

seeking help please.

Update: i just about had this working with the Serial.dll ! darn Hummbug... i will keep working and trying.

Best Regards.

William

Last edited by wm.chatman : 06-01-2010 at 01:32 PM.
Reply With Quote
  #9 (permalink)  
Old 09-07-2010, 01:34 PM
Basic4ppc Veteran
 
Join Date: Jan 2009
Location: Bayern, Germany
Posts: 489
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hi

I am playing with the GPSLogSerial App that David Fallen had coded.
I had added the NMEA Modul into the Program, to view the NMEA raw data.
This saves the NMEA data.

Code:
Sub btnLog_Click
FileOpen(File, LogFileName, cWrite, ,cASCII)
FileWrite(File, TextBox1.Text)
FileClose(File)
End Sub

Now I like to few the NMEA data that had been saved with the Editor. I am unable to access the saved data on Device with the Editor. Data is saved in the main App.

Using the Editor to open File:
Sub mnuOpen_Click
ErrorLabel(mnuOpenErr)
CheckSaveChanges
OpenDialog1.Filter = "CSV Files|*.csv|Text Files|*.txt|All Files|*.*"
If OpenDialog1.Show <> cCancel Then
FileOpen(c1,OpenDialog1.File,cRead)
TextBox1.Text = FileReadToEnd(c1)
FileClose(c1)
LastFile = OpenDialog1.File
SaveChanges = False
End If
Return
mnuOpenErr:
Msgbox("Error opening file.","",cMsgboxOK,cMsgboxHand)
End Sub

A mistake of mine somewhere I think…

But I am not getting access to the file, how do I access the file, can someone please help me on this…

Thank you very much.

Best regards.

William
Attached Files
File Type: txt NMEAMainCode.txt (1.6 KB, 13 views)

Last edited by wm.chatman : 09-07-2010 at 01:50 PM.
Reply With Quote
  #10 (permalink)  
Old 09-07-2010, 01:48 PM
Basic4ppc Expert
 
Join Date: May 2008
Location: Berkshire, UK
Posts: 810
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by wm.chatman View Post
...But I am not getting access to the file, ...
As ever, it would be useful to be told what happens rather than what does not!

Mike.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On


All times are GMT. The time now is 12:20 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0