CN109619796B - Switch control method, device, electronic equipment and computer readable storage medium - Google Patents

Switch control method, device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN109619796B
CN109619796B CN201811324027.0A CN201811324027A CN109619796B CN 109619796 B CN109619796 B CN 109619796B CN 201811324027 A CN201811324027 A CN 201811324027A CN 109619796 B CN109619796 B CN 109619796B
Authority
CN
China
Prior art keywords
hair drying
drying appliance
electronic switch
switch
hair
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
CN201811324027.0A
Other languages
Chinese (zh)
Other versions
CN109619796A (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.)
Shenzhen Sushi Technology Co Ltd
Original Assignee
Shenzhen Sushi 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 Shenzhen Sushi Technology Co Ltd filed Critical Shenzhen Sushi Technology Co Ltd
Priority to CN201811324027.0A priority Critical patent/CN109619796B/en
Publication of CN109619796A publication Critical patent/CN109619796A/en
Priority to PCT/CN2019/087819 priority patent/WO2020093680A1/en
Application granted granted Critical
Publication of CN109619796B publication Critical patent/CN109619796B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A45HAND OR TRAVELLING ARTICLES
    • A45DHAIRDRESSING OR SHAVING EQUIPMENT; EQUIPMENT FOR COSMETICS OR COSMETIC TREATMENTS, e.g. FOR MANICURING OR PEDICURING
    • A45D20/00Hair drying devices; Accessories therefor
    • A45D20/04Hot-air producers
    • A45D20/08Hot-air producers heated electrically
    • A45D20/10Hand-held drying devices, e.g. air douches
    • A45D20/12Details thereof or accessories therefor, e.g. nozzles, stands
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F26DRYING
    • F26BDRYING SOLID MATERIALS OR OBJECTS BY REMOVING LIQUID THEREFROM
    • F26B21/00Arrangements or duct systems, e.g. in combination with pallet boxes, for supplying and controlling air or gases for drying solid materials or objects
    • F26B21/001Drying-air generating units, e.g. movable, independent of drying enclosure
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F26DRYING
    • F26BDRYING SOLID MATERIALS OR OBJECTS BY REMOVING LIQUID THEREFROM
    • F26B21/00Arrangements or duct systems, e.g. in combination with pallet boxes, for supplying and controlling air or gases for drying solid materials or objects
    • F26B21/06Controlling, e.g. regulating, parameters of gas supply

Landscapes

  • Engineering & Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • General Engineering & Computer Science (AREA)
  • Cleaning And Drying Hair (AREA)

Abstract

The embodiment of the invention discloses a switch control method, a switch control device, electronic equipment and a computer readable storage medium, wherein the method comprises the following steps: acquiring status information of the hair drying appliance when an input operation acting on the electronic switch is detected; the state information comprises an operating state and a standby state; recognizing the input operation according to a preset judgment strategy, and generating a control instruction corresponding to the input operation according to the state information; and controlling the hair drying appliance to run to a corresponding working state according to the control instruction. By the method, the space utilization rate of the hair drying appliance is improved, the service life and the operation performance of the hair drying appliance are prolonged, the false triggering probability is reduced, and the appearance of the hair drying appliance is integrated.

Description

Switch control method, device, electronic equipment and computer readable storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for controlling a switch, an electronic device, and a computer-readable storage medium.
Background
Hair drying appliances (hair dryers, etc.) are mainly used for drying and shaping hair, but also can be used for local drying, heating and physical therapy in laboratories, physical therapy rooms, industrial production, art designing, etc. With the development of science and technology and the increasing demand of users, the functions of hair drying appliances (hair dryer, etc.) are becoming more and more abundant, and the number of control switches on the hair drying appliances is also increasing.
Conventional hair drying appliances generally include functions of turning on and off, shifting wind speed and speed, shifting wind temperature and speed, and shifting cold air, and most of the hair drying appliances adopt mechanical switches to control the functions, resulting in excessive switches and increased weight of the product. In order to reduce the number of switches, some products adopt a method of combining wind speed gears and wind temperature gears, which reduces the number of switches of the products, but reduces the number of combinations of different wind speeds and different wind temperatures, resulting in poor product use experience of users. Meanwhile, as the mechanical switch has the problems of large volume and short service life, the space utilization rate of the product is low due to the excessive mechanical switches, and the service life and the failure rate of the product are improved.
Disclosure of Invention
Embodiments of the present invention provide a switch control method, device, electronic device, and computer-readable storage medium, which can improve the space utilization of a hair dryer, and improve the service life and operation performance of the hair dryer.
A switch control method applied to a hair dryer appliance provided with an electronic switch, the method comprising:
acquiring status information of the hair drying appliance when an input operation acting on the electronic switch is detected; the state information comprises an operating state and a standby state;
recognizing the input operation according to a preset judgment strategy, and generating a control instruction corresponding to the input operation according to the state information;
and controlling the hair drying appliance to run to a corresponding working state according to the control instruction.
Optionally, in one embodiment, the electronic switch includes one or more of a tact switch, an inductive switch, a voice-activated switch, a touch-activated switch, and a wireless switch.
Optionally, in one embodiment, the input operation applied to the electronic switch includes one or more of a long press operation, a short press operation, a push-pull operation, a touch operation, a voice control operation, and an induction operation.
Optionally, in one embodiment, the identifying the input operation according to a preset judgment policy includes:
acquiring the pressing time acting on the electronic switch;
when the pressing duration is longer than a preset duration, determining that the input operation is a long-pressing operation;
and when the pressing duration is less than the preset duration, determining that the input operation is a short pressing operation.
Optionally, in one embodiment, the generating a control instruction corresponding to the input operation according to the state information includes:
generating a power-on command for controlling the hair drying appliance to start operating if a long press operation on the electronic switch is recognized while the hair drying appliance is in a standby state;
when the hair drying appliance is in an operating state, if a long-press operation acting on the electronic switch is recognized, generating a standby instruction for controlling the hair drying device to stop working or a cold air switching instruction for controlling the hair drying device to stop heating; if a short-press operation acting on the electronic switch is recognized, a function command for controlling the hair drying device to switch functions is generated.
Optionally, in one embodiment, the electronic switch includes a first electronic switch and a second electronic switch; the generating a control instruction corresponding to the input operation according to the state information further includes:
generating a power-on instruction if a long press operation acting on the first electronic switch is recognized when the hair drying appliance is in a standby state;
generating a standby instruction if a long press operation acting on the first electronic switch is recognized when the hair dryer is in an operating state;
generating a wind speed switching command for changing a rotational speed of a motor if a short-press operation acting on the first electronic switch is recognized while the hair dryer is in an operating state;
generating a temperature switching command for changing a heating temperature of a heating element if a short-press operation acting on the second electronic switch is recognized while the hair dryer is in an operating state;
when the hair dryer is in an operating state, if a long press operation on the second electronic switch is recognized, a cold air switching command for controlling the hair dryer to stop heating is generated.
Optionally, in one embodiment, the hair drying appliance is further provided with a gear indicator light, and the method further comprises:
when the hair drying appliance is in a running state, the gear indicator lamp is controlled to display the gear according to the current gear information; the gear information comprises a wind speed gear and a temperature gear;
and when the control instruction is executed and the gear is switched, controlling the gear indicator lamp to display the switched gear information.
A switch control device applied to a hair dryer provided with an electronic switch, comprising:
an input operation detection module for acquiring status information of the hair drying appliance when an input operation acting on the electronic switch is detected; the state information comprises an operating state and a standby state;
the control instruction generating module is used for identifying the input operation according to a preset judgment strategy and generating a control instruction corresponding to the input operation according to the state information;
and the control instruction execution module is used for controlling the hair drying appliance to run to a corresponding working state according to the control instruction.
An electronic device comprising a memory and a processor, the memory having stored therein computer-readable instructions that, when executed by the processor, cause the processor to perform the steps of the method described above.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method.
The embodiment of the invention has the following beneficial effects:
according to the switch control method, the switch control device, the electronic equipment and the computer readable storage medium, the state information of the hair drying appliance is acquired when the input operation acting on the electronic switch is detected, the input operation is identified according to a preset judgment strategy, the control instruction corresponding to the input operation is generated according to the state information, and the hair drying appliance is controlled to run to the corresponding working state according to the control instruction. The space utilization rate of the hair drying appliance is improved, the service life and the control performance of the hair drying appliance are prolonged, the false triggering probability is reduced, and the appearance of the hair drying appliance is integrated.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Wherein:
FIG. 1 is a diagram illustrating an exemplary embodiment of a switch control method;
FIG. 2 is a schematic flow chart of a switch control method according to another embodiment;
fig. 3 is a block diagram showing the structure of a switch control device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. It will be understood that, as used herein, the terms "first," "second," and the like may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, a first application may be referred to as a second application, and similarly, the second application may be the first application, without departing from the scope of the present application. The first application and the second application are both applications, but they are not the same application.
Fig. 1 is a schematic diagram of an application environment of the switch control method in one embodiment. As shown in fig. 1, the application environment comprises a hair drying appliance 100, and a first electronic switch 110, a second electronic switch 120 and a gear indicator 130 arranged on the hair drying appliance 100.
Wherein, the hair drying appliance 100 can be a hair dryer, etc., the hair drying appliance 100 includes a motor and a heating element, the motor rotates to provide a blowing air flow for the hair drying appliance 100, and the heating element provides a heating temperature for the hair drying appliance 100; the electronic switch can be a touch switch, an inductive switch, a voice-operated switch and the like. The functions of the hair drying appliance 100, such as on/off, wind speed gear switching, temperature gear switching, cold air mode switching, and negative ion switch, can be controlled by operating the first electronic switch 110 and the second electronic switch 120 on the hair drying appliance 100, and the gear indicator lamp 130 can be used to display gear information and on/off state. The switch control method provided by the embodiment can improve the space utilization rate of the hair drying appliance, prolong the service life and improve the operation performance of the hair drying appliance, reduce the false triggering probability and enable the appearance of the hair dryer to have integrity.
It can be understood that the number of the electronic switches can be set to other numbers, for example, when the number of the electronic switches is set to one, the integrity of the appearance of the product can be further improved, and the product cost can be reduced; when the electronic switches are set to be more than two, more functions are conveniently controlled, and the operation convenience is improved.
The present embodiment provides a switch control method, which is applied to a hair dryer with an electronic switch, as shown in fig. 2, which is a flowchart of the switch control method in one embodiment, and the switch control method in the present embodiment is described by taking the operation on the hair dryer in fig. 1 as an example. The switch control method comprises the following steps 202 to 206:
step 202: when an input operation acting on the electronic switch is detected, state information of the hair drying appliance is acquired.
When the hair dryer is used for activities such as hair drying and hair styling, the user can operate an electronic switch on the hair dryer to activate a corresponding function, specifically, the electronic switch includes but is not limited to a light touch switch, an inductive switch, a voice-operated switch, a touch switch, a wireless switch, and the like, and the input operation of the electronic switch includes one or more of a long press operation, a short press operation, a push-pull operation, a touch operation, a voice-operated operation, and an inductive operation. The present embodiment may detect a trigger operation acting on the electronic switch, such as a trigger mode, a trigger duration, a trigger object, and the like.
When detecting the input operation, status information of the hair drying appliance is further acquired, the status information including an operation state and a standby state. The running state refers to the state that an isolating switch of the equipment is in a closed state, and a circuit from a power supply to a power receiving end is connected, so that the equipment is in a working state; the standby state refers to a state in which the apparatus is powered on but does not perform any substantial work (i.e., does not perform program execution). Different control effects can be produced according to the input operation of the electronic switch when the hair dryer is in different states.
Step 204: and identifying the input operation according to a preset judgment strategy, and generating a control instruction corresponding to the input operation according to the state information.
Specifically, taking the input operation acting on the electronic switch as the pressing operation as an example, the electronic switch is a tact switch, the pressing duration acting on the electronic switch is obtained, and the current input operation is identified according to the pressing duration. When the pressing duration is longer than a preset duration, determining that the input operation is a long-pressing operation; and when the pressing duration is less than the preset duration, determining that the input operation is a short pressing operation.
It should be noted that the preset duration may be set by default by the system, or may be set by the user according to the user's requirement. Optionally, when the number of the electronic switches is two, the long press judgment of the first electronic switch and the long press judgment of the second electronic switch may be the same or different; for example, the preset time length for judging whether the first electronic switch is pressed for a long time is 3 seconds, and if the pressing time length of the first electronic switch is more than 3 seconds, the first electronic switch is judged to be pressed for a long time; and judging whether the preset time length for long-time pressing of the second electronic switch is 2 seconds, and if the pressing time length of the second electronic switch is more than 2 seconds, judging that the second electronic switch is long-time pressed. In other embodiments, the input operation of the electronic switch may be recognized through other recognition strategies, such as voice-activated recognition, voice recognition, and the like.
Further, a control command corresponding to the input operation is generated based on the acquired state information of the hair dryer. The control functions of the hair dryer mainly comprise functions of startup and shutdown, wind speed gear switching, temperature gear switching, cold air mode switching, an anion switch and the like, and the control functions can be switched by long pressing or short pressing.
Specifically, when the long press operation on the electronic switch is recognized while the hair dryer is in the standby state, a power-on command for controlling the hair dryer to start operating is generated. When the hair drying appliance is in an operating state, if a long-press operation acting on the electronic switch is recognized, generating a standby instruction for controlling the hair drying device to stop working or a cold air switching instruction for controlling the hair drying device to stop heating; if a short-press operation acting on the electronic switch is recognized, a function command for controlling the hair drying device to switch functions is generated.
It is to be understood that the short-press operation may be a single-click operation, i.e., an operation of pressing the electronic switch once in a short time, or a double-click operation, i.e., two consecutive presses of the electronic switch twice in a short time, or the like. When the quantity of electronic switch is two, the long that acts on every electronic switch presses the operation or short according to the operation and all can be used for controlling different functions, can save the device cost and promote the wholeness of outward appearance, has also increased the variety of electronic switch control simultaneously.
Step 206: and controlling the hair drying appliance to run to a corresponding working state according to the control instruction.
Specifically, the control instruction is executed to control the hair drying appliance to operate to a corresponding working state, the working state of the hair drying appliance includes an operating state and a standby state, the blowing air speed of the hair drying appliance in the operating state includes a three-gear air speed state of low speed, medium speed and high speed, and the blowing temperature of the hair drying appliance in the operating state includes a four-gear temperature state of low temperature, medium temperature, high temperature and cold air. Optionally, the hair drying appliance further comprises a negative ion on state and a negative ion off state.
For example, the hair drying appliance is provided with two electronic switches, the hair drying appliance is switched from a standby state to an operating state when a user presses a first electronic switch for a long time, the blowing air speed of the hair drying appliance is switched from "low speed" to "medium speed" when the user presses the first electronic switch for a short time, the blowing air temperature of the hair drying appliance is switched from "cool air" to "low temperature" when the user presses a second electronic switch for a short time, and the hair drying appliance enters a negative ion on state when the user double-clicks the first electronic switch.
In the switch control method, the state information of the hair drying appliance is acquired when the input operation acting on the electronic switch is detected, the input operation is identified according to a preset judgment strategy, the control instruction corresponding to the input operation is generated according to the state information, and the hair drying appliance is controlled to run to the corresponding working state according to the control instruction. The space utilization rate of the hair drying appliance is improved, the service life and the control performance of the hair drying appliance are prolonged, the false triggering probability is reduced, and the appearance of the hair drying appliance is integrated.
In one embodiment, the electronic switches include a first electronic switch and a second electronic switch, and the generating a control command corresponding to the input operation according to the state information in step 204 further includes:
when the hair dryer is in a standby state, if a long press operation on the first electronic switch is recognized, a power-on command is generated. Specifically, the first electronic switch is used for controlling the power supply function of the hair drying appliance, and when the power supply is controlled to be turned on through the first electronic switch, the hair drying appliance starts to work and sprays airflow at the air outlet.
When the hair dryer is in an operating state, if a long press operation on the first electronic switch is recognized, a standby command is generated. Specifically, when the first electronic switch controls the power supply to be turned off, the hair drying appliance is in a dormant state, and the air blowing speed and the air blowing temperature of the hair drying appliance cannot be controlled by the electronic switch.
When the hair dryer is in an operating state, if a short-press operation on the first electronic switch is recognized, a wind speed switching command for changing a rotational speed of a motor is generated. In particular, the first electronic switch is also used for controlling the motor speed on the hair drying appliance, i.e. controlling the blowing air speed of the hair drying appliance. The hair drying appliance may be set to three wind speed positions, respectively representing "low speed", "medium speed" and "high speed" positions, and the wind speed of the hair drying appliance is switched from the current wind speed position to the next wind speed position when a short-press operation on the first electronic switch is recognized, for example, from "low speed" to "medium speed" when the user presses the first electronic switch for a short time. It will be appreciated that the wind speed gear on the hair dryer can also be set to other numbers of gears, more or less, to suit different product orientations and different user needs, which is not limited by the embodiment.
Generating a temperature switching command for changing a heating temperature of a heating element if a short-press operation acting on the second electronic switch is recognized while the hair dryer is in an operating state; in particular, the second electronic switch is also used to control the heating temperature on the hair dryer appliance. The hair drying appliance can be set to four temperature ranges, respectively "cool air", "low temperature", "medium temperature" and "high temperature" ranges, and the blowing temperature of the hair drying appliance is switched from the current temperature range to the next temperature range when a short-press operation on the second electronic switch is recognized, for example, the blowing temperature of the hair drying appliance is switched from "cool air" to "low temperature" when the user presses the second electronic switch for a short time. It will be appreciated that the temperature range on the hair dryer can also be set to other numbers of ranges, more or less, to suit different product orientations and different user needs, which is not limited by the embodiment.
When the hair dryer is in an operating state, if a long press operation on the second electronic switch is recognized, a cold air switching command for controlling the hair dryer to stop heating is generated. Specifically, the second electronic switch is also used for swiftly switching to the cold wind function, and when the user pressed the second electronic switch for a long time, the temperature of blowing of hair drying appliance directly switched to "cold wind", can be convenient for the user fast with the hair design, has promoted the convenience of operation.
As a specific example, a speed button and a temperature button are provided on the hair dryer. The speed button is used for controlling the rotating speed of the motor and the working state of the hair drying appliance, and the power supply function of the hair drying appliance can be controlled by switching the running state and the standby state by pressing the speed button for a long time; the switching of three-gear wind speed of low speed, medium speed and high speed can be carried out by pressing the speed button for a short time, and the blowing feeling of different degrees can be brought to users. The temperature button is used for controlling the heating temperature of the heating element, namely controlling the blowing temperature of the hair drying appliance, the switching of the four-gear heating temperature of low temperature, medium temperature, high temperature and cold air can be carried out by pressing the temperature button for a short time, and the switching to the cold air state can be directly carried out by pressing the temperature button for a long time. Therefore, through the matching switching of the speed button and the temperature button, the blowing combination of 12 different wind temperatures and wind speeds can be realized so as to meet different blowing requirements of users.
Optionally, in other embodiments, a separate power switch may be further disposed on the hair drying appliance to improve the convenience of operation. The power switch is used for controlling the on and off of a power supply on the hair drying appliance, when the power supply is controlled to be turned on through the power button, the hair drying appliance starts to work and sprays airflow, and the blowing air speed and the blowing temperature are controlled through the speed button and the temperature button; when the power switch controls the power to be turned off, the hair drying appliance is in a dormant state, and the blowing wind speed and the blowing temperature cannot be controlled by the speed button and the temperature button. By providing the power button, the standby power consumption of the hair dryer can be saved, the hair dryer is in a sleep (standby) state when the user does not need to use the hair dryer, and the false triggering operation can be effectively avoided. It should be noted that the power switch may be an electronic switch, such as a touch switch, an inductive switch, a voice-activated switch, etc.; the power switch may also be a mechanical switch, such as a microswitch, a slide switch, a push button switch, etc.
In one embodiment, the hair drying appliance is further provided with a gear indicator lamp, and the switch control method further comprises:
and when the hair drying appliance is in a running state, the gear indicator lamp is controlled to perform gear display according to the current gear information. Specifically, keep off position information and keep off the position including wind speed fender position and temperature, keep off the position that the wind speed that the position pilot lamp is used for instructing hair drying utensil keeps off the position and the temperature keeps off the position, keep off the position pilot lamp and can divide into wind speed fender position pilot lamp and temperature fender position pilot lamp, keep off the position pilot lamp and can set up on same axis with electronic switch, the user of being convenient for acquires current fender position information fast. The number of the gear indicator lamps corresponds to the number of adjustable gears of the electronic switch, for example, the speed button can switch three wind speed gears, the gear indicator lamps corresponding to the speed button are three, the temperature button can switch four temperature gears, and the gear indicator lamps corresponding to the temperature button are four. It can be understood that the power switch condition can also be judged through the gear indicator lamp. Optionally, in other embodiments, the gear indication may be performed in other manners, for example, the gear and the power switch condition are displayed through an LCD display screen.
Further, when the control instruction is executed and the gear is switched, the gear indicator lamp is controlled to display the switched gear information.
According to the switch control method provided by the embodiment, the user can quickly know the state information of the hair drying appliance after the hair drying appliance is powered on, the operation control on the hair drying appliance is facilitated, the wind speed and the wind temperature which are required by the user are selected, and the user experience is improved.
As shown in fig. 3, in one embodiment, there is provided a switching control apparatus including: an input operation detection module 310, a control instruction generation module 320, and a control instruction execution module 330.
An input operation detection module 310 for acquiring status information of the hair drying appliance when an input operation acting on the electronic switch is detected.
The control instruction generating module 320 is configured to identify the input operation according to a preset judgment policy, and generate a control instruction corresponding to the input operation according to the state information.
A control instruction execution module 330, configured to control the hair drying appliance to operate to a corresponding working state according to the control instruction.
In the switch control device, the input operation detection module acquires the state information of the hair drying appliance when detecting the input operation acting on the electronic switch, the control instruction generation module identifies the input operation according to a preset judgment strategy, generates the control instruction corresponding to the input operation according to the state information, and the control instruction execution module controls the hair drying appliance to run to the corresponding working state according to the control instruction. The space utilization rate of the hair drying appliance is improved, the service life and the control performance of the hair drying appliance are prolonged, the false triggering probability is reduced, and the appearance of the hair drying appliance is integrated.
In one embodiment, the electronic switch includes one or more of a tact switch, an inductive switch, a voice-activated switch, a touch-activated switch, and a wireless switch.
In one embodiment, the input operation applied to the electronic switch includes one or more of a long press operation, a short press operation, a push-pull operation, a touch operation, a voice control operation, and a sensing operation.
In one embodiment, the control instruction generation module 320 is further configured to obtain a pressing duration acting on the electronic switch; when the pressing duration is longer than a preset duration, determining that the input operation is a long-pressing operation; and when the pressing duration is less than the preset duration, determining that the input operation is a short pressing operation.
In one embodiment, the control instruction generating module 320 is further configured to generate a power-on instruction for controlling the hair drying apparatus to start operating if a long press operation acting on the electronic switch is recognized when the hair drying appliance is in a standby state; when the hair drying appliance is in an operating state, if a long-press operation acting on the electronic switch is recognized, generating a standby instruction for controlling the hair drying device to stop working or a cold air switching instruction for controlling the hair drying device to stop heating; if a short-press operation acting on the electronic switch is recognized, a function command for controlling the hair drying device to switch functions is generated.
In one embodiment, the electronic switch comprises a first electronic switch and a second electronic switch; the control instruction generating module 320 is further configured to generate a power-on instruction if a long press operation acting on the first electronic switch is recognized when the hair drying appliance is in a standby state; generating a standby instruction if a long press operation acting on the first electronic switch is recognized when the hair dryer is in an operating state; generating a wind speed switching command for changing a rotational speed of a motor if a short-press operation acting on the first electronic switch is recognized while the hair dryer is in an operating state; generating a temperature switching command for changing a heating temperature of a heating element if a short-press operation acting on the second electronic switch is recognized while the hair dryer is in an operating state; when the hair dryer is in an operating state, if a long press operation on the second electronic switch is recognized, a cold air switching command for controlling the hair dryer to stop heating is generated.
In one embodiment, the hair drying appliance is further provided with a gear indicator lamp, and the switch control device further comprises a gear indication module for controlling the gear indicator lamp to display a gear according to the current gear information when the hair drying appliance is in an operating state; and when the control instruction is executed and the gear is switched, controlling the gear indicator lamp to display the switched gear information.
The division of each module in the switch control device is only used for illustration, and in other embodiments, the switch control device may be divided into different modules as needed to complete all or part of the functions of the switch control device.
For the specific limitations of the switch control device, reference may be made to the limitations of the switch control method above, and details are not repeated here. The modules in the switch control device can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
An embodiment of the present application further provides an electronic device, which includes a memory and a processor, where the memory stores computer-readable instructions, and the instructions, when executed by the processor, cause the processor to execute the switch control method described in the foregoing embodiments.
The embodiment of the application also provides a computer readable storage medium. One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the switch control methods as described in the embodiments above.
The embodiment of the application also provides a computer program product. A computer program product comprising instructions which, when run on a computer, cause the computer to perform the switch control method described in the embodiments above.
In the above embodiments, all or part of the implementation may be realized by software, hardware, firmware, or any combination thereof. When implemented using a software program, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (8)

1. A switch control method is characterized by being applied to a hair drying appliance provided with two electronic switches, and further comprising an independent power switch, wherein the power switch is used for controlling the on and off of a power supply on the hair drying appliance, the hair drying appliance is in a running state when the power supply is on, and the hair drying appliance is in a standby state when the power supply is off; the method comprises the following steps:
acquiring status information of the hair drying appliance when an input operation acting on the electronic switch is detected; the state information includes the operating state and the standby state;
recognizing the input operation according to a preset judgment strategy, and generating a control instruction corresponding to the input operation according to the state information, wherein the control instruction comprises the following steps: generating a power-on command for controlling the hair drying appliance to start operating if a long press operation acting on the electronic switch is recognized while the hair drying appliance is in the standby state;
generating a standby command for controlling the hair drying device to stop operating or a cool air switching command for controlling the hair drying device to stop heating when a long press operation acting on the electronic switch is recognized while the hair drying appliance is in the operating state; generating a function command for controlling the hair drying device to perform function switching if a short press operation acting on the electronic switch is recognized;
and controlling the hair drying appliance to run to a corresponding working state according to the control instruction.
2. The method of claim 1, wherein the electronic switch comprises a tact switch or a touch switch.
3. The method according to claim 1, wherein the identifying the input operation according to a preset judgment policy comprises:
acquiring the pressing time acting on the electronic switch;
when the pressing duration is longer than a preset duration, determining that the input operation is the long-pressing operation;
and when the pressing duration is less than the preset duration, determining that the input operation is the short pressing operation.
4. The method of claim 3, wherein the electronic switch comprises a first electronic switch and a second electronic switch; the generating a control instruction corresponding to the input operation according to the state information further includes:
generating a standby instruction if a long press operation acting on the first electronic switch is recognized when the hair dryer is in the operating state;
generating a wind speed switching command for changing a rotational speed of a motor if a short-press operation acting on the first electronic switch is recognized while the hair dryer is in the operating state;
generating a temperature switching instruction for changing a heating temperature of a heating element if a short-press operation acting on the second electronic switch is recognized while the hair dryer is in the operating state;
when the hair dryer is in the operating state, if a long press operation on the second electronic switch is recognized, a cold air switching command for controlling the hair dryer to stop heating is generated.
5. The method of claim 1, wherein the hair drying appliance is further provided with a gear indicator light, the method further comprising:
when the hair drying appliance is in the running state, the gear indicator lamp is controlled to display the gear according to the current gear information; the gear information comprises a wind speed gear and a temperature gear;
and when the control instruction is executed and the gear is switched, controlling the gear indicator lamp to display the switched gear information.
6. A switch control device is characterized by being applied to a hair drying appliance provided with two electronic switches, and further comprising an independent power switch, wherein the power switch is used for controlling the on and off of a power supply on the hair drying appliance, the hair drying appliance is in a running state when the power supply is on, and the hair drying appliance is in a standby state when the power supply is off; the method comprises the following steps:
an input operation detection module for acquiring status information of the hair drying appliance when an input operation acting on the electronic switch is detected; the state information includes the operating state and the standby state;
the control instruction generating module is used for identifying the input operation according to a preset judgment strategy and generating a control instruction corresponding to the input operation according to the state information, and comprises: generating a power-on command for controlling the hair drying appliance to start operating if a long press operation acting on the electronic switch is recognized while the hair drying appliance is in the standby state;
generating a standby command for controlling the hair drying device to stop operating or a cool air switching command for controlling the hair drying device to stop heating when a long press operation acting on the electronic switch is recognized while the hair drying appliance is in the operating state; generating a function command for controlling the hair drying device to perform function switching if a short press operation acting on the electronic switch is recognized;
and the control instruction execution module is used for controlling the hair drying appliance to run to a corresponding working state according to the control instruction.
7. An electronic device comprising a memory and a processor, the memory having stored therein computer-readable instructions that, when executed by the processor, cause the processor to perform the steps of the method of any of claims 1 to 6.
8. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.
CN201811324027.0A 2018-11-07 2018-11-07 Switch control method, device, electronic equipment and computer readable storage medium Active CN109619796B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201811324027.0A CN109619796B (en) 2018-11-07 2018-11-07 Switch control method, device, electronic equipment and computer readable storage medium
PCT/CN2019/087819 WO2020093680A1 (en) 2018-11-07 2019-05-21 Switch control method, device, electronic apparatus, and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811324027.0A CN109619796B (en) 2018-11-07 2018-11-07 Switch control method, device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109619796A CN109619796A (en) 2019-04-16
CN109619796B true CN109619796B (en) 2021-09-14

Family

ID=66067461

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811324027.0A Active CN109619796B (en) 2018-11-07 2018-11-07 Switch control method, device, electronic equipment and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN109619796B (en)
WO (1) WO2020093680A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109619796B (en) * 2018-11-07 2021-09-14 深圳素士科技股份有限公司 Switch control method, device, electronic equipment and computer readable storage medium
CN113317970B (en) * 2021-04-19 2023-04-11 未来穿戴技术有限公司 Massage control method, massage instrument and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201341552Y (en) * 2008-12-29 2009-11-11 刘亚福 Electric hair dryer
CN105262472A (en) * 2015-11-19 2016-01-20 深圳市奋达科技股份有限公司 Touch apparatus applied to beauty and hairdressing device
KR20170004070U (en) * 2016-05-24 2017-12-04 김국진 Heating cap for hair permanent
CN107647574A (en) * 2016-07-25 2018-02-02 新联电器厂有限公司 intelligent blower
CN108769390A (en) * 2018-05-11 2018-11-06 Oppo广东移动通信有限公司 Key control method, device, terminal and computer readable storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109090796A (en) * 2018-10-31 2018-12-28 舒可士(深圳)科技有限公司 Trichoxerosis device
CN109171157A (en) * 2018-10-31 2019-01-11 舒可士(深圳)科技有限公司 Trichoxerosis device
CN109619796B (en) * 2018-11-07 2021-09-14 深圳素士科技股份有限公司 Switch control method, device, electronic equipment and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201341552Y (en) * 2008-12-29 2009-11-11 刘亚福 Electric hair dryer
CN105262472A (en) * 2015-11-19 2016-01-20 深圳市奋达科技股份有限公司 Touch apparatus applied to beauty and hairdressing device
KR20170004070U (en) * 2016-05-24 2017-12-04 김국진 Heating cap for hair permanent
CN107647574A (en) * 2016-07-25 2018-02-02 新联电器厂有限公司 intelligent blower
CN108769390A (en) * 2018-05-11 2018-11-06 Oppo广东移动通信有限公司 Key control method, device, terminal and computer readable storage medium

Also Published As

Publication number Publication date
WO2020093680A1 (en) 2020-05-14
CN109619796A (en) 2019-04-16

Similar Documents

Publication Publication Date Title
US10917515B2 (en) Method for switching applications in split screen mode, computer device and computer-readable storage medium
WO2017088131A1 (en) Method and apparatus for rapidly dividing screen, electronic device, display interface and storage medium
US20160034117A1 (en) Electronic device operating in idle mode and method thereof
CN108055405B (en) Terminal and method for awakening same
CN109619796B (en) Switch control method, device, electronic equipment and computer readable storage medium
CN104182243B (en) Sleep state control system, computer system and sleep state detection method thereof
CN104951078A (en) Method and system for waking up black screen through gestures
CN108446010A (en) Information processing method and electronic equipment
CN108509020A (en) A kind of information processing method, electronic equipment and readable storage medium storing program for executing
WO2022105447A1 (en) Iot device control method, apparatus, terminal, and storage medium
CN103955327B (en) Information processing method and electronic equipment
WO2022048491A1 (en) Application running method and apparatus and electronic device
TW201443623A (en) Electronic device and fan control method thereof
CN110515462A (en) It is a kind of intelligence wearable device in apply control method, device
CN105045519A (en) User terminal and screen control method therefor
CN113031742A (en) Electronic device
CN105573654A (en) Display method for play control and terminal
CN113050863A (en) Page switching method and device, storage medium and electronic equipment
WO2017215258A1 (en) Method, device, terminal, and computer storage medium for triggering virtual key
JP2022048146A5 (en)
CN106933362B (en) Mouse control method, mouse controller and electronic equipment
CN111831196B (en) Control method of folding screen, terminal device and storage medium
US20140136868A1 (en) Power saving method and handheld electronic device using the same
KR102557678B1 (en) Server, electronic apparatus and information providing thereof
CN107436718A (en) Touch-control system and method

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
CB02 Change of applicant information

Address after: Room 1101, 1102, 1103, 1104 and 401402, building 2, Chongwen Park, Nanshan Zhiyuan, No. 3370, Liuxian Avenue, Fuguang community, Taoyuan Street, Nanshan District, Shenzhen City, Guangdong Province

Applicant after: Shenzhen sushi Technology Co., Ltd

Address before: 518000 the 5 floor of Hua Hua 8, 32 lane, 32 Sha Li Road, Xili street, Shenzhen, Guangdong.

Applicant before: SOOCARE (SHENZHEN) TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant