Working state control circuit of ethernet gateway and central computer

By switching between the main control drive circuit and the auxiliary control drive circuit, the problem of central computer network link failure caused by Ethernet gateway anomaly is solved, realizing dual control of the Ethernet gateway and improving the reliability and stability of the vehicle's in-vehicle network.

CN123164142APending Publication Date: 2026-11-24CHONGQING CHANGAN AUTOMOBILE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611457542.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-18
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

In an integrated architecture, the operating status of the Ethernet gateway is controlled by either the driver domain or the cockpit domain. If an anomaly occurs, it may cause a failure in the overall network link of the central computer, affecting the function of the vehicle controller.

Method used

An Ethernet gateway operating status control circuit is provided, including a main control drive circuit, an auxiliary control drive circuit, and a drive switching circuit. The main control drive circuit controls the Ethernet gateway under normal conditions, and the drive switching circuit switches to the auxiliary control drive circuit when an abnormality is detected in the main controller. The auxiliary controller then controls the operating status of the Ethernet gateway, ensuring dual control.

Benefits of technology

When the main controller malfunctions, it can switch to the auxiliary controller in a timely manner, ensuring that the Ethernet gateway's operation is uninterrupted. This improves the reliability and stability of the vehicle's in-vehicle network and avoids the impact of a single domain controller failure on the gateway.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123164142A_ABST
    Figure CN123164142A_ABST
Patent Text Reader

Abstract

This application relates to an Ethernet gateway operating status control circuit and a central computer. The operating status control circuit includes a main control drive circuit, an auxiliary control drive circuit, and a drive switching circuit. The main control drive circuit is used to control the operating status of the Ethernet gateway through the main controller when the main controller is working normally. The drive switching circuit is used to switch from the main control drive circuit to the auxiliary control drive circuit when an abnormality is detected in the main controller, so as to control the operating status of the Ethernet gateway through the auxiliary controller. This circuit enables control of the operating status of the Ethernet gateway.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of Ethernet gateway technology, and in particular to an Ethernet gateway operating status control circuit and a central computer. Background Technology

[0002] With the continuous development of automotive intelligent technology, cross-domain convergence architecture can effectively reduce the hardware cost of vehicle controllers and improve the overall performance of the vehicle controller. Since both the driver domain and the cockpit domain are equipped with high-performance system-on-chips (SOCs), and the domain controllers need to transmit large amounts of data such as video and images, the driver domain controller and the cockpit domain controller can be integrated and deployed in the same central computer.

[0003] In this integrated architecture, the Ethernet gateway is shared by the driver domain controller and the cockpit domain controller. The operating status of the Ethernet gateway module (power supply, reset, and configuration operations) can be controlled from either the driver or cockpit domain. If the Ethernet gateway malfunctions, it will cause a failure in the overall network link of the central computer, ultimately leading to the failure of the vehicle controller. Therefore, controlling the operating status of the Ethernet gateway is a pressing issue. Summary of the Invention

[0004] Therefore, it is necessary to provide an Ethernet gateway operation status control circuit and a central computer to address the above-mentioned technical problems, which can control the operation status of the Ethernet gateway.

[0005] In a first aspect, this application provides an Ethernet gateway operating state control circuit, which includes a main control drive circuit, an auxiliary control drive circuit, and a drive switching circuit. The input terminal of the main control drive circuit is connected to the main controller of the vehicle, the first input terminal of the auxiliary control drive circuit is connected to the auxiliary controller of the vehicle, the first output terminal of the main control drive circuit and the first output terminal of the auxiliary control drive circuit are both connected to the input terminal of the drive switching circuit, the output terminal of the drive switching circuit is connected to the second input terminal of the auxiliary control drive circuit, and the second output terminal of the main control drive circuit and the second output terminal of the auxiliary control drive circuit are both connected to the working interface of the Ethernet gateway.

[0006] The main control drive circuit is used to control the working status of the Ethernet gateway through the main controller when the main controller is working normally.

[0007] The drive switching circuit is used to switch from the main control drive circuit to the auxiliary control drive circuit when an abnormality is detected in the main controller, so as to control the working status of the Ethernet gateway through the auxiliary controller.

[0008] In one embodiment, the drive switching circuit includes a drive signal comparison circuit. The input terminal of the drive signal comparison circuit is connected to the first output terminal of the main control drive circuit and the first output terminal of the auxiliary control drive circuit, respectively. The output terminal of the drive signal comparison circuit is connected to the second input terminal of the auxiliary control drive circuit.

[0009] The drive signal comparison circuit is used to compare the main control drive signal output from the first output terminal of the main control drive circuit with the auxiliary control drive signal output from the first output terminal of the auxiliary control drive circuit. When the main control drive signal is less than the auxiliary control drive signal, the circuit switches from the main control drive circuit to the auxiliary control drive circuit so as to control the working state of the Ethernet gateway through the auxiliary controller.

[0010] In one embodiment, the drive switching circuit further includes a filter circuit, the first end of which is connected to the output of the drive signal comparison circuit and the second input of the auxiliary control drive circuit.

[0011] The filtering circuit is used to filter the auxiliary control drive signal and transmit the filtered auxiliary control drive signal to the working interface of the Ethernet gateway to control the working status of the Ethernet gateway.

[0012] In one embodiment, the drive signal comparison circuit includes a first switch, a resistor one, a resistor two and a first capacitor, and the filter circuit includes a second capacitor;

[0013] The first output terminal of the main control drive circuit is connected to the source of the first switching transistor through resistor one and to the gate of the first switching transistor through resistor two. The first capacitor is connected between the gate and the source of the first switching transistor. The first output terminal of the auxiliary control drive circuit is connected to the source of the first switching transistor. The drain of the first switching transistor is connected to the first terminal of the second capacitor and the second input terminal of the auxiliary control drive circuit. The second terminal of the second capacitor is grounded.

[0014] When the main controller is working normally, the first switch is in the off state; when the main controller malfunctions, the first switch is in the on state.

[0015] In one embodiment, the drive signal comparison circuit includes a comparator, and the filter circuit includes a second capacitor;

[0016] The non-inverting input of the comparator is connected to the first output of the main control drive circuit, the inverting input of the comparator is connected to the first output of the auxiliary control drive circuit, the output of the comparator is connected to the second input of the auxiliary control drive circuit and the first end of the second capacitor, and the second end of the second capacitor is grounded.

[0017] The comparator is used to output a low-level signal when the main control drive signal output from the first output terminal of the main control drive circuit is a high-level signal and the auxiliary control drive signal output from the first output terminal of the auxiliary control drive circuit is a low-level signal; and to output a high-level signal when the main control drive signal is a low-level signal and the auxiliary control drive signal is a high-level signal.

[0018] In one embodiment, the main control drive circuit includes a main control signal conversion circuit and a main control signal transmission circuit. The input terminal of the main control signal conversion circuit is connected to the main controller, the output terminal of the main control signal conversion circuit is connected to the input terminals of the drive switching circuit and the main control signal transmission circuit, and the output terminal of the main control signal transmission circuit is connected to the working interface of the Ethernet gateway.

[0019] The main control signal conversion circuit is used to convert the pulse signal output by the main controller into the main control drive signal when the main controller is working normally.

[0020] The main control signal transmission circuit is used to transmit the main control drive signal to the working interface of the Ethernet gateway.

[0021] In one embodiment, the main control signal transmission circuit includes a first diode; when the drive switching circuit is composed of a switching transistor, the main control signal conversion circuit includes a resistor, a third capacitor, and a fourth capacitor; when the drive switching circuit is composed of a comparator, the main control signal conversion circuit also includes a resistor.

[0022] The first end of resistor four is connected to the main controller. The second end of resistor four is connected to the first end of the third capacitor, the first end of the fourth capacitor, the input end of the drive switching circuit, and the anode of the first diode. The cathode of the first diode is connected to the working interface of the Ethernet gateway. The second ends of the third capacitor, the fourth capacitor, and the second end of resistor four are all grounded.

[0023] In one embodiment, the auxiliary control drive circuit includes an auxiliary control signal conversion circuit and an auxiliary control signal transmission circuit. The input terminal of the auxiliary control signal conversion circuit is connected to the auxiliary controller. The output terminal of the auxiliary control signal conversion circuit is connected to the input terminal of the auxiliary control signal transmission circuit through a drive switching circuit. The output terminal of the auxiliary control signal transmission circuit is connected to the working interface of the Ethernet gateway.

[0024] The auxiliary control signal conversion circuit is used to convert the pulse signal output by the auxiliary controller into an auxiliary control drive signal;

[0025] The auxiliary control signal transmission circuit is used to transmit auxiliary control drive signals to the working interface of the Ethernet gateway in the event of a main controller malfunction.

[0026] In one embodiment, the auxiliary control signal transmission circuit includes a second diode. When the drive switching circuit is composed of a switching transistor, the auxiliary control signal conversion circuit includes a resistor five, a fifth capacitor and a sixth capacitor. When the drive switching circuit is composed of a comparator, the auxiliary control signal conversion circuit also includes a resistor six.

[0027] The first end of resistor six is ​​connected to the auxiliary controller. The second end of resistor six is ​​connected to the first end of the fifth capacitor, the first end of the sixth capacitor, the first end of resistor six, and the input end of the drive switching circuit. The second ends of resistor six, the fifth capacitor, and the sixth capacitor are all grounded. The output end of the drive switching circuit is connected to the anode of the second diode, and the cathode of the second diode is connected to the working interface of the Ethernet gateway.

[0028] In one embodiment, the operating state control circuit of the Ethernet gateway further includes a delay circuit, which includes a resistor and a capacitor.

[0029] The first end of resistor 7 is connected to the second output end of the main control drive circuit, the second output end of the auxiliary control drive circuit, the first end of the seventh capacitor, and the working interface of the Ethernet gateway. The second end of resistor 7 and the second end of the seventh capacitor are both grounded.

[0030] Secondly, this application also provides a central computer, which includes a vehicle main controller, an auxiliary controller, an Ethernet gateway, and an operating status control circuit for the Ethernet gateway described in the first aspect above.

[0031] In one embodiment, the working interface of the Ethernet gateway includes a primary working interface and multiple secondary working interfaces, and the output of the working status control circuit is connected to the primary working interface and each of the secondary working interfaces respectively.

[0032] The main controller is used to power on and configure the Ethernet gateway sequentially according to a time sequence during a cold start of the vehicle's controller; and after configuration is completed, it sends relevant configuration information to the auxiliary controller.

[0033] The auxiliary controller is used to back up the power-on and configuration of the Ethernet gateway according to the relevant configuration information and in a time sequence.

[0034] In one embodiment, the Ethernet gateway further includes a configuration interface;

[0035] The auxiliary controller is used to configure the Ethernet gateway through the configuration interface if no relevant configuration information is received within a preset time period.

[0036] In one embodiment, the main controller is configured to output a first pulse signal to the main control drive circuit after the Ethernet gateway is configured; the first pulse signal is used to drive the Ethernet gateway to work by the main control drive circuit.

[0037] The auxiliary controller is used to output a second pulse signal to the auxiliary control drive circuit in the event of a malfunction of the main controller; the second pulse signal is used to drive the Ethernet gateway to work by the auxiliary control drive circuit.

[0038] The aforementioned Ethernet gateway's operating status control circuit and central computer include a main control drive circuit, an auxiliary control drive circuit, and a drive switching circuit. The input terminal of the main control drive circuit is connected to the vehicle's main controller, and the first input terminal of the auxiliary control drive circuit is connected to the vehicle's auxiliary controller. The first output terminals of both the main and auxiliary control drive circuits are connected to the input terminal of the drive switching circuit, and the output terminal of the drive switching circuit is connected to the second input terminal of the auxiliary control drive circuit. The second output terminals of both the main and auxiliary control drive circuits are connected to the Ethernet gateway's working interface. The main control drive circuit controls the Ethernet gateway's operating status through the main controller when the main controller is operating normally. The drive switching circuit switches from the main control drive circuit to the auxiliary control drive circuit when an anomaly is detected in the main controller, allowing the auxiliary controller to control the Ethernet gateway's operating status. The two controllers, through the operating status control circuit, can achieve dual control of the Ethernet gateway's operating status. In the default state, the main controller controls the Ethernet gateway's operating status. The drive switching circuit detects the main control drive circuit, enabling timely detection of any anomalies in the main controller. When the main controller malfunctions, the drive switching circuit switches to the auxiliary control path. The auxiliary controller acts as a backup, controlling the operating status of the Ethernet gateway without directly interfering with its operational logic. This control method reduces the impact of a single domain controller failure on the Ethernet gateway, ensuring continuous network forwarding and interaction services, thereby improving the reliability and stability of the vehicle's in-vehicle network. Attached Figure Description

[0039] Figure 1 This is a first structural schematic diagram of the working state control circuit of an Ethernet gateway in one embodiment;

[0040] Figure 2 This is a schematic diagram of the second structure of the Ethernet gateway's operating state control circuit in one embodiment;

[0041] Figure 3 This is a first circuit diagram of the operating state control circuit of an Ethernet gateway in one embodiment;

[0042] Figure 4This is a second circuit diagram of the operating state control circuit of an Ethernet gateway in one embodiment;

[0043] Figure 5 This is a schematic diagram of the structure of an Ethernet gateway in one embodiment;

[0044] Figure 6 This is a power-on timing diagram for two domain controllers in one embodiment;

[0045] Figure 7 This is a flowchart illustrating the power-on process of an Ethernet gateway in one embodiment.

[0046] Explanation of reference numerals in the attached figures:

[0047] 10-Working state control circuit; 11-Main control drive circuit; 111-Main control signal conversion circuit; 112-Main control signal transmission circuit; 12-Auxiliary control drive circuit; 121-Auxiliary control signal conversion circuit; 122-Auxiliary control signal transmission circuit; 13-Drive switching circuit; 131-Drive signal comparison circuit; 132-Filtering circuit; 14-Delay circuit. Detailed Implementation

[0048] The embodiments of the present invention will be described below with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention and not for limiting the scope of protection of the present invention.

[0049] The central computer integrates cockpit, driver, Ethernet gateway, and telematics-box (T-BOX) functions. It consists of an auxiliary controller, main controller, Ethernet gateway, microcontroller unit (MCU), 5G module, and Bluetooth Wireless Fidelity (BT-WIFI) module. The central computer communicates with the vehicle domain controller, LiDAR, and other sensors via the Ethernet gateway. If the Ethernet gateway's operation (e.g., power supply, reset, configuration) is controlled by either the auxiliary or main controller, and the corresponding domain controller fails to start or malfunctions, the Ethernet gateway will be interrupted, thus affecting the overall vehicle network functionality.

[0050] To address the aforementioned issues, this application provides an Ethernet gateway operating status control circuit and a central computer. This system employs a dual-control strategy to manage the Ethernet gateway's operating status. When one domain controller malfunctions, experiences a communication interruption, or malfunctions, it will not directly interfere with the Ethernet gateway's operational logic. This control method effectively avoids the impact of a single domain controller failure on the Ethernet gateway, ensuring its continuous provision of network forwarding and interaction services, thereby improving the reliability and stability of the vehicle's in-vehicle network. The technical solution of this application will be described in detail below.

[0051] In one embodiment, such as Figure 1 As shown, an Ethernet gateway operating state control circuit 10 is provided. The operating state control circuit 10 includes a main control drive circuit 11, an auxiliary control drive circuit 12, and a drive switching circuit 13. The input terminal of the main control drive circuit 11 is connected to the main controller of the vehicle, the first input terminal of the auxiliary control drive circuit 12 is connected to the auxiliary controller of the vehicle, the first output terminal of the main control drive circuit 11 and the first output terminal of the auxiliary control drive circuit 12 are both connected to the input terminal of the drive switching circuit 13, the output terminal of the drive switching circuit 13 is connected to the second input terminal of the auxiliary control drive circuit 12, and the second output terminal of the main control drive circuit 11 and the second output terminal of the auxiliary control drive circuit 12 are both connected to the operating interface of the Ethernet gateway.

[0052] The main control drive circuit 11 is used to control the working status of the Ethernet gateway through the main controller when the main controller is working normally.

[0053] The drive switching circuit 13 is used to switch from the main control drive circuit 11 to the auxiliary control drive circuit 12 when an abnormality is detected in the main controller, so as to control the working status of the Ethernet gateway through the auxiliary controller.

[0054] The operating states of the Ethernet gateway can include power-on, reset, and configuration. Correspondingly, the working interfaces of the Ethernet gateway can include a power supply interface, a reset interface, and a configuration interface. For power-on, the second output terminals of the main control drive circuit 11 and the auxiliary control drive circuit 12 can be connected to the power supply interface of the Ethernet gateway to control its power-on and power-off. For reset, the second output terminals of the main control drive circuit 11 and the auxiliary control drive circuit 12 can be connected to the reset interface of the Ethernet gateway. For configuration, the second output terminals of the main control drive circuit 11 and the auxiliary control drive circuit 12 can be connected to the configuration interface of the Ethernet gateway.

[0055] Taking normal power supply as an example, the Ethernet gateway is powered by both the main controller and the auxiliary controller, which can be connected in parallel using diodes. When the main controller's power supply fails, the auxiliary controller's power supply acts as a backup to power the Ethernet gateway.

[0056] The main controller can be a driving domain controller, a cockpit domain controller, a microcontroller unit (MCU), or a system-on-chip (SOC). The auxiliary controller can be any one of the driving domain controller, cockpit domain controller, MCU, or SOC. For example, the main controller can be either the driving domain controller or the cockpit domain controller, and the auxiliary controller can be the other one, primarily defined based on the functional safety and reliability of the two domain controllers.

[0057] In this embodiment, the operating state control circuit 10 has its input terminals connected to the vehicle's main controller and auxiliary controller, respectively, and its output terminal connected to the Ethernet gateway's interface. Its main function is to detect any abnormalities in the main controller. If an abnormality is detected, the control of the Ethernet gateway's operating state is switched from the main controller to the auxiliary controller. In other words, by default, the main controller controls the Ethernet gateway's operating state, with the auxiliary controller acting as a backup. In the event of a main controller malfunction, the auxiliary controller controls the Ethernet gateway's operating state.

[0058] Specifically, the working state control circuit 10 is divided into three parts: the main control drive circuit 11, the auxiliary control drive circuit 12, and the drive switching circuit 13. These three circuits will be introduced one by one in the following sections.

[0059] The main control drive circuit 11 is connected between the main controller and the Ethernet gateway's working interface, forming a main control path. This main control path is the default path, and its main function is to convert the first pulse signal output by the main controller into a main control drive signal, and then transmit this main control drive signal to the Ethernet gateway's working interface. For example, the main control drive circuit 11 may include an optocoupler isolation module composed of electronic components such as resistors and capacitors. The enable signal output by the main controller is input to the light-emitting side of the optocoupler through a current-limiting resistor, and the output side of the optocoupler outputs the main control drive signal through a pull-up resistor and a filter capacitor. Alternatively, it may be composed of a relay, with the relay coil driven by the main controller's enable signal, and the contacts connected in series in the power supply circuit to realize power supply switching.

[0060] The auxiliary control drive circuit 12 is connected between the working interface of the auxiliary controller and the Ethernet gateway, forming an auxiliary control path. The electronic components included in the auxiliary control drive circuit 12 can be the same as those in the main control drive circuit 11, and can be optocoupler isolation modules or relays.

[0061] When the main controller is working normally, the auxiliary control path will not be activated; when the main controller malfunctions, the auxiliary control path will activate. When the auxiliary control path is activated, its main function is to convert the second pulse signal output by the auxiliary controller into an auxiliary control drive signal, and then transmit this auxiliary control drive signal to the working interface of the Ethernet gateway.

[0062] The main function of the drive switching circuit 13 is to detect whether the main controller is malfunctioning and to activate the auxiliary control path during malfunctions. For example, the drive switching circuit 13 can be composed of a switching transistor and other electronic components. The switching transistor's on / off state controls whether the auxiliary control drive circuit 12 is connected. The switching transistor can be a transistor, metal-oxide-semiconductor (MOS) transistor, etc., and can be used with resistors, capacitors, and other components to control the transmission of the auxiliary control drive signal. When the main control drive signal output by the main control drive circuit 11 is malfunctioning, the switching transistor is turned on, transmitting the auxiliary control status signal to the auxiliary control drive circuit 12; when the main control is normal, the switching transistor is turned off, and the auxiliary control drive circuit 12 does not operate.

[0063] Alternatively, the drive switching circuit 13 can also be composed of comparator U1 and other electronic components. The comparator U1 compares the main control drive signal with the reference voltage and outputs a switching control signal. The output of comparator U1 can be connected to a switching transistor to control the auxiliary control power supply output.

[0064] Alternatively, the drive switching circuit 13 can also be composed of a power monitoring chip. The power monitoring chip monitors the main control drive signal output by the main control drive circuit 11, and outputs a switching signal to control the auxiliary control drive circuit 12 to conduct when an abnormality occurs. In addition, the drive switching circuit 13 can also be implemented by a programmable logic device, microcontroller, etc. The embodiments of this application do not limit the specific circuit structure of the drive switching circuit 13.

[0065] In the aforementioned Ethernet gateway operating status control circuit 10, the operating status control circuit 10 includes a main control drive circuit 11, an auxiliary control drive circuit 12, and a drive switching circuit 13. The input terminal of the main control drive circuit 11 is connected to the vehicle's main controller, the first input terminal of the auxiliary control drive circuit 12 is connected to the vehicle's auxiliary controller, the first output terminals of both the main control drive circuit 11 and the auxiliary control drive circuit 12 are connected to the input terminal of the drive switching circuit 13, the output terminal of the drive switching circuit 13 is connected to the second input terminal of the auxiliary control drive circuit 12, and the second output terminals of both the main control drive circuit 11 and the auxiliary control drive circuit 12 are connected to the Ethernet gateway's working interface. The main control drive circuit 11 is used to control the operating status of the Ethernet gateway through the main controller when the main controller is working normally. The drive switching circuit 13 is used to switch from the main control drive circuit 11 to the auxiliary control drive circuit 12 when an abnormality is detected in the main controller, so that the operating status of the Ethernet gateway is controlled by the auxiliary controller. The two controllers can achieve dual control of the Ethernet gateway's operating status through this operating status control circuit 10. In the default state, the main controller controls the operating status of the Ethernet gateway. The drive switching circuit 13 monitors the main control drive circuit 11 to promptly detect any abnormalities in the main controller. When the main controller malfunctions, the drive switching circuit 13 switches to the auxiliary control path, where the auxiliary controller acts as a backup to control the Ethernet gateway's operating status, without directly interfering with the Ethernet gateway's operational logic. This control method reduces the impact of a single domain controller failure on the Ethernet gateway, ensuring continuous network forwarding and interaction services, thereby improving the reliability and stability of the vehicle's in-vehicle network.

[0066] Next, we will explain the three circuits in the above-mentioned working state control circuit 10 one by one. First, for the drive switching circuit 13, as follows: Figure 2 As shown, the drive switching circuit 13 includes a drive signal comparison circuit 131. The input terminal of the drive signal comparison circuit 131 is connected to the first output terminal of the main control drive circuit 11 and the first output terminal of the auxiliary control drive circuit 12, respectively. The output terminal of the drive signal comparison circuit 131 is connected to the second input terminal of the auxiliary control drive circuit 12.

[0067] The drive signal comparison circuit 131 is used to compare the main control drive signal output from the first output terminal of the main control drive circuit 11 with the auxiliary control drive signal output from the first output terminal of the auxiliary control drive circuit 12. When the main control drive signal is less than the auxiliary control drive signal, the circuit switches from the main control drive circuit 11 to the auxiliary control drive circuit 12 so as to control the working state of the Ethernet gateway through the auxiliary controller.

[0068] In this embodiment, the main function of the drive switching circuit 13 is to compare the drive signals output by the two drive circuits and determine whether to activate the auxiliary control path based on the comparison result. The drive signal can be a level signal or a voltage signal.

[0069] If the drive signal is a level signal, then when the main controller is working normally, the main control drive signal is high level, the auxiliary control drive signal is low level or in a floating state, the main control drive signal is higher than the auxiliary control drive signal, the output of the drive signal comparison circuit 131 maintains the first level state, the auxiliary control drive circuit 12 does not work, and the working state of the Ethernet gateway is controlled by the main controller.

[0070] When the main controller malfunctions, the main control drive signal becomes low or floating, and its amplitude is smaller than that of the auxiliary control drive signal. After comparing the main control drive signal and the auxiliary control drive signal, the drive signal comparison circuit 131 switches its output from a first level state to a second level state. This second level state acts on the second input of the auxiliary control drive circuit 12, enabling the auxiliary control path to be turned on. The auxiliary controller controls the working state of the Ethernet gateway through the auxiliary control drive circuit 12, realizing the switching from the main control drive circuit 11 to the auxiliary control drive circuit 12.

[0071] If the driving signal is a voltage signal, the driving signal comparison circuit 131 mainly compares the active driving voltage with the auxiliary control driving voltage, and determines whether to switch to the auxiliary control driving circuit 12 based on the comparison result.

[0072] In the aforementioned Ethernet gateway operating state control circuit 10, the drive switching circuit 13 includes a drive signal comparison circuit 131. The input terminals of the drive signal comparison circuit 131 are respectively connected to the first output terminal of the main control drive circuit 11 and the first output terminal of the auxiliary control drive circuit 12, and the output terminal of the drive signal comparison circuit 131 is connected to the second input terminal of the auxiliary control drive circuit 12. The drive signal comparison circuit 131 is used to compare the main control drive signal output from the first output terminal of the main control drive circuit 11 with the auxiliary control drive signal output from the first output terminal of the auxiliary control drive circuit 12. When the main control drive signal is less than the auxiliary control drive signal, the circuit switches from the main control drive circuit 11 to the auxiliary control drive circuit 12, so as to control the operating state of the Ethernet gateway through the auxiliary controller. By comparing the main control drive signal and the auxiliary control drive signal through the drive signal comparison circuit 131, when the main controller malfunctions and causes the main control drive signal to be less than the auxiliary control drive signal, the drive circuit is switched to control the operation of the auxiliary control drive circuit 12, and the operating state of the Ethernet gateway is controlled by the auxiliary controller, reducing the risk of gateway power failure and improving power supply continuity.

[0073] Based on the comparison of the main control drive voltage and the auxiliary control drive voltage by the drive signal comparison circuit 131, the drive switching circuit 13 also includes a filter circuit 132. The following is a detailed description of the filter circuit 132 through an embodiment; please refer to [link to previous text]. Figure 2 As shown, the drive switching circuit 13 also includes a filter circuit 132. The first end of the filter circuit 132 is connected to the output end of the drive signal comparison circuit 131 and the second input end of the auxiliary control drive circuit 12.

[0074] The filter circuit 132 is used to filter the auxiliary control drive signal and transmit the filtered auxiliary control drive signal to the working interface of the Ethernet gateway to control the working status of the Ethernet gateway.

[0075] In this embodiment, the auxiliary control drive signal may be superimposed with transient interference during transmission. If directly used to control the auxiliary control drive circuit 12, it may cause the auxiliary control drive circuit 12 to malfunction. The filter circuit 132 can filter out high-frequency interference components in the auxiliary control drive signal, so that the auxiliary control drive circuit 12 outputs a stable auxiliary control drive signal. For example, the filter circuit 132 can be composed of resistors and capacitors, or it can adopt an active filter structure. The filter parameters can be determined according to the frequency characteristics of the auxiliary control drive signal and the interference environment.

[0076] In one case, the drive signal comparison circuit 131 may include a switching transistor, such as in one embodiment. Figure 3 As shown, the drive signal comparison circuit 131 includes a first switch Q1, a resistor R1, a resistor R2, and a first capacitor C1, and the filter circuit 132 includes a second capacitor C2.

[0077] The first output terminal of the main control drive circuit 11 is connected to the source of the first switching transistor Q1 through resistor R1 and to the gate of the first switching transistor Q1 through resistor R2. The first capacitor C1 is connected between the gate and the source of the first switching transistor Q1. The first output terminal of the auxiliary control drive circuit 12 is connected to the source of the first switching transistor Q1. The drain of the first switching transistor Q1 is connected to the first terminal of the second capacitor C2 and the second input terminal of the auxiliary control drive circuit 12. The second terminal of the second capacitor C2 is grounded.

[0078] When the main controller is working normally, the first switch Q1 is in the off state; when the main controller is malfunctioning, the first switch Q1 is in the on state.

[0079] In this embodiment, the first switch Q1 can be a P-channel metal-oxide-semiconductor (PMOS) transistor. The first output terminal of the main control drive circuit 11 outputs the main control drive voltage, and the first output terminal of the auxiliary control drive circuit 12 outputs the auxiliary control drive voltage. When the main controller is working normally, the main control drive voltage is small, the voltage difference between the gate and source of the first switch Q1 is small, the first switch Q1 is in the off state, the second input terminal of the auxiliary control drive circuit 12 is not affected by the drive signal comparison circuit 131, and the auxiliary control drive circuit 12 does not operate.

[0080] When the main controller malfunctions, the first output terminal of the main control drive circuit 11 outputs a high voltage. The main control drive voltage acts on the gate of the first switching transistor Q1 through resistor R2, and the auxiliary control drive voltage remains stable. The voltage difference between the gate and source of the first switching transistor Q1 reaches the conduction condition, and the first switching transistor Q1 turns on. The auxiliary control drive signal is transmitted to the second capacitor C2 through the first switching transistor Q1. The second capacitor C2 filters the auxiliary control drive signal to remove high-frequency interference. The filtered auxiliary control drive signal is output to the second input terminal of the auxiliary control drive circuit 12, turning on the auxiliary control drive circuit 12, and the cockpit domain controller controls the working state of the Ethernet gateway.

[0081] Resistor R1 limits the current flowing through the first switching transistor Q1, resistor R2 provides gate bias, and capacitor C1 filters out high-frequency fluctuations between the gate and source to improve the stability of the switching action. Capacitor C2 acts as a filter capacitor to smooth the auxiliary control drive signal output to the second input terminal of the auxiliary control drive circuit 12, reducing the impact of transient interference on the auxiliary control drive circuit 12.

[0082] In another scenario, the drive signal comparison circuit 131 may include a comparator U1, as in one embodiment, such as Figure 4 As shown, the drive signal comparison circuit 131 includes a comparator U1, and the filter circuit 132 includes a second capacitor C2.

[0083] The non-inverting input of comparator U1 is connected to the first output of the main control drive circuit 11, the inverting input of comparator U1 is connected to the first output of the auxiliary control drive circuit 12, the output of comparator U1 is connected to the second input of the auxiliary control drive circuit 12 and the first end of the second capacitor C2, and the second end of the second capacitor C2 is grounded.

[0084] Comparator U1 is used to output a low-level signal when the main control drive signal output from the first output terminal of the main control drive circuit 11 is a high-level signal and the auxiliary control drive signal output from the first output terminal of the auxiliary control drive circuit 12 is a low-level signal; and to output a high-level signal when the main control drive signal is a low-level signal and the auxiliary control drive signal is a high-level signal.

[0085] In this embodiment, when the main controller is working normally, the main control drive signal is a high-level signal, and the auxiliary control drive signal is a low-level signal. The potential at the non-inverting input terminal of comparator U1 is higher than the potential at the inverting input terminal, and comparator U1 outputs a low-level signal. This low-level signal is filtered by the second capacitor C2 and then transmitted to the second input terminal of the auxiliary control drive circuit 12. The auxiliary control drive circuit 12 does not operate, and the Ethernet gateway is controlled by the main control drive circuit 11.

[0086] When the main controller malfunctions, the main control drive signal becomes a low-level signal, while the auxiliary control drive signal becomes a high-level signal. The potential at the non-inverting input terminal of comparator U1 is lower than that at the inverting input terminal, so comparator U1 outputs a high-level signal. This high-level signal is filtered by the second capacitor C2 and then transmitted to the second input terminal of the auxiliary control drive circuit 12, turning on the auxiliary control drive circuit 12 and allowing the cockpit domain controller to control the working state of the Ethernet gateway.

[0087] In the aforementioned Ethernet gateway operating state control circuit 10, the drive switching circuit 13 further includes a filter circuit 132. The first terminal of the filter circuit 132 is connected to the output terminal of the drive signal comparison circuit 131 and the second input terminal of the auxiliary control drive circuit 12. The filter circuit 132 is used to filter the auxiliary control drive signal and transmit the filtered auxiliary control drive signal to the working interface of the Ethernet gateway to control the operating state of the Ethernet gateway. By adding a filter circuit 132 to the drive switching circuit 13, transient interference of the auxiliary control drive signal can be filtered out during the operation of the auxiliary control drive circuit 12, resulting in a stable drive signal output by the auxiliary control drive circuit 12, reducing the probability of malfunction, and improving the anti-interference capability of the drive switching circuit 13.

[0088] The following section provides a detailed introduction to the main control drive circuit 11. Please refer to [link to relevant documentation]. Figure 2 As shown, the main control drive circuit 11 includes a main control signal conversion circuit 111 and a main control signal transmission circuit 112. The input terminal of the main control signal conversion circuit 111 is connected to the main controller, the output terminal of the main control signal conversion circuit 111 is connected to the drive switching circuit 13 and the input terminal of the main control signal transmission circuit 112 respectively, and the output terminal of the main control signal transmission circuit 112 is connected to the working interface of the Ethernet gateway.

[0089] The main control signal conversion circuit 111 is used to convert the pulse signal output by the main controller into a main control drive signal when the main controller is working normally.

[0090] The main control signal transmission circuit 112 is used to transmit the main control drive signal to the working interface of the Ethernet gateway.

[0091] In this embodiment, when the main controller is operating normally, it outputs a periodic pulse signal. The main control signal conversion circuit 111 receives the pulse signal and converts it into a main control drive signal. For example, the main control signal transmission circuit 112 can use a buffer, a driver chip, or a power switch to enhance the driving capability of the main control drive signal. An RC circuit can also be used, which implements an integration circuit through low-pass filtering. The main control drive signal can be a DC level signal related to the pulse signal frequency or duty cycle, or it can be a voltage signal.

[0092] The main control drive signal output by the main control signal conversion circuit 111 is divided into two paths. One path is transmitted to the drive switching circuit 13 as the basis for determining whether to switch to the auxiliary control drive circuit 12. The other path is transmitted to the main control signal transmission circuit 112, which transmits the main control drive signal to the working interface of the Ethernet gateway to control the working status of the Ethernet gateway.

[0093] In one embodiment, see continue to see Figure 3 , Figure 4 As shown, the main control signal transmission circuit 112 includes a first diode D1. When the drive switching circuit 13 is composed of a switching transistor, the main control signal conversion circuit 111 includes a resistor R3, a third capacitor C3, and a fourth capacitor C4. When the drive switching circuit 13 is composed of a comparator U1, the main control signal conversion circuit 111 also includes a resistor R4.

[0094] The first end of resistor R4 is connected to the main controller. The second end of resistor R4 is connected to the first end of the third capacitor C3, the first end of the fourth capacitor C4, the input end of the drive switching circuit 13, and the anode of the first diode D1. The cathode of the first diode D1 is connected to the working interface of the Ethernet gateway. The second ends of the third capacitor C3, the fourth capacitor C4, and the second end of resistor R4 are all grounded.

[0095] In this embodiment, resistors R3 and R4 together form the input path for the main controller's output pulse signal, used to adjust the signal amplitude or achieve impedance matching. Capacitors C3 and C4 filter and store energy in the pulse signal output by the main controller, converting it into a main control drive signal. This main control drive signal is transmitted in one path to the drive switching circuit 13, and in another path via the first diode D1 to the working interface of the Ethernet gateway.

[0096] In the aforementioned Ethernet gateway operating status control circuit 10, the main control drive circuit 11 includes a main control signal conversion circuit 111 and a main control signal transmission circuit 112. The input terminal of the main control signal conversion circuit 111 is connected to the main controller, and the output terminal of the main control signal conversion circuit 111 is connected to the input terminals of the drive switching circuit 13 and the main control signal transmission circuit 112, respectively. The output terminal of the main control signal transmission circuit 112 is connected to the working interface of the Ethernet gateway. The main control signal conversion circuit 111 is used to convert the pulse signal output by the main controller into a main control drive signal when the main controller is working normally. The main control signal transmission circuit 112 is used to transmit the main control drive signal to the working interface of the Ethernet gateway. The main control drive circuit 11, composed of the main control signal conversion circuit 111 and the main control signal transmission circuit 112, can convert the pulse signal into a main control drive signal suitable for the working interface of the Ethernet gateway, improve the signal compatibility between the main controller and the Ethernet gateway, reduce control anomalies caused by signal form mismatch, and improve the reliability of the operating status control of the Ethernet gateway.

[0097] The following section provides a detailed description of the auxiliary control drive circuit 12. Please refer to [link to relevant documentation]. Figure 2 As shown, the auxiliary control drive circuit 12 includes an auxiliary control signal conversion circuit 121 and an auxiliary control signal transmission circuit 122. The input terminal of the auxiliary control signal conversion circuit 121 is connected to the auxiliary controller. The output terminal of the auxiliary control signal conversion circuit 121 and the input terminal of the auxiliary control signal transmission circuit 122 are connected through a drive switching circuit 13. The output terminal of the auxiliary control signal transmission circuit 122 is connected to the working interface of the Ethernet gateway.

[0098] The auxiliary control signal conversion circuit 121 is used to convert the pulse signal output by the auxiliary controller into an auxiliary control drive signal;

[0099] The auxiliary control signal transmission circuit 122 is used to transmit the auxiliary control drive signal to the working interface of the Ethernet gateway in the event of a malfunction of the main controller.

[0100] In this embodiment, the auxiliary controller outputs a pulse signal, which is received by the auxiliary control signal conversion circuit 121, and converted into an auxiliary control drive signal. Similar to the main control signal conversion circuit 111, the auxiliary control signal transmission circuit 122 can employ a buffer, a driver chip, or a power switch to enhance the driving capability of the auxiliary control drive signal. An RC circuit can also be used, which integrates the signal through a low-pass filter. The auxiliary control drive signal can also be a DC level signal or a voltage signal.

[0101] The auxiliary control drive signal output by the auxiliary control signal conversion circuit 121 is transmitted to the drive switching circuit 13. When the main controller is working normally, the drive switching circuit 13 blocks the transmission of the auxiliary control drive signal to the auxiliary control signal transmission circuit 122, the auxiliary control signal transmission circuit 122 does not operate, and the Ethernet gateway is controlled by the main control drive circuit 11.

[0102] In one embodiment, see continue to see Figure 3 , Figure 4 As shown, the auxiliary control signal transmission circuit 122 includes a second diode D2. When the drive switching circuit 13 is composed of a switching transistor, the auxiliary control signal conversion circuit 121 includes a resistor R5, a fifth capacitor C5 and a sixth capacitor C6. When the drive switching circuit 13 is composed of a comparator U1, the auxiliary control signal conversion circuit 121 also includes a resistor R6.

[0103] The first end of resistor R6 is connected to the auxiliary controller. The second end of resistor R6 is connected to the first end of the fifth capacitor C5, the first end of the sixth capacitor C6, the first end of resistor R6, and the input end of drive switching circuit 13. The second ends of resistor R6, the fifth capacitor C5, and the sixth capacitor C6 are all grounded. The output end of drive switching circuit 13 is connected to the anode of the second diode D2. The cathode of the second diode D2 is connected to the working interface of the Ethernet gateway.

[0104] In this embodiment, resistors R5 and R6 together form the input path for the auxiliary controller's output pulse signal, used to adjust the signal amplitude or achieve impedance matching. Capacitors C5 and C6 filter and store energy in the pulse signal output by the auxiliary controller, converting it into an auxiliary control drive signal. This auxiliary control drive signal is transmitted to the drive switching circuit 13, then to the anode of the second diode D2, and finally to the working interface of the Ethernet gateway via the second diode D2.

[0105] In the aforementioned Ethernet gateway operating status control circuit 10, the auxiliary control drive circuit 12 includes an auxiliary control signal conversion circuit 121 and an auxiliary control signal transmission circuit 122. The input terminal of the auxiliary control signal conversion circuit 121 is connected to the auxiliary controller, and the output terminal of the auxiliary control signal conversion circuit 121 is connected to the input terminal of the auxiliary control signal transmission circuit 122 via a drive switching circuit 13. The output terminal of the auxiliary control signal transmission circuit 122 is connected to the working interface of the Ethernet gateway. The auxiliary control signal conversion circuit 121 is used to convert the pulse signal output by the auxiliary controller into an auxiliary control drive signal. The auxiliary control signal transmission circuit 122 is used to transmit the auxiliary control drive signal to the working interface of the Ethernet gateway in the event of a main controller malfunction. The auxiliary control drive circuit 12, composed of the auxiliary control signal conversion circuit 121 and the auxiliary control signal transmission circuit 122, can convert the pulse signal into an auxiliary control drive signal suitable for the working interface of the Ethernet gateway, improving the signal compatibility between the auxiliary controller and the Ethernet gateway, reducing control anomalies caused by signal form mismatch, and improving the reliability of the operating status control of the Ethernet gateway.

[0106] In the above embodiments, the second output terminal of the main control drive circuit 11 and the second output terminal of the auxiliary control drive circuit 12 are both connected to the working interface of the Ethernet gateway. A delay circuit 14 can also be provided between the common terminal of the two output terminals and the working interface of the Ethernet gateway. The delay circuit 14 will be described below through an embodiment; please refer to [link to previous text]. Figure 2 As shown, the Ethernet gateway's operating status control circuit 10 also includes a delay circuit 14, which includes a resistor R7 and a capacitor C7.

[0107] The first end of resistor 7 R7 is connected to the second output end of main control drive circuit 11, the second output end of auxiliary control drive circuit 12, the first end of seventh capacitor C7, and the working interface of Ethernet gateway, respectively. The second ends of resistor 7 R7 and the second end of seventh capacitor C7 are both grounded.

[0108] In this embodiment, when the driving domain controller is functioning normally, the second output terminal of the main control drive circuit 11 outputs a high-level signal, which charges the seventh capacitor C7 via resistor R7. The operating interface voltage gradually increases, and the Ethernet gateway enters the corresponding operating state after a delay. In the event of an abnormal driving domain controller, the system switches from the main control drive circuit 11 to the auxiliary control drive circuit 12. The second output terminal of the auxiliary control drive circuit 12 outputs a high-level signal, which also charges the seventh capacitor C7 via resistor R7. The operating interface voltage of the Ethernet gateway reaches an effective level after a delay, allowing the Ethernet gateway to stably switch from the driving domain controller to the cockpit domain controller control state.

[0109] In the aforementioned Ethernet gateway operating state control circuit 10, the Ethernet gateway operating state control circuit 10 further includes a delay circuit 14, which includes a resistor R7 and a capacitor C7. The first end of the resistor R7 is connected to the second output terminal of the main control drive circuit 11, the second output terminal of the auxiliary control drive circuit 12, the first end of the capacitor C7, and the working interface of the Ethernet gateway, respectively. The second ends of the resistor R7 and the second end of the capacitor C7 are both grounded. By adding the delay circuit 14, the voltage fluctuation generated during the switching between the main control drive circuit 11 and the auxiliary control drive circuit 12 can be prevented from directly affecting the working interface of the Ethernet gateway, reducing interference to the operating state of the Ethernet gateway during the switching process and improving the smoothness of the switching.

[0110] In another embodiment, a central computer is also provided, which includes a vehicle main controller, an auxiliary controller, an Ethernet gateway, and an operating status control circuit 10 for any of the aforementioned Ethernet gateways.

[0111] Understandably, in order to ensure the stability of the Ethernet gateway power supply, a two-stage power supply method can be adopted. The enable and reset control of the two-stage power supply are controlled by the main controller and the auxiliary controller, so as to prevent the overall function of the Ethernet gateway from being affected when one of the domain controllers malfunctions.

[0112] The next step is to describe the two-stage power supply method. In one embodiment, such as... Figure 5 As shown, the working interface of the Ethernet gateway includes a primary working interface and multiple secondary working interfaces. The output of the working status control circuit 10 is connected to the primary working interface and each secondary working interface respectively.

[0113] The main controller is used to power on and configure the Ethernet gateway sequentially according to a time sequence during a cold start of the vehicle's controller; and after configuration is completed, it sends relevant configuration information to the auxiliary controller.

[0114] The auxiliary controller is used to back up the power-on and configuration of the Ethernet gateway according to the relevant configuration information and in a time sequence.

[0115] Figure 5 POWER_EN1, POWER_EN2, POWER_EN3, and POWER_EN4 are all drive signals output by the operating state control circuit. POWER_EN1 is used to power on the Ethernet gateway at the first level, while POWER_EN2, POWER_EN3, and POWER_EN4 are used to power on the Ethernet gateway at the second level.

[0116] Taking MCU1 as the main controller and MCU2 as the auxiliary controller as an example, Figure 6The power-on timing diagram for the two domain controllers is shown. VCC_MCU1_EN1 to VCC_MCU1_ENn and VCC_MCU1_RST indicate that the main controller powers on the Ethernet gateway sequentially, while VCC_MCU2_EN1 to VCC_MCU2_ENn and VCC_MCU2_RST indicate that the secondary controller powers on the Ethernet gateway sequentially.

[0117] In one configuration, the drive signal comparison circuit 131 includes a switching transistor. Both MCU1 and MCU2 are controlled by diodes using OR logic. MCU1 outputs a first pulse (PWM1) signal. The PWM1 signal is converted into a voltage signal through resistor R3, capacitor C3, and capacitor C4. This voltage signal can be expressed as VOUT1_PWM = VCC_MCU1 × D1, where D1 is the duty cycle of the PWM1 signal. MCU2 outputs a second pulse (PWM2) signal. The PWM2 signal is converted into a voltage signal through resistor R5, capacitor C5, and capacitor C6. This voltage signal can be expressed as VOUT2_PWM = VCC_MCU2 × D2, where D2 is the duty cycle of the PWM2 signal. The first switching transistor Q1 is a PMOS transistor, but it can also be designed using a PNP transistor. The turn-on threshold VGS of the first switching transistor Q1 is related to the selected MOS type. VGS is the turn-on threshold voltage of the MOS. When the difference between the main control drive voltage and the auxiliary control drive voltage is greater than or equal to the threshold voltage, that is, |VOUT2_PWM-VOUT1_PWM|≥|VGS|, the first switching transistor Q1 is turned on. When the difference between the main control drive voltage and the auxiliary control drive voltage is less than the threshold voltage, that is, |VOUT2_PWM-VOUT1_PWM|<|VGS|, the first switching transistor Q1 is turned off.

[0118] It should also be noted that when designing the auxiliary control drive circuit 12, the high-level threshold voltage of the enable or reset pin (POWER1_ENn / RST) needs to be determined based on the specifications of the power supply chip and switching chip in the Ethernet gateway, denoted as VTH_POWER1_ENn / RST. The forward voltage drop VD of the first diode D1 and the second diode D2 should also be considered. After the auxiliary control drive signal VOUT2_PWM is transmitted through the diodes, the actual voltage reaching the enable / reset pin will be reduced by one diode voltage drop VD. To ensure that this pin can be reliably identified as high, the design must satisfy: VOUT2_PWM > VTH_POWER1_ENn / RST + VD, that is, the voltage amplitude of the auxiliary control drive signal, after deducting the diode voltage drop, is still higher than the high-level threshold of the enable and reset pins. Based on this voltage constraint, appropriate device parameters (e.g., PWM duty cycle, supply voltage, diode type, etc.) should be selected to ensure that the auxiliary control channel can effectively drive the enable and reset signals of the Ethernet gateway when taking over control.

[0119] When the main controller is working normally, the first switch Q1 is in the off state, the auxiliary controller is disconnected from the switch gateway, and the enabling and resetting of the Ethernet gateway are controlled by the main controller. The auxiliary controller is in hot standby mode. When the main controller malfunctions, and the output is zero or the duty cycle of the output PWM1 signal is less than a preset threshold, the enabling and resetting of the Ethernet gateway are controlled by the auxiliary controller.

[0120] When the controller powers on, the main controller controls and enables the Ethernet gateway, powering it on sequentially according to a time sequence. After power-on, the main controller configures the Ethernet gateway and sends relevant configuration information to the auxiliary controller via serial port messages. This configuration information includes the pulses per second (PPS) signal and the power-on configuration information of the Ethernet gateway.

[0121] In another scenario, when the drive signal comparison circuit 131 includes a comparator U1, the outputs of the main controller and the auxiliary controller can be level signals.

[0122] When the controllers are powered on, the main controller outputs a high level before the auxiliary controller. The inverting input is low, the non-inverting input is high, comparator U1 outputs a low level, and the auxiliary control drive circuit 12 is turned off. After the auxiliary controller outputs a high level, the voltage is divided by resistors R5 and R6 and connected to the inverting input. By setting the voltage division ratio, the voltage at the inverting input is made lower than the voltage at the non-inverting input, comparator U1 maintains a high output, and the auxiliary control drive circuit 12 remains off. The main controller powers on the Ethernet gateway's primary working interface and multiple secondary working interfaces sequentially according to the power-on sequence. After power-on, the main controller completes the Ethernet configuration. After configuration, the main controller sends relevant configuration information to the auxiliary controller via serial port messages.

[0123] The relevant configuration information can be successfully sent to the auxiliary controller. After receiving the configuration information, the auxiliary controller completes the power-on control according to the power-on sequence, performs hot backup for enabling and resetting, and does not perform Ethernet configuration.

[0124] The relevant configuration information may also fail to be sent to the auxiliary controller. In one embodiment, the Ethernet gateway also includes a configuration interface.

[0125] The auxiliary controller is used to configure the Ethernet gateway through the configuration interface if no relevant configuration information is received within a preset time period.

[0126] In this embodiment, if the auxiliary controller does not receive relevant configuration information from the main controller within the normal configuration time after power-on or wake-up, the auxiliary controller determines that the main controller is abnormal. At this time, the auxiliary controller outputs a high-level signal. The abnormal output of the main controller causes the voltage at the non-inverting input terminal to decrease, and the voltage at the inverting input terminal to be higher than that at the non-inverting input terminal. The comparator U1 outputs a low level, the auxiliary control drive circuit 12 is turned on, and the auxiliary controller completes the power-on and Ethernet configuration.

[0127] The Ethernet gateway in the central controller includes a primary working interface and multiple secondary working interfaces. The output of the operating status control circuit 10 is connected to the primary working interface and each secondary working interface. The main controller, during a cold start of the vehicle's controller, sequentially powers on and configures the Ethernet gateway according to a time sequence. After configuration, it sends relevant configuration information to the auxiliary controller. The auxiliary controller, based on the relevant configuration information, backs up the power-on and configuration of the Ethernet gateway according to a time sequence. The operating status control circuit 10 is connected to the primary working interface and multiple secondary working interfaces of the Ethernet gateway. During a cold start, the main controller sequentially powers on and configures the gateway and sends the relevant configuration information to the auxiliary controller. The auxiliary controller then backs up the power-on and configuration according to the same time sequence. When taking over control, the power supply and enable status of each interface are consistent with the main control stage, reducing timing deviations during switching and improving the reliability and operational continuity of the Ethernet gateway.

[0128] The main controller in the central controller is used to output a first pulse signal to the main control drive circuit 11 after the Ethernet gateway is configured; the first pulse signal is used to drive the Ethernet gateway to work by the main control drive circuit 11; the auxiliary controller is used to output a second pulse signal to the auxiliary control drive circuit 12 in case of an abnormality of the main controller; the second pulse signal is used to drive the Ethernet gateway to work by the auxiliary control drive circuit 12.

[0129] In this embodiment, the main controller outputs a first pulse signal after the Ethernet gateway is configured, causing the Ethernet gateway to enter a controlled operating state after configuration, thus avoiding malfunctions during the configuration process. When the main controller malfunctions, the auxiliary controller outputs a second pulse signal, which is then driven by the auxiliary control drive circuit 12 to maintain the continuous operation of the Ethernet gateway. The pulse signal facilitates adjustment of the drive voltage via duty cycle and also helps the drive switching circuit 13 detect main controller malfunctions, improving switching response speed and accuracy.

[0130] Figure 7The flowchart illustrates the power-on process of the Ethernet gateway, which includes: S11: The main controller powers on the Ethernet gateway; S12: The main controller configures the Ethernet gateway and sends relevant configuration information to the auxiliary controller after configuration; S13: The auxiliary controller receives the relevant configuration information and determines that the Ethernet gateway is configured normally; S14: If the auxiliary controller does not receive the relevant configuration information within a preset time period, it determines that there is an anomaly in the main controller, reports the information, and powers on the Ethernet gateway. After power-on, the auxiliary controller configures the Ethernet gateway.

[0131] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0132] The above embodiments are merely illustrative of several implementation methods of this application, and their descriptions are relatively specific and detailed. However, they should not be construed as limiting the scope of this application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A working state control circuit for an Ethernet gateway, characterized in that, The operating state control circuit includes a main control drive circuit, an auxiliary control drive circuit, and a drive switching circuit. The input terminal of the main control drive circuit is connected to the vehicle's main controller. The first input terminal of the auxiliary control drive circuit is connected to the vehicle's auxiliary controller. The first output terminals of the main control drive circuit and the auxiliary control drive circuit are both connected to the input terminal of the drive switching circuit. The output terminal of the drive switching circuit is connected to the second input terminal of the auxiliary control drive circuit. The second output terminals of the main control drive circuit and the auxiliary control drive circuit are both connected to the working interface of the Ethernet gateway. The main control drive circuit is used to control the working state of the Ethernet gateway through the main controller when the main controller is working normally. The drive switching circuit is used to switch from the main control drive circuit to the auxiliary control drive circuit when the main controller is detected to be abnormal, so as to control the working state of the Ethernet gateway through the auxiliary controller.

2. The circuit according to claim 1, characterized in that, The drive switching circuit includes a drive signal comparison circuit. The input terminal of the drive signal comparison circuit is connected to the first output terminal of the main control drive circuit and the first output terminal of the auxiliary control drive circuit, respectively. The output terminal of the drive signal comparison circuit is connected to the second input terminal of the auxiliary control drive circuit. The drive signal comparison circuit is used to compare the main control drive signal output from the first output terminal of the main control drive circuit with the auxiliary control drive signal output from the first output terminal of the auxiliary control drive circuit. When the main control drive signal is less than the auxiliary control drive signal, the circuit switches from the main control drive circuit to the auxiliary control drive circuit so as to control the working state of the Ethernet gateway through the auxiliary controller.

3. The circuit according to claim 2, characterized in that, The drive switching circuit further includes a filter circuit, the first end of which is connected to the output end of the drive signal comparison circuit and the second input end of the auxiliary control drive circuit. The filtering circuit is used to filter the auxiliary control drive signal and transmit the filtered auxiliary control drive signal to the working interface of the Ethernet gateway to control the working state of the Ethernet gateway.

4. The circuit according to claim 3, characterized in that, The drive signal comparison circuit includes a first switching transistor, a resistor one, a resistor two, and a first capacitor; the filter circuit includes a second capacitor. The first output terminal of the main control drive circuit is connected to the source of the first switching transistor through the first resistor and to the gate of the first switching transistor through the second resistor. The first capacitor is connected between the gate and the source of the first switching transistor. The first output terminal of the auxiliary control drive circuit is connected to the source of the first switching transistor. The drain of the first switching transistor is connected to the first terminal of the second capacitor and the second input terminal of the auxiliary control drive circuit. The second terminal of the second capacitor is grounded. When the main controller is working normally, the first switch is in the off state; when the main controller is malfunctioning, the first switch is in the on state.

5. The circuit according to claim 3, characterized in that, The drive signal comparison circuit includes a comparator, and the filter circuit includes a second capacitor; The non-inverting input of the comparator is connected to the first output of the main control drive circuit, the inverting input of the comparator is connected to the first output of the auxiliary control drive circuit, the output of the comparator is connected to the second input of the auxiliary control drive circuit and the first end of the second capacitor, and the second end of the second capacitor is grounded. The comparator is configured to output a low-level signal when the main control drive signal output from the first output terminal of the main control drive circuit is a high-level signal and the auxiliary control drive signal output from the first output terminal of the auxiliary control drive circuit is a low-level signal; and to output a high-level signal when the main control drive signal is a low-level signal and the auxiliary control drive signal is a high-level signal.

6. The circuit according to any one of claims 1-5, characterized in that, The main control drive circuit includes a main control signal conversion circuit and a main control signal transmission circuit. The input terminal of the main control signal conversion circuit is connected to the main controller, and the output terminal of the main control signal conversion circuit is connected to the input terminal of the drive switching circuit and the main control signal transmission circuit, respectively. The output terminal of the main control signal transmission circuit is connected to the working interface of the Ethernet gateway. The main control signal conversion circuit is used to convert the pulse signal output by the main controller into a main control drive signal when the main controller is working normally. The main control signal transmission circuit is used to transmit the main control drive signal to the working interface of the Ethernet gateway.

7. The circuit according to claim 6, characterized in that, The main control signal transmission circuit includes a first diode. When the drive switching circuit is composed of a switching transistor, the main control signal conversion circuit includes a resistor, a third capacitor, and a fourth capacitor. When the drive switching circuit is composed of a comparator, the main control signal conversion circuit also includes a resistor. The first end of the resistor four is connected to the main controller, the second end of the resistor four is connected to the first end of the third capacitor, the first end of the fourth capacitor, the input end of the drive switching circuit, and the anode of the first diode. The cathode of the first diode is connected to the working interface of the Ethernet gateway, and the second ends of the third capacitor, the fourth capacitor, and the resistor four are all grounded.

8. The circuit according to any one of claims 1-5, characterized in that, The auxiliary control drive circuit includes an auxiliary control signal conversion circuit and an auxiliary control signal transmission circuit. The input terminal of the auxiliary control signal conversion circuit is connected to the auxiliary controller. The output terminal of the auxiliary control signal conversion circuit and the input terminal of the auxiliary control signal transmission circuit are connected through the drive switching circuit. The output terminal of the auxiliary control signal transmission circuit is connected to the working interface of the Ethernet gateway. The auxiliary control signal conversion circuit is used to convert the pulse signal output by the auxiliary controller into an auxiliary control drive signal; The auxiliary control signal transmission circuit is used to transmit the auxiliary control drive signal to the working interface of the Ethernet gateway in the event of a malfunction of the main controller.

9. The circuit according to claim 8, characterized in that, The auxiliary control signal transmission circuit includes a second diode. When the drive switching circuit is composed of a switching transistor, the auxiliary control signal conversion circuit includes a resistor five, a fifth capacitor, and a sixth capacitor. When the drive switching circuit is composed of a comparator, the auxiliary control signal conversion circuit also includes a resistor six. The first end of resistor six is ​​connected to the auxiliary controller. The second end of resistor six is ​​connected to the first end of the fifth capacitor, the first end of the sixth capacitor, the first end of resistor six, and the input end of the drive switching circuit. The second ends of resistor six, the fifth capacitor, and the sixth capacitor are all grounded. The output end of the drive switching circuit is connected to the anode of the second diode, and the cathode of the second diode is connected to the working interface of the Ethernet gateway.

10. The circuit according to any one of claims 1-5, characterized in that, The Ethernet gateway's operating status control circuit also includes a delay circuit, which includes a resistor and a capacitor. The first end of resistor seven is connected to the second output end of the main control drive circuit, the second output end of the auxiliary control drive circuit, the first end of the seventh capacitor, and the working interface of the Ethernet gateway, respectively. The second end of resistor seven and the second end of the seventh capacitor are both grounded.

11. A central computer, characterized in that, The central computer includes the vehicle's main controller, auxiliary controller, Ethernet gateway, and the operating status control circuit of the Ethernet gateway as described in any one of claims 1-10.

12. The central computer according to claim 11, characterized in that, The working interface of the Ethernet gateway includes a primary working interface and multiple secondary working interfaces, and the output terminal of the working status control circuit is connected to the primary working interface and each of the secondary working interfaces respectively. The main controller is used to power on and configure the Ethernet gateway sequentially according to a time sequence during a cold start of the vehicle's controller; and after the configuration is completed, send relevant configuration information to the auxiliary controller. The auxiliary controller is used to back up the power-on and configuration of the Ethernet gateway according to the relevant configuration information and in a timing sequence.

13. The central computer according to claim 12, characterized in that, The Ethernet gateway also includes a configuration interface; The auxiliary controller is used to configure the Ethernet gateway through the configuration interface if it does not receive the relevant configuration information within a preset time period.

14. The central computer according to claim 11, characterized in that, The main controller is configured to output a first pulse signal to the main control drive circuit after the Ethernet gateway is configured; the first pulse signal is used to drive the Ethernet gateway to work by the main control drive circuit. The auxiliary controller is used to output a second pulse signal to the auxiliary control drive circuit in the event of an abnormality in the main controller. The second pulse signal is used to drive the Ethernet gateway to work via the auxiliary control drive circuit.