吉林大学学报(信息科学版) ›› 2024, Vol. 42 ›› Issue (1): 154-161.

• • 上一篇    下一篇

基于 Cortex-M3 的串口与 CAN 转换模块的设计与实现

 陈皆潞, 何国祥, 杨子健, 施超凡   

  1. 中船航海科技有限责任公司 生产制造部, 上海 200136) 摘要: 针对采用控制器局域网络(CAN: Controller Area Network
  • 收稿日期:2022-10-23 出版日期:2024-01-29 发布日期:2024-02-04
  • 作者简介: 陈皆潞(1988— ), 女, 上海人, 中船航海科技有限责任公司工程师, 主要从事船舶导航自动化研究, ( Tel) 86- 18621565768(E-mail)chen_jlmy@ 126. com
  • 基金资助:
    船舵操舵仪设计优化及认证基金资助项目(F120001SC) 

 Design and Implementation of Serial Port and CAN Conversion Interface Based on Cortex-M3

 CHEN Jielu, HE Guoxiang, YANG Zijian, SHI Chaofan    

  1. Process Department, CSSC Marine Technology Limited Liability Company, Shanghai 200136, China
  • Received:2022-10-23 Online:2024-01-29 Published:2024-02-04

摘要:  针对采用控制器局域网络(CAN: Controller Area Network)总线的自动操舵系统和采用串口通讯的航海导航 设备之间通讯的不匹配问题, 设计了一种基于 Cortex-M3 嵌入式平台的通信转换模块, 实现了串口与 CAN 总线 数据的双向转换功能。 同时对传统 CAN 收发器 CTM1050 存在的信号稳定性不足、 波特率精准度低等问题, 提出 并实现了一种硬件电路的替代方案, 提高了数据通讯的时效性和稳定性。 基于 CAN2. 0B 扩展帧, 设计了自动操 舵系统内部 CAN 总线协议。 该协议可根据报文信息优先级分配标识帧, 保证了总线数据的有序传输。 实验结果 表明, 该通讯模块功能使用正常且通讯效果良好, 具有一定通用性, 可在多种需要转换的设备系统上推广使用。

关键词:  , Cortex-M3 微控制单元, 控制器局域网络, 串口, 自动操舵系统, 标识符 

Abstract: In order to solve the problem of communication mismatch between autopilot system using CAN (Controller Area Network)bus and navigation equipment using serial port communication, a communication conversion interface module based on Cortex-M3 is designed and the function of data conversion between serial port and CAN bus is realized. Aiming at the problems of poor signal stability and low baud rate accuracy of traditional CAN transceiver circuit CTM1050, an alternative hardware scheme is proposed and implemented to improve the timeliness and stability of data communication. Based on the CAN2. 0B extension frame, the internal CAN bus protocol of the autopilot system is designed to ensure the scalability and stability of the bus. The protocol can assign identity frames according to the priority of message information to ensure the orderly transmission of bus data. The actual test results indicate that the communication module is normal and the communication effect is good. The communication module has a certain universality and can be used in a variety of equipment systems. 

Key words:  , Cortex-M3 microcontroller unit, controller area network(CAN), serial port, autopilot system, identifier

中图分类号: 

  • TP273