摘要
针对CAN总线和RS-232通信中遇到的一些问题,提出了一种RS-232与CAN总线之间的通信转换模块的设计方法。选用STM32作为微处理器,用来控制协调各模块之间的工作,并对通信数据进行处理,设计了一种基于STM32的通信转换模块的硬件电路,并完成了对各模块的控制管理程序和数据处理程序,最后对模块进行不同干扰等级的设备信号抗干扰性测试。通过对测试结果的分析,验证了设备设计方法的可行性和可靠性。这为现场总线技术的发展提供了一种新思路。
Characteristics and disadvantages of the CAN bus and RS-232 communication were discussed and analyzed. This pa-per proposes a the design method of conversion module between RS-232 and CAN bus .The STM32 was chosen as the micropro-cessor, which was used to control coordinate work between various modules and process the communication data. In order to com-plete the control of the module management procedures and data processing, the hardware circuit was designed with STM32 commu-nication conversion module. Finally we carried out different levels of signal anti-jamming test .Through the analysis of test results, the feasibility and reliability of the equipment design method were verified. This solution provides a new way of thinking for the de-velopment of fieldbus technology.
出处
《自动化与仪器仪表》
2015年第8期198-200,共3页
Automation & Instrumentation
基金
西安市科技计划项目(CXY1437(3))的资助