| With the rapid development of automotive electronic technology,the number of body controllers has doubled.The traditional point-to-point communication between controllers not only brings difficulties to harness wiring,but also brings instability to signal transmission.The emergence of Controller Area Network can make it possible to solve the above problems.With the characteristics of high speed,high reliability and low cost,CAN bus is widely used in automobile network to improve the stability of body control.This paper designs the overall structure of the system software and hardware by analyzing the functional requirements of the body control system.In terms of hardware,the system takes NXP microcontroller as the core,and designs circuits such as CAN communication,rearview mirror drive,window control,RKE and door lock control;in the window control module,it is collected by the window sampling circuit The received current is used to judge whether the current of the window motor reaches the anti-pinch threshold current,so as to improve the reliability of the anti-pinch function.In terms of software,AUTOSAR layered software architecture is used to design each module,including CAN communication module,rearview mirror module,RKE module and window anti-pinch module.In the RKE module,the AES encryption algorithm with a key length of 128 bits is used to ensure the security of data transmission between the transmitter and the receiver.The speed difference algorithm based on Hall pulse is used in the window control module to judge whether the window is in the anti-pinch zone and whether it reaches the speed difference anti-pinch threshold,and MATLAB simulation is used to verify that the algorithm is applied in the window anti-pinch module feasibility.Based on the above research,the relevant test platform is built to test the environmental reliability and function of the body controller.The environmental reliability test includes climate environment test,mechanical environment test and comprehensive environment test,which verifies the reliability of the controller.In the can communication test of function test,the system can send and receive messages normally,which verifies the reliability of CAN communication module;In the light and wiper test,the relevant contents are tested according to the test cases,the expected results are obtained,and the function of the light and wiper module is verified to be good;In the window control test,the stability of the window module is verified by collecting the current of the window in different working states and comparing it with the current parameters of the window motor. |