Ublox NEO-6M-0-001 gps reciver commands

0 votes
I'm using ublox NEO-6M-0-001 gps reciver, I want commands which can be included in program to set update rate to 5hz,frequency rate to 5hz and set NMEA output that is RTG and VTG to output once every 1 position fix update, can anybody help me with the commands?
by Avinashanaik6 asked Mar 12
1,338 views
+1 vote
{ 0xB5,0x62,0x06,0x01,0x08,0x00,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0x23 }; // GGA
{ 0xB5,0x62,0x06,0x01,0x08,0x00,0xF0,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x2A }; // GLL
{ 0xB5,0x62,0x06,0x01,0x08,0x00,0xF0,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x31 }; // GSA
{ 0xB5,0x62,0x06,0x01,0x08,0x00,0xF0,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x38 }; // GSV
{ 0xB5,0x62,0x06,0x01,0x08,0x00,0xF0,0x04,0x00,0x01,0x00,0x00,0x00,0x00,0x04,0x44 }; // RMC
{ 0xB5,0x62,0x06,0x01,0x08,0x00,0xF0,0x05,0x00,0x05,0x00,0x00,0x00,0x00,0x09,0x5F }; // VTG
{ 0xB5,0x62,0x06,0x01,0x08,0x00,0xF0,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x05,0x4D }; // GRS
{ 0xB5,0x62,0x06,0x01,0x08,0x00,0xF0,0x07,0x00,0x00,0x00,0x00,0x00,0x00,0x06,0x54 }; // GST
{ 0xB5,0x62,0x06,0x01,0x08,0x00,0xF0,0x08,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0x5B }; // ZDA
{ 0xB5,0x62,0x06,0x01,0x08,0x00,0xF0,0x09,0x00,0x00,0x00,0x00,0x00,0x00,0x08,0x62 }; // GBS
{ 0xB5,0x62,0x06,0x01,0x08,0x00,0xF0,0x0A,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x69 }; // DTM
{ 0xB5,0x62,0x06,0x01,0x08,0x00,0xF0,0x0E,0x00,0x00,0x00,0x00,0x00,0x00,0x0D,0x85 }; // THS

$PUBX,40,GGA,0,0,0,0,0,0*5A
$PUBX,40,GLL,0,0,0,0,0,0*5C
$PUBX,40,GSA,0,0,0,0,0,0*4E
$PUBX,40,GSV,0,0,0,0,0,0*59
$PUBX,40,RMC,0,1,0,0,0,0*46
$PUBX,40,VTG,0,5,0,0,0,0*5B
$PUBX,40,GRS,0,0,0,0,0,0*5D
$PUBX,40,GST,0,0,0,0,0,0*5B
$PUBX,40,ZDA,0,0,0,0,0,0*44
$PUBX,40,GBS,0,0,0,0,0,0*4D
$PUBX,40,DTM,0,0,0,0,0,0*46
$PUBX,40,THS,0,0,0,0,0,0*54

 

by clive1 answered Mar 12
by Avinashanaik6 selected Mar 12
Flag
Best answer
Thank you Clive
How to send pubx command in python code, I have attached gps to my raspberry pi 3
How do you normally send stuff to a serial port? Open a COM port or TTY on Linux, and write to it like you would a file.

Pick a platform and language with which you have some mastery.

Use a terminal app? Pipe cat output to a TTY
+1 vote
Review protocol specs or pull hex data from uCenter.

Increase baud rate with UBX-CFG-PRT, enable/disable messages with UBX-CFG-MSG and change rate with UBX-CFG-RATE.
by clive1 answered Mar 12
Can you show me some example codes please
Better if u show me how to do it by passing $PUBX command
5 Hz (200ms ) rate
UBX-CFG-RATE
B5 62 06 08 06 00 C8 00 01 00 01 00 DE 6A

VTG (F0 05) at 1/5 navigation rate on UART1
UBX-CFG-MSG
B5 62 06 01 08 00 F0 05 00 05 00 00 00 00 09 5F

RTG?

You could use $PUBX,40 to configure the message ratios, and $PUBX,41 to change the baud rate, don't recall it providing an ability to increase the navigation rate.

Increasing the rate tends to be a hack if just done by itself. Better to understand time properly in your system,  when the measurement was made, and how it was moving. Consider using UBX-NAV-PVT and factor in time and motion.
There are many command string and code examples throughout the forum.
On all the forums I visit, the common response to the "write code for me" request is a polite re-referral to read the documentation and references to existing open source libraries such as RTKLIB and github.

My examples would be in Fortran.
Sorry it's RMC what's the hex code to get only RMC string from gps?
Well the strategy is actually to turn everything else off, so you enumerate through the 0xF0 class messages that aren't RMC and you turn them off.

This is the salient documentation for your part
https://www.u-blox.com/sites/default/files/products/documents/u-blox6_ReceiverDescrProtSpec_%28GPS.G6-SW-10018%29_Public.pdf

You can use uCenter to generate the hex codes, use the Message View and split the pane so you can see the codes.
I don't think you understand the purpose of flagging the posts.
website banner