Debugging method of in-vehicle infotainment system, in-vehicle infotainment system, device and readable storage medium
By introducing a debugging module into the vehicle infotainment system to simulate the vehicle control function controller, the problem of low debugging efficiency of the vehicle infotainment system is solved, automated debugging is achieved, and overall efficiency is improved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- GREAT WALL MOTOR CO LTD
- Filing Date
- 2024-09-27
- Publication Date
- 2026-04-17
AI Technical Summary
In the existing technology, the debugging efficiency of vehicle infotainment systems is low, requiring testers to constantly and manually switch the response signals of hardware devices, resulting in low debugging efficiency.
By introducing a debugging module into the vehicle infotainment system, the controller corresponding to the vehicle control function is simulated, and the vehicle control signal is acquired and responded to, thereby realizing the automated debugging of the vehicle control function without the need for hardware device configuration.
It improves the efficiency of vehicle infotainment system debugging, reduces the steps of manually configuring hardware response signals, and enhances the automation and efficiency of the debugging process.
Smart Images

Figure CN119225342B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle technology, and more specifically, to a debugging method, vehicle system, device, and readable storage medium for an in-vehicle infotainment system. Background Technology
[0002] With the continuous development of technology, in order to meet the needs of different users, a variety of functions (also known as "vehicle control functions") will be configured on vehicles. Moreover, in order to ensure the reliability of the configured functions during use, the vehicle will usually be put into the market only after the various functions have been debugged.
[0003] Currently, debugging of vehicle infotainment systems mainly relies on hardware equipment. This means that before debugging each function, the corresponding response signal for that function's vehicle control signal must be configured on the hardware. However, since different functions involve different response signals, testers need to manually switch the hardware response signals repeatedly during the debugging process, resulting in low debugging efficiency. Summary of the Invention
[0004] This application provides a debugging method for an in-vehicle infotainment system, an in-vehicle infotainment system, an apparatus, and a readable storage medium. The method can improve the debugging efficiency of the in-vehicle infotainment system.
[0005] Firstly, a debugging method for a vehicle infotainment system is provided. The system includes an interaction module and a debugging module. The method includes: when the system enters debugging mode, activating the debugging module, which simulates a controller corresponding to at least one vehicle control function in the system; the debugging module acquiring a vehicle control signal sent by the interaction module for any one of the at least one vehicle control function, wherein the signal is triggered by the interaction module in response to an operation on a target control on the system's interface, and the target control corresponds to a vehicle control function; the debugging module responding to the signal sends a response signal to the interaction module, the response signal carrying a first state value corresponding to the vehicle control function; and the interaction module, upon receiving the response signal, updating the state value of the vehicle control function on the interface based on the first state value.
[0006] In the above technical solution, this application embodiment provides a debugging method for a vehicle infotainment system: the vehicle infotainment system includes an interaction module and a debugging module. Since the debugging module can simulate the controller corresponding to at least one vehicle control function in the vehicle infotainment system, when the vehicle infotainment system enters debugging mode, the vehicle control function in the vehicle infotainment system can be debugged through the debugging module. Specifically, when the vehicle infotainment system enters debugging mode, the debugging module is activated, thereby enabling the debugging module to obtain the vehicle control signal sent by the interaction module for any one of the at least one vehicle control function. The vehicle control signal is triggered by the interaction module in response to the operation of a target control on the vehicle infotainment system's interface, and the target control corresponds to the vehicle control function. For example, the debugging module can acquire vehicle control signals for the air conditioning function sent by the interaction module. These signals are triggered by the interaction module's response to operations on target controls (e.g., air conditioning switch, temperature, and fan controls) on the vehicle interface corresponding to the air conditioning function. Upon acquiring the vehicle control signal, the debugging module can respond by sending a corresponding response signal to the interaction module. Since this response signal carries a first state value corresponding to the vehicle control function, the interaction module, upon receiving the response signal, can update the state value of the vehicle control function on the vehicle interface based on the first state value. Therefore, when the vehicle system enters debugging mode, the debugging module can not only acquire vehicle control signals for any of the multiple vehicle control functions but also respond to those signals by sending a corresponding response signal to the interaction module. This method allows for debugging of the vehicle system independently of hardware devices, avoiding the need for testers to manually configure hardware response signals repeatedly, thus improving the efficiency of vehicle system debugging.
[0007] In combination with the first aspect and the above implementation methods, in some possible implementation methods, before the debugging module obtains the vehicle control signal sent by the interaction module for any of the at least one vehicle control function, the method further includes: when the debugging module is activated, the debugging module sends a feedback signal of the vehicle control function to the interaction module, the feedback signal carrying a second state value corresponding to the vehicle control function, the second state value being the same as or different from the first state value; when the interaction module receives the feedback signal of the vehicle control function, it displays the state value of the vehicle control function on the vehicle interface according to the second state value.
[0008] In the above technical solution, before the vehicle system enters the debugging mode and before the debugging module obtains the vehicle control signal sent by the interaction module for any of the at least one vehicle control function, the debugging module can send a feedback signal of the vehicle control function to the interaction module. Since the feedback signal carries the second state value corresponding to the vehicle control function, the interaction module can display the state value of the vehicle control function (also known as the default state value of the vehicle control function) on the vehicle interface according to the second state value when it receives the feedback signal of the vehicle control function. This ensures that the vehicle interface of the vehicle system can normally display the state value of the vehicle control function when the vehicle system enters the debugging mode, so that the tester can observe the state value of the vehicle control function and perform debugging-related operations on the target control of the vehicle control function according to the state value.
[0009] In combination with the first aspect and the above implementation methods, in some possible implementation methods, the debugging module sends a feedback signal of the vehicle control function to the interaction module, including: the debugging module obtaining the function ID of the vehicle control function sent by the interaction module; the debugging module determining the feedback signal corresponding to the vehicle control function based on the function ID of the vehicle control function, and sending the feedback signal of the vehicle control function to the interaction module.
[0010] In combination with the first aspect and the above implementation methods, in some possible implementation methods, the debugging module also includes an interface for receiving ADB commands, which are used to configure the second state value corresponding to the vehicle control function carried by the feedback signal to the debugging module.
[0011] In the above technical solution, the debugging module may also include an interface for receiving ADB commands. Since the ADB commands can be used to configure the second state value corresponding to the vehicle control function carried by the feedback signal to the debugging module, the tester can flexibly configure the second state value corresponding to the vehicle control function, thereby realizing the dynamic configuration of the second state value corresponding to the vehicle control function, that is, realizing the dynamic configuration of the default state value corresponding to the vehicle control function.
[0012] Combining the first aspect and the above implementation methods, in some possible implementation methods, the debugging module responds to the vehicle control signal and sends a response signal corresponding to the vehicle control signal to the interaction module, including: when the debugging module receives the vehicle control signal, determining the response signal corresponding to the vehicle control signal according to a preset signal mapping table, and sending the response signal corresponding to the vehicle control signal to the interaction module.
[0013] In combination with the first aspect and the above implementation methods, in some possible implementation methods, updating the state value of the vehicle control function on the vehicle interface according to the first state value includes: determining whether the first state value is the same as the second state value, wherein the second state value is the state value carried in the feedback signal of the vehicle control function sent by the debugging module to the interaction module before the interaction module receives the response signal corresponding to the vehicle control signal; if the first state value is different from the second state value, updating the state value of the vehicle control function according to the first state value; and if the first state value is the same as the second state value, keeping the state value of the vehicle control function unchanged.
[0014] In combination with the first aspect and the above implementation methods, in some possible implementation methods, the method further includes: displaying a prompt message on the vehicle interface when the vehicle system enters the debugging mode, the prompt message indicating that the vehicle system has entered the debugging mode.
[0015] In the above technical solution, when the vehicle infotainment system enters the debugging mode, a prompt message can be displayed on the vehicle infotainment interface. Since this prompt message indicates that the vehicle infotainment system has entered the debugging mode, it allows testers to determine in a timely and accurate manner whether the vehicle infotainment system has entered the debugging mode.
[0016] Secondly, a vehicle infotainment system is provided, which includes an interaction module and a debugging module;
[0017] The interaction module is used to send corresponding vehicle control signals to the controllers corresponding to multiple vehicle control functions in the vehicle system. The vehicle control signals are triggered by the interaction module in response to the operation of the target control on the vehicle interface of the vehicle system. The target control corresponds to the vehicle control function.
[0018] The debugging module is used to simulate the controller corresponding to at least one vehicle control function in the vehicle system when the vehicle system enters the debugging mode.
[0019] Thirdly, a debugging device for a vehicle infotainment system is provided. The vehicle infotainment system includes an interaction module and a debugging module. The device includes:
[0020] The activation unit is used to activate the debugging module when the vehicle system enters the debugging mode. The debugging module is used to simulate the controller corresponding to at least one vehicle control function in the vehicle system.
[0021] The acquisition unit is used for the debugging module to acquire the vehicle control signal sent by the interaction module for any one of the at least one vehicle control functions. The vehicle control signal is triggered by the interaction module in response to the operation of the target control on the vehicle interface of the vehicle system. The target control corresponds to the vehicle control function.
[0022] The sending unit is used to send a response signal corresponding to the vehicle control signal to the interaction module in response to the vehicle control signal. The response signal carries the first state value corresponding to the vehicle control function.
[0023] The update unit is used by the interaction module to update the status value of the vehicle control function on the vehicle interface according to the first status value when it receives the response signal corresponding to the vehicle control signal.
[0024] Fourthly, a computer program product is provided, comprising: computer program code, which, when run on a computer, causes the computer to execute the vehicle control method in the first aspect or any possible implementation thereof.
[0025] Fifthly, a computer-readable storage medium is provided that stores computer program code, which, when executed on a computer, causes the computer to perform the vehicle control method of the first aspect or any possible implementation thereof. Attached Figure Description
[0026] Figure 1 This is a schematic diagram of vehicle signal transmission in the prior art provided in an embodiment of this application;
[0027] Figure 2 This is a schematic diagram of the structure of a vehicle infotainment system provided in an embodiment of this application;
[0028] Figure 3 This is a schematic flowchart of a debugging method for a vehicle infotainment system provided in an embodiment of this application;
[0029] Figure 4 This is a schematic flowchart of another debugging method for a vehicle infotainment system provided in an embodiment of this application;
[0030] Figure 5 This is a schematic diagram of the vehicle interface of a vehicle system provided in an embodiment of this application;
[0031] Figure 6 This is a schematic diagram illustrating the display of air conditioning function status values on a vehicle infotainment interface, as provided in an embodiment of this application.
[0032] Figure 7 This is a schematic diagram of the structure of a vehicle infotainment system debugging device provided in an embodiment of this application. Detailed Implementation
[0033] The technical solutions in this application will be clearly and thoroughly described below with reference to the accompanying drawings. In the description of the embodiments of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B. "And / or" in the text is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, in the description of the embodiments of this application, "multiple" refers to two or more than two.
[0034] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature.
[0035] Before introducing the solutions of the embodiments of this application, the technical terms that may be involved in the embodiments of this application will be explained first.
[0036] In-vehicle infotainment system (IVI) is an important technology in modern automobiles, used to provide multimedia entertainment, navigation, communication, and other driving-related functions, i.e., vehicle control functions. An IVI typically consists of two main parts: hardware and software. Hardware includes displays, touchscreens, processors, and storage devices; software includes operating systems, applications, and services.
[0037] The function ID of a vehicle control function is a unique identifier used in a vehicle infotainment system to identify a specific vehicle control function. Through the function ID, it can be ensured that various vehicle control functions of the vehicle infotainment system are effectively managed and maintained.
[0038] ADB (Android Debug Bridge) commands are command-line tools used to communicate with Android devices. They allow testers to interact with Android devices on their computers and perform various debugging operations.
[0039] Adapter service: This service can convert data from one format to another so that different software modules can understand and process it. For example, it can convert raw sensor data into a format that the application can use.
[0040] Car service: This usually refers to functions and services related to car maintenance and repair.
[0041] The Hardware Abstraction Layer (HAL) is an important software layer that sits between the operating system and the underlying hardware. It hides the specific implementation details of the hardware and provides a unified interface for upper-layer software. HAL has a wide range of applications in vehicles, covering everything from body control systems to infotainment systems.
[0042] Microcontroller Unit (MCU): A crucial electronic component used to control various systems and functions in a vehicle. MCUs are typically dedicated embedded systems responsible for performing specific tasks, such as controlling the engine, body systems, and safety systems.
[0043] The Electronic Control Unit (ECU) is an important component of a vehicle's electronic system, used to monitor and control various systems and functions of the vehicle.
[0044] Figure 1 This is a schematic diagram of vehicle signal transmission in the prior art provided in an embodiment of this application, such as... Figure 1 As shown, the vehicle 100 includes an in-vehicle infotainment system 101 and multiple ECUs 102. The in-vehicle infotainment system 101 and the multiple ECUs 102 communicate with each other via a Controller Area Network (CAN) bus.
[0045] It should be noted that the vehicle system includes multiple vehicle control functions, such as air conditioning, multimedia playback, navigation, and telephone functions. Each vehicle control function has its own corresponding ECU102, which is used to monitor and control the corresponding vehicle control function.
[0046] Depend on Figure 1 It is known that the vehicle infotainment system 101 includes an interaction module 1011, a first middleware module 1012, a second middleware module 1013, a third middleware module 1014, and an MCU 1015.
[0047] The interaction module 1011 is used to respond to operations on target controls on the vehicle interface of the vehicle system 101, and these target controls correspond to vehicle control functions. It should be noted that while the interaction module 1011 is responding to operations on the target controls on the vehicle interface of the vehicle system 101, it also triggers the vehicle control signal for the vehicle control function. After triggering the vehicle control signal, the interaction module 1011 sends the vehicle control signal to the first middleware module 1012.
[0048] After receiving the vehicle control signal from the vehicle control function, the first middleware module 1012 will sequentially send the vehicle control signal to the MCU 1015 through the second middleware module 101 and the third middleware module 1014, so that the MCU 1015 can send the received vehicle control signal to the ECU 102.
[0049] After receiving the vehicle control signal sent by the MCU1015, the ECU102 will respond to the vehicle control signal by returning a corresponding response signal to the MCU1015.
[0050] After receiving the response signal returned by ECU102, MCU1015 will send the response signal to interaction module 1011 through third middleware module 1014, second middleware module 1013 and first middleware module 1012 in sequence.
[0051] It should be noted that the first middleware module 1012, the second middleware module 1013, and the third middleware module 1014 will all parse the vehicle control signal according to different pre-set rule protocols (communication protocols), that is, convert the vehicle control signal into a signal type that the next module can recognize according to different prescribed protocols.
[0052] In one possible implementation, the first middleware module 1012 can be an Adapter service module, the second middleware module 1013 can be a Car Service module, and the third middleware module 1014 can be a HAL module. The Adapter service module typically parses the vehicle control signal according to protocols such as LIN, FlexRay, MOST, SPI, or MQTT; the Car Service module typically parses the vehicle control signal according to protocols such as UDS, OBD-II, JSON, or HTTP / HTTPS; and the HAL module typically parses the vehicle control signal according to I... 2 The vehicle control signal can be analyzed using protocols such as C, SPI, GPIO, UART, PWM, ADC, or DAC.
[0053] The interaction module 1011 is also used to update the vehicle control function status value on the vehicle interface of the vehicle system after receiving the response signal sent by the first middleware module 1012, that is, to complete a communication between the vehicle system 101 and the ECU 102 at this time.
[0054] With the continuous development of technology, in order to meet the needs of different users, a variety of functions (also known as "vehicle control functions") will be configured on vehicles. Moreover, in order to ensure the reliability of the configured functions during use, the vehicle will usually be put into the market only after the various functions have been debugged.
[0055] Currently, the main method for debugging the vehicle's infotainment system relies on hardware equipment, that is, the hardware equipment and... Figure 1 The MCU1015 is connected to the system to debug various functions of the vehicle infotainment system. However, before debugging each function, the corresponding response signal of the vehicle control signal for that function needs to be configured on the hardware device. Therefore, in order to complete the debugging of various functions of the vehicle infotainment system, the tester needs to manually configure the response signal of the hardware device repeatedly during the debugging process, resulting in low debugging efficiency.
[0056] To address the aforementioned issues, this application provides a debugging method for a vehicle infotainment system, which can improve the debugging efficiency of the vehicle infotainment system.
[0057] To facilitate understanding, before introducing the methods provided in the embodiments of this application, the vehicle infotainment system provided in the embodiments of this application will be introduced first.
[0058] Figure 2 This is a schematic diagram of the structure of a vehicle infotainment system provided in an embodiment of this application.
[0059] See Figure 2 As shown, the vehicle infotainment system 200 includes an interaction module 201 and a debugging module 202.
[0060] The interaction module 201 is used to send corresponding vehicle control signals to the controllers corresponding to multiple vehicle control functions in the vehicle system 200. The vehicle control signals are triggered by the interaction module 201 in response to the operation of the target control on the vehicle interface of the vehicle system. The target control corresponds to the vehicle control function.
[0061] Debugging module 201 is used to simulate the controller corresponding to at least one vehicle control function in the vehicle infotainment system 200, i.e., the aforementioned Figure 1 At least one ECU102 is included. It should be understood that the interaction module 201 and the debugging module 201 can communicate with each other.
[0062] In this embodiment of the application, since the debugging module 202 can simulate the controller corresponding to at least one vehicle control function in the vehicle system, the vehicle system can be debugged through the debugging module 202 when debugging the vehicle system.
[0063] It should be noted that, in one possible implementation, the debugging module 201 can be set in the above-mentioned... Figure 1 In the first middleware module 1012 of the vehicle infotainment system 100, a debugging module 201 is added to the first middleware module 1012 so that the interaction module 201 is no longer related to the above. Figure 1The second middleware module 1013, the third middleware module 1014 and multiple ECUs 102 interact with each other, but only need to interact with the debugging module 202. This allows the debugging of the vehicle system to be done independently of the hardware devices, so as to avoid the testers having to manually configure the response signals of the hardware devices, thereby improving the debugging efficiency of the vehicle system.
[0064] The following is a structural diagram of the vehicle infotainment system provided in conjunction with the above embodiments ( Figure 2 This application provides a detailed description of the methods provided in its embodiments.
[0065] Figure 3 This is a schematic flowchart of a debugging method for a vehicle infotainment system provided in an embodiment of this application.
[0066] Step 301: When the vehicle infotainment system enters the debugging mode, activate the debugging module. The debugging module is used to simulate the controller corresponding to at least one vehicle control function in the vehicle infotainment system.
[0067] Regarding the methods for entering the debugging mode of the vehicle infotainment system: It can be entered through menu options. For example, testers can click on virtual buttons in the settings menu that display words such as "Developer Options," "Service Mode," or "About This Device" to enter the debugging mode of the vehicle infotainment system; or through a specific combination of physical buttons, such as simultaneously pressing the power button and volume buttons (volume up or volume down) until the debugging interface is entered; or using an OBD-II (On-Board Diagnostics) interface or adapter to enter the debugging mode of the vehicle infotainment system through dedicated software or commands. This application embodiment does not limit this method.
[0068] It should be noted that, in order to ensure that the interaction module of the vehicle system can smoothly communicate with the lower-level debugging module when the vehicle system enters the debugging mode, in this embodiment, the debugging module is activated at the same time as the vehicle system enters the debugging mode, so that the interaction module and the debugging module can smoothly communicate with each other.
[0069] Step 302: The debugging module obtains the vehicle control signal sent by the interaction module for any one of the at least one vehicle control functions. The vehicle control signal is triggered by the interaction module in response to the operation of the target control on the vehicle interface of the vehicle system. The target control corresponds to the vehicle control function.
[0070] As can be seen from the above embodiments, the vehicle system can include multiple vehicle control functions, such as air conditioning functions (including air conditioning switch function, air conditioning temperature function, and air conditioning fan speed function), multimedia playback functions (including multimedia switch function, multimedia volume function, and multimedia screen brightness function), navigation functions (including navigation switch function and navigation volume function), and telephone functions (including telephone switch function, telephone volume function, and telephone recording function). To achieve accurate control of each vehicle control function, in one possible implementation, each vehicle control function is provided with one or more corresponding target controls, and each target control is provided with a corresponding vehicle control signal. For example, when the vehicle control function is the air conditioning function, the target controls corresponding to the air conditioning function include air conditioning switch control, air conditioning temperature control, and air conditioning fan speed control, etc. The vehicle control signal corresponding to the air conditioning switch control is A1, the vehicle control signal corresponding to the air conditioning temperature control is A2, and the vehicle control signal corresponding to the air conditioning fan speed control is A3.
[0071] It should be noted that, in order to further improve the debugging efficiency of the vehicle system, in this embodiment of the application, the target control on the vehicle interface of the vehicle system can be operated by writing a script, so that the interaction module responds to the operation, that is, triggers the vehicle control signal of the vehicle control function.
[0072] Specifically, when the vehicle infotainment system enters debug mode and the interaction module receives an operation on the target control on the vehicle infotainment system's interface, the interaction module will respond to the operation by triggering the vehicle control signal corresponding to the target control's function and sending the vehicle control signal to the lower-level module. It should be noted that a lower-level module typically refers to a software or hardware component at a lower level in a hierarchical system architecture. Lower-level modules have a lower level of abstraction than upper-level modules; that is, lower-level modules focus more on specific implementation details, while upper-level modules focus more on how to utilize those details to implement the corresponding function. In this embodiment, the interaction module in the vehicle infotainment system can be an upper-level module, and the debug module can be a lower-level module. That is, after the interaction module sends the vehicle control signal to the lower-level module, the debug module will receive that vehicle control signal.
[0073] For example, when the vehicle system enters the debugging mode and the interaction module receives an operation on the air conditioning switch control on the vehicle interface, the interaction module will respond to the operation on the air conditioning switch control, that is, trigger the vehicle control signal (A1) of the air conditioning switch control, so that the debugging module can obtain the vehicle control signal (A1) of the air conditioning switch control.
[0074] It should be noted that, in the embodiments of this application, testers can set predefined communication protocols, message queues or handshake mechanisms in the interaction module and debugging module of the vehicle system, so that the debugging module and the interaction module can transmit signals (e.g., vehicle control signals, response signals and feedback signals) through the predefined communication protocols, message queues or handshake mechanisms.
[0075] Step 303: In response to the vehicle control signal, the debugging module sends a response signal corresponding to the vehicle control signal to the interaction module. The response signal carries the first state value corresponding to the vehicle control function.
[0076] The first state value can be understood as the state value corresponding to the vehicle control function after adjustment. It should be noted that the first state value represents different states for different vehicle control functions. For example, when the vehicle control function is the air conditioning switch, a first state value of 0 represents the air conditioning being off, and a first state value of 1 represents the air conditioning being on. When the vehicle control function is the multimedia playback function, a first state value of 0 represents the multimedia being stopped, a first state value of 1 represents the multimedia being played, and a first state value of 2 represents the multimedia being paused.
[0077] It should be noted that when the debugging module receives a vehicle control signal sent by the interaction module, it will parse the signal according to a predefined rule algorithm to determine its content and intent. This vehicle control signal typically includes an identifier (ID) and a set of data. The identifier indicates the purpose and type of the signal, while the data contains the specific control instructions. For example, if the debugging module receives a vehicle control signal from the interaction module for the air conditioning temperature function, this signal includes instructions to adjust the air conditioning temperature and the target temperature value (e.g., 22.0℃).
[0078] In one possible implementation, testers can pre-write response logic in the debugging module according to the purpose, type, and corresponding control command of the vehicle control signal. This allows the debugging module to generate a response signal corresponding to the vehicle control signal based on the pre-numbered response logic when it receives the vehicle control signal, and then send the response signal to the interaction module after generating the response signal.
[0079] Step 304: When the interaction module receives the response signal corresponding to the vehicle control signal, it updates the status value of the vehicle control function on the vehicle interface according to the first status value.
[0080] It should be understood that since the response signal carries the first state value corresponding to the vehicle control function, when the interaction module receives the response signal corresponding to the vehicle control signal, it can update the state value of the vehicle control function on the vehicle interface according to the first state value.
[0081] For example, if the response signal received by the interaction module carries the first state value of the air conditioning temperature, that is, if the interaction module receives the air conditioning temperature as the target temperature (22.0℃), the air conditioning temperature on the vehicle interface can be updated according to the target temperature, that is, the target temperature (22.0℃) can be displayed on the vehicle interface.
[0082] In summary, this application provides a debugging method for a vehicle infotainment system. The vehicle infotainment system includes an interaction module and a debugging module. Since the debugging module can simulate the controller corresponding to at least one vehicle control function in the vehicle infotainment system, the vehicle control function in the vehicle infotainment system can be debugged through the debugging module when the vehicle infotainment system enters the debugging mode. Specifically, when the vehicle infotainment system enters the debugging mode, the debugging module is activated, thereby enabling the debugging module to obtain the vehicle control signal sent by the interaction module for any one of the at least one vehicle control function. The vehicle control signal is triggered by the interaction module in response to the operation of a target control on the vehicle infotainment system's interface, and the target control corresponds to the vehicle control function. For example, the debugging module can acquire vehicle control signals for the air conditioning function sent by the interaction module. These signals are triggered by the interaction module's response to operations on target controls (e.g., air conditioning switch, temperature, and fan speed controls) on the vehicle interface corresponding to the air conditioning function. Upon acquiring the vehicle control signal, the debugging module can respond by sending a corresponding response signal to the interaction module. Since this response signal carries a first state value corresponding to the vehicle control function, the interaction module, upon receiving the response signal, can update the state value of the vehicle control function on the vehicle interface based on the first state value. Therefore, when the vehicle system enters debugging mode, the debugging module can not only acquire vehicle control signals for any of the multiple vehicle control functions but also respond to these signals by sending corresponding response signals to the interaction module. This method allows for debugging of the vehicle system independently of hardware devices, avoiding the need for testers to manually configure hardware response signals repeatedly, thus improving the efficiency of vehicle system debugging.
[0083] It should be noted that steps 301-304 above are a simplified explanation of a vehicle infotainment system debugging method provided in this application embodiment. The following will provide a more detailed explanation of the vehicle infotainment system debugging method provided in this application embodiment, using some examples. See [link to relevant documentation]. Figure 4 The method includes the following steps.
[0084] Step 401: Activate the debugging module when the vehicle system is in debug mode.
[0085] For details on entering debug mode for the vehicle infotainment system, please refer to the above embodiment; it will not be repeated here.
[0086] Optionally, a driver can be configured in the vehicle system so that the debugging module can be activated by the driver when the vehicle system enters debug mode; or the debugging module can be activated by a specific debugging tool, such as the debugging function in an integrated development environment (IDE). This application embodiment does not limit this.
[0087] It should be noted that after the debugging module is activated, the vehicle system will start recording debugging information (such as system runtime logs, application logs, etc.) and establish more network connections to communicate with external command-line tools (such as ADB commands). This allows external command-line tools to remotely access the vehicle system's command-line interface to execute various debugging commands.
[0088] In this embodiment of the application, when the vehicle system enters the debugging mode, that is, when the debugging module is activated, the debugging module can simulate the feedback signal sent by the controller corresponding to any one of the multiple vehicle control functions in the vehicle system, and send the simulated feedback signal of the vehicle control function to the interaction module, so that when the interaction module receives the feedback signal of the vehicle control function, it determines that the vehicle control function can be controlled, and thus displays the target control corresponding to the vehicle control function normally on the vehicle interface, that is, the target control corresponding to the vehicle control function can be operated.
[0089] In one possible implementation, when the vehicle infotainment system enters debug mode, a prompt message can be displayed on the vehicle infotainment interface to indicate that the vehicle infotainment system has entered debug mode, so that testers can promptly and accurately determine whether the vehicle infotainment system has entered debug mode.
[0090] Optionally, the prompt message may be "Your vehicle system has entered debugging mode", or "Attention! Debugging mode has been entered", or "Debugging mode", and this application embodiment does not limit this.
[0091] Optionally, in order to increase the prominence of the prompt information, in one possible implementation, the display color of the prompt information may be red, yellow, or green, etc., and this application embodiment does not limit this.
[0092] For example, such as Figure 5 As shown, Figure 5 This is a schematic diagram of the vehicle interface of a vehicle infotainment system provided in an embodiment of this application. See also: Figure 5When the vehicle infotainment system enters debugging mode, a red prompt message 501 ("Your vehicle infotainment system has entered debugging mode") will be displayed in the upper left corner of the vehicle infotainment interface 500.
[0093] Step 402: When the debugging module is activated, the debugging module sends a feedback signal of the vehicle control function to the interaction module. The feedback signal carries the second state value corresponding to the vehicle control function. The second state value may be the same as or different from the first state value.
[0094] In this context, the second state value corresponding to a vehicle control function can be understood as the default state value of that function. For example, the feedback signal of the air conditioning switch function carries a corresponding second state value of 0, meaning that the default state of the air conditioning switch function is the off state; similarly, the feedback signal of the multimedia playback function carries a corresponding second state value of 0, meaning that the default state of the multimedia playback function is the stopped state.
[0095] It should be noted that when the default state of the air conditioning switch function is off, that is, when the second state value carried by the feedback signal of the air conditioning switch function is 0, if a turn-off operation is performed on the air conditioning switch control on the vehicle interface at this time, the first state value corresponding to the air conditioning switch function carried by the response signal sent by the interaction module will be 0, that is, the second state value is the same as the first state value, both being 0. When the default state of the air conditioning switch function is off, that is, when the second state value carried by the feedback signal of the air conditioning switch function is 0, if a turn-on operation is performed on the air conditioning switch control on the vehicle interface at this time, the first state value corresponding to the air conditioning switch function carried by the response signal sent by the interaction module will be 1, that is, the second state value is different from the first state value.
[0096] The process of the debugging module sending feedback signals for vehicle control functions to the interaction module is explained in detail below in two steps:
[0097] Step 1: The debugging module obtains the function ID of the vehicle control function sent by the interaction module.
[0098] It should be noted that, when the debugging module is activated, in order for the debugging module added to the vehicle system to accurately send feedback signals of various vehicle control functions to the interaction module, in one possible implementation, the debugging module can first obtain the function ID of the vehicle control function sent by the interaction module, so as to determine the feedback signal corresponding to the function ID of the vehicle control function, that is, determine the feedback signal corresponding to the vehicle control function.
[0099] Step 2: The debugging module determines the corresponding feedback signal of the vehicle control function based on the function ID of the vehicle control function, and sends the feedback signal of the vehicle control function to the interaction module.
[0100] To improve the efficiency of the debugging module, in one possible implementation, testers can pre-set the function IDs of various vehicle control functions and the corresponding feedback signals in the debugging module. This allows the debugging module to directly determine the feedback signal corresponding to the function ID of the vehicle control function when it is activated and receives the function ID of the vehicle control function from the interaction module, based on the pre-set correspondence table. After determining the feedback signal, the module sends it to the interaction module. This ensures that when the vehicle system enters debugging mode, the interaction module can determine that the vehicle control function is allowed to be controlled, thus correctly displaying the target control corresponding to the vehicle control function on the vehicle interface, indicating that the target control corresponding to the vehicle control function is allowed to be operated.
[0101] In one possible implementation, the debugging module further includes an interface for receiving ADB commands. These ADB commands are used to configure the second state value corresponding to the vehicle control function carried in the feedback signal to the debugging module. It should be noted that because these ADB commands can be used to configure the second state value corresponding to the vehicle control function carried in the feedback signal to the debugging module, testers can flexibly configure the second state value corresponding to the vehicle control function, thereby achieving dynamic configuration of the second state value corresponding to the vehicle control function, that is, dynamic configuration of the default state value corresponding to the vehicle control function.
[0102] Step 403: Upon receiving the feedback signal from the vehicle control function, the interaction module displays the status value of the vehicle control function on the vehicle interface based on the second status value.
[0103] For example, if the interaction module receives a feedback signal from the air conditioning function, and the feedback signal carries the following status values: air conditioning switch status value 1, air conditioning temperature status value 20.0℃, and air conditioning fan speed status value level 2, the interaction module can display the various status values of the air conditioning function on the vehicle's infotainment interface based on this feedback signal. The various status values of the air conditioning function displayed on the vehicle's infotainment interface can be found in [reference needed]. Figure 6 As shown, Figure 6 As shown, the vehicle's infotainment interface 600 displays that the air conditioning 601 is on, the temperature 601 for both the driver and passenger seats is 20.0℃, and the air conditioning fan speed 602 is set to level 5.
[0104] It should be noted that, Figure 6This is merely a schematic diagram illustrating the display of air conditioning function status values on a vehicle infotainment interface, provided by an embodiment of this application, and does not specifically limit the status values carried by the feedback signals of the air conditioning function. Optionally, the feedback signals of the air conditioning function may also carry status values regarding the air conditioning mode (cooling, heating) and the air conditioning airflow mode (face blowing mode, face and foot blowing mode, foot blowing mode, foot blowing defrost mode, and defrost mode).
[0105] In the above technical solution, when the vehicle system enters the debugging mode and the debugging module does not receive the vehicle control signal sent by the interaction module, the debugging module can send a feedback signal of the vehicle control function to the interaction module. Since the feedback signal carries the second state value corresponding to the vehicle control function, the interaction module can display the state value of the vehicle control function (the default state value of the vehicle control function) on the vehicle interface according to the second state value when it receives the feedback signal of the vehicle control function. This ensures that the state value of the vehicle control function can be displayed normally on the vehicle interface when the vehicle system enters the debugging mode, so that testers can observe the state value of the vehicle control function and perform debugging-related operations on the target control of the vehicle control function according to the state value.
[0106] Step 404: The debugging module obtains the vehicle control signal sent by the interaction module for any one of the at least one vehicle control functions.
[0107] The implementation method of step 404 can be referred to the above embodiments, and will not be repeated here.
[0108] Step 405: In response to the vehicle control signal, the debugging module sends a response signal corresponding to the vehicle control signal to the interaction module. The response signal carries the first state value corresponding to the vehicle control function.
[0109] In one possible implementation, in order to further improve the debugging efficiency of the vehicle system, the tester can pre-set a signal mapping table between each vehicle control signal and the response signal in the debugging module. This way, when the debugging module receives a vehicle control signal, it can directly determine the response signal corresponding to the vehicle control signal according to the preset signal mapping table and send the response signal corresponding to the vehicle control signal to the interaction module.
[0110] For example, the signal mapping table between vehicle control signals and response signals can be shown in Table 1 below:
[0111] Table 1
[0112] Vehicle control signals Response signal A1 A11 A2 A21 A3 A31 B1 B11 B2 B21 …… ……
[0113] Among them, A1 represents the vehicle control signal for the air conditioning switch function, A2 represents the vehicle control signal for the air conditioning temperature function, and A3 represents the vehicle control signal for the air conditioning fan speed function; B1 represents the vehicle control signal for the multimedia switch function, and B2 represents the vehicle control signal for the multimedia volume function.
[0114] For example, when the debugging module receives the vehicle control signal A1 sent by the interaction module, and after responding to the vehicle control signal (A1), it can determine the response signal corresponding to the vehicle control signal (A1) as A11 according to Table 1, and send the response signal (A11) to the interaction module.
[0115] Step 406: When the interaction module receives the response signal corresponding to the vehicle control signal, it updates the status value of the vehicle control function on the vehicle interface according to the first status value.
[0116] As can be seen from the above embodiments, the first state value carried by the response signal and the second state value carried by the feedback signal may be the same or different. That is, the state value after the vehicle control function is adjusted may be the same as or different from the default state value of the vehicle control function. For example, if the vehicle control function is an air conditioning switch function, and the default state value of the air conditioning switch function is 0, that is, when the air conditioning is in the off state, if the air conditioning switch control on the vehicle interface is turned off, the air conditioning switch state will be adjusted to the off state, and the state value of the air conditioning switch function after adjustment will be 0. That is, the default state value (0) of the air conditioning switch function is the same as the state value (0) after the air conditioning switch is adjusted. For example, if the vehicle control function is an air conditioning switch function, and the default state value of the air conditioning switch function is 0, that is, when the air conditioning is in the off state, if the air conditioning switch control on the vehicle interface is turned on, the air conditioning switch state will be adjusted to the on state, and the state value of the air conditioning switch function after adjustment will be 1. That is, the default state value (0) of the air conditioning switch function is different from the state value (1) after the air conditioning switch is adjusted.
[0117] Since the first state value carried by the response signal and the second state value carried by the feedback signal may be the same or different, in one possible implementation, after the interaction module determines the first state value carried in the response signal sent by the debugging module, the first state value can be compared with the second state value carried in the feedback signal sent by the debugging module, and the state value of the vehicle control function can be determined based on the comparison result.
[0118] Specifically, if the comparison result shows that the first state value and the second state value are different, the interaction module can update the state value of the vehicle control function according to the first state value so that the adjusted state value of the vehicle control function can be displayed on the vehicle interface in a timely manner; if the comparison result shows that the first state value and the second state value are the same, the state value of the vehicle control function can remain unchanged.
[0119] Figure 7 This is a schematic diagram of the structure of a vehicle infotainment system debugging device provided in an embodiment of this application.
[0120] For example, such as Figure 7 As shown, the device 700 includes:
[0121] The activation unit 701 is used to activate the debugging module when the vehicle system enters the debugging mode. The debugging module is used to simulate the controller corresponding to at least one vehicle control function in the vehicle system.
[0122] The acquisition unit 702 is used for the debugging module to acquire the vehicle control signal sent by the interaction module for any one of the at least one vehicle control functions. The vehicle control signal is triggered by the interaction module in response to the operation of the target control on the vehicle interface of the vehicle system. The target control corresponds to the vehicle control function.
[0123] The sending unit 703 is used to send a response signal corresponding to the vehicle control signal to the interaction module in response to the vehicle control signal. The response signal carries the first state value corresponding to the vehicle control function.
[0124] The update unit 704 is used to update the status value of the vehicle control function on the vehicle interface according to the first status value when the interaction module receives the response signal corresponding to the vehicle control signal.
[0125] In one possible implementation, the sending unit 703 is further configured to, when the debugging module is activated, send a feedback signal of the vehicle control function to the interaction module, the feedback signal carrying a second state value corresponding to the vehicle control function, the second state value being the same as or different from the first state value; the device 400 also includes a display unit, configured to, when the interaction module receives the feedback signal of the vehicle control function, display the state value of the vehicle control function on the vehicle interface according to the second state value.
[0126] In one possible implementation, the acquisition unit 702 is further used for the debugging module to acquire the function ID of the vehicle control function sent by the interaction module; the sending unit 703 is further used for the debugging module to determine the feedback signal corresponding to the vehicle control function based on the function ID of the vehicle control function, and send the feedback signal of the vehicle control function to the interaction module.
[0127] In one possible implementation, the debugging module also includes an interface for receiving ADB commands, which are used to configure the second state value corresponding to the vehicle control function carried by the feedback signal to the debugging module.
[0128] In one possible implementation, the sending unit 703 is further configured to determine the response signal corresponding to the vehicle control signal according to a preset signal mapping table when the debugging module receives the vehicle control signal, and send the response signal corresponding to the vehicle control signal to the interaction module.
[0129] In one possible implementation, the device 400 further includes a judgment unit for judging whether the first state value and the second state value are the same, wherein the second state value is the state value carried in the feedback signal of the vehicle control function sent by the debugging module to the interaction module before the interaction module receives the response signal corresponding to the vehicle control signal; and an update unit 704, specifically used to update the state value of the vehicle control function according to the first state value when the first state value and the second state value are different; and to keep the state value of the vehicle control function unchanged when the first state value and the second state value are the same.
[0130] In one possible implementation, the device 700 further includes a display unit for displaying a prompt message on the vehicle interface when the vehicle system enters debugging mode, the prompt message indicating that the vehicle system has entered debugging mode.
[0131] This embodiment can divide the device into functional units according to the above method example. For example, each function can be assigned to a separate functional unit, or two or more functions can be integrated into one processing unit. The integrated unit can be implemented in hardware. It should be noted that the unit division in this embodiment is illustrative and is only a logical functional division. In actual implementation, there may be other division methods.
[0132] When the functional units are divided according to their respective functions, the device may also include a judgment unit and a display unit, etc. It should be noted that all relevant content of each step involved in the above method embodiments can be referenced from the functional description of the corresponding functional unit, and will not be repeated here.
[0133] It should be understood that the device provided in this embodiment is used to execute the above-described vehicle system debugging method, and therefore can achieve the same effect as the above-described implementation method.
[0134] When using integrated units, the device may include a processing unit and a storage unit. Specifically, when the device is applied to a vehicle, the processing unit can be used to control and manage the vehicle's movements, and the storage unit can be used to support the vehicle in executing relevant program code.
[0135] The processing unit may be a processor or a controller, which can implement or execute various exemplary logic blocks, modules, and circuits shown in conjunction with the disclosure of this application. The processor may also be a combination of functions that implement computing capabilities, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc., and the storage module may be a memory.
[0136] In addition, the device provided in the embodiments of this application may specifically be a chip, component or module. The chip may include a connected processor and a memory. The memory is used to store instructions. When the processor calls and executes the instructions, the chip can execute a debugging method for a vehicle system provided in the above embodiments.
[0137] This embodiment also provides a computer-readable storage medium storing computer program code. When the computer program code is run on a computer, the computer executes the above-described related method steps to implement the vehicle system debugging method provided in the above embodiment.
[0138] This embodiment also provides a computer program product. When the computer program product is run on a computer, it causes the computer to perform the above-mentioned related steps to realize the vehicle system debugging method provided in the above embodiment.
[0139] In this embodiment, the device, computer-readable storage medium, computer program product, or chip are all used to execute the corresponding methods provided above. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects in the corresponding methods provided above, and will not be repeated here.
[0140] Through the above description of the embodiments, those skilled in the art will understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0141] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0142] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A debugging method for a vehicle infotainment system, characterized in that, The vehicle infotainment system includes an interaction module and a debugging module. The debugging module is located in a first middleware module of the vehicle infotainment system, which is the next module after the interaction module. The method includes: When the vehicle infotainment system enters the debugging mode, the debugging module is activated. The debugging module is used to simulate the controller corresponding to at least one vehicle control function in the vehicle infotainment system. The debugging module acquires a vehicle control signal sent by the interaction module for any of the at least one vehicle control function. The vehicle control signal is triggered by the interaction module in response to an operation on a target control on the vehicle interface of the vehicle system. The target control corresponds to the vehicle control function. In response to the vehicle control signal, the debugging module sends a response signal corresponding to the vehicle control signal to the interaction module, and the response signal carries a first state value corresponding to the vehicle control function. Upon receiving a response signal corresponding to the vehicle control signal, the interaction module updates the status value of the vehicle control function on the vehicle interface based on the first status value.
2. The method of claim 1, wherein, Before the debugging module acquires the vehicle control signal sent by the interaction module for any of the at least one vehicle control function, the method further includes: When the debugging module is activated, the debugging module sends a feedback signal of the vehicle control function to the interaction module. The feedback signal carries a second state value corresponding to the vehicle control function. The second state value may be the same as or different from the first state value. When the interaction module receives the feedback signal from the vehicle control function, it displays the status value of the vehicle control function on the vehicle interface according to the second status value.
3. The method of claim 2, wherein, The debugging module sends feedback signals of the vehicle control function to the interaction module, including: The debugging module obtains the function ID of the vehicle control function sent by the interaction module; The debugging module determines the feedback signal corresponding to the vehicle control function based on the function ID of the vehicle control function, and sends the feedback signal of the vehicle control function to the interaction module.
4. The method of claim 3, wherein, The debugging module also includes an interface for receiving ADB commands, which are used to configure the second state value corresponding to the vehicle control function carried by the feedback signal to the debugging module.
5. The method of claim 1, wherein, The debugging module responds to the vehicle control signal by sending a response signal corresponding to the vehicle control signal to the interaction module, including: When the debugging module receives the vehicle control signal, it determines the corresponding response signal according to the preset signal mapping table and sends the corresponding response signal to the interaction module.
6. The method of claim 1, wherein, The step of updating the status value of the vehicle control function on the vehicle interface according to the first status value includes: Determine whether the first state value and the second state value are the same. The second state value is the state value carried in the feedback signal of the vehicle control function sent by the debugging module to the interaction module before the interaction module receives the response signal corresponding to the vehicle control signal. If the first state value is different from the second state value, the state value of the vehicle control function is updated according to the first state value. If the first state value and the second state value are the same, the state value of the vehicle control function remains unchanged.
7. The method of claim 1, wherein, The method further includes: When the vehicle infotainment system enters debugging mode, a prompt message is displayed on the vehicle infotainment interface, indicating that the vehicle infotainment system has entered debugging mode.
8. A head unit system characterized by comprising: The vehicle system includes an interaction module and a debugging module. The debugging module is located in the first middleware module of the vehicle system, which is the next module after the interaction module. The interaction module is used to send a corresponding vehicle control signal to the controller corresponding to at least one vehicle control function in the vehicle system. The vehicle control signal is triggered by the interaction module in response to the operation of the target control on the vehicle interface of the vehicle system. The target control corresponds to the vehicle control function. The debugging module is used to simulate the controller corresponding to at least one vehicle control function in the vehicle system when the vehicle system enters the debugging mode.
9. A debugging apparatus of a head unit system, characterized by comprising: The vehicle infotainment system includes an interaction module and a debugging module. The debugging module is located in a first middleware module of the vehicle infotainment system, which is the next module after the interaction module. The device includes: An activation unit is used to activate the debugging module when the vehicle infotainment system enters the debugging mode. The debugging module is used to simulate the controller corresponding to at least one vehicle control function in the vehicle infotainment system. The acquisition unit is used by the debugging module to acquire the vehicle control signal sent by the interaction module for any one of the at least one vehicle control functions. The vehicle control signal is triggered by the interaction module in response to the operation of a target control on the vehicle interface of the vehicle system. The target control corresponds to the vehicle control function. The sending unit is used for the debugging module to send a response signal corresponding to the vehicle control signal to the interaction module in response to the vehicle control signal, the response signal carrying a first state value corresponding to the vehicle control function; An update unit is used to update the status value of the vehicle control function on the vehicle interface according to the first status value when the interaction module receives the response signal corresponding to the vehicle control signal.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed, implements the method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Test method and system of vehicle interaction system, equipment and storage medium
CN112857832A
State tracking methodology
US7385608B1