NetTalk Central

Author Topic: NT Desktop showning position using GPS mouse  (Read 2601 times)

Poul Jensen

  • Full Member
  • ***
  • Posts: 186
    • View Profile
    • Email
NT Desktop showning position using GPS mouse
« on: January 08, 2020, 12:11:46 PM »
Hi,

I need to make an NT Desktop app that shows the users own position on the map in realtime using a GPS mouse to supply position.

Anybody done that that has any info to share on how to approach this job ?

This is to be used on a ferry to broadcast a map to TV-screens in the passenger area.

tia

/Poul

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11155
    • View Profile
Re: NT Desktop showning position using GPS mouse
« Reply #1 on: January 08, 2020, 11:37:33 PM »
The map part seems easy.

(big blue square with a map-icon in the middle? - but no, I jest...)

Seriously though, yeah, the map part is easy. The only unknown part as fa as I can see is actually getting the co-ordinates from the GPS device. (It's called a GPS Mouse, but as far as I can tell it's not really a mouse, just a GPS receiver.)

the GPS device will likely connect via a USB port, and I'm guessing there's then either some sort of DLL to talk to it, or perhaps you just talk to it directly over a COM port (using WinEvent). I've nver done that, but I'm guessing it's trivial to do as well.

cheers
Bruce

Poul Jensen

  • Full Member
  • ***
  • Posts: 186
    • View Profile
    • Email
Re: NT Desktop showning position using GPS mouse
« Reply #2 on: January 15, 2020, 10:33:08 PM »
Thanks - I guess I just have to get hold in a GPS mouse and start playing with it.

/Poul

DonRidley

  • Don Ridley
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 729
  • donaldridley2011@gmail.com
    • View Profile
    • Email
Re: NT Desktop showning position using GPS mouse
« Reply #3 on: January 16, 2020, 02:26:48 AM »
I'm doing this for a fleet a police vehicles.

The Clarion/NetTalk side is straight forward. 

The hardware/driver side.  Not always.

Hit me up if you run into any issues.

Don
"Eliminate the impossible, whatever remains, however unlikely, must be the truth."

NetTalk 12.55
Clarion 11

DonRidley

  • Don Ridley
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 729
  • donaldridley2011@gmail.com
    • View Profile
    • Email
Re: NT Desktop showning position using GPS mouse
« Reply #4 on: January 16, 2020, 06:02:50 AM »
I have created a demo app for you based on the one we use here at the PD.

It creates a queue of COM ports then checks each port for a valid NMEA GPS string.

If it finds a valid port, it starts reading the port and sets the GPS position.

App converts the NMEA coordinates to "standard" GPS coordinates that can be used in a Clarion app.

App can convert from Miles Per Hour or Meters Per Hour.

Code is a little rough around the edges but maybe it will help you.

Don
"Eliminate the impossible, whatever remains, however unlikely, must be the truth."

NetTalk 12.55
Clarion 11

Poul Jensen

  • Full Member
  • ***
  • Posts: 186
    • View Profile
    • Email
Re: NT Desktop showning position using GPS mouse
« Reply #5 on: January 16, 2020, 08:00:35 AM »
Thanks Don - this is much appreciated and will get me going :-)

/Poul