Radar alarm sound rapid playing method based on Android system and storage medium
By adding a new communication interface to the microcontroller unit and application processor in the Android system, and transmitting radar alarm notifications and sound types using interrupt or polling methods, the problem of long-term radar alarm sound startup in the Android system is solved, and rapid response is achieved The smooth transition between the handover of resource control rights improves product reliability.
Patent Information
- Application Number
- CN202310491380.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-04
- Publication Date
- 2024-11-12
AI Technical Summary
The radar alarm sound in the existing Android system has a long boot time, which affects the user experience. The existing fast playback solution has problems such as high hardware cost, high code complexity and unstable resource control handover.
At least two communication interfaces are configured on the microcontroller unit and the application processor, radar alarm notifications and sound type information are transmitted using interrupt or polling methods, and audio generator is initialized to play radar alarm tone before the Android system is started.
It realizes rapid response of radar alarm sounds, reduces code complexity, improves product reliability, and solves the problem of unstable resource control handover.
Smart Images

Figure CN118944995A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of Android systems, and in particular to a method and a storage medium for quickly playing radar alarm sounds based on an Android system. Background Art
[0002] At present, the automotive industry is evolving from mechanization to electrification, networking, intelligence, and sharing, and from the traditional industrial era to the digital era. As one of the important components of future smart cars, the in-vehicle central control multimedia screen has increasingly rich functional requirements. Currently, most of the screens on the market are based on the Android operating system. The Android system has a rich application ecosystem, but this large and complex system leads to a long boot time. During the boot process, you need to wait for a long time before you can use the radar alarm function. This is very inconvenient for users and the experience is poor.
[0003] Currently, there are several solutions on the market that can achieve fast playback of radar alarm sounds, that is, the alarm sound can be played in about 3 seconds.
[0004] The first solution, such as the patent document with publication number CN113071511A, uses the AP core in the multi-core heterogeneous processing chip to communicate with the internal MCU core through the bus, and the MCU inside the Soc is used to control the DSP chip. When the Android system is started, the control is handed over to the AP core running Android. In this multi-core heterogeneous processing chip solution, in terms of software, the control rights between the MCU and the Android system will be uncontrollable for a period of time, which is defective for the realization of the entire function; in terms of hardware, the current cost is higher than the hardware solution of a single chip plus an external MCU.
[0005] The second solution is to implement all functions on the MCU. Due to the diversity of audio scenarios for the central control screen, the existing audio architecture and strategy of the Android system can meet user needs with high reliability and efficiency; it can also be compatible with APPs in the third-party market. However, the audio management strategy implemented on the Android system is relatively complex. If it is implemented by the MCU itself, it is a repetitive process with low efficiency, low code reliability and high workload.
[0006] The third solution is to implement the sound function on the Android AP core. When the Linux kernel starts the first process, it usually takes 6-7 seconds; open the serial port to obtain the radar information sent by the MCU; and play the sound. When the Android service is started, since some Android functions need to obtain the body CAN data forwarded by the MCU through the serial port, the serial port service opened by the Linux process needs to be closed at this time. Since the serial port process opened by Linux cannot notify the upper-level APP through the Android HIDL service, it belongs to a different process, and HIDL is an Android-specific communication mechanism with the APP process, and the startup time is relatively late, there is a problem of different processes opening the same serial port that needs to be solved. This part of the work has software security and stability issues. Summary of the invention
[0007] The technical problem to be solved by the present invention is to provide a method and storage medium for quickly playing radar alarm sounds based on an Android system, which can achieve a quick response to radar alarm sounds.
[0008] In order to solve the above technical problems, the technical solution adopted by the present invention is: a method for quickly playing radar alarm sound based on Android system, comprising:
[0009] At least two communication interfaces are configured on the microcontroller unit and the application processor respectively, and the communication interface on the microcontroller unit is connected to the communication interface on the application processor in a one-to-one correspondence, and the at least two communication interfaces include at least one newly added communication interface;
[0010] When the application processor starts the Android system, the audio generator is initialized;
[0011] The application processor receives the radar alarm notification and the sound type of the radar alarm sound sent by the micro control unit through the newly added communication interface, and controls the audio generator to play the radar alarm sound according to the sound type of the radar alarm sound.
[0012] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the method described above is implemented.
[0013] The beneficial effect of the present invention is that by adding at least one communication interface on the MCU and MPU for communication before the Android system is started, radar alarm notification and sound type information are transmitted by interruption or polling, thereby realizing the function of quickly responding to radar alarm sound when the Android system has not yet been started. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 This is a flow chart of a method for quickly playing radar alarm sound based on an Android system of the present invention;
[0015] Figure 2 This is a flow chart of a method according to Embodiment 1 of the present invention;
[0016] Figure 3 This is a circuit diagram of Embodiment 1 of the present invention;
[0017] Figure 4 This is a circuit diagram of Embodiment 2 of the present invention. DETAILED DESCRIPTION
[0018] In order to explain the technical content, achieved objectives and effects of the present invention in detail, the following is a detailed description in conjunction with the implementation methods and the accompanying drawings.
[0019] See also Figure 1 , a radar alarm sound fast playback method based on Android system, comprising:
[0020] At least two communication interfaces are configured on the microcontroller unit and the application processor respectively, and the communication interface on the microcontroller unit is connected to the communication interface on the application processor in a one-to-one correspondence, and the at least two communication interfaces include at least one newly added communication interface;
[0021] When the application processor starts the Android system, the audio generator is initialized;
[0022] The application processor receives the radar alarm notification and the sound type of the radar alarm sound sent by the micro control unit through the newly added communication interface, and controls the audio generator to play the radar alarm sound according to the sound type of the radar alarm sound.
[0023] From the above description, it can be seen that the beneficial effect of the present invention is that a rapid response to the radar alarm sound can be achieved.
[0024] Further, the at least one newly added communication interface includes at least one signal transmission interface;
[0025] The application processor receives the radar alarm notification and the sound type of the radar alarm sound sent by the micro control unit through the newly added communication interface, and controls the audio generator to play the radar alarm sound according to the sound type of the radar alarm sound, specifically:
[0026] The micro control unit receives the CAN data and determines the sound type of the radar alarm notification and the radar alarm sound according to the CAN data;
[0027] The micro control unit controls the level state of the signal transmission interface according to the sound type of the radar alarm sound;
[0028] If the application processor detects that the level state of the signal transmission interface changes, acquiring the level state of the signal transmission interface;
[0029] The application processor determines the sound type of the radar alarm sound according to the level state of the signal transmission interface, and controls the audio generator to play the radar alarm sound according to the sound type of the radar alarm sound.
[0030] Further, if the application processor detects that the level state of the signal transmission interface changes, the level state of the signal transmission interface is obtained, specifically:
[0031] If the application processor detects through hardware that the level state of the signal transmission interface changes, it triggers the reading of the level state of the signal transmission interface.
[0032] Further, if the application processor detects that the level state of the signal transmission interface changes, the level state of the signal transmission interface is obtained, specifically:
[0033] The application processor periodically reads the level state of the signal transmission interface to determine whether the level state has changed, and if so, reads the changed level state.
[0034] From the above description, it can be seen that the transmission of radar alarm notification and sound type information is realized by hardware interruption or polling, so that the function of quickly responding to radar alarm sound can be realized when the Android system has not yet been started.
[0035] Furthermore, the newly added communication interface includes a notification interface and a data transmission interface;
[0036] The application processor receives the radar alarm notification and the sound type of the radar alarm sound sent by the micro control unit through the newly added communication interface, and controls the audio generator to play the radar alarm sound according to the sound type of the radar alarm sound, specifically:
[0037] The micro control unit receives the CAN data and determines the sound type of the radar alarm notification and the radar alarm sound according to the CAN data;
[0038] The micro control unit sends the sound type of the radar alarm sound to the application processor through the data transmission interface, and controls the level state of the notification interface at the same time;
[0039] If the application processor detects that the level state of the notification interface changes, the sound type of the radar alarm sound is obtained through the data transmission interface, and according to the sound type of the radar alarm sound, the audio generator is controlled to play the radar alarm sound.
[0040] From the above description, it can be seen that by adding a hard-wired communication interface, data diversion is achieved by using hardware interrupts and hard-wired communication, so as to achieve a rapid response to the radar alarm sound.
[0041] Furthermore, the newly added communication interface includes a data transmission interface;
[0042] The application processor receives the radar alarm notification and the sound type of the radar alarm sound sent by the micro control unit through the newly added communication interface, and controls the audio generator to play the radar alarm sound according to the sound type of the radar alarm sound, specifically:
[0043] The micro control unit receives the CAN data and determines the sound type of the radar alarm notification and the radar alarm sound according to the CAN data;
[0044] The microcontroller unit sends the sound type of the radar warning sound to the application processor through the data transmission interface;
[0045] The application processor periodically accesses the data transmission interface to obtain the sound type of the radar alarm sound, and controls the audio generator to play the radar alarm sound according to the sound type of the radar alarm sound.
[0046] From the above description, it can be seen that through the newly added data transmission interface, the MCU directly transmits the notification and sound type of the radar alarm sound through the data transmission interface, and the MPU obtains data through polling to achieve a rapid response to the radar alarm sound.
[0047] Furthermore, when the application processor starts the Android system, after initializing the audio generator, it further includes:
[0048] Determine whether the Android system has been started;
[0049] If not, executing the step of receiving the radar alarm notification and the sound type of the radar alarm sound sent by the micro control unit through the newly added communication interface, and controlling the audio generator to play the radar alarm sound according to the sound type of the radar alarm sound;
[0050] If yes, determine whether to exit and then enter the radar function application;
[0051] If yes, the application processor obtains CAN data from the microcontroller unit through the communication interface, and determines the sound type of the radar alarm notification and the radar alarm sound based on the CAN data;
[0052] The application processor plays the radar alarm sound through the Android alarm application according to the sound type of the radar alarm sound.
[0053] From the above description, it can be seen that a smooth transition control right handover can be achieved, solving the problem of resource control right handover when LINUX starts the Android system.
[0054] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the method described above is implemented.
[0055] Embodiment 1
[0056] Please refer to Figure 2-3 , Embodiment 1 of the present invention is: a method for quickly playing radar alarm sound based on Android system, which can be applied to vehicle-mounted terminals, can be used in multi-core heterogeneous SoC (system-on-chip), and can also be used in single-chip solutions.
[0057] like Figure 2 As shown, the following steps are included:
[0058] S1: configure at least two interrupt communication interfaces on the microcontroller unit and the application processor respectively, that is, configure at least two communication interfaces on the AP core (application processor) of the MCU (microcontroller unit) and the MPU (microprocessor), and the communication interface on the MCU is connected to the communication interface on the MPU in a one-to-one correspondence, wherein the at least two communication interfaces include at least one newly added communication interface, that is, at least one newly added communication interface is added on the basis of an existing communication interface.
[0059] In an optional embodiment, the newly added communication interface includes at least one signal transmission interface, and the number of the signal transmission interfaces is determined according to the number of sound types of the radar alarm sound (in this embodiment, radar alarm sounds of different sound types are radar alarm sounds of different interval frequencies). In this embodiment, the example of three sound types of radar alarm sounds is used for illustration. Based on the current software data, the minimum modification is to use three signal transmission interfaces.
[0060] Therefore, in this embodiment, three signal transmission interfaces (GPIO) are newly configured on the MCU and the application processor, and the three signal transmission interfaces GPIO1, GPIO2 and GPIO3 are configured as edge interrupts, which are low level when idle. In addition, the association between the interval frequency of the radar alarm sound and the level state of the three signal transmission interfaces is pre-set, that is, different interval frequencies of radar alarm sounds correspond to different level states, for example, for the alarm radar sound with an interval of 2Hz, GPIO1 is pulled high; for the alarm radar sound with an interval of 4Hz, GPIO2 is pulled high and GPIO1 is pulled low.
[0061] Specifically, the circuit diagram of this embodiment is as follows: Figure 3As shown, U1 is an MCU chip, which receives CAN data through the CAN bus and is configured with GPIO and UART interfaces, and GPIO is configured in output mode; U2 is a level matching network, and in actual application, a level conversion IC or a voltage divider resistor network can be selected to make the levels of U1 and U3 match; U3 is an MPU chip used to run the Android system, which is configured with GPIO and UART interfaces, and GPIO is configured in input mode and edge interrupt trigger mode.
[0062] Furthermore, in this embodiment, the application processor may also establish a work queue for interrupt processing, which is used to process and determine the level states of the three signal transmission interfaces.
[0063] S2: When the application processor starts the Android system, it initializes the audio generator.
[0064] Specifically, when the AP core of the MPU starts the Android system, the LINUX kernel first installs the DSP (Digital Signal Processing) driver firmware, and then writes different command parameters through the DSP internal Tone Generator module to generate a radar alarm sound with a specific interval frequency.
[0065] Here, the LINUX kernel can obtain the GPIO interrupt data, so that the system can start up quickly and respond to functional requirements quickly.
[0066] The DSP provides two (tone / chime) alarm sound generators. For the Host application software, they are two audio input ports, which can be connected to any input node through the HIFI_CMD0:XBAR_CONNECT_NODE command; the Host software can also connect it to the output port through the HIFI_CMD0:XBAR_CONNECT_PORT command. After the audio link is established, the Host software can generate an alarm sound output with a specific interval frequency through the HIFI_CMD0:TONEGEN_REQUEST(0x38) command.
[0067] Furthermore, audio files can also be played through external flash to meet richer sound needs.
[0068] S3: Determine whether the Android system has been started. If so, execute step S5; if not, execute step S4.
[0069] S4: The application processor receives the radar alarm notification and the sound type of the radar alarm sound sent by the micro control unit through the signal transmission interface, and controls the audio generator to play the radar alarm sound according to the sound type of the radar alarm sound.
[0070] The radar alarm notification and the sound type of its alarm sound are sent to the MCU via CAN messages. The MCU will make a preliminary judgment and output a high level to the specific signal transmission interface GPIO according to the identified sound type. Therefore, in this embodiment, the MCU receives CAN data and determines whether there is a radar alarm notification and its sound type by analyzing the CAN data; when there is a radar alarm, the MCU notifies the application processor through an interrupt, that is, according to the sound type, the level status of the three signal transmission interfaces is controlled; after the application processor detects that the level status of the signal transmission interface has changed through hardware, it starts the interrupt processing work queue, reads the level status of the three signal transmission interfaces, determines the sound type of the radar alarm sound, and then realizes the fast playback of radar alarm sounds of different sound types by calling the command parameters of the DSP.
[0071] In another optional embodiment, the signal transmission interface GPIO of the MPU is not configured with an edge interrupt trigger mode. At this time, the application processor obtains the changed level state by polling, that is, the application processor periodically reads the level state of the signal transmission interface and determines whether it changes. If it changes, it reads the changed level state.
[0072] S5: Determine whether to exit and then enter the radar function application. If so, execute step S6. If not, continue to process the radar sound at the bottom layer, that is, execute step S4.
[0073] S6: The application processor obtains CAN data from the microcontroller unit through the communication interface, determines the sound type of the radar alarm notification and the radar alarm sound according to the CAN data, and plays the radar alarm sound through the Android alarm application.
[0074] That is, the AP core of the MPU obtains CAN data from the MCU through a communication interface (which can be the original communication interface or a newly added communication interface with data transmission function). When there is a radar alarm, the radar alarm sound of the corresponding sound type is played through the Android API.
[0075] There is no conflict in the use of the same communication resources between this step and the rapid playing of the radar alarm sound in step S4.
[0076] This embodiment can realize the function of quickly responding to radar alarm sound through a single chip when the Android system has not yet been started, and there is no handover process of audio control rights of heterogeneous multi-cores, which is uniformly controlled by the Android system. The problem of resource control rights handover when LINUX starts the Android system is solved, and smooth transition control rights handover is realized. The code complexity is greatly reduced, and the reliability of the product is improved.
[0077] Embodiment 2
[0078] Please refer to Figure 4 This embodiment is another implementation method of step S4 of the first embodiment, and the similarities are not repeated here. The difference is that, in this embodiment, the newly added communication interface includes a notification interface and a data transmission interface, wherein the notification interface can be GPIO, configured as an interrupt mode, and the data transmission interface can be GPIO, or SPI (Serial Peripheral Interface), I2C, UART, etc.
[0079] Specifically, the circuit diagram of this embodiment can be as follows Figure 4 As shown, U1 is an MCU chip, which receives CAN data through the CAN bus and is configured with an SPI interface, GPIO and UART interface. The SPI interface is configured as a slave mode and the GPIO is configured as an output mode; U2 is a level matching network. In actual application, a level conversion IC or a voltage divider resistor network can be selected to make the levels of U1 and U3 match; U3 is an MPU chip used to run the Android system. It is configured with an SPI interface, GPIO and UART interface. The SPI interface is configured as a master mode, and the GPIO is configured as an input mode and an edge interrupt trigger mode.
[0080] In this embodiment, step S4 is specifically as follows: the MCU receives CAN data, and determines the sound type of the radar alarm notification and the radar alarm sound based on the CAN data; when there is a radar alarm, the MCU sends the sound type of the radar alarm sound to the application processor through the data transmission interface, and at the same time controls the level state of the notification interface to change the level state of the notification interface; when the application processor detects that the level state of the notification interface has changed, it obtains the sound type of the radar alarm sound through the data transmission interface, and controls the audio generator to play the radar alarm sound of the corresponding sound type according to the sound type of the radar alarm sound.
[0081] In another optional embodiment, the newly added communication interface only includes a data transmission interface (the number can be one), and the MPU obtains data by polling, that is, the MCU sends the sound type of the radar alarm sound to the application processor through the data transmission interface, and the application processor periodically accesses the data transmission interface, and when the sound type of the radar alarm sound is read, the audio generator is controlled to play the radar alarm sound of the corresponding sound type.
[0082] In the prior art, the MCU, as a module, communicates with the MPU through a hardware interface, which is a basic design. What is more difficult to consider in the design is that when the MCU and MPU communicate, when the hardware design of the priority and data volume of all specific data are met, and there are no problems based on years of development experience in previous hardware products, a new communication channel is added to handle the function of fast communication of the Android system. The reason for doing this is not because of insufficient priority and data volume, or missing hardware design, but due to the characteristics of the complex system of the Android system, in order to solve the problem of software and hardware integration caused by the initialization, scheduling and coordination of rich hardware resources in the complex system. Traditional car manufacturers' designs are based on hardware thinking. When designing communications, most of them consider this issue from the perspective of priority and data volume. Therefore, the solutions in the industry converge to use a set of hard-wired interface communications.
[0083] After completing all traditional hardware considerations and designs, this embodiment adds a communication interface (whether GPIO or SPI) for communication between MCU and MPU, which is used for early initialization during the Android system startup phase, and this communication interface can conveniently and directly obtain data in the kernel (from a software perspective, it is difficult to obtain data on the UART kernel). In actual application, according to needs, some data may need to be sent to this newly added communication interface at the same time, and also needs to be sent to the existing communication interface.
[0084] When the amount of data to be acquired is relatively large, the MCU can pass the data to the MPU through the communication interface (SPI), and the GPIO interrupt is used when priority distinction is required in the data.
[0085] After the Android system is fully started, the application software can continue to obtain data through the original communication interface and the newly added communication interface.
[0086] This embodiment adds a hard-wired communication interface, uses hardware interrupts and hard-wired communication to achieve data diversion, notifies the MPU of radar alarm sound information through independent data communication, quickly starts the audio function through hardware interrupts or polling, plays the sound in the kernel, and realizes the function of fast radar alarm at low cost without any uncontrolled time in the process.
[0087] Embodiment 3
[0088] The present embodiment is a computer-readable storage medium corresponding to the above-mentioned embodiment, on which a computer program is stored. When the program is executed by the processor, the various steps of the method for quickly playing radar alarm sounds based on the Android system in the above-mentioned embodiment are implemented, and the same technical effect can be achieved, which will not be repeated here.
[0089] In summary, the present invention provides a method and storage medium for quickly playing radar alarm sounds based on the Android system. By adding at least one communication interface on the MCU and the MPU, radar alarm notifications and sound type transmission are performed by interruption or polling, so that the function of quickly responding to radar alarm sounds can be achieved when the Android system has not yet been started. The problem of resource control handover when LINUX starts the Android system is solved, and a smooth transition of control handover is achieved. At the same time, the code complexity is greatly reduced and the reliability of the product is improved.
[0090] Compared with the prior art, the present invention can solve the cost problem of the first solution, and at the same time solve the workload, fluency and reliability problems of the second and third solutions.
[0091] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent transformations made using the contents of the present invention's specification and drawings, or directly or indirectly applied in related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for quickly playing radar alarm sound based on Android system, characterized in that: include: At least two communication interfaces are configured on the microcontroller unit and the application processor respectively, and the communication interface on the microcontroller unit is connected to the communication interface on the application processor in a one-to-one correspondence, and the at least two communication interfaces include at least one newly added communication interface; When the application processor starts the Android system, the audio generator is initialized; The application processor receives the radar alarm notification and the sound type of the radar alarm sound sent by the micro control unit through the newly added communication interface, and controls the audio generator to play the radar alarm sound according to the sound type of the radar alarm sound.
2. The method for quickly playing radar alarm sound based on Android system according to claim 1, characterized in that: The at least one newly added communication interface includes at least one signal transmission interface; The application processor receives the radar alarm notification and the sound type of the radar alarm sound sent by the micro control unit through the newly added communication interface, and controls the audio generator to play the radar alarm sound according to the sound type of the radar alarm sound, specifically: The micro control unit receives the CAN data and determines the sound type of the radar alarm notification and the radar alarm sound according to the CAN data; The micro control unit controls the level state of the signal transmission interface according to the sound type of the radar alarm sound; If the application processor detects that the level state of the signal transmission interface changes, acquiring the level state of the signal transmission interface; The application processor determines the sound type of the radar alarm sound according to the level state of the signal transmission interface, and controls the audio generator to play the radar alarm sound according to the sound type of the radar alarm sound.
3. The method for quickly playing radar alarm sound based on Android system according to claim 2, characterized in that: If the application processor detects that the level state of the signal transmission interface changes, obtaining the level state of the signal transmission interface is specifically: If the application processor detects through hardware that the level state of the signal transmission interface changes, it triggers the reading of the level state of the signal transmission interface.
4. The method for quickly playing radar alarm sound based on Android system according to claim 2, characterized in that: If the application processor detects that the level state of the signal transmission interface changes, obtaining the level state of the signal transmission interface is specifically: The application processor periodically reads the level state of the signal transmission interface to determine whether the level state has changed, and if so, reads the changed level state.
5. The method for quickly playing radar alarm sound based on Android system according to claim 1, characterized in that: The newly added communication interface includes a notification interface and a data transmission interface; The application processor receives the radar alarm notification and the sound type of the radar alarm sound sent by the micro control unit through the newly added communication interface, and controls the audio generator to play the radar alarm sound according to the sound type of the radar alarm sound, specifically: The micro control unit receives the CAN data and determines the sound type of the radar alarm notification and the radar alarm sound according to the CAN data; The micro control unit sends the sound type of the radar alarm sound to the application processor through the data transmission interface, and controls the level state of the notification interface at the same time; If the application processor detects that the level state of the notification interface changes, the sound type of the radar alarm sound is obtained through the data transmission interface, and according to the sound type of the radar alarm sound, the audio generator is controlled to play the radar alarm sound.
6. The method for quickly playing radar alarm sound based on Android system according to claim 1, characterized in that: The newly added communication interface includes a data transmission interface; The application processor receives the radar alarm notification and the sound type of the radar alarm sound sent by the micro control unit through the newly added communication interface, and controls the audio generator to play the radar alarm sound according to the sound type of the radar alarm sound, specifically: The micro control unit receives the CAN data and determines the sound type of the radar alarm notification and the radar alarm sound according to the CAN data; The microcontroller unit sends the sound type of the radar warning sound to the application processor through the data transmission interface; The application processor periodically accesses the data transmission interface to obtain the sound type of the radar alarm sound, and controls the audio generator to play the radar alarm sound according to the sound type of the radar alarm sound.
7. The method for quickly playing radar alarm sound based on Android system according to any one of claims 1 to 6, characterized in that: When the application processor starts the Android system, after initializing the audio generator, the process further includes: Determine whether the Android system has been started; If not, executing the step of receiving the radar alarm notification and the sound type of the radar alarm sound sent by the micro control unit through the newly added communication interface, and controlling the audio generator to play the radar alarm sound according to the sound type of the radar alarm sound; If yes, determine whether to exit and then enter the radar function application; If yes, the application processor obtains CAN data from the microcontroller unit through the communication interface, and determines the sound type of the radar alarm notification and the radar alarm sound based on the CAN data; The application processor plays the radar alarm sound through the Android alarm application according to the sound type of the radar alarm sound.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
