A mutual exclusion function control method, device, vehicle and storage medium
By acquiring adjustment operations within the vehicle, identifying and sending signals to the underlying counterpart, and judging and returning the function activation status signal, the problem of state bounce of mutually exclusive function controls is solved, improving user experience and safety.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- GREAT WALL MOTOR CO LTD
- Filing Date
- 2024-12-24
- Publication Date
- 2026-06-23
Smart Images

Figure CN119781324B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of signal transmission control, and more specifically, to a method, apparatus, vehicle, and storage medium for controlling mutually exclusive functions in the field of signal transmission control. Background Technology
[0002] In addition to independent controls that manage individual functions, modern vehicles also have a special type of control used to manage mutually exclusive functions that are active simultaneously. When operating a control for a mutually exclusive function, the underlying hardware component (i.e., the controller) of each function feeds back its adjusted status signal to the upper-level control system.
[0003] The inventors of this application have discovered that, due to various software and hardware factors, there may be a certain time difference between these feedback signals. This means that when certain feedback signals that do not conform to the adjustment operation arrive at the upper-level control system first, the system may update the state of the mutual exclusion function control based on these erroneous signals. Summary of the Invention
[0004] This application provides a method, apparatus, vehicle, and storage medium for controlling a mutual exclusion function. This method can solve the technical problem of control state bounce caused by the time difference of the underlying signal feedback of the mutual exclusion function in the related art.
[0005] Firstly, a method for controlling mutual exclusion functions is provided, the method comprising:
[0006] Get adjustment operations for the function controls in the set of mutual exclusion function controls. The set of mutual exclusion function controls includes at least two function controls for enabling at least two mutual exclusion functions and a close control for disabling each mutual exclusion function. Each function control corresponds to only one mutual exclusion function, and at least two mutual exclusion functions can only support one function to be enabled at any given time.
[0007] Based on the adjustment operation, determine the adjustment signals corresponding to at least two mutually exclusive functions respectively, and send each adjustment signal to the underlying counterpart of the corresponding mutually exclusive function;
[0008] Receive status signals from each underlying counterpart and determine whether the status signal originates from an underlying counterpart that is in the enabled state.
[0009] If yes, the status signal will be returned to the function control corresponding to the status signal; otherwise, the status signal will be ignored.
[0010] The beneficial effects of the technical solution described in the first aspect above include at least the following: When users operate on functional controls, they generally want to enable and use the function, at which point other mutually exclusive functions will be disabled. In other words, among all mutually exclusive functions, one counterpart will provide a valid adjustment signal when the function is enabled, while counterparts of other functions will only provide a shutdown signal when the function is disabled. Therefore, when the underlying counterpart of a mutually exclusive function provides a status signal, it is only necessary to determine whether the counterpart sending the signal is enabled to accurately filter out the valid signal corresponding to the enabled function, without returning the shutdown signals of other mutually exclusive functions to the upper layer. This avoids the shutdown signal arriving at the upper layer first, preventing unexpected transitions in the shutdown control.
[0011] In some possible implementations, the above-mentioned adjustment signals are sent to the underlying counterpart of the corresponding mutual exclusion function, including: sending each adjustment signal to the underlying counterpart of the corresponding mutual exclusion function through the setting channel of the corresponding mutual exclusion function.
[0012] Through the technical solutions in the above possible implementation methods, since the mutual exclusion functions are controlled by different controls in the interactive interface, a separate setting channel is established between each control and the control on a function-by-function basis to specifically send the setting signal corresponding to that function. The distributed setting channel is beneficial for the management and maintenance of the functional controls in the mutual exclusion function control set.
[0013] In some possible implementations, after sending each adjustment signal to the underlying counterpart of the corresponding mutual exclusion function, the method further includes: if no status signal is received from the underlying counterpart in the function-on state within a first preset time period, then the current status signal of each underlying counterpart is obtained; it is determined whether there is a target current status signal from the underlying counterpart in the function-on state; if there is, the target current status signal is returned to the function control corresponding to the target current status signal; if there is no target current status signal, any current status signal is returned to the close control.
[0014] Through the technical solutions in the above possible implementation methods, a waiting time threshold is set for the feedback signal of the device in the open state. If no status signal is received from the underlying device in the open state within the first preset time, it indicates that an abnormality or fault may have occurred. In this case, it is necessary to actively obtain the current status signal of each device. If there is a status signal corresponding to the open state, it is returned to the corresponding upper layer control. If the underlying status signals are all closed signals, then any one of them can be returned to the closed control.
[0015] In some possible implementations, the above method further includes: determining the intention adjustment function corresponding to the adjustment operation; after sending each adjustment signal to the underlying counterpart of the corresponding mutual exclusion function, it further includes: if no status signal is received from the underlying counterpart in the function-on state within a second preset time period, then the current status signal corresponding to the underlying counterpart of the intention adjustment function is obtained, and the current status signal is returned to the function control corresponding to the intention adjustment function.
[0016] Through the technical solutions in the above possible implementation methods, when a user performs an adjustment operation, he / she can first record the corresponding intention function, and then, if no valid status signal is received within the specified second preset time period, actively request the current status signal from the corresponding device of the intention function, and return the current signal of the intention function to the upper layer control to meet the user's adjustment needs for the target function.
[0017] In some possible implementations, the underlying counterpart is configured to add a functional status identifier to the status signal based on its working state; the above determination of whether the status signal originates from the underlying counterpart in the function-enabled state includes: determining whether the underlying counterpart corresponding to the status signal is in the function-enabled state based on the functional status identifier of the status signal.
[0018] Through the technical solutions in the above possible implementation methods, the underlying device adds an identifier to the function according to its own working state. Then, when judging the status signal fed back by the underlying device, it can be determined whether the corresponding device is in the function-on state based on the function status identifier.
[0019] In some possible implementations, each function control in the aforementioned set of mutually exclusive function controls has multiple adjustable levels, with each level representing a different degree of adjustment for each underlying component.
[0020] Through the technical solutions in the above possible implementation methods, each functional control can include multiple adjustable levels, each level corresponding to a different degree of adjustment of the function, and the user can adjust the target functional module to different degrees by operating the control.
[0021] In some possible implementations, the underlying counterpart is configured to determine the signal value in the status signal based on the working position; the above determination of whether the status signal originates from the underlying counterpart in the function-on state includes: determining whether the underlying counterpart corresponding to the status signal is in the function-on state based on the signal value in the status signal.
[0022] Through the technical solutions in the above possible implementation methods, for controls and functions with multiple adjustment levels, all levels are uniformly represented based on numerical values, so the current function can be determined based on the signal value.
[0023] Secondly, a mutual exclusion function control device is provided, the device comprising:
[0024] The operation response module is used to obtain the adjustment operation for the function control in the set of mutual exclusion function control. The set of mutual exclusion function control includes at least two function controls for enabling at least two mutual exclusion functions and a close control for disabling each mutual exclusion function. Each function control corresponds to only one mutual exclusion function, and at least two mutual exclusion functions can only support one function to be enabled at any given time.
[0025] The signal sending module is used to determine the adjustment signals corresponding to at least two mutually exclusive functions based on the adjustment operation, and send each adjustment signal to the underlying counterpart of the corresponding mutually exclusive function;
[0026] The feedback judgment module is used to receive status signals from each underlying counterpart and determine whether the status signal originates from an underlying counterpart that is in the function-enabled state.
[0027] The feedback upload module is used to return the status signal to the corresponding functional control if the status signal is true, and to ignore the status signal if the status signal is not true.
[0028] Thirdly, a vehicle is provided, including a memory for storing executable program code; and a processor for calling and running the executable program code from the memory, causing the vehicle to perform the methods described in the first aspect or any possible implementation thereof.
[0029] Fourthly, a computer program product is provided, comprising: computer program code, which, when run on a computer, causes the computer to perform the methods described in the first aspect or any possible implementation thereof.
[0030] 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 methods described in the first aspect or any possible implementation thereof. Attached Figure Description
[0031] Figure 1 A schematic diagram of a mutually exclusive function control in an interactive interface provided in an embodiment of this application;
[0032] Figure 2 An exemplary system architecture diagram of a mutual exclusion function control method provided in this application embodiment;
[0033] Figure 3 A flowchart illustrating a mutual exclusion function control method provided in an embodiment of this application;
[0034] Figure 4 A flowchart illustrating a mutual exclusion function control method provided in an embodiment of this application;
[0035] Figure 5 A logical architecture diagram of a mutual exclusion function control method provided in an embodiment of this application;
[0036] Figure 6 A structural block diagram of a mutual exclusion function control device provided in an embodiment of this application;
[0037] Figure 7 This is a structural schematic diagram of a vehicle provided in an embodiment of this application. Detailed Implementation
[0038] To make the features and advantages of this application more apparent and understandable, the technical solutions in the embodiments of this application will be clearly and completely described 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 of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0039] In the following description, when referring to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims. Furthermore, in the description of the embodiments of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B; the word "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 alone, A and B simultaneously, and B alone. Additionally, in the description of the embodiments of this application, "multiple" refers to two or more.
[0040] 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.
[0041] In the complex functional system of a vehicle, besides independent controls for individual functions, there exists a category of controls for controlling mutually exclusive functions. Mutually exclusive functions refer to those functions that operate on the same vehicle module but cannot be active simultaneously. For example, consider a seat mode adjustment module with two adjustable seat modes: "heating" and "ventilation." The seat can only be adjusted to one of these modes at a time; both modes cannot be active simultaneously. Therefore, the adjustment functions corresponding to these two modes are mutually exclusive functions. Different mutually exclusive functions can be controlled by the same control or by different controls. When each mutually exclusive function has its own control, all these controls can be managed as a set of mutually exclusive function controls, which may also include a shared off button for all functions.
[0042] Specifically, please refer to Figure 1 , Figure 1 This is a schematic diagram of a mutually exclusive function control in an interactive interface provided in an embodiment of this application. For example... Figure 1 As shown in (A), taking the existence of two mutually exclusive functions, "heating" and "ventilation," as an example, the set of mutually exclusive function controls includes a "heating" control, a "ventilation" control, and an "OFF" control shared by both functions. For user convenience, the "heating" and "ventilation" controls can be placed to the left and right of the "OFF" control, respectively. Each time the user performs an operation within the set of mutually exclusive functions, the upper layer simultaneously sends its respective control signal to the corresponding control component. Subsequently, these control components feed back their adjusted status signals to the upper-layer control system. However, due to potential time differences between these feedback signals, the upper-layer control state may change multiple times based on the arriving signals. This not only affects the user's operating experience but may also lead to user confusion or misjudgment, thus impacting driving safety.
[0043] For example, please refer to Figure 1 ,like Figure 1 As shown in (B), the original seat mode is "Heating," and the "Heating" control is highlighted. The states of the two function controllers are "Heating On" and "Ventilation Off." Then, the user clicks the "Ventilation" control to adjust the seat mode to "Ventilation." At this time, the "Ventilation" control becomes highlighted and sends "Heating Off Control Signal" and "Ventilation On Control Signal" to the heating and ventilation controllers, respectively. After responding to the control signals, the two controllers will report their own status. If the "Heating Off Status Signal" of the heating controller arrives first, the "Off" control will jump to the highlighted state based on the feedback signal. Only when the "Ventilation On Status Signal" of the ventilation controller arrives will the "Ventilation" control become highlighted again. This results in a clear and unexpected abnormal jump in the user's perception.
[0044] Therefore, this application provides a mutual exclusion function control method to solve the technical problem of control state bounce caused by the time difference of the underlying signal feedback of the above-mentioned mutual exclusion function.
[0045] Please see Figure 2 , Figure 2 An exemplary system architecture diagram of a mutual exclusion function control method provided in an embodiment of this application.
[0046] like Figure 2 As shown, the system architecture may include a vehicle processor 201, a network 202, and an underlying control system 203. The network 202 serves as the medium for providing a communication link between the vehicle processor 201 and the underlying control system 203. The network 202 may include various types of wireless and wired communication links. Wireless communication links include Bluetooth and Wireless-Fidelity (Wi-Fi) links, while wired communication links include Controller Area Network (CAN), LIN bus, FlexRay bus, MOST bus, and in-vehicle Ethernet bus.
[0047] The vehicle processor 201 can interact with the underlying control system 203 via the network 202 to receive or send messages to the underlying control system 203. Specifically, the vehicle processor 201 is generally used in the vehicle to execute various user commands, receive user interaction information, and send commands, signals, and other messages to the underlying control system 203, enabling specific low-level functional modules in the underlying control system 203 to operate and adjust according to the control messages. The underlying control system 203 can receive commands, signals, and other messages sent by the vehicle processor 201, and based on the control messages, operate and adjust various low-level functional modules in the vehicle that support the operation of various functions, such as the air conditioning control module, seat control module, and sunroof control module. Each low-level functional module uses both hardware and software to jointly realize the vehicle's functional support.
[0048] In this embodiment, the controls for each mutually exclusive function are managed as a set of mutually exclusive function controls. This set includes at least two function controls for enabling at least two mutually exclusive functions and a disable control for disabling each mutually exclusive function, where each function control corresponds to only one mutually exclusive function. During the control of the mutually exclusive functions, the vehicle processor 201 first obtains the user's adjustment operation on the function controls in the set of mutually exclusive function controls. Further, the vehicle processor 201 determines the adjustment signals corresponding to at least two mutually exclusive functions based on the adjustment operation and sends each adjustment signal to the corresponding lower-level counterpart in the lower-level control system 203. At this time, each lower-level counterpart in the lower-level control system 203 automatically feeds back a status signal after completing the adjustment operation based on the signal. When the vehicle processor 201 receives the status signals from each lower-level counterpart, it immediately determines whether the status signal originates from a lower-level counterpart in the function-enabled state. If so, the status signal is returned to the function control corresponding to the status signal; otherwise, the status signal is ignored.
[0049] Similarly, besides the vehicle processor 201 executive in this embodiment, the mutual exclusion function control method can also be executed on electronic devices such as smartphones, tablets, and various computers. Depending on implementation needs, the system architecture can include any electronic device with corresponding processing capabilities to execute the mutual exclusion function control method. The vehicle processor 201 providing the mutual exclusion function control method in this embodiment should not limit the electronic devices implementing the mutual exclusion function control method.
[0050] It should be understood that Figure 2 The number of vehicle processors, networks, and underlying control systems shown is only illustrative; the number can be any number depending on the implementation requirements.
[0051] Please see Figure 3 , Figure 3 This is a flowchart illustrating a mutual exclusion function control method provided in an embodiment of this application. The executing entity in this embodiment can be a vehicle performing mutual exclusion function control, a processor within the vehicle performing the mutual exclusion function control method, or a mutual exclusion function control service within the vehicle performing the mutual exclusion function control method. For ease of description, the following uses a processor within the vehicle as an example to illustrate the specific execution process of the mutual exclusion function control method.
[0052] like Figure 3 As shown, a mutual exclusion function control method may include at least:
[0053] S302. Obtain adjustment operations for the function controls in the set of mutual exclusion function controls. The set of mutual exclusion function controls includes at least two function controls for enabling at least two mutual exclusion functions and a close control for disabling each mutual exclusion function. Each function control corresponds to only one mutual exclusion function, and at least two mutual exclusion functions support only one function being enabled at any given time.
[0054] Optionally, in the vehicle's display interface, when multiple functions exist within a set of mutually exclusive functions, a separate function control can be set for each function. That is, each function control corresponds to only one mutually exclusive function. These function controls used to activate the corresponding function, along with a common deactivation control shared by all functions, together form a set of mutually exclusive function controls. It should be noted that each mutually exclusive function may not necessarily have only one control; rather, it may be controlled by multiple controls depending on the level of detail in the function's adjustment options. For example, the seat heating function may be further subdivided into sub-functions such as "adjust heating fan speed," "timer," and "adjust airflow frequency," each controlled by a separate control. In other words, these controls are all used solely to control the seat heating function, and the seat heating function itself is adjusted in different ways using multiple controls.
[0055] To facilitate intuitive interaction between users and functional controls, various functional controls display different interactive effects on the display interface based on their own functional status, allowing users to intuitively understand the status of the corresponding function through the interactive effects of the controls. For example, in the set of mutually exclusive functional controls corresponding to the seat adjustment function, there is a "close" control and two functional controls for turning on the ventilation and heating functions. If the ventilation is turned on, the "ventilation" control will be highlighted on the display interface, while the heating function is turned off, and its corresponding "heating" control and "OFF" control will be displayed in a normal state (i.e., not highlighted); if both functions are turned off, the "OFF" control will be highlighted, while the other two functional controls will be displayed in a normal state.
[0056] Optionally, in actual operation scenarios, the adjustment operations performed by the user on the target control are direct manifestations of the user's intent. Therefore, it is necessary to monitor the user's interaction with the vehicle in real time, and to capture the user's adjustment operations on the functional controls in the set of mutually exclusive functional controls in a timely and accurate manner. After obtaining the user's adjustment operations, the user's adjustment needs can be analyzed so as to send corresponding adjustment signals to the underlying control of the mutually exclusive function, adjusting the vehicle to a functional state that meets the user's needs.
[0057] S304. Based on the adjustment operation, determine the adjustment signals corresponding to at least two mutually exclusive functions respectively, and send each adjustment signal to the underlying counterpart of the corresponding mutually exclusive function.
[0058] Optionally, when a user adjusts a function control within the set of mutually exclusive function controls, their intention is to use the function corresponding to that control. In responding to such an adjustment, the vehicle's infotainment system first determines the adjustment signal corresponding to each mutually exclusive function based on the adjustment operation. These adjustment signals are then sent to the underlying counterparts of the corresponding functions to precisely control the startup, parameter adjustment, and shutdown operations of each underlying counterpart. The underlying counterparts are hardware or software components that execute specific functions, responsible for receiving adjustment signals and performing corresponding operations based on the signal content. During this process, it is necessary to ensure that signal transmission is fast and reliable to minimize latency and improve the overall system response speed.
[0059] S306. Receive status signals from each underlying counterpart and determine whether the status signal originates from an underlying counterpart that is in the enabled state.
[0060] Optionally, among all the adjustment signals determined by the adjustment operation, at most one signal indicates that the function is enabled, while the others should indicate that the function is disabled. Correspondingly, after the adjustment of each mutually exclusive function's underlying counterpart, at most one underlying counterpart should be in the enabled state, while the others should be in the disabled state. Furthermore, among the status signals fed back by each underlying counterpart, at most one status signal should originate from the underlying counterpart in the enabled state. Since the close control is shared by multiple mutually exclusive functions, a close signal fed back by any underlying counterpart in the disabled state will cause the close control to jump to the highlighted state. Therefore, to prevent the close control from abnormally jumping due to a close signal fed back by an underlying counterpart in the disabled state, it is necessary to determine whether the received status signal originates from an underlying counterpart in the enabled state.
[0061] Specifically, when the underlying peer component sends out its own status signal, it adds a functional status identifier to the signal based on its current operating state. Operating states are divided into function-on and function-off states. Correspondingly, the function-on state corresponds to a function-on status identifier, and the function-off state corresponds to a function-off status identifier. When the vehicle receives the status signal from the underlying peer component, it can retrieve the corresponding functional status identifier. Based on whether the functional status identifier is a function-on or function-off status identifier, it can determine whether the peer component that sent the status signal is in the function-on state.
[0062] S308. If yes, return the status signal to the function control corresponding to the status signal; otherwise, ignore the status signal.
[0063] Optionally, if the received status signal originates from a lower-level control that is in an enabled state, it indicates that the signal pertains to the currently enabled function—the function the user intends to use within the mutually exclusive functionality. In this case, it can be considered valid feedback, further processed, and returned to the corresponding functional control. Upon receiving the status signal, the functional control adjusts its interactive state based on the signal content to ensure consistency between the control's interface state and the underlying state. However, if the received status signal originates from a lower-level control that is in a disabled state, it can be assumed that the user does not need this status signal. The upper layer cannot then trigger a change in the disabled control's effect when the user uses other functions; therefore, this status signal must be ignored without any processing. This design prevents the interactive state of upper-level controls from being disturbed by irrelevant information, ensuring the stability and accuracy of the control states in the interactive interface.
[0064] This application provides a method for controlling mutually exclusive functions. The method involves obtaining adjustment operations for function controls in a set of mutually exclusive function controls. The set includes at least two function controls for enabling at least two mutually exclusive functions and a shut-off control for disabling each mutually exclusive function. Each function control corresponds to only one mutually exclusive function, and at least two mutually exclusive functions can only have one function enabled at any given time. Based on the adjustment operations, adjustment signals corresponding to the at least two mutually exclusive functions are determined, and each adjustment signal is sent to the underlying counterpart of the corresponding mutually exclusive function. Status signals from each underlying counterpart are received, and it is determined whether the status signal originates from an underlying counterpart in the enabled state. If so, the status signal is returned to the function control corresponding to the status signal; otherwise, the status signal is ignored. Since users generally want to enable and use a function when operating on it, other mutually exclusive functions will be disabled. In other words, among all mutually exclusive functions, one counterpart will provide a valid adjustment signal when the function is enabled, while counterparts for other functions will only provide shut-off signals when the function is disabled. When the underlying device of the mutual exclusion function sends a status signal to the counterpart, it is only necessary to determine whether the counterpart sending the signal is in the function-on state. This will accurately filter out the valid signals corresponding to the function that is already in the function, and will not send other closing signals in the mutual exclusion function back to the upper layer. This will prevent the closing signal from reaching the upper layer first and causing the closing control to jump unexpectedly.
[0065] Please see Figure 4 , Figure 4 This is a flowchart illustrating a mutual exclusion function control method provided in an embodiment of this application.
[0066] like Figure 4 As shown, a mutual exclusion function control method may include at least:
[0067] S402. Obtain adjustment operations for the functional controls in the set of mutually exclusive functional controls.
[0068] For details regarding step S402, please refer to the description in step S202; it will not be repeated here.
[0069] S404. Based on the adjustment operation, determine the adjustment signals corresponding to at least two mutually exclusive functions respectively, and send each adjustment signal to the underlying counterpart of the corresponding mutually exclusive function through the setting channel of the corresponding mutually exclusive function.
[0070] Optionally, please refer to Figure 5 , Figure 5 This is a logical architecture diagram of a mutual exclusion function control method provided in an embodiment of this application. Figure 5 As shown, taking two mutually exclusive functions as an example, represented by function control A and function control B respectively, each mutually exclusive function in the set of mutually exclusive function controls is controlled by a dedicated function control. Therefore, a separate setting channel can be established between each control and its corresponding function's counterpart to specifically send the setting signal corresponding to that function. That is, in this embodiment, after determining the adjustment signal corresponding to each mutually exclusive function based on the adjustment operation, these adjustment signals are further sent to the underlying counterpart of the corresponding mutually exclusive function through the setting channel of the corresponding mutually exclusive function. This distributed setting channel facilitates the management and maintenance of the function controls in the set of mutually exclusive function controls.
[0071] S406. Receive status signals from each underlying counterpart and determine whether the underlying counterpart corresponding to the status signal is in the function-enabled state based on the signal value in the status signal.
[0072] Optionally, for functions with multiple levels or modes, the corresponding function controls can also have multiple adjustable levels, where each level represents a different degree of adjustment of the underlying control. Preferably, each function control can be implemented using a control component containing multiple sub-controls, where each sub-control corresponds to a different adjustment level. Users interact with different sub-controls to trigger the adjustment signals for the corresponding function and level, and the interactive effects of each sub-control will change according to user operations.
[0073] Optionally, in a conventional setting, each underlying component should also provide feedback signals through an independent feedback channel with the control. However, in this embodiment, to facilitate the judgment of feedback signals, a strategy layer is set in the control system specifically for managing feedback signals of at least two mutually exclusive functions. Please refer to the following for details. Figure 5Based on the strategy layer, the return format and content of the status signals of multiple mutually exclusive functions can be standardized. The underlying counterparts are configured to determine the signal values in the status signals based on the working level, allowing the strategy layer to determine whether the underlying counterparts corresponding to the status signals are in the function-on state based on the signal values in the status signals. For example, in a vehicle, seat heating and seat ventilation functions each have 3 adjustable levels. When there is a feedback signal value of 0, it means that the corresponding function is at level 0 (i.e., off); when there are feedback signal values of 1 / 2 / 3, it means that the corresponding function is not at level 0 (i.e., on). The actual level corresponds one-to-one with the specific signal value.
[0074] S408. If yes, return the status signal to the function control corresponding to the status signal; otherwise, ignore the status signal.
[0075] For details regarding step S408, please refer to the description in step S208; it will not be repeated here.
[0076] S410. If no status signal is received from the underlying counterpart that is in the function-enabled state within the first preset time period, then obtain the current status signal of each underlying counterpart.
[0077] Optionally, while waiting for a valid status signal, a first preset time is set as a waiting time threshold. If a status signal from a lower-level device in the enabled state is received within the first preset time, the process is normally returned to the upper layer. However, if no status signal from a lower-level device in the enabled state is received within the first preset time, it indicates that an anomaly or malfunction may have occurred. In this case, it is necessary to actively acquire the current status signal of each device to adjust the state of controls in the interactive interface based on the current state of each lower-level device, thereby maintaining the consistency between the control state and the underlying state. This active acquisition step is achieved by querying the status register of the lower-level device and sending status query commands to ensure that the acquired status information is up-to-date and accurate.
[0078] S412. Determine whether there is a target current status signal from the underlying control that is in the enabled state; if there is, return the target current status signal to the function control corresponding to the target current status signal; if there is no target current status signal, return any current status signal to the close control.
[0079] Furthermore, based on the signal value and / or function status identifier in the status signal, it is determined whether there is a target current status signal originating from a lower-level device that is in the function-on state. If the signal value is not 0 and / or the function status identifier is the function-on state identifier, it means that there is a status signal corresponding to the function-on state, and it can be returned to the corresponding upper-level control; if the signal value is 0 and / or the function status identifier is the function-off state identifier, it means that the underlying state of the lower-level device is off at this time, so any off signal can be returned to the off control.
[0080] In addition to the methods described in steps S410-S412, actively acquiring the current state signal of the underlying counterpart can also be achieved through the following steps:
[0081] S414. Determine the intention adjustment function corresponding to the adjustment operation. If no status signal is received from the underlying device in the function-on state within the second preset time period, obtain the current status signal corresponding to the underlying device of the intention adjustment function and return the current status signal to the function control corresponding to the intention adjustment function.
[0082] Optionally, considering that when a user operates on a certain functional control, they definitely want to change the state or level of that function, which means that the user is more concerned about whether the state of the function is adjusted to their expectations, this function is the user's intention adjustment function. Therefore, if no valid signal is received normally after a certain period of time after the signal is sent, the current state of the intention adjustment function can be actively obtained and the current signal of the intention function can be returned to the upper-level control to meet the user's adjustment needs for the target function.
[0083] Specifically, after acquiring the adjustment operation, the system first determines the intended adjustment function. Then, within a second preset time period, it monitors whether the status signal from the underlying device that is in the enabled state is received normally. If not received, the system actively acquires the current operating status information of the underlying device corresponding to the intended adjustment function, i.e., its corresponding current status signal. After successfully acquiring the current status signal, the system returns this information to the function control corresponding to the intended adjustment function. By feeding back the actual status of the underlying device to the user, the user can intuitively understand whether the adjustment operation was successfully executed or whether there are any problems that need to be solved, providing the user with a more reliable and efficient adjustment operation experience.
[0084] This application provides a method for controlling mutually exclusive functions. Based on adjustment operations, adjustment signals corresponding to at least two mutually exclusive functions are determined. Each adjustment signal is then sent to the underlying counterpart of the corresponding mutually exclusive function through its corresponding setting channel. Separate setting channels are established between each control and its counterpart. This distributed setting channel facilitates the management and maintenance of functional controls within the set of mutually exclusive function controls. Each functional control may include multiple adjustable levels, each corresponding to a different degree of function adjustment. Users can adjust the target functional module to different degrees by operating the controls. For controls and functions with multiple adjustment levels, all levels are uniformly represented by numerical values, so the signal value determines whether the current function is enabled. A waiting time threshold is set for the feedback signal of the counterpart in the enabled state. If no status signal from the underlying counterpart in the enabled state is received within a first preset time, the current status signal of each counterpart is actively acquired, and the signal to be uploaded to the upper layer is selected based on the actual situation of these current status signals. Alternatively, when a user performs an adjustment operation, the corresponding intent function can be recorded first. If no valid status signal is received within the specified second preset time period, the user can actively request the current status signal from the corresponding control of the intent function and return the current signal of the intent function to the upper layer control to meet the user's adjustment needs for the target function.
[0085] Please see Figure 6 , Figure 6 This is a structural block diagram of a mutual exclusion function control device provided in an embodiment of this application. Figure 6 As shown, the mutual exclusion function control device 600 includes:
[0086] The operation response module 610 is used to obtain the adjustment operation of the function control in the set of mutual exclusion function control. The set of mutual exclusion function control includes at least two function controls for enabling at least two mutual exclusion functions and a close control for disabling each mutual exclusion function. Each function control corresponds to only one mutual exclusion function, and at least two mutual exclusion functions support only one function being enabled at any given time.
[0087] The signal sending module 620 is used to determine the adjustment signals corresponding to at least two mutually exclusive functions based on the adjustment operation, and send each adjustment signal to the underlying counterpart of the corresponding mutually exclusive function.
[0088] The feedback judgment module 630 is used to receive status signals from each underlying counterpart and determine whether the status signal originates from an underlying counterpart that is in the function-enabled state.
[0089] The feedback upload module 640 is used to return the status signal to the corresponding functional control if the status signal is true, and to ignore the status signal if the status signal is not true.
[0090] Optionally, the signal transmission module 620 is also used to transmit each adjustment signal to the underlying counterpart of the corresponding mutual exclusion function through the setting channel of the corresponding mutual exclusion function.
[0091] Optionally, the mutual exclusion function control device 600 further includes: a current state acquisition module, used to acquire the current state signal of each underlying counterpart if no state signal feedback is received from the underlying counterpart in the function-on state within a first preset time period; determine whether there is a target current state signal from the underlying counterpart in the function-on state; if there is, return the target current state signal to the function control corresponding to the target current state signal; if there is no target current state signal, return any current state signal to the close control.
[0092] Optionally, the mutual exclusion function control device 600 further includes: an intent recording module, used to determine the intent adjustment function corresponding to the adjustment operation; and an intent judgment module, used to obtain the current status signal corresponding to the underlying device of the intent adjustment function if no status signal feedback from the underlying device in the function-on state is received within a second preset time period, and return the current status signal to the function control corresponding to the intent adjustment function.
[0093] Optionally, the underlying counterpart is configured to add a functional status identifier to the status signal according to the working state; the feedback judgment module 630 is also used to determine whether the underlying counterpart corresponding to the status signal is in the function-on state based on the functional status identifier of the status signal.
[0094] Optionally, each function control in the set of mutually exclusive function controls has multiple adjustable levels, each level representing a different degree of adjustment for each underlying control.
[0095] Optionally, the underlying counterpart is configured to determine the signal value in the status signal based on the working position; the feedback judgment module 630 is also used to determine whether the underlying counterpart corresponding to the status signal is in the function-on state based on the signal value in the status signal.
[0096] Please see Figure 7 , Figure 7 This is a schematic diagram of the structure of a vehicle provided in an embodiment of this application. Figure 7 As shown, vehicle 700 may include: at least one vehicle processor 701, at least one network interface 704, user interface 703, memory 705, and at least one communication bus 702.
[0097] The communication bus 702 is used to enable communication between these components.
[0098] The user interface 703 may include a display screen and a camera. Optionally, the user interface 703 may also include a standard wired interface and a wireless interface.
[0099] The network interface 704 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface).
[0100] The vehicle processor 701 may include one or more processing cores. The vehicle processor 701 connects to various parts within the vehicle 700 using various interfaces and lines. It executes various functions and processes data by running or executing instructions, programs, code sets, or instruction sets stored in memory 705, and by calling data stored in memory 705. Optionally, the vehicle processor 701 may be implemented using at least one of the following hardware forms: Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The vehicle processor 701 may integrate one or more of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content to be displayed on the screen; and the modem handles wireless communication. It is understood that the modem may also be implemented as a separate chip without being integrated into the vehicle processor 701.
[0101] The memory 705 may include random access memory (RAM) or read-only memory (ROM). Optionally, the memory 705 may include a non-transitory computer-readable storage medium. The memory 705 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 705 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch function, sound playback function, image playback function, etc.), instructions for implementing the above-described method embodiments, etc.; the data storage area may store data involved in the above-described method embodiments, etc. Optionally, the memory 705 may also be at least one storage device located remotely from the aforementioned vehicle processor 701. Figure 7 As shown, the memory 705, which serves as a computer storage medium, may include an operating system, a network communication module, a user interface module, and a mutual exclusion function control program.
[0102] exist Figure 7 In the vehicle 700 shown, the user interface 703 is mainly used to provide an input interface for the user and to obtain the user input data; while the vehicle processor 701 can be used to call the mutual exclusion function control program stored in the memory 705 and specifically perform the following operations:
[0103] Get adjustment operations for the function controls in the set of mutual exclusion function controls. The set of mutual exclusion function controls includes at least two function controls for enabling at least two mutual exclusion functions and a close control for disabling each mutual exclusion function. Each function control corresponds to only one mutual exclusion function, and at least two mutual exclusion functions can only support one function to be enabled at any given time.
[0104] Based on the adjustment operation, determine the adjustment signals corresponding to at least two mutually exclusive functions respectively, and send each adjustment signal to the underlying counterpart of the corresponding mutually exclusive function;
[0105] Receive status signals from each underlying counterpart and determine whether the status signal originates from an underlying counterpart that is in the enabled state.
[0106] If yes, the status signal will be returned to the function control corresponding to the status signal; otherwise, the status signal will be ignored.
[0107] In some embodiments, when the vehicle processor 701 sends each adjustment signal to the underlying counterpart of the corresponding mutual exclusion function, it specifically performs the following steps: sending each adjustment signal to the underlying counterpart of the corresponding mutual exclusion function through the setting channel of the corresponding mutual exclusion function.
[0108] In some embodiments, after the vehicle processor 701 sends each adjustment signal to the underlying counterpart of the corresponding mutual exclusion function, it further performs the following steps: if no status signal is received from the underlying counterpart in the function-on state within a first preset time period, the current status signal of each underlying counterpart is obtained; it is determined whether there is a target current status signal from the underlying counterpart in the function-on state; if there is, the target current status signal is returned to the function control corresponding to the target current status signal; if there is no target current status signal, any current status signal is returned to the close control.
[0109] In some embodiments, the vehicle processor 701 further performs the following steps: determining the intention adjustment function corresponding to the adjustment operation; after the vehicle processor 701 sends each adjustment signal to the underlying counterpart of the corresponding mutual exclusion function, it further performs the following steps: if no status signal is received from the underlying counterpart in the function-on state within a second preset time period, the current status signal corresponding to the underlying counterpart of the intention adjustment function is obtained, and the current status signal is returned to the function control corresponding to the intention adjustment function.
[0110] In some embodiments, the underlying counterpart is configured to add a functional status identifier to the status signal according to the working state; when the vehicle processor 701 performs the step of determining whether the status signal originates from the underlying counterpart that is in the function-enabled state, it specifically performs the following steps: determining whether the underlying counterpart corresponding to the status signal is in the function-enabled state based on the functional status identifier of the status signal.
[0111] In some embodiments, each function control in the set of mutually exclusive function controls has multiple adjustable levels, and each level is used to represent different adjustment degrees of each underlying control.
[0112] In some embodiments, the underlying counterpart is configured to determine the signal value in the status signal based on the working position; when the vehicle processor 701 performs the step of determining whether the status signal originates from the underlying counterpart that is in the function-on state, it specifically performs the following steps: determining whether the underlying counterpart corresponding to the status signal is in the function-on state based on the signal value in the status signal.
[0113] This application 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 aforementioned method steps to implement a method for controlling a mutual exclusion function provided in the above embodiments.
[0114] This application also provides a computer program product that, when run on a computer, causes the computer to perform the aforementioned steps to implement a method for controlling a mutual exclusion function provided in the above embodiments.
[0115] In this application, the apparatus, computer-readable storage medium, computer program product or chip provided in the embodiments are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can be referred to the beneficial effects in the corresponding methods provided above, and will not be repeated here.
[0116] In the several 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 is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, 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 apparatuses or modules may be electrical, mechanical, or other forms.
[0117] The modules described as separate components may or may not be physically separate. Similarly, the components shown as modules may or may not be physical modules; they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of this embodiment, depending on actual needs.
[0118] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions. When these computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this specification are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in or transmitted through a computer-readable storage medium. The computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The aforementioned available media can be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., Digital Versatile Discs (DVDs)), or semiconductor media (e.g., Solid State Disks (SSDs)).
[0119] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
[0120] In addition, it should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, data stored, data displayed, etc.) and signals involved in the embodiments of this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0121] The foregoing has described specific embodiments of this application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than that shown in the embodiments and may still achieve the desired results. Furthermore, the processes depicted in the drawings do not necessarily require the specific or sequential order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0122] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0123] The above is a description of a mutual exclusion function control method, device, storage medium, and vehicle provided in this application. For those skilled in the art, based on the ideas of the embodiments of this application, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A method for controlling mutually exclusive functions, characterized in that, The method includes: Obtain adjustment operations for function controls in a set of mutual exclusion function controls. The set of mutual exclusion function controls includes at least two function controls for enabling at least two mutual exclusion functions and a close control for disabling each mutual exclusion function. Each function control corresponds to only one mutual exclusion function, and the at least two mutual exclusion functions support only one function being enabled at any given time. Based on the adjustment operation, the adjustment signals corresponding to the at least two mutual exclusion functions are determined respectively, and each adjustment signal is sent down to the underlying counterpart of the corresponding mutual exclusion function. Receive status signals from each of the underlying counterparts and determine whether the status signals originate from underlying counterparts that are in the function-enabled state. If yes, the status signal is returned to the function control corresponding to the status signal; otherwise, the status signal is ignored. After sending each adjustment signal to the underlying counterpart of the corresponding mutual exclusion function, the process also includes: If no status signal is received from the underlying counterpart in the function-enabled state within the first preset time period, the current status signal of each underlying counterpart is obtained by querying the status register of the underlying counterpart or by sending a status query command to the underlying counterpart. Determine whether there is a target current state signal originating from the underlying device that is in the enabled state; If it exists, the target current status signal is returned to the function control corresponding to the target current status signal; if it does not exist, any current status signal is returned to the close control.
2. The method according to claim 1, characterized in that, The step of sending each adjustment signal to the underlying counterpart of the corresponding mutual exclusion function includes: Each adjustment signal is sent to the underlying counterpart of the corresponding mutual exclusion function through the setting channel of the corresponding mutual exclusion function.
3. The method according to claim 1, characterized in that, The method further includes: Determine the intended adjustment function corresponding to the adjustment operation; After sending each adjustment signal to the underlying counterpart of the corresponding mutual exclusion function, the process also includes: If no status signal is received from the underlying device that is in the enabled state within the second preset time period, the current status signal corresponding to the underlying device of the intent adjustment function is obtained, and the current status signal is returned to the function control corresponding to the intent adjustment function.
4. The method according to claim 1, characterized in that, The underlying device is configured to add functional status identifiers to status signals based on the working status; The step of determining whether the status signal originates from a lower-level device that is in a function-enabled state includes: Based on the functional status identifier of the status signal, determine whether the underlying counterpart of the status signal is in the function-enabled state.
5. The method according to claim 1, characterized in that, Each function control in the set of mutually exclusive function controls has multiple adjustable levels, and each level is used to represent different adjustment degrees of each underlying component.
6. The method according to claim 5, characterized in that, The underlying device is configured to determine the signal value in the status signal based on the working gear. The step of determining whether the status signal originates from a lower-level device that is in a function-enabled state includes: The underlying device corresponding to the status signal is determined to be in a function-enabled state based on the signal value in the status signal.
7. A mutual exclusion function control device, characterized in that, The device includes: An operation response module is used to obtain adjustment operations for the function controls in the set of mutual exclusion function controls. The set of mutual exclusion function controls includes at least two function controls for enabling at least two mutual exclusion functions and a close control for disabling each mutual exclusion function. Each function control corresponds to only one mutual exclusion function, and the at least two mutual exclusion functions only support one function to be enabled at any given time. The signal sending module is used to determine the adjustment signals corresponding to the at least two mutual exclusion functions based on the adjustment operation, and send each adjustment signal to the underlying counterpart of the corresponding mutual exclusion function; The feedback judgment module is used to receive status signals from each of the underlying counterparts and to determine whether the status signals originate from the underlying counterparts that are in the function-enabled state. The feedback upload module is used to return the status signal to the corresponding function control if the status signal is true, and ignore the status signal if the status signal is not true. The current status acquisition module is used to, after sending each adjustment signal to the underlying counterpart of the corresponding mutual exclusion function, if no status signal is received from the underlying counterpart in the function-on state within a first preset time period, obtain the current status signal of each underlying counterpart by querying the status register of the underlying counterpart or sending a status query command to the underlying counterpart; determine whether there is a target current status signal from the underlying counterpart in the function-on state; if there is, return the target current status signal to the function control corresponding to the target current status signal; if there is no target current status signal, return any current status signal to the shutdown control.
8. A vehicle, characterized in that, The vehicles include: Memory, used to store executable program code; A processor for calling and running the executable program code from the memory, causing the vehicle to perform the method as described in any one of claims 1 to 6.
9. 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 6.