Link to home
Start Free TrialLog in
Avatar of mnewett
mnewett

asked on

GPS NMEA Input Command to trigger GPS unit

I have written a bespoke software application to monitor a Leadtek GPS 9532 mouse receiver.

Before I can use my software I must first initialise the GPS unit with Winfast Navigator (the software suppied with the GPS unit).

Once the GPS has been initialised with Winfast Navigator, I can then shut Winfast Navigator down and launch my own software.

I only need to load Winfast Navigator each time I power up the GPS unit.

Whilst most GPS units blindly output the NMEA data, it appears that this Leadtek unit requires an input message to be sent to it before it will output any data.

Can someone please identify what this input message is - its driving me mad.

Regards in advance

Mike
Avatar of Jaime Olivares
Jaime Olivares
Flag of Peru image

>I only need to load Winfast Navigator each time I power up the GPS unit.
I thought all GPS need to be configured only once. Will investigate...
Ok, I guess your GPS start allways in SIRF protocol, so you have to send a command to switch.
SIRF is a messy binary protocol, but have found a manual:
Command 129 will switch but you have to send extra control characters.
http://www.rayming.com/download/SiRF%20Binary%20Protocol.pdf
Also explained here:
http://www.sectron.cz/md/cz/pro/gps/download/gps_protocol.pdf

Command:
ASCII 129, or
Hex 81
Avatar of mnewett
mnewett

ASKER

I have tried sending the following string exactly as it appears below - with no carriage returns or line feeds. Still no luck.

A0A200188102010100010501050100010001000100010001000112C0016AB0B3

Should the message be send as a single string - or should it be split up and sent as 3 strings (start sequence, payload and end sequence)?

Should I be including carriage returns or line feeds?
are you sending an ASCII "string"? Or you are sending true binary data?

ASCII string will have 64 bytes long, binary string will have 32 bytes. The correct answer is the sencond one.
Also you must not include CR or LF at the end


Hi mnewett,

Have you found a solution for the GPS initialization? If the question is open, please let us know so we can help you.
Avatar of mnewett

ASKER

Thanks for the advice guys - but I've finally found the problem.

The flow control within my application was defaulting to ON instead of OFF - hence the need to run Winfast Navigator in order to initialise the flow control correctly first

I have now found a way of fixing the problem
ASKER CERTIFIED SOLUTION
Avatar of DarthMod
DarthMod
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial