GPS常用命令举例_1.0.0.docVIP

  • 5
  • 0
  • 约2.77万字
  • 约 22页
  • 2016-12-11 发布于河南
  • 举报
保密等级:研发部内部GPS Module 常用命令举例 产品型号: 共 ( ) 页 编 写: 魏强 审 核: 黄红弟 批 准:日 期:广和通-研发部主要说明 文档类别 □研发管理 ■开发文档 □ 其他 项目名称 产品名称 产品型号 硬件版本 软件版本更改记录 版本 日期 更改内容 V1.0.0 2011-2-21 初次发布命令发送格式: NMEA——字符串 OSP——HEX(高位在前) OSP数据格式: Start Sequence Payload Length PAYLOAD Checksum End Sequence 0xA0, 0xA2 2 Bytes (15 bits) Up to (211 –1) Bytes 2 Bytes 0xB0, 0xB3 例:A0A2 0002 8400 0084 B0B3 其中A0A2为起始序列,0002为数据长度,即“84,00”两个bytes。8400为数据。0084为校验和,校验和即数据内的各个byte相加的结果。B0B3结束字符。 应用举例: 1. 通信协议转换 NMEA协议转OSP协议: $PSRF100,0,115200,8,1,0*04 格式说明(Set Serial Port Data Format): Name Example Unit Description Message ID $PSRF100 PSRF100 protocol header Protocol 0 0 = SIRF Binary 1 = NMEA Baud 9600 1200,2400,4800,9600,19200,38400,57600, or 115200 DataBits 8 8 only StopBits 1 1 only Parity 0 0 = None only Checksum *0C CRLF End of message terminationOSP协议转NMEA协议: A0 A2 00 18 81 02 01 01 00 01 01 01 05 01 00 01 00 01 00 01 00 00 00 01 00 00 12 C0 01 64 B0 B3 格式说明(Switch To NMEA Protocol): Name Bytes Example Unit Description Message ID 1 U 0x81 Decimal 129 Mode 1 U 0x02 See Table 2-9 GGA Message1 1 U 0x01 sec Refer to the NMEA Protocol Reference Manual for format Checksum2 1 U 0x01 Send checksum with GGA message GLL Message 1 U 0x00 sec Refer to the NMEA Protocol Reference Manual for format Checksum 1 U 0x01 GSA Message 1 U 0x01 sec Refer to the NMEA Protocol Reference Manual for format Checksum 1 U 0x01 GSV Message 1 U 0x05 sec Refer to the NMEA Protocol Reference Manual for format Checksum 1 U 0x01 RMC Message 1 U 0x01 sec Refer to the NMEA Protocol Reference Manual for format Checksum 1 U 0x01 VTG Message 1 U 0x00 sec Refer to the NMEA Protocol Reference Manual for format Checksum 1 U 0x01 MSS Message 1 U 0x00 sec Output rate for MSS message Checksum 1 U 0x01 EPE Message3 1 U 0x00 Checksum3 1 U 0x00 ZDA Message 1 U 0x00 sec Refer to the NMEA Protocol Reference Manual for format Checksum 1 U 0x01 Unused Field4 1

文档评论(0)

1亿VIP精品文档

相关文档