Arduino串口通信控制系统的研究  被引量:12

Research on Arduino serial communication control system

在线阅读下载全文

作  者:乐万德 任静 刘舟洲 初建杰[2] YUE Wande;REN Jing;LIU Zhouzhou;CHU Jianjie(School of Computer Science,Xi’an Aeronautical University,Xi’an 710077,China;Key Laboratory of Industrial Design and Ergonomics,Ministry of Industry and Information Technology,Northwestern Polytechnical University,Xi’an 710072,China)

机构地区:[1]西安航空学院计算机学院,陕西西安710077 [2]西北工业大学工业设计与人机工效工信部重点实验室,陕西西安710072

出  处:《电子设计工程》2022年第4期69-73,78,共6页Electronic Design Engineering

基  金:陕西省教育厅科研计划项目(20JG014);西安市科学技术局科技计划项目(21XJZZ0030);西安航空学院科研基金项目(2021KY0219)。

摘  要:针对现有Arduino智能遥控设备中串口控制指令多采用扁平结构的字符或者字符串格式的局限性,提出了基于JSON的遥控指令串口通信控制系统。在该系统中,采用串口事件函数作为控制程序总体框架,以串口作为控制指令数据源,通过JSON编码方式,实现控制指令的格式化编码及解析,实现遥控终端通过WiFi等无线通信方式对Arduino设备的控制。以智能小车作为实验对象,对控制系统进行了验证。实验结果表明,控制算法可靠,控制程序相比原机程序的可读性、可维护性和扩展性得到了优化。Aiming at the limitation that the serial port control instructions in the existing Arduino intelligent remote control equipment mostly adopt the flat structure character or string format,a serial port communication control system of remote control instructions based on JSON is proposed.The serial event function is used as the overall framework of the control program,and the serial port is used as the data source of the control instruction.The format coding and analysis of the control instruction are realized through the JSON coding method,and the remote control terminal can control the Arduino device through WiFi and other wireless communication methods.Taking the intelligent car as the experimental object,the control system is verified.The experimental results show that the control algorithm is reliable,and the readability,maintainability and expansibility of the control program are optimized compared with the original program.

关 键 词:ARDUINO 串口通信 JSON 控制指令 

分 类 号:TN99[电子电信—信号与信息处理]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象