摘要
目前Android系统只提供单串口通信,在多串口并发通信方面缺乏基础功能。文章提出虚拟串口方案以解决多串口并发通信问题,将原有唯一串口通过软件接口方式虚拟出多个串口为应用程序提供服务。系统主要由Android源码框架层串口数据流分发软件和STM32微处理器单串口物理扩展外部电路两部分组成。实验结果表明,在多串口并发通信时,该系统能够提供高效、稳定、可靠的串口数据传输。
At present,the Android system only provides a single serial port communication,and lacks basic functions in multiple serial port concurrent communication.This paper proposes a virtual serial port solution to solve the problem of multiple serial port concurrent communication,and the original unique serial port is virtualized as multiple serial ports by the software interface method to provide services for the application.The system is mainly composed of the serial data stream distribution software in Android source code framework layer and the physical expansion external circuit for STM32 microprocessor single serial port.The experiment results show that the system can provide efficient,stable and reliable serial port data transmission in multiple serial port communication.
作者
冉德纲
孙斌
杨建
申兴发
周红春
Ran Degang;Sun Bin;Yang Jian;Shen Xingfa;Zhou Hongchun(College of Science,Hangzhou Dianzi University,Hangzhou,Zhejiang 310018,China;Zhejiang Qiming Power Group Co.,Ltd. New Energy Technology Branch;Zhejiang Hangzhou Haoju Technology Co.,Ltd)
出处
《计算机时代》
2019年第5期37-40,共4页
Computer Era
基金
国家自然科学基金项目(No.61672198)
杭州电子科技大学学科交叉创新团队建设项目