计算机科学 ›› 2021, Vol. 48 ›› Issue (6A): 432-437.doi: 10.11896/jsjkx.200500123

• 网络&通信 • 上一篇    下一篇

低延时远程串口通信系统设计

禹鑫燚, 王煦焱, 应皓哲, 欧林林   

  1. 浙江工业大学 杭州310023
  • 出版日期:2021-06-10 发布日期:2021-06-17
  • 通讯作者: 禹鑫燚(yuxinyinet@163.com)
  • 基金资助:
    国家重点研究发展计划“智能机器人”重点项目(2018YFB1308000);机器人技术与系统国家重点实验室开放基金项目(SKLRS2013MS06)

Design of Low-latency Remote Serial Communication System

YU Xin-yi, WANG Xu-yan, YING Hao-zhe, OU Lin-lin   

  1. Zhejiang University of Technology,Hangzhou 310023,China
  • Online:2021-06-10 Published:2021-06-17
  • About author:YU Xin-yi, born in 1979,Ph.D.His main research interests include robot control and planning.
  • Supported by:
    National Key Research and Development Plan “Intelligent Robot” Key Project(2018YFB1308000) and Open Fund Project for State Key Laboratories of Robot Technology and Systems(SKLRS2013MS06).

摘要: 为了解决使用串口通信的工业设备升级成本高、延时高以及拓展性差等问题,从软件层面研究并设计了低延时远程串口通信系统。系统以嵌入式控制系统作为原串口数据的网关,通过Golang的多协程特性对多种串口的数据分别进行采集、封装、隔离并转换成以太网数据,简化程序的同时将数据的流向进行独立,使数据不会相互干扰。以太网数据通过由UDP协议结合KCP算法以及P2P传输通道组建的低延时通信链路完整地传输到客户端通信软件。客户端通信软件使用数据接口与驱动分离的构架,根据生产场景使用不同的通信模式将数据转发至不同接口。将所设计的系统与基于TCP协议的串口通信系统作了对比实验,结果表明本系统在传输延时方面存在优势,为低延时远程串口通信系统提供了有效的解决方案。

关键词: KCP, 并发控制, 串口通信, 低延时通信, 智能制造

Abstract: In order to solve the problems of high upgrade cost,high delay,and weak scalability of industrial equipment using serial communication,a low-latency remote serial communication system is designed from the software level in this paper.An embedded control system is used as the gateway of the original serial port data.It uses multi-coroutine feature of Golang to encapsulate,isolate,and convert multiple serial port data into Ethernet data.The Ethernet data is transmitted by KCP algorithm and P2P transmission channel to the client.The client uses a structure in which the data interface is separated from the driver,and uses diffe-rent communication modes to forward data to the application according to the production scenario.Comparing the designed system with the serial communication system based on TCP protocol,the result indicates that the system has huge advantages in terms of transmission delay.The designed system provides an effective solution for the low delay problem in remote serial communication.

Key words: Concurrency control, KCP, Low-latency communication, Serial communication, Smart manufacturing

中图分类号: 

  • TP274
[1] LI C.Research on the Transformation and Upgrading of Manufacturing Industry in Anhui Province [D].Hefei:Anhui University,2018.
[2] BEDNAREK M,DABROWSKI T,OLCHOWIK W.SelectedPractical Aspects of Communication Diagnosis in the Industrial Network [J].Journal of KONBiN,2019,49(1):383-404.
[3] EHRLICH M,NEUMANN A,BIENDARRA A,et al.Quality-of-Service monitoring of hybrid industrial communication networks [J].at-Automatisierungstechnik,2019,67(1):69-78.
[4] DANUBIANU M,TEODORESCU C,CORNEANU I.Internet of Things and the Environment [J].Present Environment and Sustainable Development,2019,13(1):181-190.
[5] SAP C,NW A,SDA B,et al.Securing future decentralised industrial IoT infrastructures:Challenges and free open source solutions [J].Future generations computer systems:FGCS,2019,93:596-608.
[6] ZHANG H Q,JIANG H,ZENG X H,et al.Research on the Serial Port Control System Based on Websocket [J].Software Engineering,2019,22(6):22-25.
[7] WU R B.Design and Implementation of Ethernet Serial Server based on ARM9 [D].Lanzhou:Lanzhou Jiaotong University,2014.
[8] CAI J,WANG M.Design and Implementation of Serial ServerModule Based on CPCI Bus [J].Comput.& Network,2013,39(19):54-57.
[9] ZHANG W,SHI F.Design and Implementation of Home Re-mote Monitoring System Based on Embedded Gateway[C]//2019 IEEE 2nd International Conference on Electronics Technology (ICET).Chengdu,China,2019:504-508.
[10] WANG T H,HE Y L.Design and Implementation of UART Server Based on Linux[J].Electronic Sci.&Tech.,2017,30(6):105-108.
[11] GEIDER J.Sinema-Remote-Connect-Plattform steuert Fernzu-griffsrechte:Zugriffsrechte in eigener Hand[J].Industrie Anzeiger,2017,139(16):52-53.
[12] XU J.A Cloud Desktop Control System Based On Android Platform [D].School of Computer Science and Engineering,2017.
[13] LUO L.Research on Quality Control Technology of DataTransmission of P2P in Near Field Communication[D].Wuhan:Wuhan University of Technology,2017.
[14] YUAN G,GUO J,HOU Z F.Cross NAT to establish TCP connections in the study of wood[C]//CACIS.2008:531-535.
[15] MAATA R L R,CORDOVA R,SUDRAMURTHY B,et al.De-sign and Implementation of Client-Server Based Application Using Socket Programming in a Distributed Computing Environment[C]//2017 IEEE International Conference on Computational Intelligence and Computing Research (ICCIC).Coimbatore,2017:1-4.
[1] 王钰珏, 梁宇豪, 王素琴, 朱登明, 石敏.
机械零件加工工艺本体库构建
Construction of Ontology Library for Machining Process of Mechanical Parts
计算机科学, 2022, 49(6A): 661-666. https://doi.org/10.11896/jsjkx.210800013
[2] 王卫红, 陈震宇.
基于改进区块链的智能制造安全模型
Intelligent Manufacturing Security Model Based on Improved Blockchain
计算机科学, 2021, 48(2): 295-302. https://doi.org/10.11896/jsjkx.191200159
[3] 赵颖, 侯俊杰, 于成龙, 徐皓, 张伟.
面向生产管控的工业大数据研究及应用
Study and Application of Industrial Big Data in Production Management and Control
计算机科学, 2019, 46(6A): 45-51.
[4] 范璧健,庄毅.
基于冲突率预测的自适应并发控制算法
Adaptive Concurrency Control Algorithm Based on Conflict-rate Prediction
计算机科学, 2016, 43(11): 280-283. https://doi.org/10.11896/j.issn.1002-137X.2016.11.054
[5] 孙敏,王瑞花.
一种协同编辑中并发控制算法的研究
Study of Concurrent Control Algorithm in Collaborative Editing
计算机科学, 2015, 42(Z11): 58-62.
[6] 张彩霞,程良伦,王向东.
基于信息物理融合系统的智能制造架构研究
Research on Architecture of Intelligent Manufacturing Based on Cyber-physical System
计算机科学, 2013, 40(Z6): 37-40.
[7] 吴海 陈巍 卢炎生.
一种嵌入式移动实时数据库的并发控制策略

计算机科学, 2009, 36(2): 155-157.
[8] 李国徽 杨兵 向军 陈辉.
数据广播环境下移动实时事务的有效并发控制

计算机科学, 2008, 35(4): 54-59.
[9] 吴艳霞 顾国昌 付岩 程立新.
并发控制流检测技术综述

计算机科学, 2007, 34(7): 14-19.
[10] .
一种基于乐观方法的安全实时并发控制协议

计算机科学, 2007, 34(4): 114-115.
[11] 雷向东 赵跃龙 陈松乔 袁晓莉.
移动分布式实时数据库中并发控制框架

计算机科学, 2007, 34(12): 100-103.
[12] .
一个两段加锁不死锁的充分条件

计算机科学, 2007, 34(1): 292-293.
[13] .
广播环境中的Q可串行化实时并发控制

计算机科学, 2006, 33(6): 55-57.
[14] .
Client/Server数据库模型下的并发控制与恢复技术

计算机科学, 2006, 33(5): 152-155.
[15] 董云卫 郝克刚.
一种乐观嵌套工作流事务模型

计算机科学, 2005, 32(8): 90-93.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!