单片机STM与linux通信,一种STM32单片机与Linux系统高速串口抗干扰通讯方法 One kind of STM32 MCU and Linux system high-speed seria...

摘要:

本发明公开了一种STM32单片机与Linux系统高速串口抗干扰通讯方法,通过STM32单片机对现场数据进行采集,并根据Linux系统下发指令对采集到的数据进行读写操作,并将写好的数据放入上发Linux系统任务队列,每隔1s就将存放在上发Linux系统任务队列中的数据上传至Linux系统;Linux系统根据实时需求向STM32单片机下发任务,STM32单片机解析Linux系统下发的任务指令,并将解析的任务指令放入上发Linux系统任务队列,便于STM32单片机执行相应的任务指令. The present invention discloses an STM32 MCU and Linux system high-speed serial communications interference method, STM32 microcontroller on-site data collection, and the collected data read and write commands issued based on the Linux system, and written data into the hair Linux system task queue, 1s will be stored in the hair Linux system task queue data uploaded to the system every Linux; Linux system based on real needs of the STM32 microcontroller issued task, STM32 microcontroller analytic issued under Linux system task instruction, and analytical task instruction into the task queue system made Linux easy STM32 microcontroller executes the corresponding task instruction. 本发明提高了双CPU的处理能力和数据处理速率;减低了串口通讯时丢失数据包的机率;所述的Linux系统下发STM32单片机串口数据,CAN数据接收和GPS数据接收均为中断接收,提高了串口通讯过程中的抗干扰能力. The present invention improves the processing capacity and data processing speed dual-CPU; reduce the chances of missing serial communication data packets; hair STM32 microcontroller serial data under the Linux system, CAN data reception and GPS data are received or interrupt reception, improve the serial communication in the process of anti-jamming capability.

展开

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值