Vehicle pre-warning control method, device and vehicle
By connecting the vehicle's MCU control switching chip to the onboard DSP, a warning signal is generated and sent to the power amplifier device for audio warning. This solves the safety warning prompt problem during the vehicle's startup process when the vehicle's SOC is not working, thus improving vehicle safety.
Patent Information
- Application Number
- CN202311018316.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-14
- Publication Date
- 2025-12-30
- Estimated Expiration
- 2043-08-14
AI Technical Summary
Existing vehicles cannot provide safety warnings during the period when the vehicle's MCU is awake but the vehicle's SOC is not working, posing a safety hazard.
The vehicle MCU controls the switching chip to connect to the on-board DSP, generate and send warning signals to the power amplifier for audio warnings, and realize safety warning prompts when the vehicle MCU is not working.
During the vehicle startup process, during the period when the vehicle's MCU is awake and the vehicle's SOC is not working, control of the onboard DSP devices is achieved, solving the problem that existing vehicles cannot provide safety warning prompts and improving vehicle safety.
Smart Images

Figure CN116853121B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of vehicle control technology, and in particular to a vehicle early warning control method, device and vehicle. Background Technology
[0002] As vehicles become more intelligent, their safety warning and alert functions are also constantly being improved. These functions require the vehicle's infotainment system to quickly and effectively detect and control the corresponding speakers to emit alarm sounds, such as door opening collision warning signals, rear collision warning signals, reversing side warning signals, and parking radar assistance signals.
[0003] Existing safety warning and alert functions are generally implemented based on the vehicle's System-on-Chips (SOC) or instrument cluster. There are time intervals between the vehicle's MCU wake-up and the completion of the power-on startup of the SOC or instrument cluster, and between the power-down of the SOC or instrument cluster and the MCU going into sleep mode. During these intervals, the SOC and instrument cluster are inactive and unable to respond to safety warning and alert requests, posing a certain safety hazard. Summary of the Invention
[0004] In view of this, the purpose of the present invention is to provide a vehicle warning control method, device and vehicle, which can control the vehicle DSP device during the period when the vehicle MCU (Microcontroller Unit) is awake and the vehicle SOC (System on Chip) is not working during the vehicle start-up process. It realizes that the warning signal is sent to the vehicle DSP (Digital Signal Processing) by the vehicle MCU and then the audio warning is played by the power amplifier device, thereby solving the problem that existing vehicles cannot provide safety warning prompts during the above-mentioned time period.
[0005] In a first aspect, embodiments of the present invention provide a vehicle warning control method, which is used in a vehicle control system. The vehicle control system performs audio warnings by controlling a power amplifier device in the vehicle. The vehicle control system includes at least: a vehicle MCU, a vehicle-mounted system-on-a-chip (SOC), an on-board DSP, and a switching control chip. A first control port of the vehicle MCU is connected to a first instruction input port of the power amplifier device. A second control port of the vehicle MCU is connected to a first communication interface of the switching control chip. A third control port of the vehicle MCU is connected to a switching port of the switching control chip. A control port of the vehicle-mounted SOC is connected to a second communication interface of the switching control chip. Under the control of the switching port, the third communication interface of the switching control chip is connected to either the first or second communication interface. The third communication interface of the switching control chip is also connected to a first control port of the on-board DSP. The second control port of the on-board DSP is connected to a second instruction input port of the power amplifier device.
[0006] In the aforementioned vehicle control system, the method includes:
[0007] When the vehicle control system receives the wake-up command, it uses the switching port of the switching control chip to connect the third communication interface of the switching control chip to the first communication interface of the switching control chip.
[0008] The vehicle MCU generates a startup command for the onboard DSP and sends the DSP startup command to the onboard DSP through a switching control chip to control the onboard DSP to complete the startup.
[0009] After the vehicle's MCU detects the warning signal, it controls the MCU to send the warning signal to the onboard DSP through a switching control chip, and then controls the onboard DSP to use the warning signal to start the power amplifier device to provide an audio warning.
[0010] In one implementation, after the vehicle control system receives a power-on command, the method further includes:
[0011] The vehicle's MCU sends a mute command to the power amplifier.
[0012] The control amplifier device enters mute mode using the received mute command.
[0013] In one embodiment, after controlling the vehicle MCU to generate a DSP startup command and sending the DSP startup command to the on-board DSP via a switching control chip to control the on-board DSP to complete the startup, the method further includes:
[0014] Control the vehicle's MCU to initiate a safety warning thread;
[0015] The safety warning thread periodically checks whether the control of the vehicle DSP belongs to the vehicle MCU.
[0016] When it is detected that the control of the vehicle DSP belongs to the vehicle MCU, the safety warning thread is used to control the acquisition of warning signals in real time; among them, the warning signals include at least: door opening collision warning signal, rear collision warning signal, reversing side warning signal, and reversing radar auxiliary warning signal.
[0017] In one implementation, the step of periodically detecting whether the control of the onboard DSP belongs to the vehicle MCU using a safety warning thread includes:
[0018] Under the safety warning thread, the control rights flag of the vehicle DSP is periodically acquired;
[0019] The system determines in real time whether the control authority flag is the first parameter, and determines whether the control authority of the vehicle DSP belongs to the vehicle MCU based on the determination result; wherein, the control authority of the vehicle DSP under the first parameter belongs to the vehicle MCU.
[0020] In one implementation, the method further includes:
[0021] When the vehicle control system detects the power-on command, it controls the vehicle MCU to power on the vehicle's SOC.
[0022] Once the vehicle's SOC is detected to have completed power-on, the switching port of the switching control chip is used to connect the third communication interface of the switching control chip to the second communication interface of the switching control chip.
[0023] The vehicle's SOC controls the warning signal in the vehicle's DSP to activate the power amplifier for audio warnings.
[0024] In one embodiment, before connecting the third communication interface of the switching control chip to the second communication interface of the switching control chip using the switching port of the switching control chip, the method further includes:
[0025] The vehicle's SOC sends the first request command to the vehicle's MCU.
[0026] When the vehicle MCU receives the first request instruction, it controls the vehicle MCU to change the control right flag of the on-board DSP from the first parameter to the second parameter; wherein, the control right of the on-board DSP under the first parameter belongs to the vehicle MCU; the control right of the on-board DSP under the second parameter belongs to the vehicle system SoC.
[0027] In one implementation, the method further includes:
[0028] When the vehicle control system detects a power-down signal, it controls the vehicle MCU to power down the vehicle's SOC.
[0029] When the vehicle's SOC is detected to have finished powering down, the switching port of the switching control chip is used to connect the third communication interface of the switching control chip to the first communication interface of the switching control chip.
[0030] The vehicle's MCU controls the warning signal in the onboard DSP to activate the power amplifier device for audio warning.
[0031] In one embodiment, before connecting the third communication interface of the switching control chip to the first communication interface of the switching control chip using the switching port of the switching control chip, the method further includes:
[0032] The vehicle MCU controls the vehicle DSP to change the control authority flag from the second parameter to the first parameter; under the first parameter, the control authority of the vehicle DSP belongs to the vehicle MCU; under the second parameter, the control authority of the vehicle DSP belongs to the vehicle system SoC.
[0033] Secondly, embodiments of the present invention provide a vehicle warning control device for a vehicle control system. The vehicle control system performs audio warnings by controlling a power amplifier in the vehicle. The vehicle control system includes at least: a vehicle MCU, a vehicle-mounted SOC, an onboard DSP, and a switching control chip. A first control port of the vehicle MCU is connected to a first instruction input port of the power amplifier. A second control port of the vehicle MCU is connected to a first communication interface of the switching control chip. A third control port of the vehicle MCU is connected to a switching port of the switching control chip. A control port of the vehicle-mounted SOC is connected to a second communication interface of the switching control chip. Under the control of the switching port, the third communication interface of the switching control chip is connected to either the first or second communication interface. The third communication interface of the switching control chip is also connected to a first control port of the onboard DSP. The second control port of the onboard DSP is connected to a second instruction input port of the power amplifier.
[0034] In the aforementioned vehicle control system, the device includes:
[0035] The first control module is used to control the third communication interface of the switching control chip to connect with the first communication interface of the switching control chip by using the switching port of the switching control chip after the vehicle control system receives the wake-up command.
[0036] The second control module is used to control the vehicle MCU to generate the on-board DSP start command, and send the DSP start command to the on-board DSP through the switching control chip to control the on-board DSP to complete the start-up.
[0037] The third control module is used to control the vehicle MCU to send the warning signal to the vehicle DSP through the switching control chip after the vehicle MCU detects the warning signal, and to control the vehicle DSP to start the power amplifier device to provide audio warning using the warning signal.
[0038] Thirdly, embodiments of the present invention also provide a vehicle, wherein a vehicle control system and a power amplifier are provided in the vehicle; wherein the vehicle control system is connected to the power amplifier; and the vehicle control system executes the steps of the vehicle warning control method mentioned in the first aspect during the process of using the power amplifier to provide audio warning.
[0039] Fourthly, embodiments of the present invention also provide an electronic device, including a processor and a memory, wherein the memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to implement the steps of the vehicle warning control method provided in the first aspect.
[0040] Fifthly, embodiments of the present invention also provide a storage medium storing computer-executable instructions, which, when invoked and executed by a processor, cause the processor to implement the steps of the vehicle warning control method provided in the first aspect.
[0041] This invention provides a vehicle warning control method, device, and vehicle. The solution is used in a vehicle control system. The vehicle control system performs audio warnings by controlling a power amplifier device in the vehicle. The vehicle control system includes at least: a vehicle MCU, a vehicle-mounted SOC, an onboard DSP, and a switching control chip. A first control port of the vehicle MCU is connected to a first instruction input port of the power amplifier device. A second control port of the vehicle MCU is connected to a first communication interface of the switching control chip. A third control port of the vehicle MCU is connected to a switching port of the switching control chip. A control port of the vehicle-mounted SOC is connected to a second communication interface of the switching control chip. Under the control of the switching port, the third communication interface of the switching control chip is connected to either the first or second communication interface. The third communication interface of the switching control chip is also connected to a first control port of the onboard DSP. The second control port of the onboard DSP is connected to a second instruction input port of the power amplifier device. In the process of using the aforementioned hardware for vehicle warning control, when the vehicle control system receives a wake-up command, it uses the switching port of the switching control chip to connect the third communication interface of the switching control chip to the first communication interface of the switching control chip. The system then controls the vehicle MCU to generate an onboard DSP start command and sends this command to the onboard DSP via the switching control chip to control the DSP to start. After detecting a warning signal, the vehicle MCU sends the warning signal to the onboard DSP via the switching control chip and controls the onboard DSP to use the warning signal to start the power amplifier for audio warning. This method can control the onboard DSP during the period when the vehicle MCU is awake and the vehicle's SOC is not working during vehicle startup. It achieves audio warning via power amplifier after the vehicle MCU sends the warning signal to the onboard DSP, thus solving the problem that existing vehicles cannot provide safety warning prompts during the aforementioned time period.
[0042] Other features and advantages of the invention will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the invention. The objects and other advantages of the invention are realized and obtained in accordance with the structures particularly pointed out in the description, claims and drawings.
[0043] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0044] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0045] Figure 1 A flowchart of a vehicle early warning control method provided in an embodiment of the present invention;
[0046] Figure 2 This is a schematic diagram of the structure of a vehicle control system provided in an embodiment of the present invention;
[0047] Figure 3 A flowchart illustrating the process after the vehicle control system receives a power-on command in a vehicle early warning control method provided in this embodiment of the invention.
[0048] Figure 4 This is a flowchart following step S102 in a vehicle warning control method provided in an embodiment of the present invention;
[0049] Figure 5 This is a flowchart of step S402 in a vehicle warning control method provided in an embodiment of the present invention;
[0050] Figure 6 A flowchart illustrating a vehicle warning control method provided in this embodiment of the invention when the vehicle control system detects a power-on command;
[0051] Figure 7 A flowchart illustrating the process before connecting the third communication interface of a switching control chip to the second communication interface of a switching control chip in a vehicle warning control method provided in this embodiment of the invention.
[0052] Figure 8 A flowchart illustrating a vehicle warning control method provided in this embodiment of the invention when the vehicle control system detects a power-off signal;
[0053] Figure 9 A flowchart of another vehicle warning control method provided in an embodiment of the present invention;
[0054] Figure 10 This is a schematic diagram of the structure of a vehicle early warning control device provided in an embodiment of the present invention;
[0055] Figure 11 A schematic diagram of the structure of a vehicle provided in an embodiment of the present invention;
[0056] Figure 12This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention.
[0057] icon:
[0058] 1010 - First control module; 1020 - Second control module; 1030 - Third control module;
[0059] 1110 - Vehicle control system; 1120 - Power amplifier equipment;
[0060] 101 - Processor; 102 - Memory; 103 - Bus; 104 - Communication interface. Detailed Implementation
[0061] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0062] As vehicles become more intelligent, their safety warning and alert functions are also constantly being improved. These functions require the vehicle's infotainment system to quickly and effectively detect and control the corresponding speakers to emit alarm sounds, such as door opening collision warning signals, rear collision warning signals, reversing side warning signals, and parking radar assistance signals.
[0063] Existing safety warning functions are generally implemented based on the vehicle's SOC or instrument cluster. There are time intervals between the vehicle's MCU wake-up and the completion of the power-on process for the SOC or instrument cluster, and between the power-off process and the MCU's sleep state. During these intervals, the SOC and instrument cluster are inactive and unable to respond to safety warning requests, posing a certain safety hazard. Therefore, this invention provides a vehicle warning control method, device, and vehicle that can control the onboard DSP device during the period when the vehicle's MCU is awake and the SOC is inactive during vehicle startup. It enables the vehicle MCU to send warning signals to the onboard DSP, which then uses an amplifier to provide audio warnings, thus solving the problem in existing technologies where vehicles cannot provide safety warnings during the aforementioned time periods.
[0064] To facilitate understanding of this embodiment, a vehicle warning control method disclosed in this invention will first be described in detail. This method is used in a vehicle control system. The vehicle control system performs audio warnings by controlling a power amplifier device in the vehicle. The vehicle control system includes at least: a vehicle MCU, a vehicle-mounted SOC, an onboard DSP, and a switching control chip. The first control port of the vehicle MCU is connected to the first instruction input port of the power amplifier device. The second control port of the vehicle MCU is connected to the first communication interface of the switching control chip. The third control port of the vehicle MCU is connected to the switching port of the switching control chip. The control port of the vehicle-mounted SOC is connected to the second communication interface of the switching control chip. Under the control of the switching port, the third communication interface of the switching control chip is connected to either the first or second communication interface. The third communication interface of the switching control chip is also connected to the first control port of the onboard DSP. The second control port of the onboard DSP is connected to the second instruction input port of the power amplifier device. Figure 1 As shown, the method includes:
[0065] Step S101: After the vehicle control system receives the wake-up command, it uses the switching port of the switching control chip to connect the third communication interface of the switching control chip to the first communication interface of the switching control chip.
[0066] During the vehicle's power-on wake-up process, the vehicle's MCU is woken up first, followed by the vehicle's SOC. This embodiment addresses the issue of the inability to provide safety warnings via the vehicle's SOC during the period when the MCU is awake but the SOC is not operational. Therefore, upon receiving the wake-up command, the vehicle control system first responds to the MCU. At this point, the switching port in the switching control chip is used to connect the third communication interface with the first communication interface, establishing a connection between the onboard DSP and the MCU.
[0067] Step S102: Control the vehicle MCU to generate an on-board DSP start command, and send the DSP start command to the on-board DSP through the switching control chip to control the on-board DSP to complete the start.
[0068] Since the onboard DSP and the vehicle MCU are already connected, the vehicle MCU sends the generated onboard DSP startup command to the onboard DSP through the switching control chip. Specifically, the vehicle MCU sends the generated onboard DSP startup command to the third control port through the first control port of the switching control chip, and then sends the onboard DSP startup command to the onboard DSP through the third control port to complete the startup of the onboard DSP.
[0069] In step S103, after the vehicle MCU detects the warning signal, it controls the vehicle MCU to send the warning signal to the vehicle DSP through the switching control chip, and controls the vehicle DSP to use the warning signal to start the power amplifier device to provide an audio warning.
[0070] After the onboard DSP completes startup, it sends the warning signal detected by the vehicle's MCU to the onboard DSP via a switching control chip. In a real-world scenario, the warning signal is detected by the vehicle's MCU. The MCU then sends the detected warning signal to the third control port via the first control terminal of the switching control chip. The third control port then sends the warning signal to the onboard DSP, thereby controlling the onboard DSP to start the power amplifier device to provide an audio warning.
[0071] The connection method of the vehicle control system is as follows Figure 2 As shown, the vehicle control system, in addition to the vehicle MCU (MCU), vehicle system SoC (SOC), onboard DSP (DSP), and switching control chip (corresponding to the SWITCH chip in the diagram), also includes relevant storage units (corresponding to the FLASH chip in the diagram); the storage units are used to store relevant instructions and parameters during the warning control process. The power amplifier (corresponding to the power amplifier in the diagram) is connected to multiple speakers.
[0072] The first control port of the MCU is connected to the first instruction input port of the power amplifier device, primarily for mute control of the power amplifier device. The second control port of the vehicle MCU is connected to the first communication interface SPI1 of the switching control chip; the third control port of the vehicle MCU is connected to the switching port SW of the switching control chip; the control port of the vehicle SoC is connected to the second communication interface SPI2 of the switching control chip; the third communication interface SPI of the switching control chip, under the control of the switching port SW, is connected to either the first communication interface SPI1 or the second communication interface SPI2. The third communication interface SPI of the switching control chip is also connected to the first control port of the onboard DSP; the second control port of the onboard DSP is connected to the second instruction input port of the power amplifier device; the third control port of the onboard DSP is also connected to the memory unit.
[0073] The coordinated control of the DSP's audio output by the MCU and SOC is mainly achieved through switching the SPI channel of the SWITCH chip. Based on the vehicle's operating mode, the MCU controls the level of the SW pin on the SWITCH chip to switch the DSP's SPI communication interface to either the MCU or the SOC, enabling time-division multiplexing of SPI control between the SOC and MCU for the DSP.
[0074] Based on this, such as Figure 3 As shown, in one embodiment, after the vehicle control system receives a power-on command, the method further includes:
[0075] Step S301: Control the vehicle MCU to send a mute command to the power amplifier device;
[0076] Step S302: Control the power amplifier device to enter mute mode using the received mute command.
[0077] After receiving the power-on command, the vehicle control system enters the STANDBY mode for the relevant power management of the vehicle MCU. The vehicle MCU initializes the power amplifier and performs mute control to prevent popping sounds.
[0078] In one embodiment, after step S102, where the vehicle MCU generates a DSP startup command and sends the DSP startup command to the onboard DSP via a switching control chip to control the onboard DSP to complete the startup, as follows... Figure 4 As shown, the method also includes:
[0079] Step S401: Control the vehicle MCU to start the safety warning thread;
[0080] Step S402: Use the safety warning thread to periodically detect whether the control of the vehicle DSP belongs to the vehicle MCU;
[0081] Step S403: When it is detected that the control of the vehicle DSP belongs to the vehicle MCU, the safety warning thread is used to control the real-time acquisition of warning signals.
[0082] Specifically, after the onboard DSP completes its startup, the MCU initializes its own SPI driver, controlling the DSP to switch to SPI FLASH mode via SPI to complete the DSP initialization. After the DSP initialization is complete, the MCU's safety warning thread will also start. This thread periodically checks whether the MCU has control of the DSP. When it detects that the vehicle's MCU has control of the onboard DSP, this thread will continue to periodically query the relevant warning CAN signals for door opening collision warning, rear collision warning, reversing side warning, and reversing radar auxiliary warning.
[0083] In one implementation, step S402 involves using a safety warning thread to periodically detect whether control of the onboard DSP belongs to the vehicle MCU. Figure 5 As shown, it includes:
[0084] Step S501: Periodically acquire the control rights flag of the vehicle DSP under the safety warning thread;
[0085] Step S502: In real time, determine whether the control right flag is the first parameter, and determine whether the control right of the vehicle DSP belongs to the vehicle MCU based on the determination result; wherein, the control right of the vehicle DSP under the first parameter belongs to the vehicle MCU.
[0086] In practical scenarios, the first parameter can be set to 1. When the DSP control flag is 1, it means that the DSP control belongs to the MCU. When a valid warning signal is detected, the MCU writes corresponding control instructions to the DSP via SPI, instructing the DSP to retrieve the preset audio file information from the FLASH, set the audio playback count, set the amplifier's output channel, and unmute the amplifier. The DSP then uses the amplifier to make the corresponding speaker emit an alarm tone. If the detected warning signal is invalid, no sound-related operations are performed. When this thread detects that the DSP control flag is equal to 0, meaning the DSP control belongs to the SOC, it exits the current detection function and will not continue to query related warning CAN signals, waiting for the next cycle scan.
[0087] In one implementation, when the vehicle control system detects a power-on command, such as Figure 6 As shown, the method also includes:
[0088] Step S601: When the vehicle control system detects the power-on command, it controls the vehicle MCU to perform a power-on operation on the vehicle's SOC.
[0089] Step S602: After the vehicle's SOC is detected to have completed power-on, the switching port of the switching control chip is used to connect the third communication interface of the switching control chip to the second communication interface of the switching control chip.
[0090] Step S603: Use the vehicle's SOC to control the warning signal in the vehicle's DSP to start the power amplifier device to provide an audio warning.
[0091] In real-world scenarios, the power-on command can be the ACC ignition signal. After detecting the power-on command, the vehicle control system controls the vehicle's MCU to power on the vehicle's SOC. In a specific scenario, the MCU enters NORMAL mode and powers on the SOC. After the SOC powers on and starts up, the MCU switches the SPI control of the DSP to the SOC by controlling the SW pin level of the SWITCH. The safety warning function is then taken over by the SOC, allowing the SOC to control the warning signal in the vehicle's DSP to activate the power amplifier to provide audio warnings.
[0092] In one implementation, before connecting the third communication interface of the switching control chip to the second communication interface of the switching control chip using the switching port of the switching control chip, such as... Figure 7 As shown, the method also includes:
[0093] Step S701: Control the vehicle's SOC to send a first request command to the vehicle's MCU;
[0094] Step S702: After the vehicle MCU receives the first request instruction, it controls the vehicle MCU to change the control right flag of the on-board DSP from the first parameter to the second parameter; wherein, the control right of the on-board DSP under the first parameter belongs to the vehicle MCU; the control right of the on-board DSP under the second parameter belongs to the vehicle system SoC.
[0095] After the SOC powers on and starts up, it sends a first request message to the MCU via serial port. Upon receiving this message, the MCU determines that the SOC is ready to take over control of the DSP. The MCU will then switch the SPI control of the DSP to the SOC by controlling the SW pin level of the SWITCH, and set the DSP control flag from the first parameter 1 to the second parameter 0. The MCU's mute control is determined by the mute control command issued by the SOC during operation.
[0096] When the vehicle is turned off, the MCU detects that the ACC is invalid, and the vehicle's SOC needs to be shut down. In one implementation, when the vehicle control system detects a power-down signal, such as... Figure 8 As shown, the method also includes:
[0097] Step S801: When the vehicle control system detects a power-down signal, it controls the vehicle MCU to perform a power-down operation on the vehicle's SOC.
[0098] Step S802: After the vehicle's SOC is detected to have finished powering down, the switching port of the switching control chip is used to control the third communication interface of the switching control chip to connect with the first communication interface of the switching control chip.
[0099] Step S803: Use the vehicle MCU to control the warning signal in the vehicle DSP to start the power amplifier device to provide an audio warning.
[0100] The MCU will send a message via serial port to notify the SOC to enter sleep mode or power down. The safety warning will be taken over by the MCU again. The MCU will run the safety warning prompt until the MCU enters sleep mode. Just before the MCU enters sleep mode, it will cut off the power supply to the DSP and enter a low-power state.
[0101] Before connecting the third communication interface of the switching control chip to the first communication interface of the switching control chip using the switching port, it is necessary to control the vehicle MCU to set the control authority flag of the on-board DSP from the second parameter to the first parameter. Under the first parameter, the control authority of the on-board DSP belongs to the vehicle MCU; under the second parameter, the control authority of the on-board DSP belongs to the vehicle's SOC. Specifically, the MCU switches the DSP control authority to the MCU by controlling the SW pin level of the SWITCH and sets the DSP control authority flag from 0 to 1.
[0102] For details of the above process, please refer to the following: Figure 9The flowchart of another vehicle warning control method illustrates that during the control process of switching the SPI communication interface, when the SOC is not working, the SPI communication interface is switched to the MCU, and the MCU takes over the DSP to implement the safety warning prompts. After the SOC starts up, the SPI communication interface is switched back to the SOC, and the SOC takes over the DSP to implement the safety warning prompts and multimedia sound output, thus effectively solving the problem that the vehicle's system cannot provide warning prompts when the SOC is not working.
[0103] During amplifier mute control, the amplifier is muted by default when the SOC is not operating. When the MCU detects a warning signal, it unlocks the mute before controlling the DSP to emit sound. During SOC operation, amplifier mute control is determined by control commands issued by the SOC, effectively resolving the popping sound problem during power-on and DSP switching.
[0104] In practical scenarios, safety warning audio files can be stored in the external FLASH of the DSP. After the MCU detects different warning signals, it writes control instructions through the SPI interface to call the warning audio file for the corresponding scenario, thus realizing the function of playing different warning prompts in different warning scenarios. This also reduces the complexity of the MCU in implementing the warning prompt function.
[0105] As can be seen from the vehicle warning control method mentioned in the above embodiments, this method can control the vehicle DSP device during the period when the vehicle MCU is awake and the vehicle SoC is not working during the vehicle startup process. It realizes that the warning signal is sent to the vehicle DSP by the vehicle MCU and then the audio warning is performed by the power amplifier device, thereby solving the problem that existing vehicles cannot provide safety warning prompts during the above-mentioned time period.
[0106] Corresponding to the vehicle warning control method provided in the foregoing embodiments, this embodiment of the invention provides a vehicle warning control device, which is used in a vehicle control system. The vehicle control system performs audio warnings by controlling a power amplifier device in the vehicle. The vehicle control system includes at least: a vehicle MCU, a vehicle-mounted SOC, an onboard DSP, and a switching control chip. The first control port of the vehicle MCU is connected to the first instruction input port of the power amplifier device. The second control port of the vehicle MCU is connected to the first communication interface of the switching control chip. The third control port of the vehicle MCU is connected to the switching port of the switching control chip. The control port of the vehicle-mounted SOC is connected to the second communication interface of the switching control chip. Under the control of the switching port, the third communication interface of the switching control chip is connected to either the first or second communication interface. The third communication interface of the switching control chip is also connected to the first control port of the onboard DSP. The second control port of the onboard DSP is connected to the second instruction input port of the power amplifier device. Based on this, as... Figure 10 As shown, the device includes:
[0107] The first control module 1010 is used to control the third communication interface of the switching control chip to connect with the first communication interface of the switching control chip by using the switching port of the switching control chip after the vehicle control system receives the wake-up command.
[0108] The second control module 1020 is used to control the vehicle MCU to generate a vehicle DSP start command, and send the DSP start command to the vehicle DSP through a switching control chip to control the vehicle DSP to complete the start-up.
[0109] The third control module 1030 is used to control the vehicle MCU to send the warning signal to the vehicle DSP through the switching control chip after the vehicle MCU detects the warning signal, and to control the vehicle DSP to start the power amplifier device to provide audio warning using the warning signal.
[0110] In one implementation, after the vehicle control system receives a power-on command, the vehicle warning control device is further configured to: control the vehicle MCU to send a mute command to the power amplifier device; and control the power amplifier device to enter a mute mode using the received mute command.
[0111] In one embodiment, after controlling the vehicle MCU to generate a DSP start command and sending the DSP start command to the on-board DSP via a switching control chip to control the on-board DSP to complete the start-up, the vehicle warning control device is further configured to: control the vehicle MCU to start a safety warning thread; periodically detect whether the control of the on-board DSP belongs to the vehicle MCU using the safety warning thread; when it is detected that the control of the on-board DSP belongs to the vehicle MCU, use the safety warning thread to control the real-time acquisition of warning signals; wherein the warning signals include at least: door opening collision warning signal, rear collision warning signal, reversing side warning signal, and reversing radar auxiliary warning signal.
[0112] In one embodiment, the vehicle warning control device, while periodically detecting whether the control right of the vehicle DSP belongs to the vehicle MCU using the safety warning thread, is further configured to: periodically acquire the control right flag of the vehicle DSP under the safety warning thread; determine in real time whether the control right flag is a first parameter, and determine whether the control right of the vehicle DSP belongs to the vehicle MCU based on the determination result; wherein, the control right of the vehicle DSP under the first parameter belongs to the vehicle MCU.
[0113] In one embodiment, the vehicle warning control device is further configured to: when the vehicle control system detects a power-on command, control the vehicle MCU to perform a power-on operation on the vehicle's SOC; when the vehicle's SOC is detected to have completed power-on, use the switching port of the switching control chip to control the third communication interface of the switching control chip to connect with the second communication interface of the switching control chip; and use the vehicle's SOC to control the warning signal in the vehicle's DSP to start the power amplifier device for audio warning.
[0114] In one embodiment, before the vehicle warning control device controls the connection between the third communication interface of the switching control chip and the second communication interface of the switching control chip via the switching port of the switching control chip, it is further configured to: control the vehicle system SOC to send a first request instruction to the vehicle MCU; after the vehicle MCU receives the first request instruction, control the vehicle MCU to change the control right flag of the on-board DSP from the first parameter to the second parameter; wherein, the control right of the on-board DSP under the first parameter belongs to the vehicle MCU; and the control right of the on-board DSP under the second parameter belongs to the vehicle system SOC.
[0115] In one embodiment, the vehicle warning control device is further configured to: when the vehicle control system detects a power-down signal, control the vehicle MCU to perform a power-down operation on the vehicle's SOC; after the vehicle's SOC has been powered down, use the switching port of the switching control chip to control the third communication interface of the switching control chip to connect with the first communication interface of the switching control chip; and use the vehicle MCU to control the warning signal in the on-board DSP to start the power amplifier device for audio warning.
[0116] In one embodiment, before the vehicle warning control device controls the third communication interface of the switching control chip to connect with the first communication interface of the switching control chip using the switching port of the switching control chip, it is further configured to: control the vehicle MCU to set the control right flag of the on-board DSP from the second parameter to the first parameter; the control right of the on-board DSP under the first parameter belongs to the vehicle MCU; the control right of the on-board DSP under the second parameter belongs to the vehicle system SoC.
[0117] As can be seen from the vehicle warning control device provided in the embodiments of the present invention, the device can control the vehicle DSP device during the period when the vehicle MCU is awake and the vehicle SoC is not working during the vehicle startup process. It realizes that the warning signal is sent to the vehicle DSP by the vehicle MCU and then the audio warning is performed by the power amplifier device, thereby solving the problem that existing vehicles cannot provide safety warning prompts during the above-mentioned time period.
[0118] The vehicle warning control device provided in this embodiment of the invention has the same implementation principle and technical effect as the aforementioned vehicle warning control method embodiment. For the sake of brevity, any parts not mentioned in the device embodiment can be referred to the corresponding content in the aforementioned method embodiment.
[0119] This embodiment also provides a vehicle, such as Figure 11 As shown, the vehicle is equipped with a vehicle control system 1110 and a power amplifier device 1120; wherein, the vehicle control system 1110 is connected to the power amplifier device 1120; the vehicle control system 1110 executes the steps of the vehicle warning control method mentioned in the above embodiment during the process of using the power amplifier device 1120 to perform audio warning.
[0120] This embodiment also provides an electronic device, the structural schematic diagram of which is shown below. Figure 12 As shown, the device includes a processor 101 and a memory 102; wherein, the memory 102 is used to store one or more computer instructions, which are executed by the processor to implement the above-mentioned vehicle warning control method.
[0121] Figure 12 The server shown also includes a bus 103 and a communication interface 104. The processor 101, the communication interface 104, and the memory 102 are connected via the bus 103.
[0122] The memory 102 may include high-speed random access memory (RAM), and may also include non-volatile memory, such as at least one disk storage device. The bus 103 may be an ISA bus, PCI bus, or EISA bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 12 The symbol is represented by a single double-headed arrow, but this does not mean that there is only one bus or one type of bus.
[0123] The communication interface 104 is used to connect to at least one user terminal and other network units through a network interface, and to send encapsulated IPv4 packets or IPv4 packets to the user terminal through the network interface.
[0124] Processor 101 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuitry in the hardware of processor 101 or by instructions in software form. The processor 101 can be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this disclosure. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this disclosure can be directly manifested as execution by a hardware decoding processor, or execution by a combination of hardware and software modules in the decoding processor. The software module can reside in a mature storage medium in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or registers. This storage medium is located in memory 102. The processor 101 reads the information in memory 102 and, in conjunction with its hardware, completes the steps of the method described in the foregoing embodiments.
[0125] This invention also provides a storage medium storing a computer program, which, when executed by a processor, performs the steps of the vehicle warning control method described in the foregoing embodiments.
[0126] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. Furthermore, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Additionally, the coupling or direct coupling or communication connection shown or discussed may be through some communication interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0127] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0128] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0129] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a processor-executable, non-volatile, computer-readable storage medium. Based on this understanding, the technical solution of this invention, essentially, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0130] Finally, it should be noted that the above-described embodiments are merely specific implementations of the present invention, used to illustrate the technical solutions of the present invention, and not to limit it. The scope of protection of the present invention is not limited thereto. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments within the technical scope disclosed in the present invention, or make equivalent substitutions for some of the technical features; and these modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A vehicle pre-warning control method characterized by, The method is used for a vehicle control system; the vehicle control system carries out audio early warning by controlling a power amplifier device in a vehicle; wherein the vehicle control system at least comprises a vehicle MCU, a vehicle SOC, a vehicle DSP and a switching control chip; a first control port of the vehicle MCU is connected with a first instruction input port of the power amplifier device; a second control port of the vehicle MCU is connected with a first communication interface of the switching control chip; a third control port of the vehicle MCU is connected with a switching port of the switching control chip; a control port of the vehicle SOC is connected with a second communication interface of the switching control chip; a third communication interface of the switching control chip is connected with the first communication interface or the second communication interface under the control of the switching port; the third communication interface of the switching control chip is also connected with a first control port of the vehicle DSP; a second control port of the vehicle DSP is connected with a second instruction input port of the power amplifier device; The method comprises: When the vehicle control system receives a wake-up instruction, the switching port of the switching control chip is used to control the third communication interface of the switching control chip to be connected with the first communication interface of the switching control chip; The vehicle MCU is controlled to generate a vehicle DSP start instruction, and the DSP start instruction is sent to the vehicle DSP through the switching control chip to control the vehicle DSP to complete start; When the vehicle MCU detects an early warning signal, the vehicle MCU is controlled to send the early warning signal to the vehicle DSP through the switching control chip, and the vehicle DSP is controlled to start the power amplifier device to carry out audio early warning by using the early warning signal; When the vehicle control system receives a power-on instruction, the method further comprises: The vehicle MCU is controlled to send a mute instruction to the power amplifier device; The power amplifier device is controlled to enter a mute mode by using the received mute instruction; The method further comprises: When the vehicle control system detects a power-on instruction, the vehicle MCU is controlled to perform power-on operation on the vehicle SOC; When it is detected that the vehicle SOC completes power-on, the switching port of the switching control chip is used to control the third communication interface of the switching control chip to be connected with the second communication interface of the switching control chip; The vehicle SOC is used to control the early warning signal in the vehicle DSP to start the power amplifier device to carry out audio early warning; The method further comprises: When the vehicle control system detects a power-off signal, the vehicle MCU is controlled to perform power-off operation on the vehicle SOC; When it is detected that the vehicle SOC completes power-off, the switching port of the switching control chip is used to control the third communication interface of the switching control chip to be connected with the first communication interface of the switching control chip; The vehicle MCU is used to control the early warning signal in the vehicle DSP to start the power amplifier device to carry out audio early warning.
2. The vehicle pre-warning control method according to claim 1, characterized by, The control vehicle MCU generates DSP start instruction, and sends the DSP start instruction to the vehicle DSP through the switch control chip to control the vehicle DSP to complete the start. Control the vehicle MCU to start the safety warning thread; Periodically detect whether the control right of the vehicle DSP belongs to the vehicle MCU by using the safety warning thread; When it is detected that the control right of the vehicle DSP belongs to the vehicle MCU, control the real-time acquisition of the warning signal by using the safety warning thread; wherein the warning signal at least includes: door anti-collision warning signal, rear anti-collision warning signal, reverse lateral warning signal and reverse radar auxiliary warning signal.
3. The vehicle pre-warning control method according to claim 2, characterized by, The step of periodically detecting whether the control right of the vehicle DSP belongs to the vehicle MCU by using the safety warning thread comprises: Periodically acquire the control right mark of the vehicle DSP under the safety warning thread; Real-time judge whether the control right mark is the first parameter, and determine whether the control right of the vehicle DSP belongs to the vehicle MCU according to the judgment result; wherein the control right of the vehicle DSP under the first parameter belongs to the vehicle MCU.
4. The vehicle pre-warning control method according to claim 1, characterized by Before the third communication interface of the switch control chip is connected with the second communication interface of the switch control chip by using the switching port of the switch control chip, the method further comprises: Control the vehicle MCU to send a first request instruction to the vehicle MCU; After the vehicle MCU receives the first request instruction, control the vehicle MCU to set the control right mark of the vehicle DSP from the first parameter to the second parameter; wherein the control right of the vehicle DSP under the first parameter belongs to the vehicle MCU; the control right of the vehicle DSP under the second parameter belongs to the vehicle SOC.
5. The vehicle pre-warning control method according to claim 1, characterized by Before the third communication interface of the switch control chip is connected with the first communication interface of the switch control chip by using the switching port of the switch control chip, the method further comprises: Control the vehicle MCU to set the control right mark of the vehicle DSP from the second parameter to the first parameter; the control right of the vehicle DSP under the first parameter belongs to the vehicle MCU; the control right of the vehicle DSP under the second parameter belongs to the vehicle SOC.
6. A vehicle pre-crash control apparatus characterized by comprising: The device is used for a vehicle control system; the vehicle control system carries out audio early warning by controlling a power amplifier device in a vehicle; wherein the vehicle control system at least comprises a vehicle MCU, a vehicle SOC, a vehicle DSP and a switching control chip; a first control port of the vehicle MCU is connected with a first instruction input port of the power amplifier device; a second control port of the vehicle MCU is connected with a first communication interface of the switching control chip; a third control port of the vehicle MCU is connected with a switching port of the switching control chip; a control port of the vehicle SOC is connected with a second communication interface of the switching control chip; a third communication interface of the switching control chip is connected with the first communication interface or the second communication interface under the control of the switching port; the third communication interface of the switching control chip is also connected with a first control port of the vehicle DSP; a second control port of the vehicle DSP is connected with a second instruction input port of the power amplifier device; The device comprises: A first control module, configured to, after the vehicle control system receives a wake-up instruction, control the third communication interface of the switching control chip to be connected with the first communication interface of the switching control chip by using the switching port of the switching control chip; A second control module, configured to control the vehicle MCU to generate a vehicle DSP start instruction and send the DSP start instruction to the vehicle DSP through the switching control chip to control the vehicle DSP to complete start; A third control module, configured to, after the vehicle MCU detects an early warning signal, control the vehicle MCU to send the early warning signal to the vehicle DSP through the switching control chip and control the vehicle DSP to start the power amplifier device to carry out audio early warning by using the early warning signal; A mute control module, configured to, after the vehicle control system receives a power-on instruction, control the vehicle MCU to send a mute instruction to the power amplifier device; and control the power amplifier device to enter a mute mode by using the received mute instruction; A power-on control module, configured to, after the vehicle control system detects a power-on instruction, control the vehicle MCU to perform a power-on operation on the vehicle SOC; after detecting that the vehicle SOC completes power-on, control the third communication interface of the switching control chip to be connected with the second communication interface of the switching control chip by using the switching port of the switching control chip; and control the vehicle DSP to start the power amplifier device to carry out audio early warning by using the early warning signal in the vehicle DSP and the vehicle SOC; A power-off control module, configured to, after the vehicle control system detects a power-off signal, control the vehicle MCU to perform a power-off operation on the vehicle SOC; after detecting that the vehicle SOC completes power-off, control the third communication interface of the switching control chip to be connected with the first communication interface of the switching control chip by using the switching port of the switching control chip; and control the vehicle DSP to start the power amplifier device to carry out audio early warning by using the early warning signal in the vehicle MCU.
7. A vehicle characterized by comprising: The vehicle is provided with a vehicle control system and a power amplifier device; wherein the vehicle control system is connected with the power amplifier device; The vehicle control system executes the steps of the vehicle pre-warning control method in any one of claims 1 to 5 during audio pre-warning using the power amplifier device.
Citation Information
Patent Citations
Method and system for controlling warning sound of vehicle machine
CN113352987A
Vehicle alarm device and vehicle
CN116353480A