检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:魏烈祥 汪天照 廖辉 文韬 阳琴 张慧芹 WEI Liexiang;WANG Tianzhao;LIAO Hui;WEN Tao;YANG Qin;ZHANG Huiqin(Hubei Fangyuan Environmental Protection Science&Technology Co.,Ltd.,Wuhan,Hubei 430074,China)
机构地区:[1]湖北方圆环保科技有限公司,湖北武汉430074
出 处:《自动化应用》2024年第6期179-181,184,共4页Automation Application
摘 要:介绍了一种基于长短帧的串口实时通信方法,将上位机、下位机通信协议设计成短帧和长帧2种不同的帧结构,短帧为1个字节,长帧为多个字节。长帧的帧头和帧尾与短帧一起进行编码。基于短帧的通信是实时的,基于长帧的通信是非实时的。采用这种帧结构设计方法,在实时数据量不大的情况下,提高了串口通信的数据吞吐率。从帧结构设计到软件实现及实例论证了该实时通信方法的可行性,完成了基于该方法的核检测仪器γ能谱仪上的通信应用。This paper introduces a real-time serial communication method based on long and short frames.The communication protocol between the upper and lower computers is designed into two different frame structures:Short frame and long frame.The short frame is one byte,while the long frame is multiple bytes.The header and footer of long frames are encoded together with short frames.Short frame based communication is real-time,while long frame based communication is non real-time.By adopting this frame structure design method,the data throughput of serial communication is improved even when the real-time data volume is not large.This paper demonstrates the feasibility of this real-time communication method from frame structure design to software implementation and examples,and completes a nuclear detection instrument based on this method communication applications on γ energy spectrometers.
分 类 号:TN915.04[电子电信—通信与信息系统]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.49