How to turn on UBX messages?

0 votes
Hi,

I am developing an app on windows CE/Mobile so can't use the U center. On startup UBlox is putting out default NMEA codes.

If I ask the port it tells me that UBX and NMEA is enabled for the port.

I can send commands to turn off the NMEA codes. However I am having trouble turning on UBX output. I want the UBX commands to come out at some predefined interval. The manual is very vague on what I need to send out. Can someone guide me through the commands needed.

Some code follows that turns off NMEA codes but no UBX commands are turned on.

Thanks.

 

        // turn off all NMEA except GGA

        char RMC_Off[] = { 0XB5, 0X62, 0X06, 0X01, 0X08, 0X00, 0XF0, 0X04, 0X00, 0X00, 0X00, 0X00, 0X00, 0X00, 0X03, 0X3F};
        char VTG_Off[] = { 0XB5, 0X62, 0X06, 0X01, 0X08, 0X00, 0XF0, 0X05, 0X00, 0X00, 0X00, 0X00, 0X00, 0X00, 0X04, 0X46};
        char GSA_Off[] = { 0XB5, 0X62, 0X06, 0X01, 0X08, 0X00, 0XF0, 0X02, 0X00, 0X00, 0X00, 0X00, 0X00, 0X00, 0X01, 0X31};
        char GSV_Off[] = { 0XB5, 0X62, 0X06, 0X01, 0X08, 0X00, 0XF0, 0X03, 0X00, 0X00, 0X00, 0X00, 0X00, 0X00, 0X02, 0X38};
        char GLL_Off[] = { 0XB5, 0X62, 0X06, 0X01, 0X08, 0X00, 0XF0, 0X01, 0X00, 0X00, 0X00, 0X00, 0X00, 0X00, 0X00, 0X2A};
//      char GGA_Off[] = { 0XB5, 0X62, 0X06, 0X01, 0X08, 0X00, 0XF0, 0X00, 0X00, 0X00, 0X00, 0X00, 0X00, 0X00, 0XFF, 0X23};
        char GGA_On[]  = { 0XB5, 0X62, 0X06, 0X01, 0X08, 0X00, 0XF0, 0X00, 0X00, 0X01, 0X01, 0X00, 0X00, 0X00, 0X01, 0X2C};
        char ZDA_Off[] = { 0XB5, 0X62, 0X06, 0X01, 0X08, 0X00, 0XF0, 0X08, 0X00, 0X00, 0X00, 0X00, 0X00, 0X00, 0X07, 0X5B};
        // turn off
        WriteFile(hPort,RMC_Off,16,&written,NULL);
        WriteFile(hPort,VTG_Off,16,&written,NULL);
        WriteFile(hPort,GSA_Off,16,&written,NULL);
        WriteFile(hPort,GSV_Off,16,&written,NULL);
        WriteFile(hPort,GLL_Off,16,&written,NULL);
//        WriteFile(hPort,GGA_Off,16,&written,NULL);
        WriteFile(hPort,GGA_On,16,&written,NULL);
        WriteFile(hPort,ZDA_Off,16,&written,NULL);
        

        // turn on AID-EPH command
        char AID_EPH[] =    { 0xB5, 0x62, 0x06, 0x01, 0x08, 0x00, 0x0B, 0x31, 0x00, 0x01, 0x01, 0x00, 0x00, 0x00, 0x4D, 0x5B};
        WriteFile(hPort,AID_EPH,16,&written,NULL);
by steveForesoft asked Sep 4, 2015
6,892 views
+1 vote
By default support for UBX messages is enabled on all ports but actual UBX messages are not enabled.  Please try enabling UBX message, e.g. NAV-STATUS, using CFG-MSG command.  This would be a simple and easy test.
by grumpy answered Sep 4, 2015
0 votes
Best practice is using u-center on PC, enabling the messages you would be interested in and monitoring the Binary Console. This way you will get the exact message in order to enable each one of the individual messages.
by pedro.lopezestepa answered Sep 4, 2015
Use the message UBX-CFG-MSG in u-center.
0 votes
Have you checked that the UBX Protocol in the protocol_In/out mask fields of UBX-CFG-PRT are activated?

In addition the UBX-AID-EPH is only available in certain products generations and it is output at specific events depending on state and reception of signals. You may want to debug your code with one of the periodic messages e.g. UBX-NAV-POSLLH.
by mazgch answered Sep 4, 2015
how to check that the UBX Protocol in the protocol_In/out mask fields of UBX-CFG-PRT are activated or not?

we will send these message structure by enabling both ubx and nmea
Poll the message CFG-PRT to see the settings.  By default UBX and NMEA support are enabled.
In u-center simply open messages view, expand UBX and CFG trees and click on CFG-PRT.
website banner