重型拖拉机控制器的CCP底层驱动与上位机设计
CCP Bottom Drive of Heavy Tractor Controller with Upper Computer Design
-
摘要: 针对重型拖拉机控制器的在线标定测量问题,以32位单片机MPC5744P为例,开发了控制器局域网络标定协议(controller area network calibration protocol,简称CCP)的底层驱动程序。依据CCP的需求设计了FlexCAN模块、PIT模块以及Flash模块的底层驱动程序。为实现对变量的在线标定,利用Python的外部工具PyQt5设计了相应的上位机。为验证所设计系统的性能,通过上位机对MPC5744P单片机进行了变量的在线标定测量测试。试验结果表明,设计的CCP底层驱动能够通过与上位机的交互准确实现变量的在线标定测量,符合设计要求。Abstract: Taking MPC5744 P as an example, the low-level driver of Controller Area Network Calibration Protocol(CCP) was developed for online calibration measurement of heavy tractor controller.According to CCP’s requirement, FlexCAN module, PIT module and Flash module’s underlying driver are developed.In order to calibrate the program online, a corresponding upper computer is designed by using Python external tool PyQt5.In order to verify the performance of the designed system, MPC5744 P microcontroller was used to calibrate and measure the variables online.The experimental results show that the designed CCP can accurately achieve the online calibration and measurement of variables through the interaction with the upper computer, which meets the design requirements.