A domain controller lighting synchronization system and method based on timestamp
By using timestamps to record and calculate delay time in automotive electronic and electrical architectures, and dynamically adjusting the sending of control instructions, the problem of poor synchronization in traditional lighting control systems is solved, and the precise synchronization of lighting signals and system stability is achieved.
Patent Information
- Application Number
- CN202411315758.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-20
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2044-09-20
AI Technical Summary
Under the automotive electronic and electrical architecture dominated by domain controllers, traditional lighting control systems are difficult to achieve precise synchronization control due to hardware differences and communication delays, which affects lighting synchronization.
The light synchronization system and method of the domain controller based on time stamps are used to record the timestamps of the hardline and CAN signals through the software control unit of the front domain controller, calculate the delay time, dynamically adjust the sending time of the control command, and ensure the hardline and CAN signal. Synchronization of CAN headlight control actions occurs.
It realizes accurate synchronization of front and rear lighting signals, improves the synchronization and stability of the lighting system, and is suitable for lighting control needs in different scenarios, without adding hardware equipment, and reduces implementation costs.
Smart Images

Figure CN118843236B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to vehicle lighting control technology, and in particular to a timestamp-based domain controller lighting synchronization system and method. Background Art
[0002] In the automotive electronic and electrical architecture dominated by domain controllers, controllers are often deployed on the domain controllers according to their locations, such as Tesla's left and right ZCUs, and there are also front and rear ZCU deployment forms. The front and rear ZCUs include the front domain controller (FZCU) and the rear domain controller (RZCU), which control the front and rear lamps of the vehicle respectively. In the process of control signal transmission, due to factors such as hardware differences and communication delays, traditional lighting control systems are often difficult to achieve precise synchronous control, such as hard wires and CAN buses. Hard wires have a fast response speed and can be considered to have no transmission delay; CAN lines are affected by the cycle of the CAN bus, and there will be a delay caused by the cycle, resulting in a time difference in light response, affecting the synchronization of lights. Therefore, developing a domain controller lighting synchronization strategy based on timestamp calibration is of great significance to improving the synchronization and stability of the lighting system. Summary of the invention
[0003] In order to solve the deficiencies in the prior art, the object of the present invention is to provide a domain controller lighting synchronization system and method based on timestamp.
[0004] To achieve the purpose of the present invention, the technical solution adopted by the present invention is:
[0005] A domain controller lighting synchronization system based on a timestamp includes a front domain controller FZCU and a rear domain controller RZCU, wherein the front domain controller FZCU is connected to a side turn signal lamp through a hard line, is connected to a headlight module through a CAN line, and forwards control instructions to the rear domain controller RZCU at the same time; and the rear domain controller RZCU is connected to a vehicle taillight through a CAN line;
[0006] The front domain controller FZCU is equipped with a software control unit SWC. All lighting control logics are uniformly processed by the software control unit SWC of the front domain controller FZCU, and control instructions are sent through hard wires and CAN bus to control the side turn signals and headlight modules. At the same time, control instructions are sent to the rear domain controller RZCU through the CAN bus.
[0007] Further, the rear zone controller RZCU receives the control instruction, and the rear zone controller RZCU sets the software control unit SWC, receives the control instruction of the front zone controller FZCU, and sends the control instruction through the CAN bus for controlling the taillights of the vehicle.
[0008] Furthermore, the CAN buses of the front domain controller FZCU and the rear domain controller RZCU are synchronously controlled.
[0009] A domain controller lighting synchronization method based on timestamp comprises the following steps:
[0010] (1) The software control unit SWC of the front zone controller FZCU sends control instructions uniformly and sends control instructions through hard wires and CAN bus to control the side turn signal lamps and headlight modules. At the same time, it sends control instructions to the rear zone controller RZCU through the CAN bus;
[0011] (2) When driven by hard-wired signals, the software control unit SWC of the front domain controller FZCU uses the STBM module in the AUTOSAR standard to record the current timestamp T0;
[0012] When the CAN signal sends a control signal, the software control unit SWC of the front domain controller FZCU uses the STBM module again to record the current timestamp T1 and sends the timestamp information to the software control unit SWC of the front domain controller FZCU;
[0013] (3) By comparing timestamps T0 and T1, the delay time ΔT = T1 - T0 is calculated;
[0014] (4) Based on the calculated delay time ΔT, the software control unit SWC of the front zone controller FZCU sends the control command via the CAN message ΔT in advance to offset the communication delay and ensure that the hard-wire and CAN headlight control actions occur synchronously.
[0015] Furthermore, in step (3), the delay time is calculated only once in a trigger cycle, and ΔT is recalculated when there is a new trigger request.
[0016] Furthermore, the front domain controller FZCU sends control instructions to the headlights and the rear domain controller RZCU at the same time. The rear domain controller RZCU directly forwards the control instructions to the taillights through CAN messages. After ΔT time, the hard-line lights and the FZCU and RZCU lights are executed synchronously.
[0017] The beneficial effect of the present invention is that, compared with the prior art, the domain controller lighting synchronization method based on timestamp synchronization of the present invention can achieve accurate synchronization of front and rear lighting signals by accurately calculating and dynamically adjusting the sending time of control instructions, thereby improving the synchronization and stability of the lighting system, and has broad application prospects and important practical significance. Its advantages are:
[0018] Precise synchronization: Through timestamp recording and delay time calculation, the front and rear lighting signals are precisely synchronized, significantly improving the synchronization of the lighting system;
[0019] Strong adaptability: This strategy is not only applicable to lighting scenarios with preset on-off cycles or durations, but can also adapt to lighting control requirements in different scenarios by dynamically adjusting the time difference;
[0020] Easy to implement: This strategy only requires simple modifications to the existing domain controller software, without adding additional hardware equipment, which reduces implementation costs;
[0021] High stability: The control logic is uniformly processed by the software control unit (SWC), which reduces the unstable factors caused by hardware differences and improves the stability of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 It is a schematic diagram of a lighting synchronization system of a domain controller based on timestamp according to the present invention;
[0023] Figure 2 It is a schematic diagram of the implementation effect of the domain controller lighting synchronization method based on timestamp described in the present invention. DETAILED DESCRIPTION
[0024] The technical solution of the present invention is further described below in conjunction with the accompanying drawings and embodiments. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and cannot be used to limit the protection scope of this application.
[0025] like Figure 1 As shown, the timestamp-based domain controller lighting synchronization system of the present invention includes a front domain controller FZCU and a rear domain controller RZCU, which respectively control the lamps at the front and rear of the vehicle. The front domain controller FZCU is connected to the side turn signal lamps, the left turn signal lamp SideLight-L and the right turn signal lamp SideLight-R, through a hard wire, and is connected to the headlight module, the left headlight HDLM-L and the right headlight HDLM-R through a CAN line, and forwards the control command to the rear domain controller RZCU at the same time. The rear domain controller RZCU is connected to the taillights, the left taillight RLM-L and the right taillight RLM-R through a CAN line.
[0026] The front domain controller FZCU is equipped with a software control unit SWC. All lighting control logics are uniformly processed by the software control unit SWC of the front domain controller FZCU, and control instructions are sent through hard wires and CAN bus to control the side turn signals and headlight modules. At the same time, control instructions are sent to the rear domain controller RZCU through the CAN bus.
[0027] The rear domain controller RZCU receives the control instructions. The rear domain controller RZCU also sets a software control unit SWC to receive the control instructions from the front domain controller FZCU and send the control instructions through the CAN bus to control the taillights of the vehicle.
[0028] The rear domain controller RZCU receives the control command and directly forwards the control command through the CAN bus to control the taillights. The forwarding time is negligible, so it is considered that the CAN bus control of FZCU and RZCU is synchronous.
[0029] The domain controller lighting synchronization method based on timestamp records and analyzes the hard-line driving time and CAN control message sending time between the front and rear domain controllers (FZCU and RZCU), dynamically adjusts the processing timing of the control instructions, realizes the precise synchronization of the front and rear lighting signals, and effectively solves the synchronization problem existing in the traditional lighting control system.
[0030] The domain controller lighting synchronization method based on timestamp specifically includes the following steps:
[0031] (1) The software control unit SWC of the front zone controller FZCU sends control instructions uniformly and sends control instructions through hard wires and CAN bus to control the side turn signal lamps and headlight modules. At the same time, it sends control instructions to the rear zone controller RZCU through the CAN bus;
[0032] (2) When driven by hard-wired signals, the software control unit SWC of the front domain controller FZCU uses the STBM (System Time Base Management) module in the AUTOSAR standard to record the current timestamp T0; the STBM module is a basic software module for managing system time in the AUTOSAR architecture, which provides a high-precision timestamp acquisition function;
[0033] Similarly, when the CAN signal sends a control signal, the software control unit SWC of the front domain controller FZCU uses the STBM module again to record the current timestamp T1 (T1>T0), and sends the timestamp information to the software control unit SWC of the front domain controller FZCU;
[0034] (3) By comparing timestamps T0 and T1, the delay time ΔT = T1 - T0 is calculated. This delay time is calculated only once in a trigger cycle, and ΔT is recalculated when there is a new trigger request.
[0035] (4) Based on the calculated delay time ΔT, the software control unit SWC of the front zone controller FZCU will send the control command via CAN message ΔT in advance to offset the communication delay and ensure that the hard-wire and CAN headlight control actions occur synchronously.
[0036] FZCU will send control commands to the headlights and RZCU at the same time, and RZCU will directly forward the control commands to the taillights through CAN messages, and the time can be ignored. Therefore, after ΔT time, the hard-wired lights and FZCU and RZCU lights are executed synchronously.
[0037] Before and after the implementation of the strategy Figure 2 As shown, before the strategy is implemented, the hard-wire control and CAN headlights are always misaligned for a certain period of time; after the strategy is implemented, only the CAN headlights are delayed in the first cycle due to the cycle effect, and after the synchronization is completed, all lights can be turned on and off synchronously.
[0038] The beneficial effect of the present invention is that, compared with the prior art, the domain controller lighting synchronization method based on timestamp synchronization of the present invention realizes accurate synchronization of front and rear lighting signals by accurately calculating and dynamically adjusting the sending time of control instructions, improves the synchronization and stability of the lighting system, and has broad application prospects and important practical significance. Its advantages are: accurate synchronization: through timestamp recording and delay time calculation, accurate synchronization of front and rear lighting signals is realized, which significantly improves the synchronization of the lighting system; strong adaptability: this strategy is not only applicable to lighting scenes with preset on and off cycles or durations, but also can adapt to lighting control requirements in different scenes by dynamically adjusting the time difference; easy to implement: this strategy only requires simple modification of the existing domain controller software, without adding additional hardware equipment, reducing the implementation cost; high stability: through the unified processing of control logic by the software control unit (SWC), the unstable factors caused by hardware differences are reduced, and the stability of the system is improved.
[0039] The applicant of the present invention has made a detailed explanation and description of the implementation examples of the present invention in conjunction with the drawings in the specification. However, those skilled in the art should understand that the above implementation examples are only preferred implementation schemes of the present invention, and the detailed description is only to help readers better understand the spirit of the present invention, but not to limit the scope of protection of the present invention. On the contrary, any improvements or modifications based on the inventive spirit of the present invention should fall within the scope of protection of the present invention.
Claims
1. A domain controller lighting synchronization system based on timestamp, characterized in that: It includes the front domain controller FZCU and the rear domain controller RZCU. The front domain controller FZCU is connected to the side turn signal lamp through a hard line, and is connected to the headlight module through a CAN line, and forwards the control command to the rear domain controller RZCU at the same time; the rear domain controller RZCU is connected to the taillight through a CAN line; The front zone controller FZCU is equipped with a software control unit SWC. All lighting control logic is uniformly processed by the software control unit SWC of the front zone controller FZCU, and control instructions are sent through hard wires and CAN bus to control the side turn signal lamps and headlight modules. At the same time, control instructions are sent to the rear zone controller RZCU through the CAN bus. When driven by hard-wired signals, the software control unit SWC of the front domain controller FZCU uses the STBM module in the AUTOSAR standard to record the current timestamp T0; When the CAN signal sends a control signal, the software control unit SWC of the front domain controller FZCU uses the STBM module again to record the current timestamp T1 and sends the timestamp information to the software control unit SWC of the front domain controller FZCU; By comparing timestamps T0 and T1, the delay time ΔT = T1 - T0 is calculated; Based on the calculated delay time ΔT, the software control unit SWC of the front domain controller FZCU sends the control command via CAN message ΔT in advance to offset the communication delay and ensure that the hard-line and CAN headlight control actions occur synchronously.
2. The timestamp-based domain controller lighting synchronization system according to claim 1, characterized in that: The rear domain controller RZCU receives the control instruction, and the rear domain controller RZCU sets the software control unit SWC, receives the control instruction of the front domain controller FZCU, and sends the control instruction through the CAN bus to control the taillights of the vehicle.
3. The timestamp-based domain controller lighting synchronization system according to claim 1, characterized in that: The CAN buses of the front domain controller FZCU and the rear domain controller RZCU are controlled synchronously.
4. A domain controller lighting synchronization method based on timestamp, based on the domain controller lighting synchronization system based on timestamp according to any one of claims 1 to 3, characterized in that: The following steps are involved: (1) The software control unit SWC of the front zone controller FZCU sends control instructions uniformly and sends control instructions through hard wires and CAN bus to control the side turn signal lamps and headlight modules. At the same time, it sends control instructions to the rear zone controller RZCU through the CAN bus; (2) When driven by hard-wired signals, the software control unit SWC of the front domain controller FZCU uses the STBM module in the AUTOSAR standard to record the current timestamp T0; When the CAN signal sends a control signal, the software control unit SWC of the front domain controller FZCU uses the STBM module again to record the current timestamp T1 and sends the timestamp information to the software control unit SWC of the front domain controller FZCU; (3) By comparing timestamps T0 and T1, the delay time ΔT = T1 - T0 is calculated; (4) Based on the calculated delay time ΔT, the software control unit SWC of the front zone controller FZCU sends the control command via the CAN message ΔT in advance to offset the communication delay and ensure that the hard-wire and CAN headlight control actions occur synchronously.
5. The method for synchronizing lighting of a domain controller based on timestamp according to claim 4, characterized in that: In step (3), the delay time is calculated only once in a trigger cycle, and ΔT is recalculated when there is a new trigger request.
6. The method for synchronizing lighting of a domain controller based on timestamp according to claim 4, characterized in that: The front domain controller FZCU sends control instructions to the headlights and the rear domain controller RZCU at the same time. The rear domain controller RZCU directly forwards the control instructions to the taillights through CAN messages. After ΔT time, the hard-line lights and the FZCU and RZCU lights are executed synchronously.
