抚顺石油学院学报
撫順石油學院學報
무순석유학원학보
JOURNAL OF FUSHUN PETROLEUM INSTITUTE
2002年
3期
59-62
,共4页
王克勇%陈宝忠%吕静宁%唐海%陈星建
王剋勇%陳寶忠%呂靜寧%唐海%陳星建
왕극용%진보충%려정저%당해%진성건
单片机%无线数传模块%无线数据通信%曼彻斯特码%CRC差错校验
單片機%無線數傳模塊%無線數據通信%曼徹斯特碼%CRC差錯校驗
단편궤%무선수전모괴%무선수거통신%만철사특마%CRC차착교험
在利用单片机和无线数传模块进行无线数据通信时,通常的办法是通过单片机的串行I/O口来完成数据的串行通信.然而此方法存在许多不足之处,如差错检测能力差、帧格式不灵活等.针对低速通信的场合,提出了一种通过单片机和无线数传模块以软件方式实现对传输数据编码、解码的原理和方法.数据的编码采用了曼彻斯特编码格式,每帧数据包括同步头、有效数据位和冗余校验位三部分.解码包括同步头和数据位的判定及循环冗余校验.在数据位的判定中提出了用软件实现"测三取二"的判定方法.该判定方法不但可以提高采样的准确度,而且还具有一定的滤波功能.实验结果表明,与单片机的串口通信相比,该编解码方法具有抗干扰能力强、传输数据灵活等优点.
在利用單片機和無線數傳模塊進行無線數據通信時,通常的辦法是通過單片機的串行I/O口來完成數據的串行通信.然而此方法存在許多不足之處,如差錯檢測能力差、幀格式不靈活等.針對低速通信的場閤,提齣瞭一種通過單片機和無線數傳模塊以軟件方式實現對傳輸數據編碼、解碼的原理和方法.數據的編碼採用瞭曼徹斯特編碼格式,每幀數據包括同步頭、有效數據位和冗餘校驗位三部分.解碼包括同步頭和數據位的判定及循環冗餘校驗.在數據位的判定中提齣瞭用軟件實現"測三取二"的判定方法.該判定方法不但可以提高採樣的準確度,而且還具有一定的濾波功能.實驗結果錶明,與單片機的串口通信相比,該編解碼方法具有抗榦擾能力彊、傳輸數據靈活等優點.
재이용단편궤화무선수전모괴진행무선수거통신시,통상적판법시통과단편궤적천행I/O구래완성수거적천행통신.연이차방법존재허다불족지처,여차착검측능력차、정격식불령활등.침대저속통신적장합,제출료일충통과단편궤화무선수전모괴이연건방식실현대전수수거편마、해마적원리화방법.수거적편마채용료만철사특편마격식,매정수거포괄동보두、유효수거위화용여교험위삼부분.해마포괄동보두화수거위적판정급순배용여교험.재수거위적판정중제출료용연건실현"측삼취이"적판정방법.해판정방법불단가이제고채양적준학도,이차환구유일정적려파공능.실험결과표명,여단편궤적천구통신상비,해편해마방법구유항간우능력강、전수수거령활등우점.