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
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
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
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
http://www.sectron.cz/md/cz/pro/gps/download/gps_protocol.pdf
Command:
ASCII 129, or
Hex 81
ASKER
I have tried sending the following string exactly as it appears below - with no carriage returns or line feeds. Still no luck.
A0A20018810201010001050105 0100010001 0001000100 01000112C0 016AB0B3
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?
A0A20018810201010001050105
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
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.
Have you found a solution for the GPS initialization? If the question is open, please let us know so we can help you.
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I thought all GPS need to be configured only once. Will investigate...