摘要
民用无人机系统集成时需要满足空地间多路串口设备的数据传输需求,现有的主要方法是通过飞控和地面站转发多路数据,但该方法存在数据传输效率低、数据量大时容易发生通信阻塞等问题。设计了一种串口交换机,并通过专用的报文协议和基于RT-Thread实时操作系统的多线程通信程序,实现高效的多通道数据交换传输功能;提出一种基于线程优先级的优先队列调度实现方法,确保高优先级数据不因数据量大而发生通信阻塞问题,提高了系统的可靠性。测试结果表明,该设计能实时、可靠地传输多通道数据,满足无人机系统数据传输需求,具有重要的实际意义和应用价值。
When the civil UAV system is integrated,it needs to meet the requirements of data transmission from multiple serial devices between the air and the ground.The existing main method is to forward multiple data by the Autopilot and ground control station,but this method has the problems of low efficiency and communication blocking happens when facing large amount of data.This paper designs a serial port switch,and realizes efficient multi-channel data transmission function through a dedicated message protocol and multi-thread communication program based on RT-Thread real-time operating system.A priority queue scheduling algorithm is implemented based on thread priority to ensure that high priority data will not be blocked due to large amount of data,improving system reliability.The test results show that the design can transmit multi-channel data in real time and reliably,which satisfies the data transmission requirements of the UAV system and has important practical significance and application value.
作者
盛蔚
黄伟杰
Sheng Wei;Huang Weijie(School of Instrumentation Science and Opto-eletronics Engineering, Beihang University,Beijing 100191,China)
出处
《电子技术应用》
2018年第12期77-80,84,共5页
Application of Electronic Technique
关键词
无人机
多通道传输
串口通信
交换机
队列调度
UAV
multi-channel transmission
serial communication
switch
queue scheduling