Design of door control system using distributed LIN and CAN network structure

Publisher:EtherealJourneyLatest update time:2020-04-13 Source: EEWORLD Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

introduction


With the emergence of various sensors and the rapid development of chip technology, the safety and intelligence of automobiles are increasing day by day. The functions of automobile electronic control units (ECUs) and the information interaction between ECUs are increasing day by day. Automobile manufacturers have developed a variety of bus technologies to provide reliable and low-cost connections, implement corresponding network structures according to different requirements of safety and intelligence, and meet the different requirements of data exchange between units. For the control of the door area, there are many functions to be realized, including window lifting, rearview mirror position adjustment, door lock switch , switch quantity detection, etc. For different target customer groups, there are also many optional intelligences, including window anti-pinch, rearview mirror folding and heating, etc. The author uses low-speed CAN bus and LIN bus to realize the door distributed control system, selectively realizes part of the intelligence, and the system can be quickly modified and upgraded without too much design changes. This article describes the determination of the system structure and the specific implementation of distributed control.


Determination of system structure


The door control system adopts a bus topology structure. The bus generally adopts a low-speed CAN bus or LIN bus. Different bus protocols and different topologies can provide different levels of intelligence. The first solution is to use a centrally controlled CAN node for each door. The BSI and four doors are connected through a CAN network, as shown in Figure 1.

Design of door control system using distributed LIN and CAN network structure

Figure 1 Centralized door control solution


The second solution is to use a distributed LIN network structure for each door, and make each function into a separate node, that is, a separate rearview mirror control node, a window control node, a door lock control node, and a switch input control node. The switch input control node can also be used as the master node of LIN. The master node of each door is also a CAN-LIN gateway node. The BSI and the four doors are connected through the CAN network. As shown in Figure 2.

Figure 2 Distributed door control solution


Solution 1 is a typical solution currently adopted by a large number of manufacturers. This centralized control method integrates window lifting and anti-pinch, rearview mirror position adjustment, door locks, and switch input detection in one ECU. It has low cost, uses a low-speed CAN bus connection, has a simple topology structure, simple and real-time communication, and relatively simple protocol formulation. CAN uses a multi-master dual-line fault-tolerant mechanism, so it has high security. CAN bus-based diagnosis also makes fault finding and repair more convenient.


With the development of technology and consumers' pursuit of automobile intelligence, the improvement of automobile intelligence and rapid upgrading are key factors to ensure the competitiveness of automobile manufacturers. The shortcomings of using a single CAN bus for centralized control have also begun to be exposed. Since the high-performance MCU in the door node directly controls the windows and mirrors, when the ECU's intelligence requirements are getting higher and higher and it is necessary to increase functions or intelligence, the MCU functions of each centralized control node can only be enhanced, resulting in an increase in MCU specifications; centralized control is also complex to install, with many connectors and cables. When intelligence increases, the number of interconnections increases, lacking flexibility, and product upgrades require a lot of costs, which ultimately leads to reduced efficiency [2].


Hierarchical networks are an effective solution to the rapid and low-cost upgrade of automotive products. As an effective supplement to the CAN bus, the LIN bus is a key factor in the feature upgrade and function enhancement of hierarchical automotive networks [3]. The CAN-LIN hierarchical network structure shown in Scheme 2 fully utilizes the respective advantages of the CAN/LIN bus, transplants some functions to smaller and more reliable nodes, reduces the complexity of each ECU, and the LIN nodes in the four doors can be universal, with better interchangeability and compatibility. A node can be added or removed at any time according to the configuration requirements of the door function without any impact on the entire network, so it can be quickly upgraded without incurring greater cost consumption.


The emergence of single-chip sensors and actuators provides a low-cost solution for distributed nodes, making it possible to adopt distributed technology to reduce costs. As LIN bus technology continues to mature, by making appropriate choices for MCU and LIN state machine, a more powerful and flexible distributed system can be obtained.


Implementation of Distributed Control


In the distributed control implementation of the door system, each door is a LIN network. The front door includes the window node, rearview mirror node and door lock node, while the rear door does not include the rearview mirror node. The following discusses the implementation of the door distributed control system from two aspects: the implementation of distributed nodes and the implementation of gateways.


Rearview mirror node


The rearview mirror node solution is shown in the figure below. It can adjust the position of the rearview mirror in the up and down, front and back directions, and realize the folding and heating functions. It is implemented using Freescale's intelligent distributed control single chip MM908E625. MM908E625 is a highly integrated single-package solution that integrates the HC08 core and SmartMOS analog control IC in a SOIC54 package. The analog control IC includes a LIN physical layer transceiver , a voltage regulator, 4 half-H bridges and a high-end switch. The half-H bridge is used to drive the rearview mirror motor to achieve position adjustment and folding, and the high-end switch is used to achieve rearview mirror heating.

Figure 3 Rearview mirror node solution


Window Node


The window node solution is shown in the figure below. To achieve window lifting and anti-pinch, an intelligent power driver chip with current feedback is used, and a small algorithm based on current feedback is designed to achieve the anti-pinch function. When the window motor is started, it can run smoothly after hundreds of milliseconds. After this startup time, the current feedback value of the driver chip is sampled, and the ADC sampling in the MCU on the window ECU is compared with the threshold. If an obstacle is encountered, the operating current of the window motor increases, and the ADC sampling value exceeds the set threshold. At this time, it is considered that an obstacle has been encountered, and the MCU controls the driver chip to stop driving the window motor, thereby achieving anti-pinch.

Figure 4 Window node solution


Gateway


The master node of each door LIN network completes the switch status detection of the door area, controls all communications on the LIN network, designs a reasonable schedule to control the transmission of each information frame, and effectively controls the maximum transmission delay of key signals. This node is also a CAN-LIN gateway node, completing data buffering and information exchange between the CAN network and the LIN network.


Conclusion


This paper comprehensively considers the advantages and disadvantages of different system structures and the requirements of intelligentization and upgrading of automotive products, and designs and implements a door distributed control system based on CAN/LIN bus. The system runs well and has certain practical value.


Reference address:Design of door control system using distributed LIN and CAN network structure

Previous article:Design of intelligent node for fuel cell vehicle air conditioning based on MCU, CAN controller and transceiver
Next article:Spireon Launches Trailer Image Capture and Retrieval to Reduce Cargo Damage and Improve Operational Efficiency

Recommended ReadingLatest update time:2024-11-15 10:22

PIC16-bit MCU CAN (4) Detailed explanation of CAN message transmission
It took me almost three days to send a CAN message. I had never used CAN or DMA before, so I encountered a lot of resistance. Fortunately, I finally figured it out. There are too many CAN frame formats to explain. You can download it online to see the frame structure. Here I will just say that the longest frame is the
[Microcontroller]
PIC16-bit MCU CAN (4) Detailed explanation of CAN message transmission
Application of CAN bus in new energy vehicles
Friends who work in the automotive industry all know the CAN bus, which is the bus standard for communication between the electronic control units of today's cars. Almost all car manufacturers now choose to use CAN bus communication. The CAN bus was originally created by BOSCH to solve many problems such as wiring spa
[Automotive Electronics]
Application of CAN bus in new energy vehicles
Debug automotive designs faster with oscilloscope CAN-dbc character triggering and decoding
The differential Controller Area Network (CAN) bus is widely used in the powertrain and body control of today's automobiles. The CAN bus is a communication protocol developed by Bosch over 30 years ago and has long been considered the "workhorse" serial control bus for automobiles. The CAN bus is also widely used in i
[Test Measurement]
Debug automotive designs faster with oscilloscope CAN-dbc character triggering and decoding
Analysis of LPC2119USB-CAN connector circuit design
  At present, in the application field where the computer is the host computer, the USB port is the preferred interface between the computer and the peripherals. Due to the advantages of high reliability, complete functions, reasonable cost, and real-time performance of the CAN bus, it is widely used in various automat
[Microcontroller]
Analysis of LPC2119USB-CAN connector circuit design
Some experience summary of STM32 CAN bus debugging
1. Development platform and tools: 1. Platform: STM32F103C8T6 48PIN industrial control board and self-designed STM32 development board 2. Software: MDK5 UVision V5.14.0.0 3. PACK: STM32F1xx_DFP——1.0.5(2014-03-14) 4. Others: USB to serial port, ST-Link downloader, USB-CAN Adapter (cheaper purchase link https://item.tao
[Microcontroller]
How to process the collected CAN data
CAN (Controller Area Network) is a communication protocol used in automotive and industrial automation. The collected CAN data needs to be processed and analyzed to better understand the communication process and system performance. 1. CAN data collection Before processing CAN data, you first need to under
[Embedded]
CAN bus and RS-232 converter circuit based on single chip ATMega16 control
    CAN (Controller Area Network) bus is a serial data communication protocol developed by BOSCH of Germany to solve the data exchange between many controls and tests in modern automobiles. It is a multi-master serial communication bus. CAN bus is an open, digital, multi-point communication control system local area n
[Microcontroller]
CAN bus and RS-232 converter circuit based on single chip ATMega16 control
How to build a reliable automotive CAN network?
Abstract: This paper will provide a reliable automotive CAN bus solution based on the application and design of CAN bus in automobiles . 1 Automobile Bus System Architecture    Market research shows that most passenger cars now use CAN-based networks, which account for more than 63% of the entire automotive net
[Automotive Electronics]
How to build a reliable automotive CAN network?
Latest Automotive Electronics Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号