Switch control method, storage medium and vehicle

By recording the user's operating status in the control method of the intelligent switch and automatically performing it when the specific working conditions are met, the problem of users needing real-time attention and repeated operations is solved, the consistency between the switch status and user intention is achieved, and the operation convenience is improved.

CN120057015APending Publication Date: 2025-05-30BEIJING CAVAN NEW ENERGY AUTOMOTIVE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411516796.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-28
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

In the prior art, smart switches require users to pay attention and repeatedly operate in real time when the vehicle state changes, resulting in complex and inconvenient operation.

Method used

A switch control method is proposed, by recording the operating state when the user operates the intelligent switch, and automatically performing memory operations when the vehicle operating condition state meets the conditions for performing the operation, ensuring that the switch state is consistent with the user's intention.

Benefits of technology

There is no need for users to pay attention to the vehicle status in real time, nor do they need to repeatedly operate the smart switch, which achieves the consistency between the switch status and the user's intentions, and improves operation convenience and safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120057015A_ABST
    Figure CN120057015A_ABST
Patent Text Reader

Abstract

The invention discloses a switch control method, a storage medium and a vehicle, and the method comprises the steps: when a user operates a target switch, if the working condition state of the vehicle does not meet the working condition for executing the operation, memorizing the operation, and obtaining the memorized operation; and when it is determined that the working condition state of the vehicle meets the working condition for executing the operation, the target switch is controlled according to the memory operation, and the target switch executes the memory operation. According to the method, when a user operates a target switch according to the intention of the user, it is detected that the working condition of the vehicle does not meet the working condition of operation execution and the memory operation, and when it is determined that the working condition of the vehicle meets the working condition of operation execution, the target switch is controlled according to the memory operation, and the user does not need to pay attention to the vehicle state in real time; the user does not need to repeatedly operate the target switch, and the switch state can be kept consistent with the user intention.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of vehicles, and in particular, to a control method for a switch, a storage medium, and a vehicle. Background Art

[0002] After an operation is performed on a switch, the switch immediately changes its status value and sends a control command according to the switch status. It does not use the information from the CAN to update the status of the currently adjusted function within a time range of 300 ms - 2S, and then updates the status according to the information on the CAN after 300 ms - 2S, and displays and sends the updated status. Among them, the intelligent switch can automatically jump according to user operations or preset working conditions. For example, the ESC (Electronic Stability Control) switch will automatically turn on when the vehicle speed is relatively high. When the vehicle speed decreases and meets the closing condition, the ESC switch will not automatically turn off. When a user operates the intelligent switch, in order to make the intelligent switch execute the operation, the user needs to pay attention to the vehicle status, or repeatedly operate the ESC switch. Summary of the Invention

[0003] The present invention aims to at least solve one of the technical problems in the related art to some extent. For this purpose, an object of the present invention is to provide a control method for a switch, which does not require the user to continuously pay attention to the vehicle status, nor does it require the user to repeatedly operate the target switch, and can keep the switch status consistent with the user's intention.

[0004] A second object of the present invention is to provide a computer-readable storage medium.

[0005] A third object of the present invention is to provide a vehicle.

[0006] To achieve the above object, an embodiment of the first aspect of the present invention provides a control method for a switch, which is used for a vehicle. The method includes: when a user operates a target switch, if the working condition state of the vehicle does not meet the working condition for executing the operation, memorize the operation to obtain a memorized operation; when it is determined that the working condition state of the vehicle meets the working condition for executing the operation, control the target switch according to the memorized operation so that the target switch executes the memorized operation.

[0007] According to the control method for a switch of the embodiment of the present invention, when a user operates a target switch according to his intention, it is detected that the working condition state of the vehicle does not meet the working condition for executing the operation, and the operation is memorized. When it is determined that the working condition state of the vehicle meets the working condition for executing the operation, the target switch is controlled according to the memorized operation. The embodiment of the present invention does not require the user to continuously pay attention to the vehicle status, nor does it require the user to repeatedly operate the target switch, and can keep the switch status consistent with the user's intention.

[0008] In addition, the control method of the switch proposed according to the above embodiments of the present invention may further have the following additional technical features:

[0009] According to an embodiment of the present invention, the method further includes: if the target function module fails, when it is determined that the operating condition state of the vehicle meets the operating condition for performing the operation, controlling the target switch according to the memorized operation, where the target function module is the function module controlled by the target switch.

[0010] According to an embodiment of the present invention, before determining that the operating condition state of the vehicle meets the operating condition for performing the operation, the method further includes: monitoring the operating condition state of the vehicle and determining whether the operating condition state meets the operating condition for performing the operation.

[0011] According to an embodiment of the present invention, the method further includes: when the user operates the target switch, if the operating condition state of the vehicle meets the operating condition for performing the operation, memorizing the operation and the operating condition state of the vehicle when the user operates the target switch to obtain the memorized operation and the first memorized operating condition; when it is determined that the operating condition state of the vehicle is consistent with the first memorized operating condition, controlling the target switch according to the memorized operation.

[0012] According to an embodiment of the present invention, the method further includes: while memorizing the operation, memorizing the operating condition state of the vehicle when the user operates the target switch to obtain the second memorized operating condition; when it is determined that the operating condition state of the vehicle is consistent with the second memorized operating condition, monitoring the operating condition state of the vehicle, and when the operating condition state of the vehicle meets the operating condition for performing the operation, controlling the target switch according to the memorized operation.

[0013] According to an embodiment of the present invention, the method further includes: while memorizing the operation, issuing a reminder that the target switch has not performed the operation; the method further includes: closing the reminder after the function state of the target function module is turned on or off.

[0014] According to an embodiment of the present invention, before controlling the target switch according to the memorized operation, the method further includes: determining that the memory attribute of the target switch is in an enabled state; determining that the memory attribute of the target switch is in an enabled state includes: determining that the target switch is a switch in a preset switch list.

[0015] According to an embodiment of the present invention, the target switch at least includes one of: a switch that is manually turned on or off after meeting the first preset operating condition, a switch that is automatically turned on or off after meeting the second preset operating condition, and a switch that is abnormally turned off due to a function and automatically turned on after the fault is restored.

[0016] To achieve the above object, an embodiment of the second aspect of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the control method of the switch proposed in the embodiment of the first aspect of the present invention is implemented.

[0017] To achieve the above object, an embodiment of the third aspect of the present invention provides a vehicle, including a switch and a controller. The controller includes a memory and a processor. A computer program is stored on the memory. When the computer program is executed by the processor, the control method of the switch proposed in the embodiment of the first aspect of the present invention is implemented.

[0018] Additional aspects and advantages of the present invention will be given in part in the following description, become apparent in part from the following description, or be learned through the practice of the present invention. Description of the Drawings

[0019] Figure 1 is a flowchart of the control method of the switch according to an embodiment of the present invention;

[0020] Figure 2 is a flowchart of the control method of the switch according to a specific embodiment of the present invention;

[0021] Figure 3 is a flowchart of the control method of the switch according to another specific embodiment of the present invention;

[0022] Figure 4 is a flowchart of the control method of the switch according to yet another specific embodiment of the present invention;

[0023] Figure 5 is a flowchart of the control method of the switch according to still another specific embodiment of the present invention;

[0024] Figure 6 is a control flowchart of the soft switch memory attribute in a non-enabled state according to an embodiment of the present invention;

[0025] Figure 7 is a control flowchart of the soft switch memory attribute in an enabled state according to an embodiment of the present invention;

[0026] Figure 8 is a control flowchart of the hard switch memory attribute in a non-enabled state according to an embodiment of the present invention;

[0027] Figure 9 is a control flowchart of the hard switch memory attribute in an enabled state according to an embodiment of the present invention;

[0028] Figure 10 is a block diagram of the structure of the controller according to an embodiment of the present invention;

[0029] Figure 11It is a schematic diagram of a vehicle according to an embodiment of the present invention. Detailed implementation manners

[0030] The embodiments of the present invention will be described in detail below. Examples of the embodiments are shown in the accompanying drawings, where the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to explain the present invention, and should not be construed as limiting the present invention.

[0031] The control method of the switch, the storage medium, and the vehicle according to the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings of the specification and specific implementation manners.

[0032] The control method of the switch according to the embodiment of the present invention can be used for a vehicle.

[0033] Figure 1 It is a flowchart of the control method of the switch according to an embodiment of the present invention. As Figure 1 shown, the control method of the switch may include:

[0034] S101, when the user operates the target switch, if the working condition state of the vehicle does not meet the working condition requirements for the operation, memorize the operation to obtain a memorized operation;

[0035] S102, when it is determined that the working condition state of the vehicle meets the working condition requirements for the operation, control the target switch according to the memorized operation to make the target switch execute the memorized operation.

[0036] Specifically, as Figure 2 shown, the user operates the target switch according to his intention. When the system monitors that the user operates the target switch, it detects the working condition state of the vehicle and determines whether the working condition state of the vehicle meets the working condition requirements for the operation.

[0037] If the working condition state of the vehicle does not meet the working condition requirements for the operation, memorize the operation to obtain a memorized operation. And monitor the working condition state of the vehicle to determine whether the working condition state meets the working condition requirements for the operation. When it is determined that the working condition state of the vehicle meets the working condition requirements for the operation, control the target switch according to the memorized operation to make the target switch execute the memorized operation, so that the user does not need to pay attention to the vehicle state in real time, and the user operation can also be reduced, making the state of the target switch consistent with the user's Figure 1 intention.

[0038] It should be noted that the working condition state of the vehicle meets the working condition requirements for the operation means that the working condition state of the vehicle meets the working condition requirements for the operation and the functional state of the target switch is normal.

[0039] The control method of the switch according to the embodiment of the present invention detects that the working condition of the vehicle does not meet the working condition requirements for executing the operation when the user operates the target switch according to his intention, memorizes the operation, and controls the target switch according to the memorized operation when it is determined that the working condition of the vehicle meets the working condition requirements for executing the operation. The embodiment of the present invention does not require the user to pay attention to the vehicle state in real time, nor does it require the user to repeatedly operate the target switch, and can keep the switch state consistent with the user's intention.

[0040] In an embodiment of the present invention, before it is determined that the working condition of the vehicle meets the working condition requirements for executing the operation, the control method of the switch further includes:

[0041] Monitoring the working condition of the vehicle and determining whether the working condition meets the working condition requirements for executing the operation.

[0042] Specifically, comparing the monitored working condition of the vehicle with the working condition requirements for executing the operation. If the working condition of the vehicle meets the working condition requirements for executing the operation, it can be determined that the working condition of the vehicle meets the working condition requirements for executing the operation. If the working condition of the vehicle does not meet the working condition requirements for executing the operation, it can be determined that the working condition of the vehicle does not meet the working condition requirements for executing the operation.

[0043] In an embodiment of the present invention, as Figure 3 shown, if the target function module fails, when it is determined that the working condition of the vehicle meets the working condition requirements for executing the operation, the target switch is controlled according to the memorized operation, where the target function module is the function module controlled by the target switch.

[0044] Specifically, after the target switch executes the memorized operation, if the function module of the target switch is abnormal and fails, resulting in the target switch being unable to execute the memorized operation, monitor the working condition of the vehicle and determine whether the working condition meets the working condition requirements for executing the operation, such as whether the function module of the target switch recovers. When it is determined that the working condition of the vehicle meets the working condition requirements for executing the operation, control the target switch according to the memorized operation again to make the target switch execute the memorized operation.

[0045] In a feasible embodiment of the present invention, as Figure 4 shown, the control method of the switch further includes:

[0046] When the user operates the target switch, if the working condition of the vehicle meets the working condition requirements for executing the operation, memorize the operation and the working condition of the vehicle when the user operates the target switch to obtain the memorized operation and the first memorized working condition;

[0047] When it is determined that the working condition of the vehicle is consistent with the first memorized working condition, control the target switch according to the memorized operation.

[0048] Specifically, asFigure 4 As shown, the user operates the target switch according to their intention. When the system detects that the user operates the target switch, it detects the working condition of the vehicle and determines whether the working condition of the vehicle meets the working condition requirements for executing the operation. If the working condition of the vehicle meets the working condition requirements for executing the operation, it controls the target to execute the operation. Among them, when the user operates the target switch under this working condition, it indicates that in this case, the user has the intention to operate the target switch. Therefore, when the user operates the target switch and the working condition of the vehicle meets the working condition requirements for executing the operation, while memorizing this operation, the working condition of the vehicle when the user operates the target switch is also memorized, and this working condition is recorded as the first memorized working condition. When monitoring the working condition of the vehicle, it is determined whether the working condition of the vehicle is consistent with the first memorized working condition. When it is determined that the working condition of the vehicle is consistent with the first memorized working condition, the target switch is controlled according to the memorized operation, so that when the working condition of the vehicle is consistent with the first memorized working condition, the user's operation intention can be realized without the user operating the target switch.

[0049] In a feasible embodiment of the present invention, as Figure 5 shown, the control method of the switch further includes:

[0050] While memorizing the operation, the working condition of the vehicle when the user operates the target switch is memorized to obtain the second memorized working condition;

[0051] When it is determined that the working condition of the vehicle is consistent with the second memorized working condition, the working condition of the vehicle is monitored, and when the working condition of the vehicle meets the working condition requirements for executing the operation, the target switch is controlled according to the memorized operation.

[0052] Specifically, as Figure 5 shown, the user operates the target switch according to their intention. When the system detects that the user operates the target switch, it detects the working condition of the vehicle and determines whether the working condition of the vehicle meets the working condition requirements for executing the operation. If the working condition of the vehicle does not meet the working condition requirements for executing the operation, while memorizing this operation, the working condition of the vehicle when the user operates the target switch is also memorized, and this working condition is recorded as the second memorized working condition. Among them, when the user operates the target switch under this second memorized working condition, it indicates that in this case, the user has the intention to operate the target switch. Therefore, during the process of monitoring the working condition of the vehicle, it is determined whether the working condition of the vehicle is consistent with the second memorized working condition. When it is determined that the working condition of the vehicle is consistent with the second memorized working condition, the working condition of the vehicle continues to be monitored, and when the working condition of the vehicle meets the working condition requirements for executing the operation, the target switch is controlled according to the memorized operation. So that when the working condition of the vehicle is consistent with the second memorized working condition, the user's operation intention can be realized without the user operating the target switch.

[0053] In an embodiment of the present invention, before controlling the target switch according to the memory operation, the control method of the switch further includes:

[0054] Determine that the memory attribute of the target switch is in an enabled state.

[0055] Specifically, before controlling the target switch according to the memory operation, determine whether the memory attribute of the target switch is in an enabled state. If the memory attribute of the target switch is in an enabled state, control the target switch according to the memory operation. If the memory attribute of the target switch is in a non-enabled state, do not control the target switch according to the memory operation.

[0056] In a specific embodiment of the present invention, determining that the memory attribute of the target switch is in an enabled state may include:

[0057] Determine that the target switch is a switch in a preset switch list.

[0058] Specifically, it can be determined whether the memory attribute of the target switch is in an enabled state by determining whether the target switch is in the preset switch list. If the target switch is in the preset switch list, it means that the memory attribute of the target switch is in an enabled state. If the target switch is not in the preset switch list, it means that the memory attribute of the target switch is in a non-enabled state.

[0059] It should be noted that the memory attribute of the target switch can be enabled or disabled by deleting or adding switches in the preset switch list. Specifically, the user can select whether the target switch has a memory attribute and whether to remember the working conditions according to needs. Specifically, the user can add or delete switches in the preset switch list. For the switches in the preset switch list, the user sets the memory attribute to the enabled state, and for the deleted switches, the user sets the memory attribute to the non-enabled state.

[0060] In an embodiment of the present invention, when memorizing the first memory working condition and / or the second memory working condition, it can be determined whether to memorize the first memory working condition and / or the second memory working condition according to the number of times the user performs this operation under this working condition. For example, if the number of times the user performs this operation under this working condition is greater than the preset number of times, memorize this working condition.

[0061] The embodiment of the present invention meets the requirements of some special function switches by adding the user operation memory attribute of the switch while being compatible with the traditional scheme.

[0062] According to an embodiment of the present invention, the control method of the switch further includes: while performing the memory operation, issuing a reminder that the target switch has not performed the operation;

[0063] The control method of the switch further includes: turning off the reminder after the function state of the target function module is turned on or off.

[0064] Specifically, to remind the user, when the target switch does not execute the user operation, a reminder that the target switch does not execute the operation is issued. For example, a pop-up reminder is made on the central control screen of the vehicle, or the display of the target switch is dimmed. After the target switch executes the operation, that is, after the function state of the function module corresponding to the target switch is turned on or off, the reminder is turned off.

[0065] The target switch in the embodiments of the present invention can be a soft switch and a hard switch.

[0066] In an implementable example, if the target switch is a soft switch, a user operation memory layer can be set based on the soft switch to memorize the user operation, or to memorize the user operation and the first memory working condition and / or the second memory working condition, and store the memorized operation and / or the corresponding memory working condition.

[0067] In an implementable example, if the target switch is a hard switch, a user operation memory module can be set based on the hard switch to memorize the user operation, or to memorize the user operation and the first memory working condition and / or the second memory working condition, and store the memorized operation and / or the corresponding memory working condition.

[0068] In an embodiment of the present invention, the memorized operations include an opening operation and a closing operation.

[0069] Specifically, if the state of the target switch is off before the user operation and the state of the target switch is on after the user operation, it can be determined that the user operation is an opening operation. If the state of the target switch is on before the user operation and the state of the target switch is off after the user operation, it can be determined that the user operation is a closing operation.

[0070] In an embodiment of the present invention, the target switch is a soft switch, and the memorized operations include an opening operation and a closing operation. Controlling the target switch according to the memorized operation includes:

[0071] If the memorized operation is an opening operation, control the target switch to send a start instruction to the target function module, and when sending the opening instruction to the target function module, dim the display of the opening state of the soft switch, or pop up a reminder on the central control screen of the vehicle that the target switch is not opened. After the function state of the target function module is turned on, restore the display of the opening state of the soft switch, or close the pop-up window;

[0072] If the memorized operation is a closing operation, control the target switch to send a closing instruction to the target function module, and when sending the closing instruction to the target function module, dim the display of the closing state of the soft switch, or pop up a reminder on the central control screen of the vehicle that the target switch is not closed. After the function state of the target function module is turned off, restore the display of the closing state of the soft switch, or close the pop-up window.

[0073] In the embodiments of the present invention, the target function module is a soft switch control component.

[0074] As a specific embodiment, for example Figure 6 As shown, when the user turns on the soft switch, the user memory operation layer memorizes this operation. The soft switch sends an on command to the soft switch control component based on the user operation. The switch control component executes this command, and the soft switch shows that it is on. If the operating condition of the vehicle does not meet the operating condition requirements for execution, such as a soft switch failure or the function execution condition is not met, after the function state is turned off, if the memory attribute of the soft switch is in a non-enabled state, the display of the soft switch is off, and a turn-off command is sent to the soft switch control component. Even if it is detected again that the operating condition of the vehicle meets the operating condition requirements for executing this operation, the soft switch and the soft switch control component are not controlled, and the function of the soft switch control component remains off.

[0075] For example Figure 7 As shown, when the memory attribute of the soft switch is in an enabled state, the soft switch is controlled according to the memory operation, and the display of the soft switch is on and grayed out. The graying out is to enable the user to understand that the function of this soft switch is in an unavailable state. The soft switch sends an on command to the soft switch control component. If it is detected that the operating condition of the vehicle meets the operating condition requirements for executing this operation, that is, the soft switch control component failure is restored or the function execution condition is met, the function state of the soft switch control component is turned on, and the soft switch control component function state on is fed back to the soft switch, and the soft switch display is normally on.

[0076] In an embodiment of the present invention, the target switch is a hard switch, and the memory operations include an on operation and an off operation. Controlling the target switch according to the memory operation may include:

[0077] If the memory operation is an on operation, an on command is sent to the target switch, and an on command is sent to the target function module through the target switch;

[0078] If the memory operation is an off operation, an off command is sent to the target switch, and an off command is sent to the target function module through the target switch.

[0079] In an embodiment of the present invention, the hard switch may be a monostable hard switch, that is, the hard switch self-resets and is a single-state switch.

[0080] In an embodiment of the present invention, the target function module is a hard switch control component.

[0081] As a specific embodiment, for example Figure 8As shown, when the user turns on the hardware switch, the user operation memory module memorizes this operation, and the hard switch sends an on command to its control components according to the user's turn-on operation. If the operating condition of the vehicle does not meet the operating condition requirements for the operation, such as a hard switch failure or the function execution condition is not met, the function status remains off. When the memory attribute of the hard switch is in the non-enabled state, the user memory module of the hard switch does not further process the hard switch and its control components.

[0082] Such as Figure 9 As shown, when the memory attribute of the hard switch is in the enabled state, the user memory module of the hard switch monitors the operating condition of the vehicle. If the operating condition of the vehicle meets the operating condition requirements for the operation, it sends an on command to the target switch, and issues an on command to the hard switch control components through the target switch to activate the function of the hard switch control components.

[0083] The control method of the switch in the embodiment of the present invention, by adding a user operation memory layer for the soft switch or a user operation memory module for the hard switch, enables the user operation memory layer or the user operation memory module to be compatible with the conventional button scheme for buttons in the non-enabled state, and memorizes the user operation state when the memory attribute of the user operation memory layer or the user operation memory module is in the enabled state, and executes the user's operation command in the case of fault recovery or the function meeting the jump condition.

[0084] In an embodiment of the present invention, the target switch at least includes one of: a switch that is manually turned on or off after meeting the first preset operating condition, a switch that is automatically turned on or off after meeting the second preset operating condition, and a switch that is abnormally turned off and automatically turned on after fault recovery.

[0085] Exemplarily, the switch that is manually turned on or off after meeting the first preset operating condition can be a daytime running light switch, a hill descent control switch, an intelligent cruise assist switch, an active driving assistance lever switch, etc. For example, after manually turning on the daytime running light switch, when the sunlight sensor detects that the ambient brightness is less than the preset brightness value (the first preset operating condition), the daytime running light switch controls the corresponding components to turn on the lights. For example, before going downhill, manually turn on the hill descent control switch, and after meeting the vehicle gear being in the first gear or reverse gear (the first preset operating condition), the hill descent control switch controls the corresponding components to start intervening. It should be noted that the first preset operating condition is the operating condition corresponding to the execution of the response function after the manual switch is turned on or off.

[0086] Exemplarily, the switch that automatically turns on or off after meeting the second preset working condition can be a driving auto door lock switch, a parking auto unlock switch, an electronic stability control switch, a blind spot monitoring switch, a door opening warning switch, an LKA (Lane Keeping Assist) switch. For example, for the driving auto door lock switch, when the vehicle speed is greater than the preset vehicle speed (the second preset working condition), it automatically controls the corresponding components to perform the door lock operation. For example, for the blind spot monitoring switch, when it detects that the vehicle is turning or changing lanes (the second preset working condition), it automatically monitors the blind spot. It should be noted that the second preset working condition is the working condition corresponding to the execution of the response function after the automatic switch is turned on or off.

[0087] Exemplarily, the switch that is abnormally turned off and automatically turns on after the fault is restored can be a TRC / VSC / ABS OFF power switch, a CAR TRC switch, etc.

[0088] It should be noted that the control method of the switch in the embodiments of the present invention is not limited to vehicles, but also applicable to other devices with the above switches.

[0089] In the control method of the switch in the embodiments of the present invention, when the user operates the target switch according to his intention, if it is detected that the working condition state of the vehicle does not meet the working condition for executing the operation, the operation is memorized, and when it is determined that the working condition state of the vehicle meets the working condition for executing the operation, the target switch is controlled according to the memorized operation. The embodiments of the present invention do not require the user to pay attention to the vehicle state in real time, nor does it require the user to repeatedly operate the target switch, and can keep the switch state consistent with the user's intention.

[0090] The present invention provides a computer-readable storage medium.

[0091] In this embodiment, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the control method of the switch as described above is implemented.

[0092] The present invention provides a controller.

[0093] In this embodiment, the controller includes a memory and a processor. The memory stores a computer program. It is characterized in that when the computer program is executed by the processor, the control method of the switch as described above is implemented.

[0094] Figure 10 It is the structural block diagram of the controller in the embodiments of the present invention.

[0095] Such as Figure 10As shown, the controller 500 includes: a processor 501 and a memory 503. Among them, the processor 501 and the memory 503 are connected, such as connected through a bus 502. Optionally, the controller 500 may further include a transceiver 504. It should be noted that in practical applications, the transceiver 504 is not limited to one, and the structure of the controller 500 does not constitute a limitation to the embodiments of the present invention.

[0096] The processor 501 may be a CPU (Central Processing Unit, central processor), a general-purpose processor, a DSP (Digital Signal Processor, digital signal processor), an ASIC (Application Specific Integrated Circuit, application-specific integrated circuit), an FPGA (Field Programmable Gate Array, field programmable gate array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute various exemplary logical blocks, modules and circuits described in connection with the disclosure of the present invention. The processor 501 may also be a combination that realizes computing functions, such as a combination including one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0097] The bus 502 may include a path for transmitting information between the above components. The bus 502 may be a PCI (Peripheral Component Interconnect, peripheral component interconnect standard) bus or an EISA (Extended Industry Standard Architecture, extended industry standard architecture) bus, etc. The bus 502 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 10 only a thick line is used to represent it in the figure, but it does not mean that there is only one bus or one type of bus.

[0098] The memory 503 is used to store a computer program corresponding to the control method of the switch in the above embodiments of the present invention, and this computer program is controlled and executed by the processor 501. The processor 501 is used to execute the computer program stored in the memory 503 to implement the content shown in the foregoing method embodiments.

[0099] Among them, the controller 500 includes but is not limited to: mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc. and fixed terminals such as digital TVs, desktop computers, etc. Figure 10 The controller 500 shown is only an example and should not bring any limitation to the functions and usage scope of the embodiments of the present invention.

[0100] The present invention provides a vehicle.

[0101] Figure 11 It is a schematic diagram of a vehicle according to an embodiment of the present invention. As Figure 11 shown, the vehicle 1000 includes a switch 100 and a controller 500 as described above.

[0102] For the computer-readable storage medium, controller, and vehicle according to the embodiments of the present invention, based on the above control method of the switch, when the user operates the target switch according to his intention and it is detected that the operating condition state of the vehicle does not meet the operating condition for executing the operation, the operation is memorized, and when it is determined that the operating condition state of the vehicle meets the operating condition for executing the operation, the target switch is controlled according to the memorized operation. The embodiments of the present invention do not require the user to pay attention to the vehicle state in real time, nor do they require the user to repeatedly operate the target switch, and can keep the switch state consistent with the user's intention.

[0103] It should be noted that the logic and / or steps represented in the flowchart or described in other ways herein, for example, can be considered as a definite sequence list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, apparatus, or device (such as a computer-based system, a system including a processor, or other systems that can fetch and execute instructions from the instruction execution system, apparatus, or device), or in combination with these instruction execution systems, apparatus, or devices. For the purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. More specific examples (non-exhaustive list) of the computer-readable medium include the following: an electrical connection portion with one or more wirings (electronic device), a portable computer diskette (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium can even be paper or other suitable media on which the program can be printed, because the program can be obtained electronically, for example, by optically scanning the paper or other media, followed by editing, interpretation, or other appropriate processing as necessary, and then stored in a computer memory.

[0104] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, any one of the following techniques known in the art or a combination thereof can be used: discrete logic circuits having logic gate circuits for implementing logical functions on data signals, application specific integrated circuits having appropriate combinational logic gate circuits, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.

[0105] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples", etc. means that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.

[0106] In the description of the present invention, it should be understood that the orientation or positional relationships indicated by the terms "center", "longitudinal", "transverse", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", "axial", "radial", "circumferential", etc. are based on the orientation or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus should not be construed as a limitation of the present invention.

[0107] In addition, the terms "first" and "second" are only used for descriptive purposes and cannot be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include at least one of such features. In the description of the present invention, the meaning of "a plurality" is at least two, such as two, three, etc., unless otherwise specifically and clearly defined.

[0108] In the present invention, unless otherwise clearly defined or limited, terms such as "installed", "connected", "joined", "fixed", etc. shall be understood in a broad sense. For example, it may be a fixed connection, a detachable connection, or an integral one; it may be a mechanical connection or an electrical connection; it may be directly connected or indirectly connected through an intermediate medium, and it may be the internal communication of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0109] In the present invention, unless otherwise clearly defined or limited, the first feature being "on" or "under" the second feature may be that the first and second features are in direct contact, or the first and second features are indirectly in contact through an intermediate medium. Moreover, the first feature being "above", "over" and "on top of" the second feature may mean that the first feature is directly above or obliquely above the second feature, or merely indicates that the first feature has a higher horizontal height than the second feature. The first feature being "under", "below" and "beneath" the second feature may be that the first feature is directly below or obliquely below the second feature, or merely indicates that the first feature has a lower horizontal height than the second feature.

[0110] Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those of ordinary skill in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present invention.

Claims

1. A switch control method, characterized in that: For a vehicle, the method comprises: When the user operates the target switch, if the operating state of the vehicle does not meet the operating condition for executing the operation, the operation is memorized to obtain a memorized operation; When it is determined that the operating state of the vehicle satisfies the operating condition for executing the operation, the target switch is controlled according to the memory operation so that the target switch executes the memory operation.

2. The switch control method according to claim 1, characterized in that: The method further comprises: If the target function module fails, when it is determined that the operating state of the vehicle meets the operating conditions for executing the operation, the target switch is controlled according to the memory operation, wherein the target function module is a function module controlled by the target switch.

3. The switch control method according to claim 1 or 2, characterized in that: Before determining that the operating state of the vehicle satisfies the operating condition for performing the operation, the method further includes: The operating state of the vehicle is monitored to determine whether the operating state satisfies the operating conditions for executing the operation.

4. The switch control method according to claim 1, characterized in that: The method further comprises: When the user operates the target switch, if the operating state of the vehicle meets the operating condition for executing the operation, the operation and the operating state of the vehicle when the user operates the target switch are memorized to obtain the memorized operation and the first memorized operating condition; When it is determined that the operating state of the vehicle is consistent with the first memorized operating state, the target switch is controlled according to the memorized operation.

5. The switch control method according to claim 1, characterized in that: The method further comprises: While memorizing the operation, memorizing the operating state of the vehicle when the user operates the target switch to obtain a second memorized operating state; When it is determined that the operating state of the vehicle is consistent with the second memorized operating state, the operating state of the vehicle is monitored, and when the operating state of the vehicle meets the operating conditions for performing the operation, the target switch is controlled according to the memorized operation.

6. The switch control method according to claim 1, characterized in that: The method further comprises: While memorizing the operation, issuing a reminder that the target switch has not performed the operation; The method further comprises: After the function state of the target function module is turned on or off, the reminder is turned off.

7. The switch control method according to claim 1, characterized in that: Before controlling the target switch according to the memory operation, the method further includes: Determining that the memory attribute of the target switch is in an enabled state; the determining that the memory attribute of the target switch is in an enabled state includes: The target switch is determined to be a switch in a preset switch list.

8. The switch control method according to claim 1, characterized in that: The target switch includes at least one of: a switch that is manually turned on or off after a first preset operating condition is met, a switch that is automatically turned on or off after a second preset operating condition is met, and a switch that is turned off due to a functional abnormality and automatically turned on after the fault is recovered.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the switch control method according to any one of claims 1 to 8 is implemented.

10. A vehicle, characterized in that: The invention comprises a switch and a controller, wherein the controller comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the control method of the switch according to any one of claims 1 to 8 is implemented.