A method for synchronizing vehicle warning signals, including a synchronization system and the vehicle.
By setting the synchronization time of vehicle alert signals and using the MCU and SOC system to control the synchronization of vehicle alert signals, the synchronization problem of vehicle instruments, exterior lights and sound playback system is solved, thus improving the user experience.
Patent Information
- Application Number
- CN202211338242.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-28
- Publication Date
- 2025-11-14
- Estimated Expiration
- 2042-10-28
AI Technical Summary
In existing technologies, vehicle instrument panels, exterior lights, and sound playback systems are difficult to synchronize with vehicle warning signals due to system complexity and long message transmission links.
By initializing the transmission time of the first alert signal and setting the occurrence times of the second and third alert signals to be synchronized with the first alert signal, the synchronization of vehicle alert signals is controlled by the MCU system and SOC system in conjunction with the gPTP clock protocol.
It achieves synchronization of vehicle warning signals, improves user experience, and requires no additional hardware costs.
Smart Images

Figure CN115603848B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of vehicle technology, and in particular to a method, synchronization system, and vehicle for synchronizing vehicle warning signals. Background Technology
[0002] In-vehicle instrument clusters typically display alarm icons and play sounds simultaneously, sometimes along with flashing exterior lights, and ideally, all three should be synchronized. However, current virtualized instrument clusters or those based on hypervisor solutions offer a wide range of functions, often requiring highly complex systems to support them, making complete synchronization of all three impossible. Exterior light responses are handled by a separate third-party system, allowing for very fast responses to CAN events. In contrast, the instrument cluster system, due to its complexity, long message passing chains, and limited CPU resources, cannot respond quickly enough, hindering the achievement of true synchronization. Summary of the Invention
[0003] To solve the above-mentioned technical problems, this invention provides a method for synchronizing vehicle alert signals, synchronizing the system and the vehicle, and setting the occurrence times of the second and third alert signals according to the sending time of the first alert signal, so that the three occur synchronously, thereby improving the user experience.
[0004] Specifically, the present invention provides a method for synchronizing vehicle alert signals, comprising the following steps:
[0005] S100: When the first prompt signal is detected, initialize the transmission time T10 of the first prompt signal, and the first prompt signal is transmitted sequentially with a fixed time delay △T.
[0006] S200: Based on the sending time T10 of the first prompt signal, set the occurrence times of the second and third prompt signals to be equal, so that the occurrence times of the first, second, and third prompt signals are equal.
[0007] S300: Complete the synchronization settings for the current vehicle's alert signals.
[0008] Wherein, S200 includes:
[0009] S201: Initialize the transmission times T20 and T30 of the second and third prompt signals respectively; wherein, T10 < T20 ≤ T30.
[0010] S202: Set the occurrence times of the second prompt signal and the third prompt signal to T21 and T31 respectively; and calculate the differences △T12 and △T13 between the second prompt signal transmission time T20 and the third prompt signal transmission time T30 and the first prompt signal transmission time T10.
[0011] S203: Divide the difference △T12 into i intervals N = (n1, n2, ..., ni); divide the difference △T13 into j intervals M = (m1, m2, ..., mj); then the occurrence times of the second prompt signal are obtained as follows: T20+1*△T-n1, T20+2*△T-n2, ..., T20+i*△T-ni. After T20+i*△T-ni, the second prompt signal is synchronized with the first prompt signal; the occurrence times of the third prompt signal are as follows: T30+1*△T-m1, T30+2*△T-m2, ..., T30+j*△T-mj. After T30+j*△T-mj, the third prompt signal is synchronized with the first prompt signal.
[0012] The S200 also includes another solution, specifically:
[0013] S211: Initialize the transmission times T20 and T30 of the second and third prompt signals respectively; where T10 < T20 ≤ T30.
[0014] S212: Set the occurrence times of the second prompt signal and the third prompt signal to T21 and T31 respectively; and calculate the differences △T12 and △T13 between the second prompt signal transmission time T20 and the third prompt signal transmission time T30 and the first prompt signal transmission time T10.
[0015] S213: The occurrence time of the second prompt signal is T21-△T12, and a mute prompt signal is output before the occurrence time T21-△T12; the occurrence time of the third prompt signal is T31-△T13, and a dark prompt signal is output before the occurrence time T31-△T13.
[0016] The first warning signal is used to control the activation of at least the hazard lights, left turn signal, or right turn signal.
[0017] The second prompt signal is an alarm sound emitted in conjunction with the first prompt signal.
[0018] The alarm sound is played only at the times when the second prompt signal occurs (T20+1*△T-n1, T20+2*△T-n2, ..., T20+i*△T-ni) and after that time, or at each occurrence of the second prompt signal after T21-△T12; otherwise, a silent alarm sound is played.
[0019] Preferably, the alarm sound channel plays the sound at a fixed baud rate. The number of milliseconds of sound data to be played in the sound driver buffer can be calculated based on the length of the remaining unplayed data samples in the sound buffer and the baud rate.
[0020] The third prompt signal is used to control the alarm icon that is lit up in response to the activation of the first prompt signal. Based on the sending time T10 of the first prompt signal and a fixed time delay △T, the alarm icon is set to be displayed only at the time when the first prompt signal occurs.
[0021] Preferably, the first prompt signal is used to control the hazard lights, and the alarm sound playback time and the display time of the illuminated alarm icon are set according to the hazard lights' on / off standard.
[0022] The alarm icon is refreshed frame by frame, and is only displayed in a bright state at the occurrence times of the third prompt signal in the following order: T30+1*△T-m1, T30+2*△T-m2, ..., T30+j*△T-mj and after that time, or after T31-△T13; while at other times, the alarm icon is displayed in a dark state.
[0023] Preferably, the post window function is called so that the alarm icon can be displayed within 1 / fps.
[0024] As another preferred embodiment, the present invention also provides a system for synchronizing vehicle warning signals, comprising: a detection module for detecting the transmission time T10 of the first warning signal; an initialization module for initializing the transmission times T20 and T30 of the second and third warning signals; a calculation module for calculating the occurrence times of the second and third warning signals based on the transmission time of the first warning signal; and a control module for controlling the working states of the hazard lights, left turn signal, right turn signal, alarm sound, and alarm icon based on the first, second, and third warning signals.
[0025] Among them, the vehicle alert signal synchronization system works with the MCU system and SOC system to control the synchronization of vehicle alert signals using the gPTP clock protocol.
[0026] The calculation module includes: a first prompt signal calculation unit, a second prompt signal calculation unit, and a third prompt signal calculation unit.
[0027] The first prompt signal calculation unit calculates the next signal transmission time sequentially according to the transmission time T10 of the first prompt signal and a fixed time delay △T.
[0028] The second prompt signal calculation unit calculates the difference △T12 between the second prompt signal transmission time T20 and the first prompt signal transmission time T10, divides the difference △T12 into i interval values in an equal proportion, and obtains the occurrence time of the second prompt signal based on the interval values; or obtains the occurrence time of the second prompt signal based on the difference △T12.
[0029] The third prompt signal calculation unit calculates the difference △T13 between the third prompt signal transmission time T30 and the first prompt signal transmission time T10, divides the difference △T13 into j interval values in an equal proportion, and obtains the occurrence time of the third prompt signal based on the interval values; or it obtains the occurrence time of the third prompt signal based on the difference △T13.
[0030] As another preferred embodiment, the present invention also provides a vehicle including a vehicle alert signal synchronization system, the synchronization system being used to implement a method for synchronizing vehicle alert signals.
[0031] In summary, this invention provides a method for synchronizing vehicle alert signals, a synchronization system, and a vehicle. Specifically, the method involves: when a first alert signal is detected, initializing the transmission time T10 of the first alert signal; and sequentially transmitting the first alert signal with a fixed delay ΔT. Based on the transmission time T10 of the first alert signal, setting the occurrence times of the second and third alert signals. During the synchronization setting process, this invention also proposes two time synchronization optimizations: either catching up with the signal using proportional time or setting the delay time of the second and third alert signals to a silent state until the occurrence times of the first, second, and third alert signals are equal, thereby completing the current vehicle alert signal synchronization setting. The method provided by this invention requires no additional hardware costs, solves the problem of synchronizing three types of alert signals, and improves the user experience. Attached Figure Description
[0032] Figure 1 Flowchart of the method for synchronizing vehicle warning signals.
[0033] Figure 2 A flowchart illustrating the method for setting the occurrence times of the second and third notification signals.
[0034] Figure 3 A flowchart of another method for setting the occurrence times of the second and third prompt signals.
[0035] Figure 4 A framework diagram for implementing a vehicle warning signal synchronization system. Detailed Implementation
[0036] The following describes in further detail a method, synchronization system, and vehicle for synchronizing vehicle prompt signals according to the present invention, with reference to specific embodiments and accompanying drawings.
[0037] like Figure 1 As shown, the present invention provides a method for synchronizing vehicle warning signals, comprising the following steps:
[0038] S100: When the first prompt signal is detected, initialize the transmission time T10 of the first prompt signal, and the first prompt signal is transmitted sequentially with a fixed time delay △T.
[0039] S200: Based on the sending time T10 of the first prompt signal, set the occurrence times of the second and third prompt signals to be equal, so that the occurrence times of the first, second, and third prompt signals are equal.
[0040] S300: Complete the synchronization settings for the current vehicle's alert signals.
[0041] Specifically, the first prompt signal is used to control the activation of at least the hazard lights, left turn signal, or right turn signal; the second prompt signal is an alarm sound emitted in conjunction with the first prompt signal; the third prompt signal is used to control the illuminated alarm icon displayed in response to the activation of the first prompt signal, and the alarm icon is set to be displayed only at the time the first prompt signal occurs, based on the sending time T10 of the first prompt signal and a fixed time delay ΔT.
[0042] Preferably, the first prompt signal is used to control the hazard lights, and the hazard lights flash on / off signal is 90±30 times / min; the alarm sound playback time and the display time of the illuminated alarm icon are set according to the hazard lights flashing standard.
[0043] Among them, such as Figure 2 As shown, S200 includes:
[0044] S201: Initialize the transmission times T20 and T30 of the second and third prompt signals respectively; wherein, T10 < T20 ≤ T30.
[0045] S202: Set the occurrence times of the second prompt signal and the third prompt signal to T21 and T31 respectively; and calculate the differences △T12 and △T13 between the second prompt signal transmission time T20 and the third prompt signal transmission time T30 and the first prompt signal transmission time T10.
[0046] Preferably, the interval between the sending and occurrence times of each prompt signal is between 20ms and 50ms.
[0047] S203: Divide the difference △T12 into i intervals N = (n1, n2, ..., ni); divide the difference △T13 into j intervals M = (m1, m2, ..., mj); then the occurrence times of the second prompt signal are obtained as follows: T20+1*△T-n1, T20+2*△T-n2, ..., T20+i*△T-ni. After T20+i*△T-ni, the second prompt signal is synchronized with the first prompt signal; the occurrence times of the third prompt signal are as follows: T30+1*△T-m1, T30+2*△T-m2, ..., T30+j*△T-mj. After T30+j*△T-mj, the third prompt signal is synchronized with the first prompt signal.
[0048] The S200 also includes another option, such as Figure 3 As shown, it specifically includes:
[0049] S211: Initialize the transmission times T20 and T30 of the second and third prompt signals respectively; where T10 < T20 ≤ T30.
[0050] S212: Set the occurrence times of the second prompt signal and the third prompt signal to T21 and T31 respectively; and calculate the differences △T12 and △T13 between the second prompt signal transmission time T20 and the third prompt signal transmission time T30 and the first prompt signal transmission time T10.
[0051] S213: The occurrence time of the second prompt signal is T21-△T12, and a mute prompt signal is output before the occurrence time T21-△T12; the occurrence time of the third prompt signal is T31-△T13, and a dark prompt signal is output before the occurrence time T31-△T13.
[0052] Preferably, the second scheme of S200 is adopted to synchronize the three prompt signals. When the first flashing of the hazard lights is detected, the hazard lights, alarm sound and alarm icon are not played. If the playback of the alarm sound and alarm icon lags behind the flashing time of the hazard lights by 10ms and 15ms respectively, the alarm sound and alarm icon will be played 10ms and 15ms earlier respectively when the hazard lights flash for the next time, so as to synchronize with the flashing of the hazard lights.
[0053] The alarm sound is played only at the times when the second prompt signal occurs (T20+1*△T-n1, T20+2*△T-n2, ..., T20+i*△T-ni) and after that time, or at each occurrence of the second prompt signal after T21-△T12; at other times, the alarm sound is played in a silent state.
[0054] Preferably, the alarm sound channel plays the sound at a fixed baud rate. The number of milliseconds of sound data to be played in the sound driver buffer can be calculated based on the length of the remaining unplayed data samples in the sound buffer and the baud rate. Assuming the baud rate is 48000 and it is a single channel, the calculation formula is: the duration of the sound data to be played in the sound driver buffer remains_len = {data sample length / 48000 * 1000}.
[0055] Preferably, the playback duration of the alarm sound is much shorter than that of the alarm sound in the silent state, so that when the next sound is played, the previous one has already finished playing; the playback duration of the alarm sound in the silent state is less than 17ms, which can ensure that the data waiting to be played in the sound driver buffer will not exceed 17ms.
[0056] The alarm icon is refreshed frame by frame, and is only displayed in a bright state at the occurrence times of the third prompt signal in the following order: T30+1*△T-m1, T30+2*△T-m2, ..., T30+j*△T-mj and after that time, or after T31-△T13; while at other times, the alarm icon is displayed in a dark state.
[0057] The pseudocode for alarm sound playback and alarm icon display is as follows:
[0058] t=T20+i*△T-ni
[0059] If ( abs(t-remain_len) <= 17ms ){
[0060] Write the audio data to be played directly
[0061] }else if(t-remain_len > 17ms){
[0062] Write a mute packet for t-remain_len duration
[0063] Write the audio data to be played
[0064] }else{
[0065] Error
[0066] }
[0067] Set tHMI = t (the HMI display process will use this time to determine whether to display the corresponding alarm icon for the current frame).
[0068] Preferably, the post window function is called so that the alarm icon can be displayed within 1 / fps. The time to refresh the alarm icon for 60 frames is 17ms; the number of frames to refresh is determined by the pixel clock of the display screen.
[0069] As another preferred option, such as Figure 4 As shown, the present invention also provides a vehicle warning signal synchronization system comprising: a detection module for detecting the transmission time T10 of the first warning signal; an initialization module for initializing the transmission times T20 and T30 of the second and third warning signals; a calculation module for calculating the occurrence times of the second and third warning signals based on the transmission time of the first warning signal; and a control module for controlling the working states of the hazard lights, left turn signal, right turn signal, alarm sound, and alarm icon based on the first, second, and third warning signals.
[0070] Among them, the vehicle alert signal synchronization system works with the MCU system and SOC system to control the synchronization of vehicle alert signals using the gPTP clock protocol.
[0071] Preferably, the MCU system is used for signal sampling and CAN signal transmission and reception, while the SOC system is used for displaying alarm icons. The two systems work together to control the synchronization of the prompt signals.
[0072] The calculation module includes: a first prompt signal calculation unit, a second prompt signal calculation unit, and a third prompt signal calculation unit.
[0073] The first prompt signal calculation unit calculates the next signal transmission time sequentially according to the transmission time T10 of the first prompt signal and a fixed time delay △T.
[0074] The second prompt signal calculation unit calculates the difference △T12 between the second prompt signal transmission time T20 and the first prompt signal transmission time T10, divides the difference △T12 into i interval values in an equal proportion, and obtains the occurrence time of the second prompt signal based on the interval values; or obtains the occurrence time of the second prompt signal based on the difference △T12.
[0075] The third prompt signal calculation unit calculates the difference △T13 between the third prompt signal transmission time T30 and the first prompt signal transmission time T10, divides the difference △T13 into j interval values in an equal proportion, and obtains the occurrence time of the third prompt signal based on the interval values; or it obtains the occurrence time of the third prompt signal based on the difference △T13.
[0076] As another preferred embodiment, the present invention also provides a vehicle including a vehicle alert signal synchronization system, the synchronization system being used to implement a method for synchronizing vehicle alert signals.
[0077] In summary, this invention provides a method for synchronizing vehicle alert signals, a synchronization system, and a vehicle. Specifically, the method involves: when a first alert signal is detected, initializing the transmission time T10 of the first alert signal; and sequentially transmitting the first alert signal with a fixed delay ΔT. Based on the transmission time T10 of the first alert signal, setting the occurrence times of the second and third alert signals. During the synchronization setting process, this invention also proposes two time synchronization optimizations: either catching up with the signal using proportional time or setting the delay time of the second and third alert signals to a silent state until the occurrence times of the first, second, and third alert signals are equal, thereby completing the current vehicle alert signal synchronization setting. The method provided by this invention requires no additional hardware costs, solves the problem of synchronizing three types of alert signals, and improves the user experience.
[0078] Although exemplary embodiments have been described herein with reference to the accompanying drawings, it should be understood that the above exemplary embodiments are merely illustrative and are not intended to limit the scope of the invention. Various changes and modifications can be made therein by those skilled in the art without departing from the scope and spirit of the invention. All such changes and modifications are intended to be included within the scope of the invention as claimed in the appended claims.
[0079] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.
[0080] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed.
[0081] The various component embodiments of the present invention can be implemented in hardware, or as software modules running on one or more processors, or a combination thereof. Those skilled in the art will understand that microprocessors or digital signal processors (DSPs) can be used in practice to implement some or all of the functions of some modules according to embodiments of the present invention. The present invention can also be implemented as an apparatus program (e.g., a computer program and computer program product) for performing some or all of the methods described herein. Such programs implementing the present invention can be stored on a computer-readable medium, or can be in the form of one or more signals. Such signals can be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
[0082] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0083] Although the invention has been described in conjunction with the specific embodiments described above, it will be apparent to those skilled in the art that many substitutions, modifications, and variations can be made based on the foregoing. Therefore, all such substitutions, modifications, and variations are included within the spirit and scope of the appended claims.
Claims
1. A method for synchronizing vehicle warning signals, characterized in that, Includes the following steps: S100: When the first prompt signal is detected, the transmission time T10 of the first prompt signal is initialized, and the first prompt signal is transmitted sequentially with a fixed time delay △T; S200: Based on the sending time T10 of the first prompt signal, set the occurrence times of the second and third prompt signals to be equal; Wherein, S200 includes: S201: Initialize the transmission times T20 and T30 of the second and third prompt signals respectively; where T10 < T20 ≤ T30; S202: Set the occurrence times of the second prompt signal and the third prompt signal to T21 and T31 respectively; and calculate the differences △T12 and △T13 between the second prompt signal transmission time T20 and the third prompt signal transmission time T30 and the first prompt signal transmission time T10; S203: Divide the difference △T12 into i intervals N = (n1, n2, ..., ni); divide the difference △T13 into j intervals M = (m1, m2, ..., mj); then the occurrence times of the second prompt signal are: T20+1*△T-n1, T20+2*△T-n2, ..., T20+i*△T-ni. After T20+i*△T-ni, the second prompt signal is synchronized with the first prompt signal; the occurrence times of the third prompt signal are: T30+1*△T-m1, T30+2*△T-m2, ..., T30+j*△T-mj. After T30+j*△T-mj, the third prompt signal is synchronized with the first prompt signal. S300: Complete the synchronization settings for the current vehicle's alert signals.
2. The method for synchronizing vehicle prompt signals according to claim 1, characterized in that, The first warning signal is used to control the activation of at least the hazard lights, left turn signal, or right turn signal.
3. The method for synchronizing vehicle prompt signals according to claim 2, characterized in that, The second prompt signal is an alarm sound emitted in conjunction with the first prompt signal; The alarm sound is played only at the times when the second prompt signal occurs (T20+1*△T-n1, T20+2*△T-n2, ..., T20+i*△T-ni) and every subsequent occurrence of the second prompt signal; otherwise, a silent alarm sound is played.
4. The method for synchronizing vehicle prompt signals according to claim 3, characterized in that, The third prompt signal is used to control the alarm icon that is lit up in response to the activation of the first prompt signal. Based on the sending time T10 of the first prompt signal and a fixed time delay △T, the alarm icon is set to be displayed only at the time when the first prompt signal occurs.
5. The method for synchronizing vehicle prompt signals according to claim 4, characterized in that, The alarm icon is refreshed frame by frame, and is only displayed in a bright state at the times when the third prompt signal occurs in the following order: T30+1*△T-m1, T30+2*△T-m2, ..., T30+j*△T-mj, and at each subsequent time when the third prompt signal occurs; while at other times, the alarm icon is displayed in a dark state.
6. A system employing the method for synchronizing vehicle warning signals as described in any one of claims 1-5, characterized in that, Includes: a detection module: used to detect the transmission time T10 of the first prompt signal; Initialization module: used to initialize the transmission times T20 and T30 of the second and third prompt signals; Calculation module: used to calculate the occurrence times of the second and third prompt signals based on the transmission time of the first prompt signal; Control module: Used to control the working status of hazard lights, left turn signal, right turn signal, alarm sound and alarm icon according to the first prompt signal, the second prompt signal and the third prompt signal.
7. The system according to claim 6, characterized in that, The calculation module includes: a first prompt signal calculation unit, a second prompt signal calculation unit, and a third prompt signal calculation unit; The first prompt signal calculation unit calculates the next signal transmission time sequentially according to the transmission time T10 of the first prompt signal and a fixed time delay △T. The second prompt signal calculation unit calculates the difference △T12 between the second prompt signal transmission time T20 and the first prompt signal transmission time T10, divides the difference △T12 into i interval values in an equal proportion, and obtains the occurrence time of the second prompt signal based on the interval values. The third prompt signal calculation unit calculates the difference △T13 between the third prompt signal transmission time T30 and the first prompt signal transmission time T10, divides the difference △T13 into j interval values in an equal proportion, and obtains the occurrence time of the third prompt signal based on the interval values.
8. A vehicle, characterized in that, The system includes a vehicle alert signal synchronization system, which is used to implement the method for synchronizing vehicle alert signals as described in any one of claims 1-5.
Citation Information
Patent Citations
Method for controlling vehicle sound-light alarm, vehicle sound-light alarm system and vehicle
CN113459947A