GPS control commands-select the output format for serial sending control commands

Source: Internet
Author: User

The module I used is the configuration software of ubox. We can see the hexadecimal command format for each setting:

For more information, see the relevant articles on the Internet.

Set the baud rate to 19200:

B5 62 06 00 14 00 01 00 00 00 D0 08 00 00 00 4B 00 00 07 00 03 00 00 00 00 00 48 57


Set the output frequency to 10Hz:

B5 62 06 08 06 00 64 00 01 00 01 00 7A 12


Note that the above is a hexadecimal system. Add 0x to the specific sending, for example, 0xb5.


Other output format settings:

Unsigned char engga [] = {0xb5, 0x62,0x06,0x01,0x06,0x00, 0xf0, 0x00,0x00,0x01,0x00,0x00, 0xfe, 0x18 // enable GGA}; unsigned char disgga [] = {0xb5, 0x62,0x06,0x01,0x06,0x00, 0xf0, 0 x, 0 x, 0 x, 0 x, 0x00, 0xfd, 0x15 // cancel GGA}; unsigned char Engl [] = {0xb5, 0x62,0x06,0x01,0x06,0x00, 0xf0, 0x01,0x00,0x01,0x00,0x00, 0xff, 0x1d // enable GlL }; unsigned char disgll [] = {0xb5, 0x62,0x06,0x01,0x06,0x00, 0xf0, 0x01,0x00,0x00,0x00,0x00, 0xfe, 0x1a //, 0x cancel GlL}; unsigned char engsa [] = {0xb5, 0x62,0x06,0x01,0x06,0x00, 0xf0, 0 x, 0 x, 0 x, 0 x, 0 x, 0x22 // enable GSA}; unsigned char disgsa [] = {0xb5, 0x62,0x06,0x01,0x06,0x00, 0xf0, 0x02,0x00,0x00,0x00,0x00, 0xff, 0x1f // cancel GSA }; unsigned char engsv [] = {0xb5, 0x62,0x06,0x01,0x06,0x00, 0xf0, 0 x, 0 x, 0 x, 0 x, 0 x, 0x27 // enable GSV}; unsigned char disgsv [] = {0xb5, 0x0, 0x0, 0x0, 0x0, 0x00, 0x0, 0 x, 0 x, 0 x, 0 x, 0 x, 0x24 // cancel GSV }; unsigned char enrmc [] = {0xb5, 0x62,0x06,0x01,0x06,0x00, 0xf0, 0x04,0x00,0x01,0x00,0x00,0x02, 0x2c // enable RMC}; unsigned char disrmc [] = {0xb5, 0x62,0x06,0x01,0x06,0x00, 0xf0, 0 x, 0 x, 0 x, 0 x, 0 x, 0x29 // cancel RMC}; unsigned char envtg [] = {0xb5, 0x0, 0x0, 0x0, 0x0, 0x00, 0x0, 0 x, 0 x, 0 x, 0 x, 0 x, 0x31 // enable Vtg }; unsigned char disvtg [] = {0xb5, 0x62,0x06,0x01,0x06,0x00, 0xf0, 0x05,0x00,0x00,0x00,0x00,0x00,0x02, 0x2e // cancel Vtg}; unsigned char engrs [] = {0xb5, 0x62,0x06,0x01,0x06,0x00, 0xf0, 0 x, 0 x, 0 x, 0 x, 0 x, 0x36 // enable GRs //}; unsigned char disgrs [] = {0xb5, 0x0, 0x0, 0x0, 0x0, 0x00, 0x0, 0x0, 0 x, 0 x, 0 x, 0 x, 0x33 // cancel GRs }; unsigned char engst [] = {0xb5, 0x62,0x06,0x01,0x06,0x00, 0xf0, 0x07,0x00,0x01,0x00,0x00,0x05, 0x3b // enable GST/}; unsigned char disgst [] = {0xb5, 0x62,0x06,0x01,0x06,0x00, 0xf0, 0 x, 0 x, 0 x, 0 x, 0 x, 0x38 // cancel GST}; unsigned char enzda [] = {0xb5, 0x0, 0x0, 0x0, 0x00, 0 x, 0 x, 0 x, 0 x, 0 x, 0 x, 0 x, 0x40 // enable Zda /}; unsigned char diszda [] = {0xb5, 0x62,0x06,0x01,0x06,0x00, 0xf0, 0x08,0x00,0x00,0x00,0x00,0x00,0x05, 0x3d // cancel Zda };



GPS control commands-select the output format for serial sending control commands

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.