摘要
GPS数据通讯时,接收端对接收到的数据进行差错校验,再将得到的校验码和接收到的校验码比较,如果二者一致则认为传输正确,如果是指令则执行,否则予以拒绝。本文针对GPS数据通讯中目前常用的校验和校验以及循环冗余校验(CRC校验),从校验原理入手,具体给出其计算方法和C语言实现。
During the procedure of data communication with GPS, the receiving port shall conducts the error checking to all of the received data. The received the checksum codes shall be compared with the calculated checksum code, the data will be accepted if the two codes are consistent, and the instruct will be executed, or denied. Some error checking method commonly used in GPS data communication are analyzed in this paper such as sum check and Cyclic Redundancy Check, detailed calculation realization is also given in C language.
出处
《全球定位系统》
2006年第1期23-26,共4页
Gnss World of China