A timeout feedback method and device for applying a vehicle machine bus
By introducing a timeout feedback method into the settings of the car's central control screen, monitoring the delay feedback signal of the CAN bus and removing timeout messages, the communication uncertainty problem in the settings of the car's central control screen is solved, and the troubleshooting efficiency and execution reliability are improved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA FAW CO LTD
- Filing Date
- 2023-08-23
- Publication Date
- 2026-05-29
AI Technical Summary
Existing technologies for communication between automotive central control screens and CAN bus suffer from issues such as signal ID errors, communication errors, or controller malfunctions, leading to uncertain feedback, tedious troubleshooting during development, and high code reuse rates.
A timeout feedback method for vehicle bus applications is provided. By setting automatic and passive setting methods in the setting class, the message queue is monitored and timeout messages are removed after the timeout period, ensuring that the execution unit maintains the original settings and avoiding handle response to timeout messages.
It improves the reliability of the car's central control screen settings and the efficiency of troubleshooting, reduces the complexity of the development phase, and ensures that the execution unit operates under safe settings.
Smart Images

Figure CN117221376B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and more specifically, to a timeout feedback method, apparatus, medium, and electronic device using a vehicle infotainment bus. Background Technology
[0002] Most modern cars use the CAN bus as their control bus. Based on the CAN bus, controllers, sensors, actuators, and other components on the vehicle are connected through a common bus. Any device on the bus can communicate with other devices on the bus in real time.
[0003] With the increasing functionality of automotive controllers today, the settings applications on car infotainment screens also include many vehicle control-related settings, such as turning cruise control on / off and ambient lighting on / off. Therefore, these applications need to communicate with the CAN bus, sending commands to the corresponding controllers and listening for feedback from the CAN bus. However, due to various issues such as incorrect signal IDs, communication errors, or controller malfunctions, feedback may not be received after the application sends commands. Existing solutions often handle individual exceptions separately, and when such situations occur during development, they cannot quickly locate the problem, resulting in high code reusability and cumbersome troubleshooting.
[0004] Therefore, this application provides a timeout feedback method using a vehicle infotainment bus to solve the above-mentioned technical problems. Summary of the Invention
[0005] The purpose of this application is to provide a timeout feedback method, device, medium, and electronic device for using a vehicle infotainment bus, which can solve at least one of the aforementioned technical problems. The specific solution is as follows:
[0006] According to a specific embodiment of this application, in a first aspect, this application provides a timeout feedback method using a vehicle infotainment bus, comprising:
[0007] In response to receiving a trigger message from any controllable object in the vehicle system, the target setting information of the controllable object is obtained;
[0008] The automatic setting method in the setting class related to the control object in the vehicle system is called to set the target setting information of any control object. The setting class inherits from a public class, which includes at least: handles for sending, receiving and processing messages, timeout messages and timeout durations, as well as automatic setting methods and passive setting methods that implement the settings through the vehicle system bus.
[0009] When it is determined that a delayed feedback signal for any of the controlled objects is received from the vehicle bus, the passive setting method in the setting class is invoked to monitor the message queue.
[0010] When the automatic setting method stores the timeout message sent to the handle into the message queue after the timeout duration is limited, it calls the passive setting method in the setting class to remove the timeout message from the message queue.
[0011] Optionally, the method further includes:
[0012] When the target setting information of any of the controlled objects is obtained, the current setting information of any of the controlled objects is also saved;
[0013] When the handle receives a timeout message from the message queue, the automatic setting method in the setting class is invoked to perform a bounce operation based on the current setting information of any of the control objects.
[0014] Optionally, the method further includes:
[0015] When the automatic setting method in the setting class is called to perform a bounce operation based on the current setting information of any of the controlled objects, if the debugging flag meets the preset opening conditions, the current setting information and the target setting information are displayed.
[0016] Optionally, the target setting information includes at least the control object identifier of any of the control objects.
[0017] Optionally, the current setting information includes at least the class number and setting class name of the setting class associated with any of the manipulated objects.
[0018] According to a specific embodiment of this application, in a second aspect, this application provides a timeout feedback device using a vehicle infotainment bus, comprising:
[0019] A response unit is used to respond to receiving trigger information from any controllable object in the vehicle system and to obtain target setting information of the controllable object.
[0020] The setting unit is used to call the automatic setting method in the setting class related to the control object in the vehicle system to set the target setting information of any control object. The setting class inherits from a public class, which includes at least: handles for sending, receiving and processing messages, timeout messages and timeout durations, as well as automatic setting methods and passive setting methods that implement the settings through the vehicle system bus.
[0021] The monitoring unit is used to call the passive setting method in the setting class to monitor the message queue when it determines that a delayed feedback signal for any controlled object is received from the vehicle bus.
[0022] The removal unit is used to call the passive setting method in the setting class to remove the timeout message from the message queue when the automatic setting method stores the timeout message sent to the handle into the message queue after the timeout duration is limited.
[0023] Optionally, the device further includes:
[0024] A storage unit is used to save the current setting information of any control object when the target setting information of any control object is obtained;
[0025] The bounce unit is used to call the automatic setting method in the setting class to perform a bounce operation based on the current setting information of any of the control objects when the handle obtains a timeout message from the message queue.
[0026] Optionally, the device further includes:
[0027] The prompting unit is used to prompt the current setting information and the target setting information when the automatic setting method in the setting class is called to perform a bounce operation based on the current setting information of any control object, and when the detection debugging flag meets the preset opening conditions.
[0028] Optionally, the target setting information includes at least the control object identifier of any of the control objects.
[0029] Optionally, the current setting information includes at least the class number and setting class name of the setting class associated with any of the manipulated objects.
[0030] According to a specific embodiment of this application, in a third aspect, this application provides a computer-readable storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the timeout feedback method for applying a vehicle-mounted bus as described in any of the preceding claims.
[0031] According to a specific embodiment of this application, in a fourth aspect, this application provides an electronic device, including: one or more processors; and a storage device for storing one or more programs, which, when executed by the one or more processors, cause the one or more processors to implement the timeout feedback method for applying a vehicle-mounted bus as described in any of the preceding claims.
[0032] Compared with the prior art, the above-described solutions of this application have at least the following beneficial effects:
[0033] This application provides a timeout feedback method, device, medium, and electronic device using a vehicle infotainment system (VMS). When any controlled object in the VMS is triggered, the automatic setting method in the setting class related to the controlled object in the VMS is invoked to set the execution unit via the VMS bus. If the automatic setting method stores a timeout message in the message queue, and the VMS bus issues a delayed feedback signal, indicating a problem with both the VMS bus and the settings, then the passive setting method in the setting class is invoked to remove the timeout message from the message queue. This prevents the handle from receiving a timeout message and responding accordingly, thus ensuring that the execution unit retains its original settings and that the VMS execution unit can execute under safe settings. Attached Figure Description
[0034] Figure 1 A flowchart of a timeout feedback method for an application vehicle-mounted bus according to an embodiment of this application is shown;
[0035] Figure 2 A unit block diagram of a timeout feedback device for an application vehicle-mounted bus according to an embodiment of this application is shown. Detailed Implementation
[0036] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0037] The terminology used in the embodiments of this application is for the purpose of describing particular embodiments only and is not intended to limit the application. The singular forms “a,” “said,” and “the” used in the embodiments of this application and the appended claims are also intended to include the plural forms, and “multiple” generally includes at least two unless the context clearly indicates otherwise.
[0038] It should be understood that the term "and / or" used in this article 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. Additionally, the character " / " in this article generally indicates that the preceding and following related objects have an "or" relationship.
[0039] It should be understood that although the terms first, second, third, etc., may be used in the embodiments of this application, these descriptions should not be limited to these terms. These terms are only used to distinguish the descriptions. For example, first may also be referred to as second without departing from the scope of the embodiments of this application, and similarly, second may also be referred to as first.
[0040] Depending on the context, the words “if” or “suppose” as used here can be interpreted as “when” or “in response to determination” or “in response to detection.” Similarly, depending on the context, the phrases “if determination” or “if detection (of the stated condition or event)” can be interpreted as “when determination” or “in response to determination” or “when detection (of the stated condition or event)” or “in response to detection (of the stated condition or event).”
[0041] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that an article or device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such an article or device. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the article or device that includes said element.
[0042] It should be noted that any symbols and / or numbers present in the specification that are not marked in the accompanying drawings are not reference numerals.
[0043] The optional embodiments of this application are described in detail below with reference to the accompanying drawings.
[0044] The embodiments provided in this application are embodiments of a timeout feedback method using a vehicle-mounted bus.
[0045] The following is combined with Figure 1 The embodiments of this application will be described in detail.
[0046] Step S101: In response to receiving trigger information from any controllable object in the vehicle system, obtain the target setting information of the controllable object.
[0047] The target setting information refers to the information that any controlled object prepares to set for the execution unit of the vehicle system. The target setting information needs to be set before triggering any controlled object. For example, before adjusting the vehicle's air conditioning, the target setting information needs to be filled in beforehand. Then, an adjustment signal is sent to the vehicle's air conditioning via the setting button. After receiving the setting signal, the vehicle's air conditioning adjusts itself according to the target setting information.
[0048] Step S102: Invoke the automatic setting method in the setting class related to the control object in the vehicle system to set the target settings information of any control object.
[0049] The settings class inherits from a public class, which includes at least: handles for sending, receiving, and processing messages, timeout messages and timeout durations, as well as automatic and passive settings methods implemented through the vehicle bus.
[0050] Handler is a message communication mechanism in Android used for communication between child threads and the main thread, implementing a non-blocking message passing mechanism.
[0051] In this embodiment of the application, the Handler is used to send, receive, and process messages.
[0052] The public class listens for and waits for messages through the `handleMessage` method; it also provides a delay for sending messages using `handler.sendEmptyMessageDelayed` in the automatic setup method. When the vehicle bus (such as the CAN bus) provides normal feedback, the `removeMessage` method in the passive setup method removes the message.
[0053] In Android system development, the class that inherits from is called the subclass, and the class that is inherited from is called the parent class. After inheritance, the subclass automatically inherits the attributes and methods of the parent class.
[0054] In this embodiment, the designed public class serves as the parent class for all setting classes. Therefore, all setting classes inherit the Handler and methods from the public class, automatically implementing the functionality of the public class.
[0055] A Controller Area Network (CAN bus) is a serial communication network that enables distributed real-time control. It typically consists of three parts: a CAN transceiver, a CAN controller, and an MCU. The CAN bus transmits data via differential signals. The CAN transceiver converts the differential signals to TTL level signals, or vice versa. The CAN controller receives the TTL level signals and transmits them to the MCU.
[0056] The settings class transmits settings information to the execution system via the vehicle's infotainment bus.
[0057] Automatic setup methods are used at least to configure the execution units in the vehicle system via the vehicle bus. For example, the loading method.
[0058] Passive setter methods are used to clear timed-out messages from the message queue at least under preset clearing conditions. For example, the `loaded` method.
[0059] Step S103: When it is determined that a delayed feedback signal for any of the controlled objects is received from the vehicle bus, the passive setting method in the setting class is invoked to monitor the message queue.
[0060] Typically, when the automatic setup method of the settings class performs settings via the vehicle's infotainment system (V2S), a delayed feedback signal from the V2S indicates poor communication and unsuccessful setup. Furthermore, the delayed feedback signal is received within the timeout period, specifically before the timeout message is received. At this point, the passive setup method in the settings class is invoked to monitor the message queue.
[0061] Step S104: When the automatic setting method stores the timeout message sent to the handle into the message queue after the timeout duration is limited, the passive setting method in the setting class is called to remove the timeout message from the message queue.
[0062] This application embodiment monitors whether there are timeout messages in the message queue by calling the passive setting method of the setting class. When a timeout message appears in the message queue, the timeout message is removed from the message queue to prevent the handle from receiving the timeout message and making a corresponding response, so that the execution unit still maintains the original settings.
[0063] In some other specific embodiments, the method further includes the following steps:
[0064] Step S101a: When the target setting information of any of the controlled objects is obtained, the current setting information of any of the controlled objects is also saved.
[0065] The current settings information refers to the settings that the control object is currently executing on the vehicle system's execution unit.
[0066] For example, continuing with the example above, before adjusting the vehicle's air conditioning, save the settings information that the vehicle's air conditioning is currently performing.
[0067] Step S105: When the handle obtains a timeout message from the message queue, the automatic setting method in the setting class is called to perform a bounce operation based on the current setting information of any of the control objects.
[0068] The fact that the handle obtains a timeout message from the message queue can be understood as the absence of a delay feedback signal from the vehicle bus for any of the controlled objects, indicating that the vehicle bus communication is normal and the passive setting method in the setting class is not called to monitor the message queue. Therefore, the timeout message stored by calling the automatic setting method will not be removed from the message queue, thus enabling the handle to obtain the timeout message from the message queue.
[0069] The timeout message at this time is generated by the automatic setting method, not due to a fault in the vehicle bus. Therefore, the automatic setting method may affect the settings of the execution unit. To address this, this specific embodiment provides a method to call the automatic setting method in the setting class to perform a bounce operation based on the current setting information of any of the control objects, ensuring that the execution unit can execute under the correct settings.
[0070] In some specific embodiments, the method further includes the following steps:
[0071] When the automatic setting method in the setting class is called to perform a bounce operation based on the current setting information of any of the controlled objects, if the debugging flag meets the preset opening conditions, the current setting information and the target setting information are displayed.
[0072] This specific embodiment also provides a debugging indicator. When performing a bounce operation, if the debugging indicator meets preset activation conditions, it displays the current setting information and the target setting information, so that technicians can promptly identify errors caused by specific settings. Optionally, the current setting information and the target setting information are saved in a debugging log so that technicians can backtrack on errors caused by specific settings.
[0073] Optionally, the target setting information includes at least the control object identifier of any of the control objects. This helps technicians locate the control object.
[0074] Optionally, the current setting information includes at least the class number and class name of the setting class related to any of the manipulated objects. This helps technicians locate the relevant setting class.
[0075] This application provides a timeout feedback method for using a vehicle-mounted bus. When any control object in the vehicle-mounted system is triggered, the automatic setting method in the settings class related to the control object in the vehicle-mounted system is called to set the execution unit via the vehicle-mounted bus. If the automatic setting method stores a timeout message in the message queue, and the vehicle-mounted bus issues a delayed feedback signal, indicating that both the vehicle-mounted bus and the settings have problems, then the passive setting method in the settings class is called to remove the timeout message from the message queue. This is to prevent the handle from receiving a timeout message and responding accordingly, thereby ensuring that the execution unit retains its original settings and that the vehicle-mounted system's execution unit can execute under safe settings.
[0076] This application also provides an apparatus embodiment that follows the above embodiments, used to implement the method steps described in the above embodiments. The interpretation of the same names is the same as that in the above embodiments, and the same technical effects are achieved. Therefore, it will not be repeated here.
[0077] like Figure 2As shown, this application provides a timeout feedback device 200 using a vehicle infotainment bus, comprising:
[0078] Response unit 201 is used to obtain target setting information of any control object in response to receiving trigger information from any control object in the vehicle system;
[0079] Setting unit 202 is used to call the automatic setting method in the setting class related to the control object in the vehicle system to set based on the target setting information of any control object. The setting class inherits from a public class, which includes at least: handles for sending, receiving and processing messages, timeout messages and timeout durations, as well as automatic setting methods and passive setting methods that implement settings through the vehicle system bus.
[0080] The monitoring unit 203 is used to call the passive setting method in the setting class to monitor the message queue when it is determined that a delayed feedback signal for any controlled object is received from the vehicle bus.
[0081] The removal unit 204 is used to call the passive setting method in the setting class to remove the timeout message from the message queue when the automatic setting method stores the timeout message sent to the handle into the message queue after the timeout duration is limited.
[0082] Optionally, the device further includes:
[0083] A storage unit is used to save the current setting information of any control object when the target setting information of any control object is obtained;
[0084] The bounce unit is used to call the automatic setting method in the setting class to perform a bounce operation based on the current setting information of any of the control objects when the handle obtains a timeout message from the message queue.
[0085] Optionally, the device further includes:
[0086] The prompting unit is used to prompt the current setting information and the target setting information when the automatic setting method in the setting class is called to perform a bounce operation based on the current setting information of any control object, and when the detection debugging flag meets the preset opening conditions.
[0087] Optionally, the target setting information includes at least the control object identifier of any of the control objects.
[0088] Optionally, the current setting information includes at least the class number and setting class name of the setting class associated with any of the manipulated objects.
[0089] This application provides a timeout feedback device using a vehicle-mounted bus. When any control object in the vehicle-mounted system is triggered, the automatic setting method in the settings class related to the control object in the vehicle-mounted system is called to set the execution unit via the vehicle-mounted bus. If the automatic setting method stores a timeout message in the message queue, and the vehicle-mounted bus issues a delayed feedback signal, indicating a problem with both the vehicle-mounted bus and the settings, then the passive setting method in the settings class is called to remove the timeout message from the message queue. This prevents the handle from receiving a timeout message and responding accordingly, thus ensuring that the execution unit retains its original settings and that the vehicle-mounted system's execution unit can execute under safe settings.
[0090] This embodiment provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the method steps described in the above embodiment.
[0091] This application provides a non-volatile computer storage medium storing computer-executable instructions that can perform the steps described in the above embodiments.
[0092] Finally, it should be noted that the various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the systems or apparatus disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the descriptions are relatively simple, and relevant parts can be referred to the method section.
[0093] The above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.
Claims
1. A timeout feedback method using a vehicle infotainment system bus, characterized in that, include: In response to receiving a trigger message from any controllable object in the vehicle system, the target setting information of the controllable object is obtained; The automatic setting method in the setting class related to the control object in the vehicle system is called to set the target setting information of any control object. The setting class inherits from a public class, which includes at least: handles for sending, receiving and processing messages, timeout messages and timeout durations, as well as automatic setting methods and passive setting methods that implement the settings through the vehicle system bus. When it is determined that a delayed feedback signal for any of the controlled objects is received from the vehicle bus, the passive setting method in the setting class is invoked to monitor the message queue. When the automatic setting method stores the timeout message sent to the handle into the message queue after the timeout duration is limited, it calls the passive setting method in the setting class to remove the timeout message from the message queue.
2. The method according to claim 1, characterized in that, The method further includes: When the target setting information of any of the controlled objects is obtained, the current setting information of any of the controlled objects is also saved; When the handle receives a timeout message from the message queue, the automatic setting method in the setting class is invoked to perform a bounce operation based on the current setting information of any of the control objects.
3. The method according to claim 2, characterized in that, The method further includes: When the automatic setting method in the setting class is called to perform a bounce operation based on the current setting information of any of the controlled objects, if the debugging flag meets the preset opening conditions, the current setting information and the target setting information are displayed.
4. The method according to claim 1, characterized in that, The target setting information includes at least the control object identifier of any of the control objects.
5. The method according to claim 2, characterized in that, The current settings information includes at least the class number and class name of the settings class related to any of the manipulated objects.
6. A timeout feedback device using a vehicle infotainment system bus, characterized in that, include: A response unit is used to respond to receiving trigger information from any controllable object in the vehicle system and to obtain target setting information of the controllable object. The setting unit is used to call the automatic setting method in the setting class related to the control object in the vehicle system to set the target setting information of any control object. The setting class inherits from a public class, which includes at least: handles for sending, receiving and processing messages, timeout messages and timeout durations, as well as automatic setting methods and passive setting methods that implement the settings through the vehicle system bus. The monitoring unit is used to call the passive setting method in the setting class to monitor the message queue when it determines that a delayed feedback signal for any controlled object is received from the vehicle bus. The removal unit is used to call the passive setting method in the setting class to remove the timeout message from the message queue when the automatic setting method stores the timeout message sent to the handle into the message queue after the timeout duration is limited.
7. The apparatus according to claim 6, characterized in that, The device further includes: A storage unit is used to save the current setting information of any control object when the target setting information of any control object is obtained; The bounce unit is used to call the automatic setting method in the setting class to perform a bounce operation based on the current setting information of any of the control objects when the handle obtains a timeout message from the message queue.
8. The apparatus according to claim 7, characterized in that, The device further includes: The prompting unit is used to prompt the current setting information and the target setting information when the automatic setting method in the setting class is called to perform a bounce operation based on the current setting information of any control object, and when the detection debugging flag meets the preset opening conditions.
9. The apparatus according to claim 6, characterized in that, The target setting information includes at least the control object identifier of any of the control objects.
10. The apparatus according to claim 7, characterized in that, The current settings information includes at least the class number and class name of the settings class related to any of the manipulated objects.