STM32F407的FreeRTOS多机通信系统设计  被引量:3

Design of Multi-machine Communication System Based on FreeRTOS for STM32F407

在线阅读下载全文

作  者:陈旅超 蒲泽坤 沈勇 Chen Lvchao;Pu Zekun;Shen Yong(School of Electrical and Information Engineering,Yunnan Minzu University,Kunming 650504,China;Kunming Oulida Electromechanical Co.,Ltd.)

机构地区:[1]云南民族大学电气信息工程学院,昆明650504 [2]昆明欧力达机电有限公司

出  处:《单片机与嵌入式系统应用》2023年第9期11-15,共5页Microcontrollers & Embedded Systems

摘  要:为了实现通过PC上位机控制单片机主机并通过主机控制从机的目的,针对STM32F407芯片设计了一款基于FreeRTOS的多机通信系统。该系统基于FreeRTOS实时操作系统,以STM32F407为核心,PC上位机通过以太网向单片机主机发送信息,同时命令单片机主机通过CAN总线控制单片机从机,实现多机通信。本文将对CAN通信、以太网通信等各个部分进行分析并设计程序软件。实验结果表明,本次设计的多机通信系统能够成功向单片机从机发送信息并接收来自从机的信息,可以实现多个控制模块之间的数据传输,多机之间相互协作,共同完成目标任务。In order to realize the purpose of controlling the single chip computer through the upper computer of the PC,and controlling the slave computer through the single chip computer,a multi-machine communication system based on FreeRTOS for STM32F407 chip is designed.The system is based on FreeRTOS real-time operating system,with STM32F407 as the core,the PC upper computer sends information to the single chip computer host through Ethernet,and CAN command the single chip computer host to control the single chip computer slave through CAN bus,to achieve the purpose of multi-machine communication.This paper will analyze and design program software for CAN communication,Ethernet communication and other parts.The experiment results show that the design of the multi-machine communication system can successfully send information to the slave microcomputer and receive the information from the slave microcomputer,can realize the data transmission between multiple control modules,so as to achieve the mutual cooperation between the multi-computer to complete the target task.

关 键 词:STM32F407 FREERTOS 多机通信 TCP/IP CAN 

分 类 号:TN919[电子电信—通信与信息系统] TP274[电子电信—信息与通信工程]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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