Area controller and vehicle

By using programmable logic modules and Ethernet communication modules to replace microcontrollers in automotive electronic architectures, the problems of poor universality and high cost of regional controllers in the prior art are solved, and more flexible expansion and higher system reliability are achieved. sex.

CN119002342APending Publication Date: 2024-11-22CHONGQING CHANGAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411072192.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-06
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

Each regional controller in the existing automotive electronics architecture is configured with a microcontroller unit, resulting in poor versatility, high complexity and high cost, and the microcontroller unit cannot be flexibly expanded or configured.

Method used

The programmable logic module and Ethernet communication module are used to replace the microcontroller unit. The programmable logic module is connected to the sensor and the central computer to realize the transmission of data transmission and control instructions. The programmable logic devices such as FPGA or CPLD are flexible to expand functions to reduce the Vehicle electronic architecture complexity and cost.

Benefits of technology

It improves the versatility and flexibility of regional controllers, reduces the complexity and cost of vehicle electronic architecture, and enhances the fault tolerance and reliability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119002342A_ABST
    Figure CN119002342A_ABST
Patent Text Reader

Abstract

The invention provides an area controller and a vehicle, relates to the technical field of intelligent vehicles, and is used for reducing the complexity of an automobile electronic architecture. The area controller comprises a first programmable logic module and a first Ethernet communication module, the first programmable logic module is connected with the first Ethernet communication module, the first programmable logic module is used for being connected with the sensor, and the first Ethernet communication module is used for being connected with the central computer. The first programmable logic module is configured to obtain sensor data collected by the sensor and send the sensor data to the central computer through the first Ethernet communication module, or receive a control instruction sent by the central computer through the first Ethernet communication module and control corresponding vehicle parts to act according to the control instruction. The control instruction is generated by the central computer according to sensor data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of intelligent vehicles, and in particular to a zone controller and a vehicle. Background Art

[0002] As the degree of intelligence and networking of automobiles continues to improve, the proportion of automotive electronics and electrical systems in automobiles is also gradually increasing. In order to achieve better control over various electronic and electrical components in the automobile, regional controllers and regional controller centralized architectures have emerged.

[0003] In the current electronic architecture of automobiles, each regional controller is equipped with a microcontroller unit (MCU) for data calculation and processing. Since the microcontroller unit cannot be flexibly expanded or configured, the versatility of the regional controller is poor, resulting in a high complexity of the automobile electronic architecture. Summary of the invention

[0004] The present application provides a zone controller and a vehicle, which are used to reduce the complexity of the vehicle electronic architecture. The technical solution of the present application is as follows:

[0005] According to a first aspect of the present application, a regional controller is provided, the regional controller comprising: a first programmable logic module and a first Ethernet communication module, the first programmable logic module is connected to the first Ethernet communication module, the first programmable logic module is used to connect to a sensor, and the first Ethernet communication module is used to connect to a central computer. The first programmable logic module is configured to: obtain sensor data collected by the sensor, and send the sensor data to the central computer through the first Ethernet communication module, or receive a control instruction sent by the central computer through the first Ethernet communication module, and control the corresponding vehicle component according to the control instruction, the control instruction is generated by the central computer according to the sensor data.

[0006] According to the above technical means, the microcontroller unit is replaced by a programmable logic module in the regional controller. The regional controller no longer processes the sensor data, but only realizes the functions of data transmission and execution controller. The regional controller can use programmable logic devices such as field-programmable gate array (FPGA) and complex programmable logic device (CPLD), and can be flexibly expanded and freely configured using hardware programming according to application scenarios and customer needs, thereby improving the versatility of the regional controller and reducing the complexity of the vehicle electronic architecture. The functions originally realized by the microcontroller unit, such as communication functions and interface functions, are realized by programming the internal modules of the programmable logic module, which reduces the development cost of the staff, and because the cost of the programmable logic module is lower than that of the microcontroller unit, the device cost of the automotive regional controller can also be reduced. The first Ethernet communication module is connected to the first programmable logic module and the central computer respectively, and the first programmable logic module is connected to the sensor. Through the link of the sensor, the first programmable logic module, the Ethernet communication module and the central computer, the sensor data collected by the sensor can be transmitted to the central computer through the regional controller, and the control instructions issued by the central computer can also be used to control the corresponding component actions through the regional controller.

[0007] In a possible implementation, the regional controller further includes: a second programmable logic module and a second Ethernet communication module, the second programmable logic module is connected to the second Ethernet communication module, the second programmable logic module is used to connect to the sensor, and the second Ethernet communication module is used to connect to the central computer. The second programmable logic module is configured to: simultaneously acquire sensor data collected by the sensor with the first programmable logic module, and when the first programmable logic module sends the sensor data to the central computer through the first Ethernet communication module, send the sensor data to the central computer through the second Ethernet communication module, or when the first programmable logic module receives the control instruction sent by the central computer through the first Ethernet communication module, receive the control instruction sent by the central computer through the second Ethernet communication module.

[0008] In a possible implementation, the regional controller further includes a first driving module, a second driving module, a first power supply, and a second power supply. The first Ethernet communication module, the first programmable logic module, and the first driving module are respectively connected to the first power supply, the second Ethernet communication module, the second programmable logic module, and the second driving module are respectively connected to the second power supply, the first driving module is connected to the first programmable logic module, and the second driving module is connected to the second programmable logic module.

[0009] In a possible implementation manner, the communication rate of the Ethernet communication module is greater than or equal to a communication rate threshold.

[0010] In a possible implementation, the programmable logic module includes: an Ethernet control module, a message packing module, a message unpacking module and an interface control module. The Ethernet control module is configured to: receive a first Ethernet message sent by a central computer through an Ethernet communication module, and send the first Ethernet message to the message unpacking module, or receive a second Ethernet message sent by a message packing module, and send the second Ethernet message to the central computer through the Ethernet communication module. The message unpacking module is configured to: receive a first Ethernet message, unpack the first Ethernet message to obtain a control instruction, and send the control instruction to the interface control module. The message packing module is configured to: receive sensor data, pack the sensor data to obtain a second Ethernet message, and send the second Ethernet message to the Ethernet control module. The interface control module is configured to: receive a control instruction, and send the control instruction to a corresponding vehicle component to control the action of the corresponding vehicle component, or obtain sensor data and send the sensor data to the message packing module.

[0011] In a possible implementation manner, the Ethernet message includes: a preamble, a destination address, a source address, a data type, a data field, a check code, and a frame interval.

[0012] In a possible implementation manner, the data field includes: a timestamp, a type field, a channel number, a message length, and interface data.

[0013] In a possible implementation, the regional controller is configured to enter a dormant state when the programmable logic module does not receive the first Ethernet message and does not send the second Ethernet message within a preset time. When the regional controller is in the dormant state, the regional controller is configured to receive a wake-up signal sent by the central computer through the Ethernet communication module, and the wake-up signal is used to wake up the power supply corresponding to the programmable logic module. When the power supply of the programmable logic module is awakened, the programmable logic module is configured to control the remaining modules of the regional controller to power on.

[0014] In a possible implementation, the first programmable logic module further includes a first heartbeat detection module, and the second programmable logic module further includes a second heartbeat detection module. The first heartbeat detection module is configured to: detect the operating state of the second programmable logic module, and when the operating state of the second programmable logic module is abnormal, control the second programmable logic module to reset. The second heartbeat detection module is configured to: detect the operating state of the first programmable logic module, and when the operating state of the first programmable logic module is abnormal, control the first programmable logic module to reset.

[0015] According to a second aspect provided by the present application, a vehicle is provided, the vehicle comprising a central computer and a regional controller as described in the first aspect and possible implementations thereof, the central computer being connected to the regional controller. It should be noted that the technical effects brought about by the second aspect can refer to the technical effects brought about by the first aspect and the corresponding implementations of the first aspect, and will not be repeated here.

[0016] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application, and do not constitute an improper limitation on the present application.

[0018] Figure 1 A schematic diagram of a circuit topology of a regional controller provided in an embodiment of the present application;

[0019] Figure 2 A schematic diagram of a circuit topology of another regional controller provided in an embodiment of the present application;

[0020] Figure 3 A schematic diagram of a circuit topology of another regional controller provided in an embodiment of the present application;

[0021] Figure 4 A schematic diagram of a circuit topology of another regional controller provided in an embodiment of the present application;

[0022] Figure 5 A schematic diagram of the composition of an Ethernet message provided in an embodiment of the present application;

[0023] Figure 6 A schematic diagram of the composition of a vehicle provided in an embodiment of the present application. DETAILED DESCRIPTION

[0024] In order to enable ordinary persons in the art to better understand the technical solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.

[0025] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.

[0026] In the description of this application, unless otherwise specified, "plurality" means two or more than two. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b and / or c can be represented by: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or plural.

[0027] In the embodiments of the present application, words such as "exemplarily" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplarily" or "for example" is intended to present related concepts in a concrete way for easy understanding.

[0028] Additionally, the use of “based on” is meant to be open and inclusive, as a process, step, calculation, or other action “based on” one or more stated conditions or values ​​may, in practice, be based on additional conditions or values ​​beyond those stated.

[0029] As the degree of intelligence and networking of automobiles continues to improve, the proportion of automotive electronics and electrical equipment in automobiles is also gradually increasing. The more functions and configurations you want your car to have, such as autonomous driving cameras, millimeter-wave radars, multimedia entertainment systems, and HUD head-up display systems, the more electronic control units (ECUs) you need. Too many ECUs will not only cause wiring difficulties, increase wiring harness costs, and increase vehicle weight, but will also lead to decentralized computing power, making system integration and OTA maintenance difficult. In this case, regional controllers are born.

[0030] The regional controller usually includes an MCU, which processes and judges the data collected by the sensors under the regional controller. The original ECU corresponds to the sensor one by one, and the problem of dispersed computing power is solved. However, since there are multiple regional controllers in the automotive electronic architecture, each regional controller needs to be configured with an MCU for precise data processing and analysis. Since the MCU cannot be flexibly expanded or configured, the versatility of the regional controller is poor, which not only increases the complexity of the automotive electronic architecture, but also still requires high costs for the entire vehicle.

[0031] In view of this, an embodiment of the present application provides a zone controller, exemplarily, such as Figure 1 See Figure 1 The circuit topology of the vehicle includes a central computer 1 and a regional controller 2, wherein the regional controller 2 includes: a first Ethernet communication module 21 and a first programmable logic module 22, the first Ethernet communication module 21 is connected to the first programmable logic module 22, the first programmable logic module 22 is used to connect with the sensor 3, and the first Ethernet communication module 21 is used to connect with the central computer 1. The first programmable logic module 22 is configured to: obtain sensor data collected by the sensor 3, and send the sensor data to the central computer 1 through the first Ethernet communication module 21, or, receive the control instruction sent by the central computer 1 through the first Ethernet communication module 21, and control the corresponding vehicle component action according to the control instruction, and the control instruction is generated by the central computer 1 according to the sensor data.

[0032] The first programmable logic module 22 replaces the microcontroller unit in the regional controller 2. The regional controller 22 no longer processes the data of the sensor 3, but only realizes the control functions of data transmission and controlling the actions of the corresponding vehicle components according to the control instructions of the central computer, thereby reducing the complexity of the vehicle electronic architecture to a certain extent. The functions originally realized by the microcontroller unit, such as communication functions and interface functions, are realized by programming the internal modules of the first programmable logic module 22. Since the cost of the first programmable logic module 22 is lower than that of the microcontroller unit, the cost of the car can be reduced. As a possible implementation method, the function of the first programmable logic module 22 can be flexibly expanded according to the use requirements and scenarios, thereby improving the versatility of the regional controller 2 and reducing the hardware development cycle and cost of the regional controller 2.

[0033] As a possible implementation, the first programmable logic module 22 includes a programmable chip such as a field-programmable gate array (FPGA) or a complex programmable logic device (CPLD).

[0034] In some embodiments, for example, Figure 2 As shown, the regional controller 2 further includes: a second Ethernet communication module 23 and a second programmable logic module 24, the second Ethernet communication module 23 is connected to the second programmable logic module 24, the second programmable logic module 24 is used to connect to the sensor 3, and the second Ethernet communication module 23 is used to connect to the central computer 1. The second programmable logic module 24 is configured to: simultaneously acquire the sensor data collected by the sensor 3 with the first programmable logic module 22, and when the first programmable logic module 22 sends the sensor data to the central computer 1 through the first Ethernet communication module 21, send the sensor data to the central computer 1 through the second Ethernet communication module 23, or when the first programmable logic module 22 receives the control instruction sent by the central computer 1 through the first Ethernet communication module 21, receive the control instruction sent by the central computer 21 through the second Ethernet communication module 23.

[0035] Since the control instructions issued by the central computer 1 can also be transmitted to the second programmable logic module 24 along the second Ethernet communication module 23, the second programmable logic module 24 controls the operation of the corresponding vehicle components, and the sensor data collected by the sensor 3 can also be sent to the central computer along the second programmable logic module 24 and the second Ethernet communication module 23, when an abnormality occurs between the first Ethernet communication module 21 or the first programmable logic module 22, the normal communication between the sensor 3, the regional controller 2 and the central computer 1 can be achieved through the second Ethernet communication module 23 and the second programmable logic module 24. Therefore, a backup design is performed inside the regional controller 2, that is, on the basis of the first Ethernet communication module 21 and the first programmable logic module 22, the second Ethernet communication module 23 and the second programmable logic module 24 are added, and the failure of a single channel will not affect the function of the regional controller 2, and the fault tolerance and reliability of the regional controller 2 are improved.

[0036] For example, Figure 3 As shown, the regional controller 2 also includes a first driving module 25, a second driving module 26, a first power supply 27 and a second power supply 28. The first Ethernet communication module 21, the first programmable logic module 22 and the first driving module 25 are respectively connected to the first power supply 27, and the second Ethernet communication module 23, the second programmable logic module 24 and the second driving module 26 are respectively connected to the second power supply 28. The first driving module 25 is connected to the first programmable logic module 22, and the second driving module 26 is connected to the second programmable logic module 24. As a possible implementation, the first driving module 25 and the second driving module 26 are connected to electronic devices such as sensors, power supplies, motors, and controllers through terminals.

[0037] As a possible implementation method, the drive module includes high-side drive, low-side drive, full-bridge drive, and half-bridge drive. The high-side drive is usually used to connect to the fuel pump or body-related equipment, and the low-side drive is usually connected to the load related to the powertrain. The backup design of the power supply of the regional controller and the drive module has improved the high safety of the car and met the safety and reliability requirements of high-level driving.

[0038] For example, refer to Figure 3 , Figure 3 The dotted part in the figure represents the enabling control of the power supply. As a possible implementation method, the type of Ethernet communication module includes an Ethernet PHY-T1 chip or an optical module. By adopting a redundant design, the type of Ethernet communication module is not limited, that is, the selection of the first Ethernet communication module 21 and the second Ethernet communication module 23 can be freely matched in the Ethernet PHY-T1 chip and the optical module according to the application scenario and actual needs, which can adapt to a wider range of regional controller 2 requirements.

[0039] The following uses the Ethernet communication module type of Ethernet PHY-T1 chip as an example to illustrate the wake-up between the regional controller and the central computer. The Ethernet PHY-T1 chip supports Ethernet wake-up. In order to reduce energy consumption, the regional controller and the central computer usually enter a dormant state when not working, that is, within a preset time, if the programmable logic module does not receive the first Ethernet message and does not send the second Ethernet message, it will enter a dormant state. When the regional controller is in a dormant state, the regional controller is configured to: receive a wake-up signal sent by the central computer through the Ethernet communication module (Ethernet PHY-T1 chip), and the wake-up signal is used to wake up the power supply corresponding to the programmable logic module. When the power supply corresponding to the programmable logic module is awakened, the programmable logic module is configured to control the power-on of the remaining modules of the regional controller.

[0040] according to Figure 3It can be seen that the power supply inside the regional controller 2 supplies power to the Ethernet communication module. For example, the first power supply 27 supplies power to the first Ethernet communication module 21 (Ethernet PHY-T1 chip), and the second power supply 28 supplies power to the second Ethernet communication module 23. The power enable end of the first power supply 27 is also connected to the second Ethernet communication module 23, and the power enable end of the second power supply 28 is also connected to the first Ethernet communication module 21. When the Ethernet communication module receives the wake-up signal sent by the central computer 1, any Ethernet communication module can wake up the two power supplies, and the programmable logic module controls the remaining modules of the regional controller to power on. When the programmable logic module and the Ethernet communication module are dormant, any Ethernet communication module (Ethernet PHY-T1 chip) controls the power off of each module of the regional controller. Since the dormant wake-up of the regional controller is implemented using Ethernet, the controller interface and wiring harness are greatly reduced.

[0041] In order to ensure the quality of communication between the regional controller and the central computer, the communication rate of the Ethernet communication module should be greater than or equal to the communication rate threshold. Exemplarily, taking the communication rate threshold of 1G as an example, the communication rate of the Ethernet communication module should be greater than or equal to 1G. Taking the communication rate threshold of 1G and the actual transmission rate of 900MB as an example, the longest Ethernet message is 1516 bytes, the preamble occupies 8 bytes, the frame interval occupies 12 bytes, and the longest transmission time of the Ethernet message is (1516+8+12)*8*10 / 9=13.7μs. Similarly, the time required to transmit a 64-byte Ethernet message between the regional controller and the central computer is (64+8+12)*8*10 / 9=0.75μs. Since the minimum control cycle of the regional controller's software is 1ms, the impact of transmission delay can be ignored. Theoretically, the higher the communication rate of the Ethernet communication module, the better. Since the regional controller of the present application uses a programmable logic module instead of an MCU, the rate of the Ethernet interface can be expanded upward by editing the programmable logic module. For example, it can be expanded to an Ethernet rate of more than 10G.

[0042] As a possible implementation, for example, Figure 4 FIG. 2 is a schematic diagram of a circuit topology of another regional controller 2. The regional controller 2 includes an Ethernet communication module 20 and a programmable logic module 30 connected to the Ethernet communication module 20. The Ethernet communication module 20 and the programmable logic module 30 may be the first Ethernet communication module 21 and the first programmable logic module 22, or may be the second Ethernet communication module 23 and the second programmable logic module 24.

[0043] Reference Figure 4The programmable logic module 30 includes an Ethernet control module 31, a message packing module 32, a message unpacking module 33 and an interface control module 34. The Ethernet control module 31 is configured to receive a first Ethernet message sent by the central computer 1 through the Ethernet communication module 20, and send the first Ethernet message to the message unpacking module 33, or receive a second Ethernet message sent by the message packing module 32, and send the second Ethernet message to the central computer 1 through the Ethernet communication module 20.

[0044] The message unpacking module 33 is configured to: receive a first Ethernet message, unpack the first Ethernet message to obtain a control instruction, and send the control instruction to the interface control module 34. In some embodiments, the message unpacking module 33 includes a message parsing and classification module 331 and a second data cache module 332. The message packing module 32 is configured to: receive sensor data, pack the sensor data to obtain a second Ethernet message, and send the second Ethernet message to the Ethernet control module 20. In some embodiments, the message packing module 32 includes a packing module 321, a priority classification module 322, and a first data cache module 32.

[0045] The interface control module 34 is configured to: receive control instructions, and send control instructions to corresponding vehicle components to control the corresponding vehicle component actions, or obtain sensor data, and send the sensor data to the message packaging module 32. In some embodiments, the interface control module 34 includes a CAN interface, an SPI interface, an IIC interface, a UART interface, a LIN interface, and a GPIO interface, and different sensors are connected to the programmable logic module 30 through compatible interfaces. For example, a CAN transceiver sends sensor data to the programmable logic module 30 through a CAN interface, and a LIN transceiver sends sensor data to the programmable logic module 30 through a LIN interface.

[0046] As a possible implementation, the programmable logic module 30 is connected to the motor, and the programmable logic module 30 also includes a motor motion control module 35, which is configured to: receive motor data sent by the motor, and send the motor data to the message packaging module 32, or receive control instructions, and send control instructions to the motor driver to control the motor to perform corresponding actions. The motor motion control module 35 has a built-in motor control algorithm, including PID control, vector control, field oriented control and other algorithms, and can achieve high-speed and real-time motor control based on the powerful parallel data processing capability and real-time characteristics of FPGA.

[0047] In some embodiments, the Ethernet control module 31 includes: a media independent interface module 311, a status display module 312, a data receiving module 313, a data sending module 314 and a control module 315, and the Ethernet control module 31 implements the Ethernet MAC control function. The Ethernet control module 31 includes full-duplex frame control specified by IEEE 802.3, automatic generation and checking of a 32-bit CRC check sequence, generation and removal of an Ethernet message header, and can achieve complete state control of receiving a first Ethernet message sent by the central computer 1 and sending a second Ethernet message to the central computer 1.

[0048] Among them, the media independent interface (MII) module 311 provides an interface independent of the media for connecting to the external Ethernet communication module 20. The status display module 312 (status module) can record the changes in various states of the Ethernet communication module 20 when transmitting data. The data receiving module 313 (receivemodule) completes the operations related to receiving data, including removing the header and CRC check. The data sending module 314 (transmitmodule) completes the operations related to sending data, including generating the header, adding the CRC check sequence, etc. The control module 315 (control module) completes the operations required to be performed by all functions of the Ethernet MAC controller.

[0049] As a possible implementation, the programmable logic module further includes a register module 36, which is used to temporarily store instructions, data and addresses, and provide required configuration and data registers for each sub-module in the programmable logic module.

[0050] like Figure 5 As shown in (a), the central computer and the regional controller communicate via Ethernet messages, which include a preamble, a destination address, a source address, a data type, a data field, a checksum, and a frame interval. To achieve communication between the central computer and the regional controller, it is necessary to define the data format of the data field of the Ethernet message accordingly to reach an internal protocol between the central computer and the regional controller. As a possible implementation method, the preamble occupies 8 bytes, the destination address occupies 6 bytes, the source address occupies 6 bytes, the data type occupies 2 bytes, the checksum occupies 4 bytes, and the frame interval occupies 12 bytes.

[0051] As a possible implementation, Figure 5As shown in (a), the data field includes a timestamp, a type field, a channel number, a message length, and interface data. The timestamp indicates the time, and the type field is used to distinguish different types of interface data. Different types of interfaces, such as IO, UART, IIC, SPI, CAN, and LIN interfaces are assigned different numbers. The channel number is used to indicate the number of channels in the same channel. The interface data is the data of sensors and electronic devices connected to the programmable logic module.

[0052] For off-board buses such as CAN and LIN, Ethernet messages use transparent communication. Transparent communication is also known as transparent transmission, which means that the transmission network is only responsible for transmitting the services that need to be transmitted to the destination node regardless of the transmission business, while ensuring the quality of the transmission, and does not process the transmitted business. During the data transmission process, this set of data does not undergo any form of change, that is, it is not truncated, grouped, encoded, encrypted, or confused. The regional controller packages the received CAN, LIN and other data, sends it to the central computer through the Ethernet communication module, and parses the received Ethernet messages and transmits them to the CAN and LIN buses. For on-board buses such as SPI, IIC, and UART, the interface controller module must not only complete the packaging and unpacking of Ethernet messages, but the interface control module must also complete the corresponding bus read and write operations based on the unpacked Ethernet messages.

[0053] Based on the high parallelism and flexible programming characteristics of the programmable logic module, it can be flexibly defined according to the digital fields of different types of interfaces. Taking the interface control module of the programmable logic module including the GPIO interface as an example, the GPIO interface can be first grouped to obtain multiple GPIO groups, each GPIO group includes multiple GPIO interfaces, and generally one GPIO group defines sixteen GPIO interfaces. Taking the interface control module as an example, there is only one GPIO group, and each GPIO interface in the group is represented by P0.0, P0.1, P0.2, P0.3, P0.4, P0.5, P0.6, P0.7, P0.8, P0.9, P0.10, P0.11, P0.12, P0.13, P0.14, and P0.15. When there is more than one GPIO group in the interface control module, the first number after "P" indicates which GPIO group it belongs to, and the number after the decimal point indicates which GPIO interface it belongs to in the group. For example, "P2.3" indicates the fourth GPIO interface in the third GPIO group, and "P3.11" indicates the twelfth GPIO interface in the fourth GPIO group.

[0054] The programmable logic device can operate the GPIO group as a whole, and can also operate a certain interface in a certain GPIO group. Figure 5As shown in FIG. 1 , when the programmable logic device performs an overall operation on the GPIO group, as shown in FIG. Figure 5 As shown in (a) of FIG. 1 , when the programmable logic device operates an interface in a GPIO group, Figure 5 As shown in (b) in .

[0055] Reference Figure 5 As can be seen from (a) in the figure, when the GPIO group is operated as a whole, the number of channels in the digital field indicates the number of GPIO groups operated simultaneously. Figure 5 (a) shows the digital fields when the n-1 GPIO groups are operated as a whole. The message length and interface data correspond to the nth GPIO group and the interface data of the corresponding GPIO group, respectively. For example, GPI0n represents the n-1th GPIO interface group, and the GPI0n data represents the interface data of the n-1th GPIO interface group. As a possible implementation method, when the GPIO group is operated as a whole, the timestamp occupies 8 bytes, the type field occupies 1 byte, the number of channels occupies 1 byte, the message length occupies 1 byte, the interface data occupies 4 bytes, and each GPIO in the GPIO group occupies 2 bits of data, of which 1 bit is used to represent the input and output status of the GPIO interface, and the other 1 bit represents the data of the GPIO interface.

[0056] Reference Figure 5 As can be seen from (b), when operating an interface in a GPIO group, the number of channels indicates the total number of GPIO interfaces operated at the same time. For example, when operating interfaces in 3 different GPIO groups, one GPIO interface is selected from each GPIO group. The message length and interface data respectively correspond to the group and the number of the GPIO interface to which the operation belongs, as well as the corresponding interface data. The n in GPIOn represents the number of groups, and the m in GPIOn+m represents the position of the interface after the group is determined. For example, GPIO2+3 means that the fourth interface in the third GPIO interface group, that is, P2.3, is operated. As a possible implementation method, when operating an interface in a GPIO group, the timestamp occupies 8 bytes, the type field occupies 1 byte, the number of channels occupies 2 bytes, the message length occupies 1 byte, and the interface data occupies 1 byte, of which n and m occupy 6 bits of data, 1 bit indicates the input and output status of the GPIO interface, and another 1 bit indicates the data of the GPIO interface.

[0057] For example, refer to Figure 4 As a possible implementation, the programmable logic device also includes a heartbeat detection module 37 and a synchronization module 38. The heartbeat detection module 37 is used to detect the operating status of the redundant programmable logic module, and needs to be powered on or reset for recovery after an abnormality. The synchronization module 38 realizes the time synchronization of the primary and backup programmable logic devices.

[0058] It should be noted that the "redundant programmable logic device" mentioned above refers to the programmable logic device used as a backup in the regional controller. For example, when the first programmable logic module is responsible for receiving the control instructions of the central computer to control the operation of the corresponding vehicle components, and the first programmable logic module receives sensor data and sends it to the central computer, the second programmable logic module is a redundant programmable logic module relative to the first programmable logic module. Similarly, when the second programmable logic module is responsible for receiving the control instructions of the central computer to control the operation of the corresponding vehicle components, and the second programmable logic module receives sensor data and sends it to the central computer, the first programmable logic module is a redundant programmable logic module relative to the second programmable logic module. Therefore, the first programmable logic module and the second programmable logic module are redundant to each other.

[0059] Specifically, the first programmable logic module includes a first heartbeat detection module, and the second programmable logic module includes a second heartbeat detection module. The first heartbeat detection module is configured to detect the operating state of the second programmable logic module, and when the operating state of the second programmable logic module is abnormal, control the second programmable logic module to reset. The second heartbeat detection module is configured to detect the operating state of the first programmable logic module, and when the operating state of the first programmable logic module is abnormal, control the first programmable logic module to reset. The first heartbeat detection module and the second heartbeat detection module will send and receive pulse signals to each other at a certain frequency. When any heartbeat detection module does not receive the pulse signal as expected, for example, the second heartbeat detection module does not receive the pulse signal sent by the first heartbeat detection module as expected, it means that the operating state of the first programmable logic module is abnormal at this time. The second heartbeat detection module controls the first programmable logic module to reset, the first programmable logic module is converted from the main channel for Ethernet communication between the central computer and the regional controller to the backup channel, and the second programmable logic module is converted from the backup channel for Ethernet communication between the central computer and the regional controller to the main channel.

[0060] For example, Figure 6 As shown, the present application also provides a vehicle 100, which includes a central computer 1 and a regional controller 2 as described above, and the central computer 1 is connected to the regional controller 2. Since the programmable logic module 30 replaces the microcontroller unit in the regional controller 2, the regional controller 2 no longer processes the sensor data, but only realizes the functions of data transmission and execution controller, thereby reducing the complexity of the vehicle electronic architecture to a certain extent. The functions originally realized by the microcontroller unit, such as communication function and interface function, are realized by programming the internal modules of the programmable logic module 30. Since the cost of the programmable logic module 30 is lower than that of the microcontroller unit, the cost of the vehicle can be reduced.

[0061] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A zone controller, characterized in that: include: a first programmable logic module and a first Ethernet communication module, wherein the first programmable logic module is connected to the first Ethernet communication module, the first programmable logic module is used to connect to a sensor, and the first Ethernet communication module is used to connect to a central computer; The first programmable logic module is configured to: obtain sensor data collected by the sensor and send the sensor data to the central computer through the first Ethernet communication module, or receive control instructions sent by the central computer through the first Ethernet communication module, and control the corresponding vehicle component action according to the control instructions, wherein the control instructions are generated by the central computer according to the sensor data.

2. The zone controller according to claim 1, characterized in that: The zone controller further comprises: a second programmable logic module and a second Ethernet communication module, the second programmable logic module is connected to the second Ethernet communication module, the second programmable logic module is used to connect to the sensor, and the second Ethernet communication module is used to connect to the central computer; The second programmable logic module is configured to: acquire the sensor data collected by the sensor simultaneously with the first programmable logic module, and when the first programmable logic module sends the sensor data to the central computer through the first Ethernet communication module, send the sensor data to the central computer through the second Ethernet communication module, or, when the first programmable logic module receives the control instruction sent by the central computer through the first Ethernet communication module, receive the control instruction sent by the central computer through the second Ethernet communication module.

3. The zone controller according to claim 2, characterized in that: The zone controller further includes a first driving module, a second driving module, a first power supply and a second power supply; The first Ethernet communication module, the first programmable logic module, and the first driving module are respectively connected to the first power supply, the second Ethernet communication module, the second programmable logic module, and the second driving module are respectively connected to the second power supply, the first driving module is connected to the first programmable logic module, and the second driving module is connected to the second programmable logic module.

4. The zone controller according to claim 3, characterized in that: The communication rate of the Ethernet communication module is greater than or equal to a communication rate threshold.

5. The zone controller according to claim 4, characterized in that: The programmable logic module includes: an Ethernet control module, a message packaging module, a message unpacking module and an interface control module; The Ethernet control module is configured to: receive a first Ethernet message sent by the central computer through the Ethernet communication module, and send the first Ethernet message to the message unpacking module, or receive a second Ethernet message sent by the message packing module, and send the second Ethernet message to the central computer through the Ethernet communication module; The message unpacking module is configured to: receive the first Ethernet message, unpack the first Ethernet message to obtain the control instruction, and send the control instruction to the interface control module; The message packaging module is configured to: receive the sensor data, package the sensor data to obtain the second Ethernet message, and send the second Ethernet message to the Ethernet control module; The interface control module is configured to: receive the control instruction and send the control instruction to the corresponding vehicle component to control the action of the corresponding vehicle component, or obtain the sensor data and send the sensor data to the message packaging module.

6. The zone controller according to claim 5, characterized in that: The Ethernet message includes: a preamble, a destination address, a source address, a data type, a data field, a check code and a frame interval.

7. The zone controller according to claim 6, characterized in that: The data field includes: timestamp, type field, number of channels, message length and interface data.

8. The zone controller according to claim 7, characterized in that: The regional controller is configured to: enter a dormant state if the programmable logic module does not receive the first Ethernet message and does not send the second Ethernet message within a preset time; When the regional controller is in a dormant state, the regional controller is configured to: receive a wake-up signal sent by the central computer through the Ethernet communication module, wherein the wake-up signal is used to wake up the power supply corresponding to the programmable logic module; When the power of the programmable logic module is awakened, the programmable logic module is configured to control the remaining modules of the regional controller to power on.

9. The zone controller according to any one of claims 2 to 8, characterized in that: The first programmable logic module further includes a first heartbeat detection module, and the second programmable logic module further includes a second heartbeat detection module; The first heartbeat detection module is configured to: detect the operating state of the second programmable logic module, and when the operating state of the second programmable logic module is abnormal, control the second programmable logic module to reset; The two-heartbeat detection module is configured to detect the operating state of the first programmable logic module, and control the first programmable logic module to reset when the operating state of the first programmable logic module is abnormal.

10. A vehicle, characterized in that: The vehicle comprises a central computer and a zone controller as claimed in any one of claims 1 to 9, wherein the central computer is connected to the zone controller.