CN106648876B - Operation mode switching method and device - Google Patents

Operation mode switching method and device Download PDF

Info

Publication number
CN106648876B
CN106648876B CN201611265454.7A CN201611265454A CN106648876B CN 106648876 B CN106648876 B CN 106648876B CN 201611265454 A CN201611265454 A CN 201611265454A CN 106648876 B CN106648876 B CN 106648876B
Authority
CN
China
Prior art keywords
mode
operation mode
switching
preset
low
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201611265454.7A
Other languages
Chinese (zh)
Other versions
CN106648876A (en
Inventor
刘东旭
丁一
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Beijing Smartmi Technology Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Beijing Smartmi Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd, Beijing Smartmi Technology Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201611265454.7A priority Critical patent/CN106648876B/en
Publication of CN106648876A publication Critical patent/CN106648876A/en
Application granted granted Critical
Publication of CN106648876B publication Critical patent/CN106648876B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system

Abstract

The disclosure discloses an operation mode switching method and device, and belongs to the field of automatic control. The method comprises the following steps: receiving mode switching operation for switching the current ith operation mode, detecting whether the (i +1) th operation mode belongs to a low-frequency use mode, if the (i +1) th operation mode belongs to the low-frequency use mode, re-determining the (i +1) th operation mode according to a preset sequence, and detecting whether the (i +1) th operation mode belongs to the low-frequency use mode again; if the (i +1) th operation mode belongs to the high-frequency use mode, switching to the (i +1) th operation mode according to mode switching operation; because the terminal equipment is not sequentially switched according to the preset sequence according to the mode switching operation, the terminal equipment does not need to be manually triggered by a user to skip some operation modes, but can directly skip the operation mode with lower selection probability to switch to the operation mode with higher selection probability, and the switching efficiency of the terminal equipment in switching the operation modes is improved.

Description

Operation mode switching method and device
Technical Field
The present disclosure relates to the field of automatic control, and in particular, to a method and an apparatus for switching an operation mode.
Background
The household appliances such as the air purifier, the air conditioner and the humidifier generally comprise at least two operation modes, a user can switch the operation mode of the household appliance through a control key provided by the household appliance, and then the household appliance receives the mode switching operation of the user acting on the control key and switches to the operation mode corresponding to the control key according to the received mode switching operation.
The at least two operation modes of the household appliance can correspond to the same control key, and the household appliance is switched between the at least two operation modes corresponding to the control key in sequence according to the mode switching operation. For example, the "wind speed" button provided by the air conditioner corresponds to three operation modes of high wind, medium wind and low wind, the air conditioner switches in sequence according to the mode switching operation acting on the "wind speed" button according to the sequence of high wind, medium wind, low wind and high wind, when the air conditioner needs to switch from high wind to low wind, the air conditioner always needs to switch from high wind to medium wind first and then to low wind, and the switching efficiency is low.
Disclosure of Invention
In order to solve the problem that the switching efficiency is low when the household appliance is switched between at least two operation modes in sequence, the disclosure provides an operation mode switching method and device. The technical scheme is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided an operation mode switching method, including:
receiving a mode switching operation for switching the current ith operation mode, wherein the mode switching operation is used for indicating that sequential switching or cyclic switching is carried out between at least two operation modes according to a preset sequence, and the ith operation mode is any one of the at least two operation modes;
detecting whether the (i +1) th operation mode belongs to a low-frequency use mode, wherein the low-frequency use mode is an operation mode with the probability of being selected and used in at least two operation modes being smaller than the preset probability;
if the (i +1) th operation mode belongs to the low-frequency use mode, re-determining the (i +1) th operation mode according to a preset sequence, and detecting whether the (i +1) th operation mode belongs to the low-frequency use mode again;
and if the (i +1) th operation mode belongs to the high-frequency use mode, switching to the (i +1) th operation mode according to the mode switching operation, wherein the high-frequency use mode is the operation mode with the probability of reaching the preset probability in at least two operation modes.
Optionally, detecting whether the i +1 th operation mode is a low-frequency usage mode includes:
detecting whether an operation instruction corresponding to the (i +1) th operation mode comprises a preset identifier, wherein the preset identifier is generated when the historical use frequency of the (i +1) th operation mode meets a preset low-frequency condition;
if the operation instruction comprises a preset identifier, determining that the (i +1) th operation mode belongs to a low-frequency use mode;
and if the operation instruction does not comprise the preset identification, determining that the (i +1) th operation mode belongs to the high-frequency use mode.
Optionally, the method further includes:
acquiring the total times of switching to the (i +1) th operation mode in a preset time period;
detecting whether the total times is less than a preset time threshold value;
and if the total times are less than the preset times threshold value, adding a preset identifier in the operation instruction corresponding to the (i +1) th operation mode.
Optionally, the method further includes:
acquiring the total times of switching to the (i +1) th operation mode in a preset time period and the operation duration of each time when the (i +1) th operation mode is in;
detecting whether the proportion of the times of which the running time length is less than the preset time length in the total times reaches a preset proportion threshold value or not;
and if the proportion of the times of the operation duration being less than the preset time length in the total times reaches a preset proportion threshold, adding a preset identifier in the operation instruction corresponding to the (i +1) th operation mode.
Optionally, the method further includes:
receiving a recovery operation;
determining a target operation mode of the recovery operation instruction, wherein the target operation mode is a low-frequency use mode;
and marking the target operation mode as a high-frequency use mode according to the recovery operation.
Optionally, the method further includes:
receiving a reset operation;
each of the at least two operating modes is marked as a high frequency usage mode according to a reset operation.
According to a second aspect of the embodiments of the present disclosure, there is provided an operation mode switching apparatus including:
the device comprises a receiving module, a switching module and a control module, wherein the receiving module is configured to receive mode switching operation for switching the current ith operation mode, the mode switching operation is used for indicating that sequential switching or cyclic switching is carried out between at least two operation modes according to a preset sequence, and the ith operation mode is any one of the at least two operation modes;
the mode detection module is configured to detect whether the (i +1) th operation mode belongs to a low-frequency use mode, wherein the low-frequency use mode is an operation mode with the probability of being selected less than the preset probability in at least two operation modes;
the determining module is further configured to re-determine the (i +1) th operation mode according to a preset sequence if the (i +1) th operation mode belongs to the low-frequency use mode, and perform detection again to determine whether the (i +1) th operation mode belongs to the low-frequency use mode;
and the switching module is configured to switch to the (i +1) th operation mode according to the mode switching operation if the (i +1) th operation mode belongs to the high-frequency use mode, wherein the high-frequency use mode is an operation mode with the probability of reaching the preset probability in at least two operation modes.
Optionally, the mode detection module includes:
the detection submodule is configured to detect whether an operation instruction corresponding to the (i +1) th operation mode comprises a preset identifier, and the preset identifier is generated when the historical use frequency of the (i +1) th operation mode meets a preset low-frequency condition;
the first determining submodule is configured to determine that the (i +1) th operation mode belongs to the low-frequency use mode if the operation instruction comprises a preset identifier;
and the second determining submodule is configured to determine that the (i +1) th operation mode belongs to the high-frequency use mode if the predetermined identifier is not included in the operation instruction.
Optionally, the apparatus further comprises:
the first acquisition module is configured to acquire the total times of switching to the (i +1) th operation mode in a preset time period;
a number detection module configured to detect whether the total number of times is less than a predetermined number threshold;
and the first adding module is configured to add a preset identifier in the operation instruction corresponding to the (i +1) th operation mode if the total times is less than a preset time threshold.
Optionally, the apparatus further comprises:
the second acquisition module is configured to acquire the total times of switching to the (i +1) th operation mode in a preset time period and the operation duration of each time when the (i +1) th operation mode is achieved;
the proportion detection module is configured to detect whether the proportion of the times of the running time length being less than the preset time length in the total times reaches a preset proportion threshold value;
and the second adding module is configured to add a preset identifier in the operation instruction corresponding to the (i +1) th operation mode if the proportion of the times that the operation duration is less than the preset duration in the total times reaches a preset proportion threshold.
Optionally, the apparatus further comprises:
a first receiving module configured to receive a recovery operation;
a mode determination module configured to determine a target operation mode of the resume operation indication, the target operation mode being a low frequency usage mode;
a first marking module configured to mark the target operation mode as a high frequency usage mode according to a recovery operation.
Optionally, the apparatus further comprises:
a second receiving module configured to receive a reset operation;
a second marking module configured to mark each of the at least two operation modes as a high frequency usage mode according to a reset operation.
According to a third aspect of the embodiments of the present disclosure, there is provided an operation mode switching apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
receiving a mode switching operation for switching the current ith operation mode, wherein the mode switching operation is used for indicating that sequential switching or cyclic switching is carried out between at least two operation modes according to a preset sequence, and the ith operation mode is any one of the at least two operation modes;
detecting whether the (i +1) th operation mode belongs to a low-frequency use mode, wherein the low-frequency use mode is an operation mode with the probability of being selected and used in at least two operation modes being smaller than the preset probability;
if the (i +1) th operation mode belongs to the low-frequency use mode, re-determining the (i +1) th operation mode according to a preset sequence, and detecting whether the (i +1) th operation mode belongs to the low-frequency use mode again;
and if the (i +1) th operation mode belongs to the high-frequency use mode, switching to the (i +1) th operation mode according to the mode switching operation, wherein the high-frequency use mode is the operation mode with the probability of reaching the preset probability in at least two operation modes.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
by determining the (i +1) th operation mode according to a preset sequence when receiving a mode switching operation for switching the current (i) th operation mode, skipping the operation mode when detecting that the (i +1) th operation mode is a low-frequency use mode, and re-determining the (i +1) th operation mode for detection until detecting that the (i +1) th operation mode is a high-frequency use mode, the terminal device is switched to the (i +1) th operation mode according to the mode switching operation, and because the terminal device is not switched according to the preset sequence according to the mode switching operation, a user does not need to manually trigger to skip some operation modes, but can directly skip the operation mode with low probability of selection to switch to the operation mode with high probability of selection, the switching efficiency of the terminal device in switching the operation modes is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow chart illustrating a method of operating mode switching according to an exemplary embodiment;
FIG. 2 is a flow chart illustrating a method of operating mode switching according to another exemplary embodiment;
FIG. 3 is a flow chart illustrating a method of operating mode switching according to another exemplary embodiment;
FIG. 4 is a flow chart illustrating a method of operating mode switching in accordance with another exemplary embodiment;
FIG. 5 is a flow chart illustrating a method of operating mode switching according to another exemplary embodiment;
FIG. 6 is a flow chart illustrating a method of operating mode switching in accordance with another exemplary embodiment;
FIG. 7 is a block diagram illustrating an operating mode switching device in accordance with an exemplary embodiment;
fig. 8 is a block diagram illustrating an operation mode switching apparatus according to another exemplary embodiment;
fig. 9 is a block diagram illustrating an operation mode switching apparatus according to another exemplary embodiment;
fig. 10 is a block diagram illustrating an operation mode switching apparatus according to another exemplary embodiment;
fig. 11 is a block diagram illustrating an operation mode switching apparatus according to another exemplary embodiment;
fig. 12 is a block diagram illustrating an operation mode switching apparatus according to another exemplary embodiment;
fig. 13 is a block diagram illustrating an operation mode switching apparatus according to another exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The operation mode switching method provided by the embodiments of the present disclosure may be implemented by a terminal device including at least two operation modes, where the terminal device may be a household appliance such as an air conditioner, an air purifier, a humidifier, a fan, a washing machine, and an induction cooker, or an electronic device such as a mobile phone, a tablet computer, a camera, a portable computer, and a desktop computer, and a user may control the terminal device to switch between the at least two operation modes through the same control key.
Fig. 1 is a flowchart illustrating an operation mode switching method according to an exemplary embodiment, where as shown in fig. 1, the method is applied to the terminal device, and includes the following steps:
step 101, receiving a mode switching operation for switching the current i-th operation mode.
The mode switching operation is used for indicating sequential switching or cyclic switching between at least two operation modes according to a preset sequence, and the ith operation mode is any one of the at least two operation modes.
And 102, detecting whether the (i +1) th operation mode belongs to a low-frequency use mode.
The low-frequency use mode is an operation mode with the probability of being selected to be smaller than the preset probability in at least two operation modes, and the preset probability is a system preset value or a user-defined value.
And 103, if the (i +1) th operation mode belongs to the low-frequency use mode, re-determining the (i +1) th operation mode according to a preset sequence, and detecting whether the (i +1) th operation mode belongs to the low-frequency use mode again.
And 104, if the (i +1) th operation mode belongs to the high-frequency use mode, switching to the (i +1) th operation mode according to the mode switching operation.
The high-frequency using mode is an operation mode with the probability of reaching the preset probability in at least two operation modes.
In summary, the operation mode switching method provided in the embodiments of the present disclosure, when receiving a mode switching operation for switching the current i-th operation mode, determining the (i +1) th operation mode according to a preset sequence, skipping the operation mode when detecting that the (i +1) th operation mode is a low-frequency use mode, and the (i +1) th operation mode is determined again for detection until the (i +1) th operation mode is detected to be the high-frequency use mode, the operation mode is switched to the (i +1) th operation mode, because the terminal equipment is not switched according to the mode switching operation in turn according to the preset sequence, the terminal equipment does not need to be manually triggered by a user to skip certain operation modes, but can directly skip the operation mode with lower selection probability to switch to the operation mode with higher selection probability, thereby improving the switching efficiency of the terminal equipment when switching the operation mode.
Fig. 2 is a flowchart illustrating an operation mode switching method according to another exemplary embodiment, and as shown in fig. 2, the method is applied to the terminal device, and includes the following steps:
step 201, receiving a mode switching operation for switching the current i-th operation mode.
The mode switching operation is used for indicating sequential switching or cyclic switching between at least two operation modes according to a preset sequence.
Optionally, the preset sequence is a sequence for sequentially switching from the 1 st operation mode to the nth operation mode, n is the total number of the operation modes, and n is greater than or equal to 2. The cycle switch is: after the 1 st operation mode is sequentially switched to the nth operation mode according to the preset sequence, the nth operation mode is switched to the 1 st operation mode again, and the 1 st operation mode is switched sequentially according to the preset sequence again. That is, the switching process of the circular switching is as follows: the 1 st operation mode → the 2 nd operation mode … … → the n-1 st operation mode → the n th operation mode → the 1 st operation mode → the 2 nd operation mode … ….
Optionally, the preset sequence includes a first preset sequence and a second preset sequence, the first preset sequence is a sequence for sequentially switching from the 1 st operation mode to the nth operation mode, and the second preset sequence is a sequence for sequentially switching from the nth operation mode to the 1 st operation mode. The cycle switch is: after the operation modes are sequentially switched from the 1 st operation mode to the nth operation mode according to the first preset sequence, the operation modes are sequentially switched from the nth operation mode to the 1 st operation mode according to the second preset sequence, and the operation modes are sequentially switched from the 1 st operation mode again according to the first preset sequence. That is, the 1 st operation mode → the 2 nd operation mode … … → the n-1 st operation mode → the n th operation mode → the n-1 st operation mode … … → the 1 st operation mode → the 2 nd operation mode … ….
Various embodiments of the present disclosure are described by taking as an example a mode switching operation for instructing to sequentially switch or cyclically switch between at least two operation modes in an order of sequentially switching from the 1 st operation mode to the n-th operation mode.
Step 202, detecting whether the operation instruction corresponding to the (i +1) th operation mode includes a predetermined identifier.
Wherein, the (i +1) th operation mode is the latter operation mode of the (i) th operation mode when switching according to the preset sequence. When the mode switching operation is used for instructing to cyclically switch between at least two operation modes according to a preset sequence of sequentially switching from the 1 st operation mode to the nth operation mode, the (i +1) th operation mode can be determined according to the preset sequence by two different methods as follows:
in a first possible implementation manner, the terminal device determines that the mod (i +1, n) operation mode is the i +1 operation mode, where the function mod (i +1, n) is used to calculate the remainder of (i + 1)/n.
For example, assuming that n is 5, when i is 3, the i-th operation mode is the 3 rd operation mode, determining mod (4, 5) to 4, and determining the i + 1-th operation mode as the 4 th operation mode; for another example, when i is equal to 5 and the i-th operation mode is the 5-th operation mode, mod (6, 5) is determined to be 1, and the i + 1-th operation mode is determined to be the 1-th operation mode.
In a second possible implementation manner, the terminal device detects whether i reaches n, and if i does not reach n, calculates i +1 and determines the (i +1) th operation mode; and if i reaches n, determining that i +1 is 1, and determining that the 1 st operation mode is the i +1 th operation mode.
For example, assuming that n is 5, when i is 3, the i-th operation mode is the 3 rd operation mode, and since i is 3 and does not reach 5, it is determined that the i + 1-th operation mode is the 4 th operation mode; for another example, when i is 5, that is, when i reaches n, the i +1 th operation mode is determined as the 1 st operation mode.
After determining the (i +1) th operation mode by using any one of the possible implementation manners, the terminal device detects whether an operation instruction corresponding to the (i +1) th operation mode includes a predetermined identifier, where the predetermined identifier is generated when the historical frequency of use of the (i +1) th operation mode meets a preset low-frequency condition, and the predetermined identifier is usually an identifier such as a character, a character string, or a code preset by the terminal device.
Step 203, if the operation instruction includes a predetermined identifier, determining that the (i +1) th operation mode belongs to the low-frequency use mode.
And 204, if the (i +1) th operation mode belongs to the low-frequency use mode, re-determining the (i +1) th operation mode according to a preset sequence, and detecting whether the (i +1) th operation mode belongs to the low-frequency use mode.
Corresponding to the two possible implementation manners of determining the (i +1) th operation mode by the terminal device, the method for re-determining the (i +1) th operation mode by the terminal device according to the preset sequence comprises the following steps:
in correspondence with the first possible implementation manner, let i equal to i +1, it is determined that the mod (i +1, n) th operation mode is the i +1 th operation mode described above.
For example, assuming that n is 5, when i is 5, the i-th operation mode is the 5 th operation mode, determining mod (6, 5) to be 1, and determining the i + 1-th operation mode to be the 1 st operation mode; when detecting that the 1 st operation mode is the low-frequency use mode, if i +1 is 6, then mod (7,5) is determined again to be 2, that is, the i +1 th operation mode is determined again to be the 2 nd operation mode.
Corresponding to the second possible implementation manner, let i equal to i +1, detect whether i reaches n, and if i reaches n, determine that the 1 st operation mode is the i +1 st operation mode.
For example, assuming that n is 5, when i is 5, the i-th operation mode is the 5-th operation mode, and since i reaches 5, i +1 is determined to be 1, that is, the i + 1-th operation mode is the 1-th operation mode; when detecting that the 1 st operation mode is the low-frequency use mode, setting i to 1, and because i does not reach 5, the newly determined i +1 st operation mode is the 2 nd operation mode.
Step 205, if the operation instruction does not include the predetermined identifier, determining that the (i +1) th operation mode belongs to the high-frequency use mode.
And step 206, if the (i +1) th operation mode belongs to the high-frequency use mode, switching to the (i +1) th operation mode according to the mode switching operation.
And the terminal equipment is switched to the (i +1) th operation mode by operating the operation instruction corresponding to the (i +1) th operation mode.
In summary, the operation mode switching method provided in the embodiments of the present disclosure, when receiving a mode switching operation for switching the current i-th operation mode, determining the (i +1) th operation mode according to a preset sequence, skipping the operation mode when detecting that the (i +1) th operation mode is a low-frequency use mode, and the (i +1) th operation mode is determined again for detection until the (i +1) th operation mode is detected to be the high-frequency use mode, the operation mode is switched to the (i +1) th operation mode, because the terminal equipment is not switched according to the mode switching operation in turn according to the preset sequence, the terminal equipment does not need to be manually triggered by a user to skip certain operation modes, but can directly skip the operation mode with lower selection probability to switch to the operation mode with higher selection probability, thereby improving the switching efficiency of the terminal equipment when switching the operation mode.
In one illustrative example, the air conditioner may receive a mode switching operation applied to a "wind speed" key for instructing the air conditioner to cyclically switch in the order of high wind-medium wind-low wind-high wind. Assuming that the air conditioner is currently in a high wind, the air conditioner detects whether a middle wind is a low frequency usage mode upon receiving a mode switching operation, continues to detect whether a low wind is a low frequency usage mode when detecting that a middle wind is a low frequency usage mode, and directly switches from a high wind to a low wind when detecting that a low wind is a high frequency usage mode.
In the embodiment shown in fig. 2, the terminal device may directly skip the low frequency usage mode with the probability of being selected being smaller than the predetermined probability in the process of switching the operation mode, and when the terminal device needs to select a certain low frequency usage mode, a certain operation mode marked as the low frequency usage mode may be marked as the high frequency usage mode by the following method, as shown in fig. 3, including the following steps:
step 301, a resume operation is received.
Step 302, determining a target operation mode indicated by the recovery operation, wherein the target operation mode is a low-frequency use mode.
The method for determining the target operation mode by the terminal equipment comprises the following two possible implementation modes:
in a first possible implementation manner, the terminal device displays n operation modes, and receives a recovery operation acting on the target operation mode, and then the terminal device determines that the operation mode on which the recovery operation acts is the target operation mode. For example, the terminal device includes three operation modes of "high wind", "medium wind" and "low wind", where the high wind and the low wind are high frequency operation modes, the medium wind is low frequency operation mode, and after the terminal device displays the three operation modes, the user selects the medium wind through the terminal device and triggers the recovery operation, and then the terminal device determines that the medium wind acted by the recovery operation is the target operation mode.
In a second possible implementation manner, if the recovery operation received by the terminal device is a recovery operation that acts on the i-th operation mode currently located, the terminal device determines that the i + 1-th operation mode is the target operation mode. For example, the terminal device includes three operation modes of "high wind", "medium wind" and "low wind", where the high wind and the low wind are high frequency operation modes, the medium wind is low frequency operation mode, and when the terminal device receives a recovery operation while being in the high wind, it determines the next operation mode of the high wind, that is, the medium wind is a target operation mode. It should be noted that, in actual implementation, the i-1 th operation mode may be determined as the target operation mode, or other operation modes having a predetermined relationship with the i-th operation mode may be determined as the target operation mode, which is not limited in this embodiment.
Step 303, marking the target operation mode as a high-frequency use mode according to the recovery operation.
The terminal equipment marks the target operation mode as a high-frequency use mode according to the recovery operation, and the method comprises the following steps: and deleting the preset identification in the operation instruction corresponding to the target operation mode.
To sum up, according to the operation mode switching method provided by the embodiment of the present disclosure, when receiving a recovery operation, the terminal device may mark one of the operation modes marked as the low-frequency operation mode as the high-frequency operation mode, so that the switching efficiency of the terminal device in switching the operation modes is improved, and at the same time, all the operation modes can be still ensured to be normally used without affecting the normal operation of the terminal device.
In the embodiment shown in fig. 2, the terminal device may further mark all the operation modes marked as the low-frequency usage mode as the high-frequency usage mode by the following method, as shown in fig. 4, including the following steps:
in step 401, a reset operation is received.
In step 402, each of at least two operating modes is marked as a low frequency usage mode according to a reset operation.
Wherein the marking of each low frequency usage mode of the at least two operation modes as a high frequency usage mode by the terminal device according to the reset operation is implemented as: and deleting the preset marks in the operation instructions corresponding to all the operation modes.
To sum up, according to the operation mode switching method provided by the embodiment of the present disclosure, the terminal device may mark all the operation modes marked as the low-frequency operation modes as the high-frequency operation modes when receiving the reset operation, so that the switching efficiency of the terminal device in switching the operation modes is improved, and at the same time, all the operation modes can be still ensured to be normally used without affecting the normal operation of the terminal device.
In the embodiment shown in any one of fig. 2 to 4, in the running process, the terminal device detects the use frequency of the running mode, so as to generate and add the predetermined identifier to the operation instruction corresponding to the running mode, and then the method further includes the following steps, as shown in fig. 5:
step 501, acquiring the total times of switching to the (i +1) th operation mode in a preset time period.
Optionally, the terminal device detects whether the usage frequency of the (i +1) th operation mode meets a preset low-frequency condition at predetermined time intervals, and the duration of the predetermined time intervals is preset by a system or is user-defined. Optionally, the predetermined time period is a time period between the current time and the time of last acquiring the total number of times of switching to the (i +1) th operation mode, and a duration of the predetermined time period is equal to a duration of the predetermined time interval. For example, the terminal device detects whether the usage frequency of the (i +1) th operation mode meets the preset low-frequency condition every 10 days, and then the terminal device obtains the total number of times of switching to the (i +1) th operation mode within the last 10 days. Or, optionally, the predetermined time period is a time period before the current time, for example, the total number of times that the terminal device acquires the history and switches to the (i +1) th operation mode.
Step 502, detecting whether the total number of times is less than a predetermined number threshold.
The preset time threshold is a system preset value or a user-defined value.
Step 503, if the total number of times is less than the predetermined number of times threshold, adding a predetermined identifier in the operation instruction corresponding to the (i +1) th operation mode.
And when the total times is less than a preset time threshold value, determining that the historical use frequency of the (i +1) th operation mode meets a preset low-frequency condition, and adding a preset identifier in an operation instruction corresponding to the (i +1) th operation mode.
It should be noted that, the schematic diagram shown in fig. 5 is implemented as an example in which step 501 to step 503 are executed before step 201, but in actual implementation, step 501 to step 503 may also be executed simultaneously with step 201, and only need to be executed before step 202.
Optionally, the embodiment shown in fig. 5 may be implemented as the following steps instead, as shown in fig. 6:
step 601, acquiring the total times of switching to the (i +1) th operation mode in a preset time period and the operation duration of each time when the (i +1) th operation mode is performed.
The operation duration in the (i +1) th operation mode is the duration from the moment when the (i) th operation mode is switched to the (i +1) th operation mode to the moment when the (i +1) th operation mode is switched to the (i + 2) th operation mode.
Step 602, detecting whether the proportion of the times that the operation duration is less than the predetermined duration in the total times reaches a predetermined proportion threshold value.
The preset time length and the preset proportion threshold value are preset by a system or customized by a user.
Step 603, if the proportion of the times of the operation duration being less than the predetermined duration in the total times reaches a predetermined proportion threshold, adding a predetermined identifier in the operation instruction corresponding to the (i +1) th operation mode.
When the proportion of the times of the operation duration being less than the preset duration in the total times reaches a preset proportion threshold, determining that the historical use frequency of the (i +1) th operation mode meets a preset low-frequency condition, and adding a preset identifier in an operation instruction corresponding to the (i +1) th operation mode.
In an exemplary example, assuming that the predetermined time period is 1 minute and the predetermined percentage threshold is 70%, the air conditioner may be cyclically switched between three operation modes of high wind, medium wind and low wind. Assuming that the number of times of switching to the stroke in the last 10 days is 20, wherein the stay time of 15 times is 1 second, the stay time of 3 times is 3 seconds, the stay time of 1 time is 1 hour, and the stay time of 1 time is 20 minutes, the number of times that the running time is shorter than the preset time is 18, the proportion of the number of times that the running time is shorter than the preset time in the total number of times is 18/20-90% and reaches the preset proportion threshold, determining that the historical use frequency of the stroke meets the preset low-frequency condition, and adding a preset identifier in an operation instruction corresponding to the stroke.
It should be noted that, the schematic diagram shown in fig. 6 is implemented as an example in which step 601 to step 603 are implemented before step 201, but in actual implementation, step 601 to step 603 may be implemented simultaneously with step 201, and only needs to be implemented before step 202.
In summary, according to the operation mode switching method provided by the embodiment of the present disclosure, the terminal device comprehensively determines whether the operation mode is the low frequency usage mode according to the number of times the operation mode is selected and the time length of each operation in the operation mode, so that the accuracy of the determination is improved.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods. For details not disclosed in the embodiments of the apparatus of the present disclosure, refer to the embodiments of the method of the present disclosure.
Fig. 7 is a block diagram illustrating an operation mode switching apparatus according to an exemplary embodiment, as shown in fig. 7, including but not limited to:
a receiving module 710 configured to perform the above step 101 and step 201.
A mode detection module 720 configured to perform the above step 102.
A determining module 730 configured to perform the above steps 103 and 204.
A switching module 740 configured to perform the steps 104 and 206.
Optionally, the mode detection module 720 includes several sub-modules, as shown in fig. 8:
a detection submodule 721 configured to perform the above step 202.
A first determination submodule 722 configured to perform step 203 described above.
A second determination sub-module 723 configured to perform step 205 described above.
Optionally, the apparatus further includes the following modules, as shown in fig. 9:
a first obtaining module 910 configured to perform the above step 501.
A number detection module 920 configured to perform the step 502.
A first adding module 930 configured to perform the above step 503.
Optionally, the apparatus further includes the following modules, as shown in fig. 10:
a second obtaining module 1010 configured to perform the step 601.
A ratio detection module 1020 configured to perform the above-mentioned step 602.
A second adding module 1030 configured to perform the above step 603.
Optionally, the apparatus further includes the following modules, as shown in fig. 11:
a first receiving module 1110 configured to perform the step 301.
A determining module 1120 configured to perform the above step 302.
A first marking module 1130 configured to perform step 303 described above.
Optionally, the apparatus further includes the following modules, as shown in fig. 12 above:
a second receiving module 1210 configured to perform the above step 401.
A second marking module 1220 configured to perform the above-mentioned step 402.
In summary, the operation mode switching apparatus provided in the embodiments of the present disclosure, when receiving a mode switching operation for switching the i-th operation mode currently located, determining the (i +1) th operation mode according to a preset sequence, skipping the operation mode when detecting that the (i +1) th operation mode is a low-frequency use mode, and the (i +1) th operation mode is determined again for detection until the (i +1) th operation mode is detected to be the high-frequency use mode, the operation mode is switched to the (i +1) th operation mode, because the terminal equipment is not switched according to the mode switching operation in turn according to the preset sequence, the terminal equipment does not need to be manually triggered by a user to skip certain operation modes, but can directly skip the operation mode with lower selection probability to switch to the operation mode with higher selection probability, thereby improving the switching efficiency of the terminal equipment when switching the operation mode.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
An exemplary embodiment of the present disclosure provides an operation mode switching apparatus, which can implement an operation mode switching method provided by the present disclosure, and the apparatus includes: a processor, a memory for storing processor-executable instructions;
wherein the processor is configured to:
receiving a mode switching operation for switching the current ith operation mode, wherein the mode switching operation is used for indicating that sequential switching or cyclic switching is carried out between at least two operation modes according to a preset sequence, and the ith operation mode is any one of the at least two operation modes;
detecting whether the (i +1) th operation mode belongs to a low-frequency use mode, wherein the low-frequency use mode is an operation mode with the probability of being selected and used in at least two operation modes being smaller than the preset probability;
if the (i +1) th operation mode belongs to the low-frequency use mode, re-determining the (i +1) th operation mode according to a preset sequence, and detecting whether the (i +1) th operation mode belongs to the low-frequency use mode again;
and if the (i +1) th operation mode belongs to the high-frequency use mode, switching to the (i +1) th operation mode according to the mode switching operation, wherein the high-frequency use mode is the operation mode with the probability of reaching the preset probability in at least two operation modes.
Fig. 13 is a block diagram illustrating an operation mode switching apparatus according to an exemplary embodiment. For example, the apparatus 1300 may be an air conditioner, an air purifier, a washing machine, an induction cooker, a mobile phone, a computer, and the like.
Referring to fig. 13, the apparatus 1300 may include one or more of the following components: a processing component 1302, a memory 1304, a power component 1306, a multimedia component 1308, and an input/output (I/O) interface 1310.
The processing component 1302 generally controls the overall operation of the apparatus 1300. Processing component 1302 may include one or more processors 1312 to execute instructions to perform all or a portion of the steps of the method described above. Further, the processing component 1302 can include one or more modules that facilitate interaction between the processing component 1302 and other components. For example, the processing component 1302 may include a multimedia module to facilitate interaction between the multimedia component 1308 and the processing component 1302.
The memory 1304 is configured to store various types of data to support operations at the apparatus 1300. Examples of such data include instructions for any application or method operating on the device 1300. The memory 1304 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power supply component 1306 provides power to the various components of device 1300. Power components 1306 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 1300.
The multimedia component 1308 includes a screen that provides an output interface between the device 1300 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
I/O interface 1310 provides an interface between processing component 1302 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
In an exemplary embodiment, the apparatus 1300 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described operation mode switching method.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 1304 comprising instructions, executable by the processor 1318 of the apparatus 1300 to perform the above-described operating mode switching method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (13)

1. A method for operating mode switching, the method comprising:
receiving a mode switching operation for switching an ith operation mode, wherein the mode switching operation is used for indicating that sequential switching or cyclic switching is performed between at least two operation modes according to a preset sequence, the ith operation mode is any one of the at least two operation modes, the operation mode is an operation mode of terminal equipment, the terminal equipment comprises at least two operation modes, and the at least two operation modes are switched through the same control key on the terminal equipment;
detecting whether the (i +1) th operation mode belongs to a low-frequency use mode, wherein the low-frequency use mode is an operation mode with the probability of being selected and used being smaller than the preset probability in the at least two operation modes;
if the (i +1) th operation mode belongs to the low-frequency use mode, re-determining the (i +1) th operation mode according to the preset sequence, and performing the detection again to determine whether the (i +1) th operation mode belongs to the low-frequency use mode;
if the (i +1) th operation mode belongs to a high-frequency use mode, switching to the (i +1) th operation mode according to the mode switching operation, wherein the high-frequency use mode is an operation mode with the probability of being selected from the at least two operation modes reaching the preset probability.
2. The method of claim 1, wherein said detecting whether the (i +1) th operating mode is the low frequency usage mode comprises:
detecting whether an operation instruction corresponding to the (i +1) th operation mode comprises a preset identifier, wherein the preset identifier is generated when the historical use frequency of the (i +1) th operation mode meets a preset low-frequency condition;
if the operation instruction comprises the preset identification, determining that the (i +1) th operation mode belongs to the low-frequency use mode;
and if the operation instruction does not comprise the preset identification, determining that the (i +1) th operation mode belongs to the high-frequency use mode.
3. The method of claim 2, further comprising:
acquiring the total times of switching to the (i +1) th operation mode within a preset time period;
detecting whether the total number of times is less than a predetermined number of times threshold;
and if the total times is less than the preset times threshold, adding the preset identifier in the operation instruction corresponding to the (i +1) th operation mode.
4. The method of claim 3, further comprising:
acquiring the total times of switching to the (i +1) th operation mode in the preset time period and the operation duration of each time when the (i +1) th operation mode is in;
detecting whether the proportion of the times of the running time length being less than the preset time length in the total times reaches a preset proportion threshold value or not;
and if the proportion of the times of the operation duration being less than the preset time length in the total times reaches the preset proportion threshold, adding the preset identifier into the operation instruction corresponding to the (i +1) th operation mode.
5. The method of any of claims 1 to 4, further comprising:
receiving a recovery operation;
determining a target operation mode indicated by the recovery operation, wherein the target operation mode is the low-frequency use mode;
and marking the target operation mode as the high-frequency use mode according to the recovery operation.
6. The method of any of claims 1 to 4, further comprising:
receiving a reset operation;
marking each of the low frequency usage modes of the at least two operating modes as the high frequency usage mode according to the reset operation.
7. An operation mode switching apparatus, characterized in that the apparatus comprises:
a receiving module, configured to receive a mode switching operation for switching an i-th operation mode currently located, where the mode switching operation is used to instruct to sequentially switch or cyclically switch between at least two operation modes according to a preset sequence, the i-th operation mode is any one of the at least two operation modes, the operation mode is an operation mode of a terminal device, the terminal device includes at least two operation modes, and the at least two operation modes are switched by using a same control key on the terminal device;
a mode detection module configured to detect whether an i +1 th operation mode belongs to a low frequency usage mode, wherein the low frequency usage mode is an operation mode with a probability of being selected less than a predetermined probability among the at least two operation modes;
the determining module is further configured to re-determine the (i +1) th operation mode according to the preset sequence if the (i +1) th operation mode belongs to the low-frequency use mode, and perform the detection again whether the (i +1) th operation mode belongs to the low-frequency use mode;
a switching module configured to switch to the (i +1) th operation mode according to the mode switching operation if the (i +1) th operation mode belongs to a high-frequency use mode, where the high-frequency use mode is an operation mode in which a probability of being selected among the at least two operation modes reaches the predetermined probability.
8. The apparatus of claim 7, wherein the mode detection module comprises:
the detection submodule is configured to detect whether an operation instruction corresponding to the (i +1) th operation mode comprises a preset identifier, and the preset identifier is generated when the historical use frequency of the (i +1) th operation mode meets a preset low-frequency condition;
a first determining submodule configured to determine that the (i +1) th operation mode belongs to the low-frequency usage mode if the operation instruction includes the predetermined identifier;
a second determining submodule configured to determine that the (i +1) th operation mode belongs to the high-frequency usage mode if the predetermined identifier is not included in the operation instruction.
9. The apparatus of claim 8, further comprising:
the first acquisition module is configured to acquire the total times of switching to the (i +1) th operation mode in a preset time period;
a number detection module configured to detect whether the total number is less than a predetermined number threshold;
a first adding module, configured to add the predetermined identifier in the operation instruction corresponding to the (i +1) th operation mode if the total number of times is smaller than the predetermined number of times threshold.
10. The apparatus of claim 9, further comprising:
a second obtaining module, configured to obtain the total number of times of switching to the (i +1) th operation mode within the predetermined time period, and an operation duration of each time when the (i +1) th operation mode is performed;
the proportion detection module is configured to detect whether the proportion of the times that the operation time length is less than the preset time length in the total times reaches a preset proportion threshold value;
and the second adding module is configured to add the predetermined identifier in the operation instruction corresponding to the (i +1) th operation mode if the proportion of the times of which the operation duration is less than the predetermined duration in the total times reaches the predetermined proportion threshold.
11. The apparatus of any one of claims 7 to 10, further comprising:
a first receiving module configured to receive a recovery operation;
a mode determination module configured to determine a target operation mode of the resume operation indication, the target operation mode being the low frequency usage mode;
a first tagging module configured to tag the target operating mode as the high frequency usage mode according to the recovery operation.
12. The apparatus of any one of claims 7 to 10, further comprising:
a second receiving module configured to receive a reset operation;
a second tagging module configured to tag each of the low frequency usage mode of the at least two operating modes as the high frequency usage mode according to the reset operation.
13. An operation mode switching apparatus, characterized in that the apparatus comprises:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to:
receiving a mode switching operation for switching an ith operation mode, wherein the mode switching operation is used for indicating that sequential switching or cyclic switching is performed between at least two operation modes according to a preset sequence, the ith operation mode is any one of the at least two operation modes, the operation mode is an operation mode of terminal equipment, the terminal equipment comprises at least two operation modes, and the at least two operation modes are switched through the same control key on the terminal equipment;
detecting whether the (i +1) th operation mode belongs to a low-frequency use mode, wherein the low-frequency use mode is an operation mode with the probability of being selected and used being smaller than the preset probability in the at least two operation modes;
if the (i +1) th operation mode belongs to the low-frequency use mode, re-determining the (i +1) th operation mode according to the preset sequence, and performing the detection again to determine whether the (i +1) th operation mode belongs to the low-frequency use mode;
if the (i +1) th operation mode belongs to a high-frequency use mode, switching to the (i +1) th operation mode according to the mode switching operation, wherein the high-frequency use mode is an operation mode with the probability of being selected from the at least two operation modes reaching the preset probability.
CN201611265454.7A 2016-12-30 2016-12-30 Operation mode switching method and device Active CN106648876B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611265454.7A CN106648876B (en) 2016-12-30 2016-12-30 Operation mode switching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611265454.7A CN106648876B (en) 2016-12-30 2016-12-30 Operation mode switching method and device

Publications (2)

Publication Number Publication Date
CN106648876A CN106648876A (en) 2017-05-10
CN106648876B true CN106648876B (en) 2020-09-04

Family

ID=58837414

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611265454.7A Active CN106648876B (en) 2016-12-30 2016-12-30 Operation mode switching method and device

Country Status (1)

Country Link
CN (1) CN106648876B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112083787B (en) * 2020-09-15 2021-12-28 北京字跳网络技术有限公司 Application program operation mode switching method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101109993A (en) * 2007-08-07 2008-01-23 严春莲 Word input fast switching method for built-in numeric keyboard
CN103761086A (en) * 2014-01-02 2014-04-30 深圳市金立通信设备有限公司 Screen control method and terminal
CN104442820A (en) * 2013-09-24 2015-03-25 福特全球技术公司 Method and system for activating an operating mode of a vehicle
CN105049705A (en) * 2015-06-19 2015-11-11 广东欧珀移动通信有限公司 Shooting mode switching method and user terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100574059B1 (en) * 2003-12-17 2006-04-27 삼성전자주식회사 Image foming device and auto emulation switching metod

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101109993A (en) * 2007-08-07 2008-01-23 严春莲 Word input fast switching method for built-in numeric keyboard
CN104442820A (en) * 2013-09-24 2015-03-25 福特全球技术公司 Method and system for activating an operating mode of a vehicle
CN103761086A (en) * 2014-01-02 2014-04-30 深圳市金立通信设备有限公司 Screen control method and terminal
CN105049705A (en) * 2015-06-19 2015-11-11 广东欧珀移动通信有限公司 Shooting mode switching method and user terminal

Also Published As

Publication number Publication date
CN106648876A (en) 2017-05-10

Similar Documents

Publication Publication Date Title
RU2014152055A (en) METHOD AND DEVICE FOR MANAGING A USER INTERFACE
CN105895979B (en) Terminal charging method and terminal
CN106406739B (en) A kind of note generation method and mobile terminal
CN105957467B (en) Method and device for generating aging information of light-emitting element and terminal
CN107329659B (en) Permission setting method and device, electronic equipment and storage medium
CN107219988A (en) A kind of interface operation bootstrap technique and mobile terminal
RU2015125633A (en) METHOD AND DEVICE FOR DISPLAYING ICONS
CN107145215B (en) A kind of background application method for cleaning and mobile terminal
CN105117110A (en) Method and device for displaying user equipment state on preset interface of application program
CN106293813B (en) Application recommendation method and mobile terminal
CN104156305A (en) Application program testing method and device
CN104469519A (en) Video playing method and device
CN106648876B (en) Operation mode switching method and device
CN112214376A (en) Storage space prompting method and device
US20130141353A1 (en) Method for unlocking electronic device and electronic device using the same
CN109974233B (en) Control method, control device, air conditioner system and storage medium
CN107491482A (en) A kind of reminding method and mobile terminal
CN105630218A (en) Household appliance, touch apparatus for household appliance and touch method for household appliance
CN106775738A (en) The upgrade tip method and mobile terminal of application program
CN112229032B (en) Environment temperature adjusting method, device and computer readable storage medium
CN112698772A (en) Document template processing method and device and document creating method and device
CN113126870A (en) Parameter setting method, intelligent refrigerator and computer readable storage medium
CN108762568B (en) Broken line repairing method and device for touch screen and household appliance
CN106331833A (en) Video display method and mobile terminal
CN111352793A (en) Method and device for monitoring application use data

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant