摘要
文章针对远程放射性测量无线传输系统运行过程中数据传输不稳定的问题,从程序设计出发,结合了常见的按时间读取、按字节读取的上位机串行通信数据接收逻辑,基于串口Serial Port类和计时器Timers类,提出并应用了一种数据接收逻辑,以此提升传输系统稳定性。该接收逻辑综合了按字节读取等待时间弹性大的优点以及按时间读取定时重传的优点,增加掉线重连、超时检测的功能。实验表明采用此数据接收逻辑的测量传输系统,通信环境适应能力及传输稳定性均得到了提高。
This paper aims at the problem of unstable data transmission during the operation of wireless transmission system for remote radioactivity measurement,starting from the program design,this paper combines the common serial communication data receiving logic of the host computer which is read by time and read by byte,based on the SerialPort class and Timers class,a data receiving logic is proposed and applied to improve the stability of the transmission system.The receiving logic combines the advantages of large elasticity of waiting time of read by byte and the advantages of timed retransmission of read by time,and adds the functions of reconnection and timeout detection.Experiments show that using this data receiving logic measurement of transmission system,communication environment adaptability and transmission stability are improved.
作者
曹彧
周建斌
Cao Yu;Zhou Jianbin(Chengdu University of Technology The College of Nuclear Technology and Automation Engineering,Chengdu Sichuan,610059)
出处
《电子测试》
2022年第24期82-86,共5页
Electronic Test
关键词
核测量
无线传输
程序设计
串行通信
Serial
Port类
接收逻辑
Nuclear measurement
Wireless transmission
Program design
Serial communication
Serial Port class
Receive logic