Electronic and electrical system, control method, controller, vehicle, and storage medium
By designing the redundant structure of the first and second controllers in the automotive system, the safety control function can be replaced when the first controller fails, which solves the security threat caused by the failure of the vehicle control function and improves the safety of the automotive system. performance and reliability.
Patent Information
- Application Number
- CN202411063423.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-05
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-08-05
AI Technical Summary
When the vehicle control function of the existing vehicle system fails, it cannot drive normally, which threatens the life safety of the driver or passengers. How to improve the safety and reliability of vehicle control.
Design an electronic and electrical system, including a first controller and a second controller. The first controller is responsible for the safety control function. The second controller takes over its function when the first controller fails and monitors the first control through instruction messages. status of the controller and implement safety control functions in case of failure to ensure the continuity and reliability of vehicle control.
It ensures that vehicle control is not interrupted when the first controller fails, improves the safety and reliability of vehicle control, supports the integration of multiple safety control functions, and reduces costs and storage space requirements.
Smart Images

Figure CN118560508A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the automotive field, and in particular to an electronic and electrical system, a control method, a controller, a vehicle, and a storage medium. Background Art
[0002] With the continuous development of the automobile industry, users are paying more and more attention to the safety of automobiles. For example, the reliability and safety of vehicle control functions related to vehicle safety, such as power control, power management, steering and braking during driving, are the primary considerations for users.
[0003] Generally, when the vehicle control function related to vehicle safety fails, the vehicle will not be able to drive normally. In this case, for the vehicle being driven, it will undoubtedly pose a threat to the life safety of the driver or passengers in the vehicle.
[0004] Therefore, how to improve the safety and reliability of vehicle control is a technical problem that needs to be solved urgently. Summary of the invention
[0005] The present disclosure provides an electronic and electrical system, a control method, a controller, a vehicle and a storage medium, which can improve the safety and reliability of vehicle control.
[0006] In order to achieve the above objectives, the present disclosure adopts the following technical solutions: In one aspect, the present disclosure provides an electronic and electrical system for a vehicle, comprising a first controller and a second controller, wherein the first controller is connected to the second controller; The control function of the first controller includes a safety control function; The second controller is used to perform zone control, and the second controller is also used to implement the safety control function when the first controller fails.
[0007] In another aspect, the present disclosure provides a vehicle control method, applied to an electronic and electrical system of the vehicle, the method comprising: The second controller confirms that the first controller fails; The second controller implements the safety control function.
[0008] In another aspect, the present disclosure provides a vehicle control method, applied to an electronic and electrical system of the vehicle, the method comprising: When the first controller works normally, the first controller realizes the safety control function of the vehicle; The first controller sends an indication message to the second controller, so that the second controller determines whether the state of the first controller is an invalid state according to the reception status of the indication message.
[0009] In yet another aspect, the present disclosure provides a first controller, comprising: a processor and a memory for storing instructions executable by the processor; The processor is configured to execute the instructions so that the first controller executes any vehicle control method provided by the embodiments of the present disclosure.
[0010] In yet another aspect, the present disclosure provides a second controller, comprising: a processor and a memory for storing instructions executable by the processor; Wherein, the processor is configured to execute the instructions so that the second controller executes any vehicle control method provided by the embodiments of the present disclosure.
[0011] In yet another aspect, the present disclosure provides a vehicle, comprising the electrical and electronic system; or, comprising the first controller and the second controller.
[0012] On the other hand, a computer-readable storage medium is provided, on which computer program instructions are stored. When the computer program instructions are executed on a computer, the computer executes any one of the vehicle control methods provided in the embodiments of the present disclosure.
[0013] On the other hand, a computer program product is provided, which includes computer program instructions. When the computer instructions are executed on a computer, the computer executes any one of the vehicle control methods provided by the embodiments of the present disclosure.
[0014] The electronic and electrical system of the vehicle provided by the embodiment of the present disclosure, on the one hand, can realize the safety control function of the vehicle through the first controller, and in the event of failure of the first controller, the second controller can replace the first controller to continue to realize the safety control function; thereby, it is ensured that the vehicle control will not be interrupted in the event of failure of the first controller, thereby improving the safety and reliability of vehicle control. On the other hand, it can support or integrate more types of safety control functions, not limited to a single function, thereby improving the safety of vehicle control. On another hand, the focus of fault detection is placed on the second controller, so that even if the first controller cannot accurately convey its own fault condition, the second controller can accurately determine whether the first controller has failed, and realize the safety control function in the event of failure of the first controller. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] The accompanying drawings are used to provide further understanding of the technical solution of the present disclosure and constitute a part of the specification. Together with the embodiments of the present disclosure, they are used to explain the technical solution of the present disclosure and do not constitute a limitation on the technical solution of the present disclosure.
[0016] Figure 1A schematic diagram of the structure of an electronic and electrical system of a vehicle provided in an embodiment of the present disclosure; Figure 2 A schematic diagram of the structure of a second controller provided in an embodiment of the present disclosure; Figure 3 A schematic diagram of the structure of a first controller provided in an embodiment of the present disclosure; Figure 4 One of the flowcharts of a vehicle control method provided by an embodiment of the present disclosure; Figure 5 A second flow chart of a vehicle control method provided by an embodiment of the present disclosure; Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0017] The following will be combined with the drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present disclosure.
[0018] Unless the context requires otherwise, throughout the specification and claims, the term "comprise" and other forms thereof, such as the third person singular form "comprises" and the present participle form "comprising", are to be interpreted as open, inclusive, that is, "including, but not limited to". In the description of the specification, the terms "one embodiment", "some embodiments", "exemplary embodiments", "example", "specific example" or "some examples" and the like are intended to indicate that specific features, structures, materials or characteristics associated with the embodiment or example are included in at least one embodiment or example of the present disclosure. The schematic representation of the above terms does not necessarily refer to the same embodiment or example. In addition, the specific features, structures, materials or characteristics described may be included in any one or more embodiments or examples in any appropriate manner.
[0019] The terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the present disclosure, unless otherwise specified, "plurality" means two or more.
[0020] In the embodiments of the present disclosure, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present disclosure should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0021] 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.
[0022] With the continuous development of the automobile industry, users are paying more and more attention to the safety of automobiles. For example, the reliability and safety of vehicle control functions related to vehicle safety, such as power control, power management, steering and braking during driving, are the primary considerations for users.
[0023] Generally, when the vehicle control function related to vehicle safety fails, the vehicle will not be able to drive normally. In this case, for the vehicle being driven, it will undoubtedly pose a threat to the life safety of the driver or passengers in the vehicle.
[0024] In this regard, an embodiment of the present disclosure provides an electronic and electrical system for a vehicle, including a first controller and a second controller, the first controller and the second controller are connected; wherein the control function of the first controller includes a safety control function; the second controller is used for performing zone control, and the second controller is also used to implement the safety control function in the event that the first controller fails.
[0025] The electronic and electrical system of the vehicle provided by the embodiment of the present disclosure, on the one hand, can realize the safety control function of the vehicle through the first controller, and in the case of failure of the first controller, the second controller replaces the first controller to continue to realize the safety control function; thereby, it is ensured that the vehicle control will not be interrupted in the case of failure of the first controller, thereby improving the safety and reliability of vehicle control. On the other hand, it can support or integrate more types of safety control functions, such as not limited to a single electric parking brake (EPB) or vehicle control unit (VCU) and other safety functions, thereby improving the safety of vehicle control. On the other hand, the focus of fault detection is placed on the second controller, so that even if the first controller cannot accurately convey its own fault condition, the second controller can accurately determine whether the first controller fails, and realize the safety control function in the case of failure of the first controller. On the other hand, considering that multiple domain controllers are usually set in the electronic and electrical architecture, the method provided by the present disclosure can redundantly control the safety control function on the basis of the original controller of the vehicle, thereby improving the safety and reliability of vehicle operation without adding a new controller, saving cost and storage space.
[0026] For ease of understanding, an electronic and electrical system of a vehicle involved in the present disclosure is first introduced below.
[0027] like Figure 1 As shown, the electronic and electrical system of the vehicle includes a first controller 110 and a second controller 120, and the second controller 120 is connected to the first controller 110. In some embodiments, the electronic and electrical system of the vehicle may further include a reset device 130.
[0028] Among them, the first controller 110 is used to realize the whole vehicle control of the vehicle, and the control function of the first controller includes a safety control function. The safety control function can also be called a basic safety function, including but not limited to at least one of the following: electric power steering (EPS) function, integrated powertrain brake (IPB) function, vehicle control unit VCU function, body control module (BCM) function. In some embodiments, the first controller 110 can also send a control signal to the second controller 120 to realize the control of the second controller 120.
[0029] The second controller 120 is used for regional control. The vehicle is divided into multiple areas according to the location, and the second controller 120 can be used for regional control of one area. For example, the second controller 120 can be set in the area or close to the area, so that the devices in the area are connected to the second controller nearby, shortening the length of the connection harness. Optionally, the second controller 120 can also have control functions for some functional domains. The second controller 120 is also used to implement safety control functions in the event that the first controller 110 fails. In some embodiments, the second controller 120 is also used to monitor the status of the first controller 110. It should be noted that in the event that the first controller 110 does not fail, the second controller 120 can also implement its own control functions, such as power management functions.
[0030] In some embodiments, the first controller 110 is further configured to send an indication message to the second controller 120 to indicate the state of the first controller 110. Exemplarily, the indication message includes one or more of a pulse width modulation (PWM) message and a heartbeat message (not shown in the figure), and the PWM message may also be referred to as a hard-line PWM, a PWM signal, or a PWM waveform. Correspondingly, the second controller 120 determines whether the state of the first controller 110 is a failure state according to the reception of the indication message.
[0031] Exemplarily, when the PWM message meets the first failure condition and / or the heartbeat message meets the second failure condition, it is determined that the first controller 110 has failed, wherein the relevant contents of the first failure condition and the second failure condition can be referred to the description in the method embodiment below.
[0032] In some embodiments, when a communication connection is not established between the first controller 110 and the second controller 120, the second controller 120 implements a handshake process with the first controller 110; when the handshake time during the handshake process exceeds a preset time threshold, it is determined that the first controller 110 has failed.
[0033] In some embodiments, the first controller 110 is further configured to send an auxiliary control request message to the second controller 120 in the event of a failure, wherein the auxiliary control request message is used to request the second controller 120 to implement a safety control function. Correspondingly, upon receiving the auxiliary control request message, the second controller 120 determines that the first controller 110 is inoperative; further, the second controller 120 implements a safety control function after determining that the first controller 110 is inoperative.
[0034] In some embodiments, the first controller 110 and the second controller 120 are both connected to a bus (not shown in the figure) and obtain vehicle operating parameters from the bus so as to determine control instructions suitable for the vehicle based on the vehicle operating parameters; wherein the vehicle operating parameters include but are not limited to at least one of the following: a start button signal, a brake signal, an accelerator pedal depth signal, a brake pedal depth signal, and an Ethernet signal (ethernet, ETH), etc.
[0035] It should be noted that, if the first controller 110 is not invalid, the second controller 120 can always determine the control command based on the vehicle operating parameters, but does not perform external operations; if the first controller 110 is invalid, the second controller 120 implements the safety control function based on the determined control command. Thus, it can ensure a smooth transition of the safety control function, reduce the command delay caused by controller switching, and improve the safety and reliability of vehicle control.
[0036] In some embodiments, the electronic and electrical system includes multiple regional controllers, the first controller 110 is the first regional controller among the multiple regional controllers, and the second controller 120 is the second regional controller among the multiple regional controllers. In a specific example, the first regional controller is deployed with the function of a central domain controller.
[0037] In some embodiments, the first controller 110 is a central domain controller of the electronic and electrical system.
[0038] In some embodiments, the second controller 120 is a zone controller of the electronic and electrical system.
[0039] In some embodiments, one of the first controller 110 and the second controller 120 is a left domain controller of the electronic and electrical system, and the other is a right domain controller of the electronic and electrical system.
[0040] In some embodiments, the reset device 130 is connected to the first controller 110 and is configured to output a reset signal to the first controller 110 to reset the first controller 110 when a failure of the first controller 110 is detected.
[0041] In a specific example, a reset number threshold, also called the maximum reset number, is set in the reset device 130. When the reset device 130 fails to reset N times in a row and N reaches the reset number threshold, the reset device 130 no longer outputs a reset signal to avoid the problem that the reset device 130 frequently resets the first controller 110 when the second controller 120 has successfully implemented the safety control function. The above N is a positive integer.
[0042] In some embodiments, the second controller 120 includes multiple cores, one of the multiple cores is used to implement the security control function in the event of failure of the first controller, and the other cores in the multiple cores are responsible for implementing the control function of the second controller 120 itself. For example, the first core in the multiple cores is used to implement the security control function in the event of failure of the first controller, and the second core in the multiple cores is responsible for implementing the control function of the second controller 120 itself. Based on this, the security control function can be deployed on the second controller 120 through core redundancy. Compared with directly deploying the security control function on the second controller 120, the functional redundancy is achieved by using core redundancy, which can achieve the migration of the security control function when the first controller 110 fails, without affecting the realization of the control function of the second controller 120 itself.
[0043] For example, Figure 2 As shown, the second controller 120 includes a first core 210, a second core 220, and a third core 230. Among them, the first core 210 is used to implement the safety control function. The second core 220 is used to deploy single-domain safety functions and single-domain body system control functions. Among them, the single-domain safety function is the control function of the second controller 120 itself, including but not limited to: power management function and / or electronic parking brake EPB function. In the case where the second controller 120 is a right domain controller of the body, the single-domain body system control function deployed by the second core 220 is used to control the right domain body system; in the case where the second controller 120 is a left domain controller of the body, the single-domain body system control function deployed by the second core 220 is used to control the left domain body system. The third core 230 is used to deploy network functions.
[0044] In a specific example, when the first controller 110 fails, the second controller 120 implements the safety control function through the first core 210. For example, the second controller 120 calls the first core 210 to implement the safety control function and hard-wire output based on the vehicle operating parameters. In addition, the second core 220 and the third core 230 maintain normal operation.
[0045] It should be noted that the kernel can also be called core, core or module, etc. Each kernel can be understood as a basic unit for executing instructions and processing data.
[0046] In some embodiments, the multiple cores in the second controller 120 are integrated on the same hardware device with processing capabilities. Exemplarily, the multiple cores in the second controller 120 can be deployed on the same chip or the same central processing unit (CPU). With the development of technology, it is also possible to deploy on the same hardware device in other forms, such as application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) and digital signal processors (DSP). The multiple cores in the second controller 120 can also be deployed on different chips.
[0047] In other embodiments, the hardware devices used by each core in the second controller 120 are independent of each other. Exemplarily, the second controller 120 includes multiple hardware devices, and a core of the second controller 120 is deployed on each hardware device. For example, the first core 210, the second core 220, and the third core 230 are deployed on different chips. It should be understood that the hardware device can also have other forms, and the specific details can be referred to the above description.
[0048] In some other embodiments, some of the multiple cores in the second controller 120 are deployed on independent hardware devices, and some of the cores are integrated and deployed on the same hardware device. For example, the first core 210 can be deployed on a chip alone, and the second core 220 and the third core 230 can be integrated and deployed on another chip.
[0049] In some embodiments, the first controller 110 also includes multiple cores, one core among the multiple cores is responsible for implementing the security control function, and the other cores among the multiple cores are responsible for implementing control functions other than the security control function.
[0050] For example, Figure 3 As shown, the first controller 110 includes a fourth core 310, a fifth core 320, and a sixth core 330. Among them, the fourth core 310 is used to implement the safety control function. The fifth core 320 is used to deploy the single-domain body system control function, the chassis function, and the network drive function. In the case where the first controller 110 is a right-domain body controller, the single-domain body system control function deployed by the fifth core 320 is used to control the right-domain body system; in the case where the first controller 110 is a left-domain body controller, the single-domain body system control function deployed by the fifth core 320 is used to control the left-domain body system. The sixth core 330 is used to deploy network functions.
[0051] Similarly, the multiple cores in the first controller 110 are integrated on the same hardware device with processing capabilities. Alternatively, the hardware devices used by each core in the first controller 110 are independent of each other. Alternatively, some of the multiple cores in the first controller 110 are deployed on independent hardware devices, and some of the cores are integrated and deployed on the same hardware device. For details, please refer to the introduction of the integrated deployment method of the multiple cores of the second controller 120 above.
[0052] It should be noted that, when both the first controller 110 and the second controller 120 include a core for implementing the security control function, on the one hand, it is convenient to update or maintain the security control function, for example, only the corresponding cores in the first controller 110 and the second controller 120 need to be updated or maintained, thereby improving the efficiency and reliability of maintaining the security control function. On the other hand, it is convenient to realize the redundancy of the security control function in the second controller 120, so that when the security control function is redundant, only the content of the fourth core in the first controller 110 needs to be copied through the first core, without affecting the normal use of other cores.
[0053] In some embodiments, when the first controller 110 fails, the safety control function is always implemented by the second controller 120, and no function migration is performed. After receiving a restart instruction, for example, after the vehicle is powered off and on again, the first controller 110 is enabled by default to implement the safety control function.
[0054] It should be understood that the above terminal examples are only for more clearly illustrating the technical solutions of the present disclosure and do not constitute a limitation of the present disclosure. A person skilled in the art will know that with the evolution of network architecture and the emergence of new business scenarios, the technical solutions provided by the present disclosure are also applicable to similar technical problems.
[0055] In order to more clearly illustrate the vehicle control method provided by the present disclosure, the window transmission method provided by the present disclosure is introduced below in conjunction with the accompanying drawings. It should be pointed out that the various embodiments of the present disclosure can refer to each other, for example, the same or similar steps, method embodiments and device embodiments can refer to each other, without limitation.
[0056] like Figure 4 As shown, an embodiment of the present disclosure provides a vehicle control method, which is applied to the electronic and electrical system of the above-mentioned vehicle, and the method includes: S101: The second controller confirms that the first controller fails.
[0057] The control function of the first controller includes a safety control function. In addition, the first controller can also realize the whole vehicle control of the vehicle.
[0058] Among them, the safety control function can also be called the basic safety function, which is a related function involving the basic safety requirements of vehicle operation. Exemplarily, the safety control function includes at least one of the following: power steering EPS function, integrated powertrain braking IPB function, vehicle control unit VCU function, body control module BCM function. The EPS function is used to assist the driver in steering the steering wheel through the electric motor; the IPB function integrates the engine, generator, motor and brake system to improve efficiency and reduce emissions; the VCU function is responsible for monitoring and managing various functions of the vehicle; the BCM function is used to control the body system function of the vehicle.
[0059] The safety control function is deployed on the first controller, and the safety control function is also deployed on the second controller. That is, the safety control function of the first controller is redundant on the second controller. Based on this, by introducing a redundant domain in the vehicle's controller, multiple controllers can be equipped with safety control functions without adding new controllers, thus achieving mutual redundancy. Thus, in the event of a single controller failure, the basic control of the entire vehicle can be reliably operated, thereby improving the safety and reliability of vehicle operation.
[0060] In some embodiments, the first controller may integrate single-domain vehicle body system functions and network functions in addition to the above-mentioned safety control functions. The second controller may integrate its own control functions, such as single-domain safety functions, in addition to the redundant safety control functions mentioned above. It should be understood that the structure of the first controller and the structure or function of the second controller may also refer to the description of the above vehicle electrical and electronic system.
[0061] In some embodiments, the second controller may also monitor the status of the first controller while the first controller is implementing the safety control function.
[0062] In some embodiments, the second controller may also initialize the Ethernet protocol to determine whether it has a fault. For example, if the second controller fails to initialize and fails after 3 attempts, it is determined that the second controller has a fault.
[0063] In some embodiments, the second controller is also connected to a reset device, and when the second controller fails, the reset device receives a reset signal sent by the reset device, and resets the second controller in response to the reset signal. The reset device includes: a hardware reset device and / or a software reset device.
[0064] In order to more clearly illustrate the vehicle control method provided by the present disclosure, the manner in which the second controller monitors the state of the first controller is briefly introduced below.
[0065] In some embodiments, the control method further includes: the second controller receives the instruction message sent by the first controller; and determines the state of the first controller according to the reception of the instruction message. Thus, the second controller can monitor the state of the first controller according to the reception of the instruction message.
[0066] In some embodiments, the indication message includes one or more of a pulse width modulation (PWM) message and a heartbeat message. It should be understood that there may be other possible indication messages, which are not specifically limited in the present disclosure.
[0067] In some embodiments, the second controller confirms that the first controller has failed, including: the indication message includes a pulse width modulation PWM message, and the first controller is determined to have failed when the PWM message meets a first failure condition; wherein the first failure condition includes at least one of the following: no PWM message is received within a first preset time length; a target parameter of the received PWM message exceeds a preset parameter range, the target parameter including frequency and / or duty cycle; and / or, The indication message includes a heartbeat message. When the heartbeat message meets the second failure condition, the first controller is determined to be failed; wherein the second failure condition includes at least one of the following: no heartbeat message is received within a second preset time period; the handshake time during the handshake process with the first controller before receiving the heartbeat message exceeds a preset time threshold.
[0068] It should be understood that when the PWM message meets the first failure condition, it can be considered that the PWM message reception has failed; when the heartbeat message meets the first failure condition, it can be considered that the heartbeat message reception has failed.
[0069] In other words, the above method can also be understood as: when the PWM message meets the first failure condition and / or the heartbeat message meets the second failure condition, it is determined that the first controller has failed.
[0070] Furthermore, the present disclosure briefly describes the state determination method of the first controller with several specific embodiments.
[0071] (1) Embodiment 1: The indication message includes a pulse width modulation (PWM) message, and the first controller is determined to be failed when the PWM message meets a first failure condition.
[0072] In a specific example, the first preset time length is 1 second. It should be understood that the first preset time length may have other possible values; the time length set by the first preset time length may be shortened, for example, the first preset time length is set to 0.1 seconds, 0.5 seconds, etc., to improve the efficiency of failure judgment and ensure that the second controller can quickly take over when the first controller fails; for another example, the time length set by the first preset time length may be extended, for example, the first preset time length is set to 1.1 seconds, 1.2 seconds, etc., to reduce misjudgment of failure and improve the reliability of failure judgment.
[0073] In a specific example, the target parameter of the received PWM message exceeds the preset parameter range, including: the target parameter of the received PWM message continues to exceed the preset parameter range within a first preset duration. For example, when a PWM message is received and the target parameter of the PWM message is not within the preset parameter range, the second controller accumulates a first timeout period; when the first timeout period exceeds the first preset duration, it is determined that the PWM message meets the first failure condition or that the PWM message reception fails.
[0074] In a specific example, not receiving the PWM message includes: not receiving the PWM message within a first preset duration. For example, when the PWM message is not received, the second controller accumulates a first timeout period; when the first timeout period exceeds the first preset duration, it is determined that the PWM message meets the first failure condition or that the PWM message reception fails.
[0075] In a specific example, when a PWM message is received and the target parameters of the PWM message are within a preset parameter range, the first timeout period may be cleared.
[0076] Based on this, when the PWM message reception fails, the second controller can be directly switched to implement the safety control function without making other judgments, reducing the judgment steps; especially when the first controller of the vehicle does fail, it can switch to other controllers for safety control more quickly, improving the safety and reliability of vehicle driving.
[0077] (2) Embodiment 2: The indication message includes a heartbeat message, and the first controller is determined to be failed when the heartbeat message meets the second failure condition.
[0078] In a specific example, the second preset time length is 1 second. It should be understood that the second preset time length may have other possible values; the second preset time length may be shortened, for example, the second preset time length is set to 0.1 seconds, 0.5 seconds, etc., to improve the efficiency of failure judgment and ensure that the second controller can quickly take over when the first controller fails; for another example, the second preset time length may be extended, for example, the second preset time length is set to 1.1 seconds, 1.2 seconds, etc., to reduce misjudgment of failure and improve the reliability of failure judgment.
[0079] In a specific example, failure to receive a heartbeat message includes: failure to receive a heartbeat message within a second preset duration. For example, when a heartbeat message is not received, the second controller accumulates a second timeout period; when the second timeout period exceeds the second preset duration, it is determined that the heartbeat message meets the first failure condition or that the heartbeat message fails to be received.
[0080] In a specific example, when a heartbeat message is received, the second timeout period may be cleared.
[0081] Based on this, when the heartbeat message reception fails, the second controller can be directly switched to implement the safety control function without making other judgments, reducing the judgment steps; especially when the first controller of the vehicle does fail, it can be more quickly switched to other controllers for safety control, thereby improving the safety and reliability of vehicle driving.
[0082] (3) Embodiment 3: The indication message includes a pulse width modulation (PWM) message and a heartbeat message, and the first controller is determined to be failed when the PWM message meets the first failure condition and the heartbeat message meets the second failure condition.
[0083] For the relevant content that the PWM message meets the first failure condition, reference may be made to the description in the above embodiment 1, and for the relevant content that the heartbeat message meets the second failure condition, reference may be made to the description in the above embodiment 2.
[0084] Based on this, compared to determining the state of the first controller only by the reception of the PWM message or only by the reception of the heartbeat message. The state of the first controller can be more accurately judged by combining the reception of the PWM message and the reception of the heartbeat message. For example, in the case where the heartbeat message reception fails but the PWM message reception is successful, it does not necessarily mean that the first controller has failed. For example, there may be other problems such as message flag configuration errors or signal interference. In the case where the PWM message reception fails but the heartbeat message reception is successful, it does not mean that the first controller must have failed. For example, the first controller may have selected a PWM waveform with a different data format from the second controller, or line noise interference, or poor hard line contact. Therefore, in the case of failure to receive the PWM message and failure to receive the heartbeat message, it is determined that the first controller has failed, which can improve the accuracy of failure judgment.
[0085] In some embodiments, the second controller confirms that the first controller has failed, including: when the handshake time of the second controller and the first controller exceeds a preset time threshold, determining that the first controller has failed. In one example, the handshake between the first controller and the second controller occurs when no communication connection is established between the first controller and the second controller.
[0086] In some embodiments, the second controller confirms that the first controller is invalid, including: the second controller determines that the first controller is invalid when receiving an auxiliary control request message sent by the first controller, and the auxiliary control request message is used to request the second controller to implement a safety control function. Based on this, the state of the first controller can be directly notified to the second controller through the auxiliary control request, reducing the monitoring workload of the second controller, so that the second controller can be quickly called to implement the safety control function.
[0087] To more clearly illustrate the vehicle control method provided by the present disclosure, please refer to Figure 5 , the following uses a specific example to illustrate that the second controller can determine whether the first controller fails through the following steps S201 to S212.
[0088] S201: Receive a PWM message sent by a first controller.
[0089] S202, determining whether a PWM message is received; if a PWM message is received, executing step S203, if not, executing step S204.
[0090] S203, determining whether the target parameter of the received PWM message belongs to a preset parameter range; if it belongs to the preset parameter range, executing step S206; if it does not belong to the preset parameter range, executing step S204.
[0091] S204, accumulate the first timeout period, and execute step S205.
[0092] S205, determining whether the first timeout period exceeds the first preset duration; if the first timeout period exceeds the first preset duration, determining that the PWM message reception fails, and executing step S212; if the first timeout period does not exceed the first preset duration, returning to step S201.
[0093] S206. Clear the first timeout period and return to step S201.
[0094] S207, determine whether the handshake with the first controller has been successful; if so, execute step S209, if not, execute step S208.
[0095] S208, determine whether the handshake time exceeds the preset time threshold; if so, execute step S212, if not, return to execute step S207.
[0096] S209, determining whether a heartbeat message sent by the first controller is received; if a heartbeat message is received, repeating step S209, if no heartbeat message is received, executing step S210.
[0097] S210, accumulating the second timeout period, and executing step S211.
[0098] S211, determine whether the second timeout period exceeds the second preset duration; if the second timeout period exceeds the second preset duration, determine that the heartbeat message reception fails, and execute step S212; if the second timeout period does not exceed the second preset duration, return to step S209.
[0099] S212: When the handshake time exceeds the preset time threshold, or when the PWM message reception fails and the heartbeat message reception fails, determine that the first controller fails. It should be understood that the above-mentioned PWM message reception failure can also be understood as the PWM message meeting the first failure condition; the above-mentioned heartbeat message reception failure can also be understood as the heartbeat message meeting the second failure condition.
[0100] In one example, step S212 further includes: determining that the first controller fails when the handshake time exceeds a preset time threshold and the PWM message reception fails (not shown in the figure). Figure 5 In the example shown, when the handshake time exceeds the preset time threshold, it means that the heartbeat message will fail to be received.
[0101] It should be noted that the above steps S201 to S206 may be performed simultaneously with steps S207 to S211, or may be performed before steps S207 to S211, or may be performed after steps S207 to S211. In addition, steps S207 and S208 are optional steps. For example, if the first controller and the second controller have successfully established a connection, steps S207 and S208 may not be performed. It should be understood that the present disclosure does not make specific limitations on this.
[0102] S102: The second controller implements a safety control function.
[0103] That is, the second controller implements the safety control function when confirming that the first controller has failed.
[0104] In some embodiments, after the second controller is powered on or awakened from sleep mode for the first time, the second controller determines the control instructions related to the security control function, but does not send the control instructions externally. That is, when the first controller is not invalid, the second controller and the first controller simultaneously implement the application logic of the security control function, but the second controller does not send the control instructions related to the security control function externally, and only sends the control instructions externally when the first controller fails.
[0105] Based on this, in the event that the first controller fails, the second controller can quickly send out the determined control instructions, reduce the instruction delay caused by controller switching, achieve smooth migration of safety control functions, and improve the safety and reliability of vehicle control.
[0106] The vehicle control method provided by the embodiment of the present disclosure can, on the one hand, realize the safety control function of the vehicle through the first controller, and in the case of failure of the first controller, the second controller replaces the first controller to continue to realize the safety control function; thereby, it is ensured that the vehicle control will not be interrupted in the case of failure of the first controller, thereby improving the safety and reliability of vehicle control. On the other hand, it can support or integrate more types of safety control functions, not limited to a single electric parking brake EPB or vehicle control unit VCU and other safety functions, thereby improving the safety of vehicle control. On the other hand, the focus of fault detection is placed on the second controller, so that even if the first controller cannot accurately convey its own fault condition, the second controller can accurately determine whether the first controller fails, and realize the safety control function in the case of failure of the first controller. On the other hand, considering that a central domain controller and several regional controllers are usually set in the electronic and electrical architecture, the method provided by the present disclosure redundantly controls the safety control function on the basis of the original controller of the vehicle (for example, deploying the safety control function on the second controller), thereby improving the safety and reliability of vehicle operation without adding a new controller, saving cost and storage space.
[0107] In addition, an embodiment of the present disclosure also provides a vehicle control method, which is applied to the electronic and electrical system of the above-mentioned vehicle. The electronic and electrical system of the vehicle includes a first controller and a second controller connected to the first controller. The second controller is used to implement the vehicle's safety control function in the event of failure of the first controller. The method includes: when the first controller is working normally, the first controller implements the safety control function.
[0108] In some embodiments, the second controller is further configured to monitor a status of the first controller.
[0109] In some embodiments, the first controller further implements the following steps: sending an indication message to the second controller, so that the second controller can monitor the state of the first controller according to the reception of the indication message, thereby determining whether the state of the first controller is a failure state. Exemplarily, the indication message includes one or more of a PWM message and a heartbeat message.
[0110] In some embodiments, the above-mentioned sending of an indication message to the second controller includes: initialization after the first controller is powered on for the first time or awakened from sleep; if the initialization is successful, the first controller implements the vehicle's safety control function and sends a PWM message and a heartbeat message to the second controller; if the initialization fails, the first controller continues to attempt to initialize.
[0111] In some embodiments, the first controller sends a heartbeat message to the second controller only after the Ethernet chip of the first controller is successfully initialized.
[0112] In some embodiments, the target parameter of the PWM message sent by the first controller is within a preset parameter range. For example, the first controller sends a PWM message with a fixed frequency and duty cycle to the second controller.
[0113] In some embodiments, the above method further includes: in the event of a fault, the first controller sends an auxiliary control request message to the second controller, where the auxiliary control request message is used to request the second controller to implement a safety control function.
[0114] Exemplarily, when a controller area network (CAN) transceiver of a safety function system in a first controller is detected to be faulty, an auxiliary control request message is sent to a second controller.
[0115] For example, the auxiliary control request message may be sent to the second controller only when the first controller fails to reset and fails. Based on this, the accuracy of failure judgment can be improved.
[0116] In some embodiments, the first controller is connected to a reset device, and the method further includes: resetting the first controller when the first controller receives a reset signal sent by the reset device. The reset device includes: a hardware reset device and / or a software reset device. It should be noted that the first controller and the second controller can each be equipped with a different reset device to ensure that the first controller and the second controller can be reset independently of each other.
[0117] Exemplarily, taking the reset device as a hardware watchdog, when the first controller is not failed, the first controller performs a dog feeding operation on the hardware watchdog at a preset time interval, for example, the first controller clears a timer built into the hardware watchdog at a preset time interval. In response to the first controller not performing the dog feeding operation within the preset time interval, the hardware watchdog determines that the first controller is failed, and sends a reset signal to the first controller, so that the first controller is reset based on the reset signal.
[0118] Exemplarily, a maximum number of reset times of the first controller may also be set to avoid frequent resets of the first controller.
[0119] The vehicle control method provided by the embodiment of the present disclosure, on the one hand, can realize the safety control function of the vehicle through the first controller, and in the case of failure of the first controller, the second controller can replace the first controller to continue to realize the safety control function; thereby, it is ensured that the vehicle control will not be interrupted in the case of failure of the first controller, thereby improving the safety and reliability of vehicle control. On the other hand, it can support or integrate more types of safety control functions, not limited to a single electric parking brake EPB or vehicle control unit VCU and other safety functions, thereby improving the safety of vehicle control. On the other hand, the focus of fault detection is placed on the second controller, so that even if the first controller cannot accurately convey its own fault condition, the second controller can accurately monitor whether the first controller has failed, and realize the safety control function in the case of failure of the first controller.
[0120] It is understandable that, in order to realize the above functions, the above-mentioned device includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the algorithm steps of each example described in the embodiments disclosed herein, the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present disclosure.
[0121] The embodiment of the present disclosure also provides a second controller for implementing the above vehicle control method, wherein the second controller includes a state monitoring module and a redundant safety module.
[0122] The state monitoring module is used to monitor the state of the first controller during the process of the first controller realizing the safety control function, and the first controller is used to realize the safety control function of the vehicle.
[0123] The redundant safety module is used to implement the safety control function in case the first controller fails.
[0124] In some embodiments, the safety control function includes at least one of the following: power steering EPS function, integrated powertrain braking IPB function, vehicle control unit VCU function, body control module BCM function.
[0125] In some embodiments, the state monitoring module is specifically used to receive an indication message sent by the first controller; and determine the state of the first controller according to the reception status of the indication message.
[0126] In some embodiments, the indication message includes one or more of a pulse width modulation (PWM) message and a heartbeat message.
[0127] In some embodiments, the indication message includes a pulse width modulation (PWM) message, and the state monitoring module is specifically used to determine that the first controller fails when the PWM message meets the first failure condition; and / or, the indication message includes a heartbeat message, and the state monitoring module is specifically used to determine that the first controller fails when the heartbeat message meets the second failure condition. The first failure condition and the second failure condition can refer to the description above.
[0128] In some embodiments, the state monitoring module is specifically configured to determine that the first controller fails when a handshake time of a handshake process between the first controller and the second controller exceeds a preset time threshold.
[0129] In some embodiments, the status monitoring module is specifically used to determine that the first controller has failed upon receiving an auxiliary control request message sent by the first controller, where the auxiliary control request message is used to request the second controller to implement a safety control function.
[0130] In some embodiments, the second controller includes multiple cores, a first core among the multiple cores is used to implement the safety control function in the event of failure of the first controller, and a second core among the multiple cores is responsible for implementing the control function of the second controller itself. In a specific example, the redundant safety module is the core responsible for implementing the safety control function, or the redundant safety module is integrated on the core responsible for implementing the safety control function.
[0131] In addition, the embodiment of the present disclosure further provides a first controller for implementing the above-mentioned vehicle control method. The first controller is used to implement the whole vehicle control of the vehicle, and the control function of the first controller includes a safety control function.
[0132] The first controller includes a safety control module, which is used to implement the safety control function of the vehicle when the first controller works normally.
[0133] In some embodiments, the first controller further includes a status indication module and / or a function reset module.
[0134] In some embodiments, the status indication module is used to send an indication message to the second controller.
[0135] In some embodiments, the indication message includes one or more of a pulse width modulation (PWM) message and a heartbeat message.
[0136] In some embodiments, the status indication module is further used to send an auxiliary control request message to the second controller when the first controller fails, and the auxiliary control request message is used to request the second controller to implement a safety control function.
[0137] In some embodiments, the function reset module is used to reset the first controller when receiving a reset signal sent by the reset device.
[0138] It should be noted that the division of modules in the first controller and the second controller is schematic and is only a logical function division. There may be other division methods in actual implementation. For example, two or more functions may be integrated into one processing module. The integrated module may be implemented in the form of hardware or in the form of software function modules.
[0139] In the case of implementing the functions of the above-mentioned integrated modules in the form of hardware, the embodiment of the present disclosure also provides a possible structure of an electronic device, which is used to execute the vehicle control method provided by the embodiment of the present disclosure. Similarly, the electronic device and the vehicle control method described above can be referred to in correspondence with each other.
[0140] like Figure 6 As shown, the electronic device includes a processor 602 and a communication interface 603. In some examples, the electronic device may also include at least one of a bus 604 and a memory 601.
[0141] The processor 602 may be a processor that implements or executes various exemplary logic blocks, modules, and circuits described in conjunction with the embodiments of the present disclosure. The processor 602 may be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array, or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the embodiments of the present disclosure. The processor 602 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.
[0142] The communication interface 603 is used to connect with other devices via a communication network, which may be Ethernet, wireless access network, wireless local area network (WLAN), etc.
[0143] The memory 601 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program codes in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.
[0144] As a possible implementation, the memory 601 may exist independently of the processor 602, and the memory 601 may be connected to the processor 602 via a bus 604, and is used to store instructions or program codes executable by the processor 602, such as computer program instructions, etc. When the processor 602 calls and executes the instructions or program codes stored in the memory 601, the vehicle control method provided in the embodiment of the present disclosure can be implemented.
[0145] In another possible implementation, the memory 601 may also be integrated with the processor 602 .
[0146] The bus 604 may be an extended industry standard architecture (EISA) bus, etc. The bus 604 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0147] Some embodiments of the present disclosure provide a computer-readable storage medium (e.g., a non-transitory computer-readable storage medium), in which computer program instructions are stored. When the computer program instructions are executed on a computer, the computer executes the vehicle control method described in any of the above embodiments. It should be understood that the present disclosure does not limit the specific form of the computer.
[0148] In some examples, the computer-readable storage media described above may include, but are not limited to: magnetic storage devices (e.g., hard disks, floppy disks, or tapes, etc.), optical disks (e.g., Compact Disks (CDs), Digital Versatile Disks (DVDs), etc.), smart cards, and flash memory devices (e.g., Erasable Programmable Read-Only Memory (EPROMs), cards, sticks, or key drives, etc.). The various computer-readable storage media described in the present disclosure may represent one or more devices and / or other machine-readable storage media for storing information. The term "machine-readable storage medium" may include, but is not limited to, wireless channels and various other media capable of storing, containing, and / or carrying instructions and / or data.
[0149] An embodiment of the present disclosure provides a computer program product including instructions. When the computer program product is run on a computer, the computer is enabled to execute the vehicle control method described in any one of the above embodiments.
Claims
1. An electrical and electronic system for a vehicle, characterized in that: It includes a first controller and a second controller, wherein the first controller is connected to the second controller; wherein, The control function of the first controller includes a safety control function; The second controller is used to perform zone control, and the second controller is also used to implement the safety control function when the first controller fails.
2. The system according to claim 1, characterized in that The safety control function includes at least one of the following: power steering EPS function, integrated powertrain braking IPB function, vehicle control unit VCU function, and body control module BCM function.
3. The system according to claim 1, characterized in that The electronic and electrical system includes a plurality of zone controllers, the first controller is a first zone controller among the plurality of zone controllers, and the second controller is a second zone controller among the plurality of zone controllers.
4. The system according to claim 3, characterized in that The first regional controller is deployed with the function of a central domain controller.
5. The system according to claim 1, characterized in that The first controller is a central domain controller of the electronic and electrical system.
6. The system according to claim 1, characterized in that The first controller is further configured to send an instruction message to the second controller; The second controller is further used to determine whether the state of the first controller is an invalid state according to the reception status of the indication message.
7. The system according to claim 6, characterized in that The indication message includes one or more of a pulse width modulation (PWM) message and a heartbeat message.
8. The system according to claim 6, characterized in that The indication message includes a pulse width modulation (PWM) message, and the second controller is further used to determine that the first controller fails when the PWM message meets a first failure condition; wherein the first failure condition includes at least one of the following: the PWM message is not received within a first preset time period, or a target parameter of the received PWM message exceeds a preset parameter range, and the target parameter includes a frequency and / or a duty cycle; and / or, The indication message includes a heartbeat message, and the second controller is also used to determine that the first controller has failed when the heartbeat message meets a second failure condition, and the second failure condition includes at least one of the following: the heartbeat message is not received within a second preset time period; the handshake time during the handshake process with the first controller before receiving the heartbeat message exceeds a preset time threshold.
9. The system according to claim 1, characterized in that The second controller is further configured to determine that the first controller is failed when a handshake time of a handshake process between the first controller and the second controller exceeds a preset time threshold.
10. The system according to claim 1, characterized in that The first controller is further configured to send an auxiliary control request message to the second controller in the event of a fault, wherein the auxiliary control request message is used to request the second controller to implement the safety control function; The second controller is further configured to implement the safety control function upon receiving the auxiliary control request message.
11. The system according to claim 1, characterized in that The second controller includes multiple cores, a first core among the multiple cores is used to implement the safety control function in the event that the first controller fails, and a second core among the multiple cores is responsible for implementing the area control function of the second controller.
12. The system according to claim 1, characterized in that Also includes: A reset device is connected to the first controller and is used to output a reset signal to the first controller when a failure of the first controller is detected.
13. The system according to claim 1, characterized in that One of the first controller and the second controller is a left domain controller of the electronic and electrical system, and the other is a right domain controller of the electronic and electrical system.
14. A vehicle control method, characterized in that: Applied to the electronic and electrical system according to any one of claims 1 to 13, the method comprising: The second controller confirms that the first controller fails; The second controller implements the safety control function.
15. The method according to claim 14, characterized in that The safety control function includes at least one of the following: power steering EPS function, integrated powertrain braking IPB function, vehicle control unit VCU function, and body control module BCM function.
16. The method according to claim 14, characterized in that The method further comprises: receiving an instruction message sent by the first controller; Based on the reception of the indication message, a state of the first controller is determined.
17. The method according to claim 16, characterized in that The indication message includes one or more of a pulse width modulation (PWM) message and a heartbeat message.
18. The method according to claim 16, characterized in that The second controller confirms that the first controller has failed, including: the indication message includes a pulse width modulation PWM message, and the first controller is determined to be failed when the PWM message meets a first failure condition; wherein the first failure condition includes at least one of the following: the PWM message is not received within a first preset time length; a target parameter of the received PWM message exceeds a preset parameter range, the target parameter including frequency and / or duty cycle; and / or, The indication message includes a heartbeat message. When the heartbeat message meets a second failure condition, it is determined that the first controller has failed; the second failure condition includes at least one of the following: the heartbeat message is not received within a second preset time period; the handshake time during the handshake process with the first controller before receiving the heartbeat message exceeds a preset time threshold.
19. The method according to claim 14, characterized in that The second controller confirming that the first controller fails includes: When the handshake time of the handshake process between the second controller and the first controller exceeds a preset time threshold, the second controller determines that the first controller has failed.
20. The method according to claim 14, characterized in that The second controller confirming that the first controller fails includes: The second controller determines that the first controller has failed when receiving the auxiliary control request message sent by the first controller, where the auxiliary control request message is used to request the second controller to implement the safety control function.
21. The method according to claim 14, characterized in that The second controller includes multiple cores, a first core among the multiple cores is used to implement the safety control function in the event that the first controller fails, and a second core among the multiple cores is responsible for implementing the area control function of the second controller.
22. A vehicle control method, characterized in that: Applied to the electronic and electrical system according to any one of claims 1 to 13, the method comprising: When the first controller works normally, the first controller realizes the safety control function of the vehicle; The first controller sends an indication message to the second controller, so that the second controller determines whether the state of the first controller is an invalid state according to the reception status of the indication message.
23. The method according to claim 22, characterized in that The indication message includes one or more of a pulse width modulation (PWM) message and a heartbeat message.
24. The method according to claim 22, characterized in that The method further comprises: In the event that the first controller fails, the first controller sends an auxiliary control request message to the second controller, where the auxiliary control request message is used to request the second controller to implement the safety control function.
25. The method according to claim 22, characterized in that The safety control function includes at least one of the following: power steering EPS function, integrated powertrain braking IPB function, vehicle control unit VCU function, and body control module BCM function.
26. The method according to claim 22, characterized in that The first controller is connected to a reset device, and the method further includes: When the first controller receives the reset signal sent by the reset device, the first controller is reset.
27. A first controller, characterized in that: include: a processor and a memory for storing instructions executable by the processor; Wherein, the processor is configured to execute the instructions so that the first controller executes the vehicle control method as described in any one of claims 22-26.
28. A second controller, characterized in that: include: a processor and a memory for storing instructions executable by the processor; Wherein, the processor is configured to execute the instructions so that the second controller executes the vehicle control method as described in any one of claims 14-21.
29. A vehicle, characterized in that: An electronic and electrical system comprising any one of claims 1 to 13; or, comprising the first controller according to claim 27 and the second controller according to claim 28.
30. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed on a computer, the computer executes the vehicle control method as described in any one of claims 14-26.
Citation Information
Patent Citations
Failure control method and system for remote power-on of vehicle
CN108650282A
Gateway and method for carrying out data conversion on basis of CANopen protocol and Ethernet protocol
CN108881001A
Redundant backup method and device
CN111107572A
Electronic parking control system and control method
CN111348027A
Modular redundancy control electronic parking brake system and brake method
CN112406842A
Cited By
Electronic and electrical system, control method, controller, vehicle and storage medium
WO2026031500A1
