Send NMEA to a virtual port

  • Thread starter Thread starter Fabrizio Di Santo
  • Start date Start date
F

Fabrizio Di Santo

Hi, i need to send a string NMEA to TOMTOM, but i dont know how to do it.

I have the string NMEA and i only need to send it.

Can i use the comnpact framework to do it? Have you got any samples to show
me.

Bye Fabrizio
 
If you are using the TomTom SDK, there are a couple of APIs you can use to
pass raw NMEA data into the TomTom GPS driver, you also need to change the
setting in the TomTom GPS settings applet to choose driver rather than a
physical port.

Peter
 
Hi Fabrizio,

to send GPS Sentences to the TomTom Navigator the following screnario:
a.) Attach to the TomTom GPS Engine (start of app)
b.) sen sentences (repeated while you run your app)
c.) detach from the TomTom GPS engine

To solve those 3 steps you have to
a.) load a CPL Module
b.) retrieve the adress the 3 funtions (attach, detach, copydata) in there
c.) call these functions via the adress from step b.)
d.) for CopyGPSData - convert the NMEA string to MBCharacters (wcstombs)

On the users perspective Peter Foot already told the thing about choosing
the "GPS Port" in the navigator.

As Peter mentioned you have to have the TomTom SDK to achive this.
Interesting - you don't really call anything from the SDK - but
a.) you need it for licensing
b.) there is the precise documentation of the CPL and the functions

By the way - you can download the TomTom SDK Documentation from TomTom
http://www.tomtom.com/support/ce/downloads/ttnavsdk3_manual.pdf (on the end
of the file - but they only show the functions - and where to find a CPL
loading example)
or (I think) even a better version of it from our TTNCF site
http://ttncf.pp-p.com (you will find a link under "Downloads")

However - it is not so simple to to this things in CF - but it can be done.
A last hint - since we had a lot of support calls from TTNCF customers for
that:
Be sure to include the <CR><LF> at the end of each NMEA sentence - the
navigator triggers for it :-)

Regards

Manfred
 
Thank you very much, Manfred

I'll try to do what you say. Can i contac you if i need your help?

Fabrizio
 
Back
Top