找回密碼
 立即注冊

QQ登錄

只需一步,快速開始

搜索
查看: 3630|回復: 1
收起左側

GPS VK2635模塊指令合集

[復制鏈接]
ID:382792 發(fā)表于 2018-8-5 17:00 | 顯示全部樓層 |閱讀模式
在 VK2635官方文檔中,各個指令雖然已經換成16進制,但是在使用時總是不方便。
我在使用中,將代碼歸納整理,修改成了單片機能直接使用的16進制格式。


下面是部分代碼截圖。

編輯的代碼

編輯的代碼


  1. uint8_t ModCmd0[]=
  2. {0x24,0x45,0x49,0x47,0x50,0x51,0x2c,0x44,0x54,0x4d,0x2a,0x33,0x42,0x0d,0x0a,0xb5,0x62,0x06,0x01,0x03,0x00,0xf0,0x0a,0x00,0x04,0x23}; //--> 關閉GPDTM語句0
  3. uint8_t ModCmd1[]=
  4. {0x24,0x45,0x49,0x47,0x50,0x51,0x2c,0x47,0x42,0x53,0x2a,0x33,0x30,0x0d,0x0a,0xb5,0x62,0x06,0x01,0x03,0x00,0xf0,0x09,0x00,0x03,0x21}; //--> 關閉GPGBS語句1
  5. uint8_t ModCmd2[]=
  6. {0x24,0x45,0x49,0x47,0x50,0x51,0x2c,0x47,0x47,0x41,0x2a,0x32,0x37,0x0d,0x0a,0xb5,0x62,0x06,0x01,0x03,0x00,0xf0,0x00,0x00,0xfa,0x0f}; //--> 關閉GPGGA語句2
  7. uint8_t ModCmd3[]=
  8. {0x24,0x45,0x49,0x47,0x50,0x51,0x2c,0x47,0x4c,0x4c,0x2a,0x32,0x31,0x0d,0x0a,0xb5,0x62,0x06,0x01,0x03,0x00,0xf0,0x01,0x00,0xfb,0x11}; //--> 關閉GPGLL語句3
  9. uint8_t ModCmd4[]=
  10. {0x24,0x45,0x49,0x47,0x50,0x51,0x2c,0x47,0x53,0x41,0x2a,0x33,0x33,0x0d,0x0a,0xb5,0x62,0x06,0x01,0x03,0x00,0xf0,0x02,0x00,0xfc,0x13}; //--> 關閉GPGSA語句4
  11. uint8_t ModCmd5[]=
  12. {0x24,0x45,0x49,0x47,0x50,0x51,0x2c,0x47,0x53,0x54,0x2a,0x32,0x36,0x0d,0x0a,0xb5,0x62,0x06,0x01,0x03,0x00,0xf0,0x07,0x00,0x01,0x1d}; //--> 關閉GPGST語句5
  13. uint8_t ModCmd6[]=
  14. {0x24,0x45,0x49,0x47,0x50,0x51,0x2c,0x47,0x53,0x56,0x2a,0x32,0x34,0x0d,0x0a,0xb5,0x62,0x06,0x01,0x03,0x00,0xf0,0x03,0x00,0xfd,0x15}; //--> 關閉GPGSV語句6
  15. uint8_t ModCmd7[]=
  16. {0x24,0x45,0x49,0x47,0x50,0x51,0x2c,0x52,0x4d,0x43,0x2a,0x33,0x41,0x0d,0x0a,0xb5,0x62,0x06,0x01,0x03,0x00,0xf0,0x04,0x00,0xfe,0x17}; //--> 關閉GPRMC語句70x
  17. uint8_t ModCmd8[]=
  18. {0x24,0x45,0x49,0x47,0x50,0x51,0x2c,0x56,0x54,0x47,0x2a,0x32,0x33,0x0d,0x0a,0xb5,0x62,0x06,0x01,0x03,0x00,0xf0,0x05,0x00,0xff,0x19};//--> 關閉GPVTG語句8
  19. uint8_t ModCmd9[]=
  20. {0x24,0x45,0x49,0x47,0x50,0x51,0x2c,0x5a,0x44,0x41,0x2a,0x33,0x39,0x0d,0x0a,0xb5,0x62,0x06,0x01,0x03,0x00,0xf0,0x08,0x00,0x02,0x1f}; //--> 關閉GPZDA語句9
  21. uint8_t ModCmd10[]=
  22. {0x24,0x45,0x49,0x47,0x50,0x51,0x2c,0x44,0x54,0x4d,0x2a,0x33,0x42,0x0d,0x0a,0xb5,0x62,0x06,0x01,0x03,0x00,0xf0,0x0a,0x01,0x05,0x24}; //--> 打開GPDTM語句10
  23. uint8_t ModCmd11[]=
  24. {0x24,0x45,0x49,0x47,0x50,0x51,0x2c,0x47,0x42,0x53,0x2a,0x33,0x30,0x0d,0x0a,0xb5,0x62,0x06,0x01,0x03,0x00,0xf0,0x09,0x01,0x04,0x22}; //--> 打開GPGBS語句11
  25. uint8_t ModCmd12[]=
  26. {0x24,0x45,0x49,0x47,0x50,0x51,0x2c,0x47,0x47,0x41,0x2a,0x32,0x37,0x0d,0x0a,0xb5,0x62,0x06,0x01,0x03,0x00,0xf0,0x00,0x01,0xfb,0x10}; //--> 打開GPGGA語句12
  27. uint8_t ModCmd13[]=
  28. {0x24,0x45,0x49,0x47,0x50,0x51,0x2c,0x47,0x4c,0x4c,0x2a,0x32,0x31,0x0d,0x0a,0xb5,0x62,0x06,0x01,0x03,0x00,0xf0,0x01,0x01,0xfc,0x12}; //--> 打開GPGLL語句13
  29. uint8_t ModCmd14[]=
  30. {0x24,0x45,0x49,0x47,0x50,0x51,0x2c,0x47,0x52,0x53,0x2a,0x32,0x30,0x0d,0x0a,0xb5,0x62,0x06,0x01,0x03,0x00,0xf0,0x06,0x01,0x01,0x1c}; //--> 打開GPGRS語句14
  31. uint8_t ModCmd15[]=
  32. {0x24,0x45,0x49,0x47,0x50,0x51,0x2c,0x47,0x53,0x41,0x2a,0x33,0x33,0x0d,0x0a,0xb5,0x62,0x06,0x01,0x03,0x00,0xf0,0x02,0x01,0xfd,0x14}; //--> 打開GPGSA語句15
  33. uint8_t ModCmd16[]=
  34. {0x24,0x45,0x49,0x47,0x50,0x51,0x2c,0x47,0x53,0x54,0x2a,0x32,0x36,0x0d,0x0a,0xb5,0x62,0x06,0x01,0x03,0x00,0xf0,0x07,0x01,0x02,0x1e}; //--> 打開GPGST語句16
  35. uint8_t ModCmd17[]=
  36. {0x24,0x45,0x49,0x47,0x50,0x51,0x2c,0x47,0x53,0x56,0x2a,0x32,0x34,0x0d,0x0a,0xb5,0x62,0x06,0x01,0x03,0x00,0xf0,0x03,0x01,0xfe,0x16}; //--> 打開GPGSV語句17
  37. uint8_t ModCmd18[]=
  38. {0x24,0x45,0x49,0x47,0x50,0x51,0x2c,0x52,0x4d,0x43,0x2a,0x33,0x41,0x0d,0x0a,0xb5,0x62,0x06,0x01,0x03,0x00,0xf0,0x04,0x01,0xff,0x18}; //--> 打開GPRMC語句18
  39. uint8_t ModCmd19[]=
  40. {0x24,0x45,0x49,0x47,0x50,0x51,0x2c,0x56,0x54,0x47,0x2a,0x32,0x33,0x0d,0x0a,0xb5,0x62,0x06,0x01,0x03,0x00,0xf0,0x05,0x01,0x00,0x1a}; //--> 打開GPVTG語句19
  41. uint8_t ModCmd20[]=
  42. {0x24,0x45,0x49,0x47,0x50,0x51,0x2c,0x5a,0x44,0x41,0x2a,0x33,0x39,0x0d,0x0a,0xb5,0x62,0x06,0x01,0x03,0x00,0xf0,0x08,0x01,0x03,0x20}; //--> 打開GPZDA語句200


  43. uint8_t BootSetCmd0[]=
  44. {0xb5,0x62,0x06,0x00,0x14,0x00,0x01,0x00,0x00,0x00,0xd0,0x08,0x00,0x00,0xc0,0x12,0x00,0x00,0x07,0x00,0x07,0x00,0x00,0x00,0x00,0x00,0xd3,0xfc,0xb5,0x62,0x06,0x00,0x01,0x00,0x01,0x08,0x22};  //設置4800波特率0
  45. uint8_t BootSetCmd1[]=
  46. {0xb5,0x62,0x06,0x00,0x14,0x00,0x01,0x00,0x00,0x00,0xd0,0x08,0x00,0x00,0x80,0x25,0x00,0x00,0x07,0x00,0x07,0x00,0x00,0x00,0x00,0x00,0xa6,0xcd,0xb5,0x62,0x06,0x00,0x01,0x00,0x01,0x08,0x22}; //設置9600波特率1
  47. uint8_t BootSetCmd2[]=
  48. {0xb5,0x62,0x06,0x00,0x14,0x00,0x01,0x00,0x00,0x00,0xd0,0x08,0x00,0x00,0x00,0x96,0x00,0x00,0x07,0x00,0x07,0x00,0x00,0x00,0x00,0x00,0x97,0xa8};  //設置38400波特率2
  49. uint8_t BootSetCmd3[]=
  50. {0xb5,0x62,0x06,0x00,0x14,0x00,0x01,0x00,0x00,0x00,0xd0,0x08,0x00,0x00,0x00,0xc2,0x01,0x00,0x07,0x00,0x07,0x00,0x00,0x00,0x00,0x00,0xc4,0x96,0xb5,0x62,0x06,0x00,0x01,0x00,0x01,0x08,0x22}; //設置115200波特率3

  51. uint8_t HZ_SetCmd0[]=
  52. {0xB5,0x62,0x06,0x08,0x06,0x00,0xE8,0x03,0x01,0x00,0x01,0x00,0x01,0x39};  //1Hz模式(1秒輸出1次數(shù)據(jù))0
  53.   uint8_t HZ_SetCmd1[]=
  54. {0xB5,0x62,0x06,0x08,0x06,0x00,0xC8,0x00,0x01,0x00,0x01,0x00,0xDE,0x6A,0xB5,0x62,0x06,0x08,0x00,0x00,0x0E,0x30};  //5Hz模式(1秒輸出5次數(shù)據(jù))1
  55. uint8_t HZ_SetCmd2[]=
  56. {0xB5,0x62,0x06,0x08,0x06,0x00,0x64,0x00,0x01,0x00,0x01,0x00,0x7A,0x12,0xB5,0x62,0x06,0x08,0x00,0x00,0x0E,0x30};  //10Hz模式(1秒輸出10次數(shù)據(jù))2
  57.   uint8_t HZ_SetCmd3[]=
  58. {0xB5,0x62,0x06,0x08,0x06,0x00,0xB8,0x0B,0x01,0x00,0x01,0x00,0xD9,0x41,0xB5,0x62,0x06,0x08,0x00,0x00,0x0E,0x30};  //0.33Hz模式(3秒輸出1次數(shù)據(jù))3
  59. uint8_t HZ_SetCmd4[]=
  60. {0xB5,0x62,0x06,0x08,0x06,0x00,0x88,0x13,0x01,0x00,0x01,0x00,0xB1,0x49,0xB5,0x62,0x06,0x08,0x00,0x00,0x0E,0x30};  //0.2Hz模式(5秒輸出1次數(shù)據(jù))4
  61. uint8_t HZ_SetCmd5[]=
  62. {0xB5,0x62,0x06,0x08,0x06,0x00,0x10,0x27,0x01,0x00,0x01,0x00,0x4D,0xDD,0xB5,0x62,0x06,0x08,0x00,0x00,0x0E,0x30};  //0.1Hz模式(10秒輸出1次數(shù)據(jù)) 5
  63. uint8_t HZ_SetCmd6[]=
  64. {0xB5,0x62,0x06,0x08,0x06,0x00,0x20,0x4E,0x01,0x00,0x01,0x00,0x84,0x00,0xB5,0x62,0x06,0x08,0x00,0x00,0x0E,0x30}; //0.05Hz模式(20秒輸出1次數(shù)據(jù)) 6

  65. uint8_t StartModCmd0[]=
  66. {0xB5,0x62,0x06,0x04,0x04,0x00,0xFF,0x87,0x01,0x00,0x95,0xF7};  //復位 0
  67. uint8_t StartModCmd1[]=
  68. {0xB5,0x62,0x06,0x04,0x04,0x00,0xFF,0xFF,0x02,0x00,0x0E,0x61};  //冷啟勱 1
  69.   uint8_t StartModCmd2[]=
  70. {0xB5,0x62,0x06,0x04,0x04,0x00,0x00,0x00,0x02,0x00,0x10,0x68};  //熱啟勱2
  71. uint8_t StartModCmd3[]=
  72. {0xB5,0x62,0x06,0x09,0x0D,0x00,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0x00,0x00,0x07,0x1F,0x9E}; //恢復出廠配置 3
  73. uint8_t StartModCmd4[]=
  74. {0xB5,0x62,0x06,0x04,0x04,0x00,0x00,0x00,0x08,0x00,0x16,0x74};  //進入低功耗模式(低功耗模式狀態(tài)下丌輸出數(shù)據(jù),但保持定位。如需恢復正常模式,請輸入熱啟勱命令)4
  75. uint8_t StartModCmd5[]=
  76. {0xB5,0x62,0x06,0x09,0x0D,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x17,0x31,0xBF}; //保存設置5
復制代碼

所有資料51hei提供下載:
GPS_CMD.zip (1.35 KB, 下載次數(shù): 12)


評分

參與人數(shù) 1黑幣 +50 收起 理由
admin + 50 共享資料的黑幣獎勵!

查看全部評分

回復

使用道具 舉報

ID:263750 發(fā)表于 2018-11-2 18:54 | 顯示全部樓層
厲害了
回復

使用道具 舉報

您需要登錄后才可以回帖 登錄 | 立即注冊

本版積分規(guī)則

手機版|小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術交流QQ群281945664

Powered by 單片機教程網(wǎng)

快速回復 返回頂部 返回列表