WO2020093680A1 - Switch control method, device, electronic apparatus, and computer readable storage medium - Google Patents

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

Info

Publication number
WO2020093680A1
WO2020093680A1 PCT/CN2019/087819 CN2019087819W WO2020093680A1 WO 2020093680 A1 WO2020093680 A1 WO 2020093680A1 CN 2019087819 W CN2019087819 W CN 2019087819W WO 2020093680 A1 WO2020093680 A1 WO 2020093680A1
Authority
WO
WIPO (PCT)
Prior art keywords
hair drying
electronic switch
switch
drying appliance
input operation
Prior art date
Application number
PCT/CN2019/087819
Other languages
French (fr)
Chinese (zh)
Inventor
陈旭
孟凡迪
Original Assignee
舒可士(深圳)科技有限公司
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 舒可士(深圳)科技有限公司 filed Critical 舒可士(深圳)科技有限公司
Publication of WO2020093680A1 publication Critical patent/WO2020093680A1/en

Links

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

Definitions

  • the present invention relates to the field of computer technology, and in particular, to a switch control method, device, electronic device, and computer-readable storage medium.
  • Hair drying appliances are mainly used for hair drying and shaping, but can also be used for local drying, heating and physical therapy in laboratories, physiotherapy rooms, industrial production, and art.
  • the functions of hair drying appliances are becoming more and more abundant, and the number of control switches on hair drying appliances is also coming Increasing.
  • Traditional hair drying appliances usually include functions such as switch machine, wind speed range switching, wind temperature range switching, cold air switching, etc.
  • Most hair drying appliances use mechanical switches to control the above functions, resulting in too many switches and increasing the weight of the product .
  • some products will adopt the method of combining the wind speed gear and the wind temperature gear. Although this reduces the number of switches of the product, it also reduces the number of different wind speeds and combinations of different wind temperatures, causing the user to experience the product. Not good.
  • too many mechanical switches will make the product's space utilization rate not high, and the product's service life and failure rate will increase.
  • Embodiments of the present invention provide a switch control method, device, electronic equipment, and computer-readable storage medium, which can improve the space utilization rate of a hair drying appliance, and improve the service life and control performance of a hair drying appliance.
  • a switch control method is applied to a hair drying appliance provided with an electronic switch.
  • the method includes:
  • status information of the hair drying appliance is acquired;
  • the status information includes an operating state and a standby state;
  • the electronic switch includes one or more than one of a tact switch, an induction switch, a voice control switch, a touch switch, and a wireless switch.
  • the input operation acting on 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 the above.
  • the identifying the input operation according to a preset judgment strategy includes:
  • the pressing duration is less than the preset duration, it is determined that the input operation is a short pressing operation.
  • the generating a control instruction corresponding to the input operation according to the status information includes:
  • the electronic switch includes a first electronic switch and a second electronic switch; and the generating a control instruction corresponding to the input operation according to the state information further includes:
  • the hair drying appliance is further provided with a gear indicator, and the method further includes:
  • the gear indicator is controlled to display the gear according to the current gear information;
  • the gear information includes the wind speed gear and the temperature gear;
  • the gear indicator light is controlled to display the gear information after the switch.
  • a switch control device including:
  • the input operation detection module is configured to obtain status information of the hair drying appliance when an input operation acting on the electronic switch is detected; the status information includes an operating state and a standby state;
  • a control instruction generating module configured to identify the input operation according to a preset judgment strategy, and generate a control instruction corresponding to the input operation according to the state information;
  • a control instruction execution module is used to control the hair drying appliance to operate according to the control instruction to a corresponding working state.
  • An electronic device includes a memory and a processor.
  • the memory stores computer-readable instructions.
  • the processor is caused to perform the steps of the foregoing method.
  • a computer-readable storage medium has stored thereon a computer program, which when executed by a processor implements the steps of the above method.
  • the above switch control method, device, electronic equipment, and computer-readable storage medium by acquiring the state information of the hair drying appliance when an input operation acting on the electronic switch is detected, identify the input operation according to a preset judgment strategy , 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.
  • the space utilization rate of the hair drying appliance is improved, and the service life and handling performance of the hair drying appliance are improved, the probability of false triggering is reduced, and the appearance of the hair dryer is more integrated.
  • FIG. 1 is a schematic diagram of an application environment of a switch control method in an embodiment
  • FIG. 2 is a schematic flowchart of a switch control method in another embodiment
  • FIG. 3 is a structural block diagram of a switch control device in an embodiment.
  • FIG. 1 is a schematic diagram of an application environment of a switch control method in an embodiment.
  • the application environment includes a hair drying appliance 100, and a first electronic switch 110, a second electronic switch 120, and a gear indicator 130 provided on the hair drying appliance 100.
  • the hair drying appliance 100 may be an electric hair dryer, a hair dryer, a hair dryer, etc.
  • the hair drying appliance 100 includes a motor and a heating element. The rotation of the motor provides a hair airflow for the hair drying appliance 100, and the heating element provides heating for the hair drying appliance 100 Temperature; electronic switch can be light touch switch, induction switch, voice control switch, etc. By operating the first electronic switch 110 and the second electronic switch 120 on the hair drying appliance 100, you can control the function of the hair drying appliance 100, such as switching on and off, wind speed range switching, temperature range switching, cold air mode switching, negative ion switch, etc.
  • the indicator light 130 can be used to display gear information and on-off status.
  • the switch control method provided in this embodiment can improve the space utilization of the hair drying appliance, improve the service life and handling performance of the hair drying appliance, reduce the probability of false triggering, and make the appearance of the hair dryer more integrated.
  • the number of the electronic switches can also be set to other numbers, for example, when the number of electronic switches is set to one, the overall appearance of the product can be further improved and the product cost can be reduced; when the number of electronic switches is set to more than two , It is convenient to control more functions, which improves the convenience of operation.
  • FIG. 2 it is a flowchart of a switch control method in an embodiment.
  • the switch control method in this embodiment is to An example will be described by running on the hair drying appliance in FIG. 1.
  • the switch control method includes the following steps 202 to 206:
  • Step 202 When an input operation acting on the electronic switch is detected, obtain status information of the hair drying appliance.
  • the user can operate the electronic switch on the hair drying appliance to activate the corresponding function.
  • the electronic switch includes but is not limited to a tact switch, Inductive switches, voice-activated switches, touch switches, wireless switches, etc.
  • the input operations of electronic switches include one or more of long-press operation, short-press operation, push-pull operation, touch operation, voice control operation, and induction operation.
  • This embodiment can detect the trigger operation acting on the electronic switch, such as the trigger mode, trigger duration, and trigger object.
  • the state information of the hair drying appliance is further acquired, and the state information includes an operating state and a standby state.
  • the running state means that the isolation switch of the device is closed, and the circuit from the power supply to the receiving end is turned on to make the device work;
  • the standby state means that the device is powered on but does not perform any substantive work (that is, the program is not running )status. According to the input operation of the electronic switch in different states of the hair drying appliance, different control effects can be produced.
  • Step 204 Identify the input operation according to a preset judgment strategy, and generate a control instruction corresponding to the input operation according to the status information.
  • the electronic switch is a tact switch, obtains the pressing duration acting on the electronic switch, and recognizes the current input operation according to the pressing duration.
  • the pressing duration is greater than the preset duration, it is determined that the input operation is a long pressing operation; when the pressing duration is less than the preset duration, it is determined that the input operation is a short pressing operation.
  • the preset duration can be set by the system by default, or can be set according to user needs.
  • the judgment of the long press of the first electronic switch and the judgment of the long press of the second electronic switch may be the same or different; for example, whether the first electronic switch is a long press
  • the preset time is 3 seconds, if the first electronic switch is pressed for more than 3 seconds, it is determined to be a long press; the preset time for determining whether the second electronic switch is a long press is 2 seconds, if the second electronic switch is pressed If the duration is longer than 2 seconds, it is determined as a long press.
  • the input operation of the electronic switch may also be recognized through other recognition strategies, such as voice control recognition, voice recognition, and the like.
  • control instruction corresponding to the input operation is generated according to the acquired state information of the hair drying appliance.
  • the control functions on the hair drying appliance mainly include functions such as switch machine, wind speed gear switch, temperature gear switch, cold wind mode switch, negative ion switch, etc.
  • the switch of different control functions can be realized by long press or short press .
  • a start-up instruction for controlling the hair drying device to start working is generated.
  • a standby command for controlling the operation of the hair drying device to stop working or controlling the hair drying device to stop heating is generated Cold wind switching instruction; if a short-press operation acting on the electronic switch is recognized, a function instruction for controlling the function switching of the hair drying device is generated.
  • the short-pressing operation may be a pressing operation such as clicking and double-clicking.
  • a single-click means an operation of pressing the electronic switch once in a short time
  • a double-click means pressing the electronic switch twice in a short time.
  • the long-press operation or short-press operation acting on each electronic switch can be used to control different functions, which can save device costs and improve the integrity of the appearance, and also increase the electronic switch control Diversity.
  • Step 206 Control the hair drying appliance to run to a corresponding working state according to the control instruction.
  • control instruction is executed to control the operation of the hair drying appliance to a corresponding working state.
  • the working state of the hair drying appliance includes an operating state and a standby state, and the air speed of the hair drying appliance in the operating state includes "low speed, medium speed, In the "high speed” three-block wind speed state, the blowing temperature of the hair drying appliance in the running state includes the "low temperature, medium temperature, high temperature, cold wind” four-block temperature state.
  • the hair drying appliance further includes a negative ion on state and a negative ion off state.
  • the hair drying appliance is provided with two electronic switches.
  • the hair drying appliance switches from the standby state to the operating state.
  • the hair drying appliance blows The wind speed is switched from “low speed” to “medium speed”.
  • the blowing temperature of the hair drying appliance is switched from “cold air” to "low temperature”.
  • the state information of the hair drying appliance is acquired when an input operation acting on the electronic switch is detected, the input operation is identified according to a preset judgment strategy, and the input is generated based on the state information Operate the corresponding control instruction and control the hair dryer to run to a corresponding working state according to the control instruction.
  • the space utilization rate of the hair drying appliance is improved, and the service life and handling performance of the hair drying appliance are improved, the probability of false triggering is reduced, and the appearance of the hair dryer is more integrated.
  • the electronic switch includes a first electronic switch and a second electronic switch.
  • generating a control instruction corresponding to the input operation according to the status information further includes:
  • the hair drying appliance When the hair drying appliance is in a standby state, if a long-press operation acting on the first electronic switch is recognized, a start-up instruction is generated. Specifically, the first electronic switch is used to control the power function of the hair drying appliance. When the power is turned on by the first electronic switch, the hair drying appliance starts to work and sprays airflow at the air outlet.
  • the hair drying appliance When the hair drying appliance is in the running state, if a long press operation acting on the first electronic switch is recognized, a standby command is generated. Specifically, when the power is turned off by the first electronic switch, the hair drying appliance is in a sleep state, and at this time, the blowing speed and temperature of the hair drying appliance cannot be controlled by the electronic switch.
  • the hair drying appliance When the hair drying appliance is in the running state, if a short-press operation acting on the first electronic switch is recognized, a wind speed switching instruction for changing the rotation speed of the motor is generated.
  • the first electronic switch is also used to control the rotation speed of the motor on the hair drying appliance, that is, to control the blowing wind speed of the hair drying appliance.
  • the hair drying appliance may be set to three wind speed gears, respectively representing "low speed”, “medium speed”, and "high speed” gears.
  • the blowing wind speed of the hair drying appliance is switched from “low speed” to “medium speed”.
  • the wind speed gear on the hair drying device can also be set to other more or less gears to suit different product positioning and different user needs, which is not limited in this embodiment.
  • the hair drying appliance can be set to four temperature gears, which respectively represent “cold wind”, “low temperature”, “medium temperature”, and “high temperature” gears.
  • a short press operation acting on the second electronic switch is recognized, the hair The blowing temperature of the drying appliance is switched from the current temperature gear to the next temperature gear.
  • the blowing temperature of the hair drying appliance is switched from “cold air” to "low temperature”.
  • the temperature gear on the hair drying device can also be set to other more or less numbers of gears to adapt to different product positioning and different user needs, which is not limited in this embodiment.
  • the hair drying appliance When the hair drying appliance is in the running state, if a long-press operation acting on the second electronic switch is recognized, a cold air switching command for controlling the hair drying appliance to stop heating is generated.
  • the second electronic switch is also used to quickly switch to the cold air function.
  • the hair dryer's blowing temperature is directly switched to "cold air", which can facilitate the user to quickly set the hair and improve the operation Convenience.
  • a speed button and a temperature button are provided on the hair drying appliance.
  • the speed button is used to control the rotation speed of the motor and the working state of the hair drying appliance. You can switch between the "running state” and “standby state” by long pressing the speed button to control the power function of the hair drying appliance; by shortly pressing the speed button It can switch between "low speed, medium speed and high speed” three-block wind speed, which can bring users different levels of blowing experience.
  • the temperature button is used to control the heating temperature of the heating element, that is, to control the blowing temperature of the hair drying appliance.
  • an independent power switch may be provided on the hair drying appliance to improve the convenience of operation.
  • the power switch is used to control the power on and off of the hair drying appliance.
  • the hair drying appliance starts to work and emits airflow.
  • the speed and temperature buttons are used to control the blowing speed and temperature; when passing the power
  • the switch controls the power to be turned off the hair drying appliance is in a dormant state, and at this time, the speed and temperature buttons cannot be used to control the blowing speed and blowing temperature.
  • the hair drying appliance When the user does not need to use the hair drying appliance, the hair drying appliance can be put into a sleep (standby) state, and the false trigger operation can be effectively avoided.
  • the power switch may be an electronic switch, such as a tact switch, an induction switch, a voice control switch, etc .; the power switch may also be a mechanical switch, such as a micro switch, a slide switch, a button switch, and the like.
  • the hair drying appliance is further provided with a gear indicator
  • the switch control method further includes:
  • the gear indicator When the hair drying appliance is in the running state, the gear indicator is controlled to display gear according to the current gear information.
  • the gear information includes a wind speed gear and a temperature gear.
  • the gear indicator is used to indicate the wind speed gear and temperature gear of the hair drying appliance.
  • the gear indicator can be divided into a wind speed gear indicator and temperature Gear indicator light, gear indicator light can be set on the same axis with the electronic switch, which is convenient for users to quickly obtain the current gear information.
  • the number of gear indicator lights corresponds to the number of adjustable gears of the electronic switch.
  • the speed button can switch three wind speed gears, then the speed button corresponds to three gear indicator lights, and the temperature button can switch four temperatures. Gear, the corresponding gear indicator of the temperature button is four.
  • the power indicator can also be judged by the gear indicator.
  • the gear indication may also be performed in other ways, for example, displaying the gear and the status of the power switch through the LCD display screen.
  • the gear indicator is controlled to display the shifted gear information.
  • the user can quickly understand the status information of the hair drying appliance after the hair drying appliance is powered on, which is convenient for the operation control of the hair drying appliance, select the desired wind speed and temperature, and improve the user experience.
  • a switch control device includes an input operation detection module 310, a control instruction generation module 320, and a control instruction execution module 330.
  • the input operation detection module 310 is configured to obtain status information of the hair drying appliance when an input operation acting on the electronic switch is detected.
  • the control instruction generation module 320 is configured to recognize the input operation according to a preset judgment strategy and generate a control instruction corresponding to the input operation according to the state information.
  • the control instruction execution module 330 is configured to control the hair drying appliance to run to a corresponding working state according to the control instruction.
  • the above switch control device obtains the state information of the hair drying appliance when the input operation detection module detects the input operation acting on the electronic switch, and the control instruction generation module recognizes the input operation according to a preset judgment strategy, according to the The state information generates a control instruction corresponding to the input operation, and the control instruction execution module controls the hair dryer to operate to a corresponding working state according to the control instruction.
  • the space utilization rate of the hair drying appliance is improved, and the service life and handling performance of the hair drying appliance are improved, the probability of false triggering is reduced, and the appearance of the hair dryer is more integrated.
  • the electronic switch includes one or more than one of a tact switch, an inductive switch, a voice control switch, a touch switch, and a wireless switch.
  • the input operation acting on 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.
  • control instruction generation module 320 is further used to obtain the pressing duration acting on the electronic switch; when the pressing duration is greater than a preset duration, determine that the input operation is a long pressing operation; when the When the pressing duration is less than the preset duration, it is determined that the input operation is a short pressing operation.
  • control instruction generation module 320 is further configured to generate a control for starting the hair drying device if the long press operation on the electronic switch is recognized when the hair drying appliance is in a standby state Start command for work; when the hair drying appliance is in a running state, if a long-press operation on the electronic switch is recognized, a standby command for controlling the hair drying device to stop working or controlling the hair is generated A cold air switching command for the drying device to stop heating; if a short-press operation acting on the electronic switch is recognized, a function command for controlling the function switching of the hair drying device is generated.
  • the electronic switch includes a first electronic switch and a second electronic switch; the control instruction generation module 320 is also used to identify the action on the first electronic when the hair drying appliance is in a standby state A long press operation of the switch generates a power-on command; when the hair drying appliance is in a running state, if a long press operation acting on the first electronic switch is recognized, a standby command is generated; when the hair drying appliance is in In the running state, if a short press operation acting on the first electronic switch is recognized, a wind speed switching instruction for changing the rotation speed of the motor is generated; when the hair drying appliance is in the running state, if it acts on all The short press operation of the second electronic switch generates a temperature switching instruction for changing the heating temperature of the heating element; when the hair drying appliance is in the running state, if a long press operation acting on the second electronic switch is recognized , A cold air switching command for controlling the hair drying appliance to stop heating is generated.
  • the hair drying appliance is further provided with a gear indicator
  • the switch control device further includes a gear indicating module for controlling the hair dryer according to the current gear information when the hair drying appliance is in the running state
  • the gear indicator is used for gear display; when the control instruction is executed and the gear is switched, the gear indicator is controlled to display the gear information after the switch.
  • each module in the above switch control device is for illustration only. 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 above switch control device.
  • Each module in the above switch control device may be implemented in whole or in part by software, hardware, or a combination thereof.
  • the above modules may be embedded in the hardware or independent of the processor in the computer device, or may be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
  • An embodiment of the present application further provides an electronic device, including a memory and a processor.
  • the memory stores computer-readable instructions.
  • the processor is executed as described above.
  • the switch control method described in the example is described in the example.
  • the embodiments of the present application also provide a computer-readable storage medium.
  • One or more non-volatile computer-readable storage media containing computer-executable instructions, when the computer-executable instructions are executed by one or more processors, causing the processors to execute as described in the above embodiments Describe the switch control method.
  • the embodiments of the present application also provide a computer program product.
  • a computer program product containing instructions, when it runs on a computer, causes the computer to execute the switch control method described in the above embodiments.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a dedicated computer, a computer network, or other programmable devices.
  • 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 may be any available medium that can be accessed by a computer or a data storage device including a server, a data center, and the like integrated with one or more available media.
  • the usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, or a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, Solid State Disk (SSD)).

Abstract

A switch control method, a device, an electronic apparatus, and a computer readable storage medium. The switch control method comprises: upon detecting an input operation with respect to an electronic switch (110, 120), acquiring state information of a hair drying tool (100), the state information comprising an operating state and a standby state; identifying the input operation according to a pre-determined decision policy, and generating a control instruction corresponding to the input operation according to the state information; and controlling the hair drying tool (100) to operate in a corresponding work state according to the control instruction. The switch control method increases space efficiency of the hair drying tool (100), and improves the service life and operation and control performance thereof, thereby reducing the probability of accidental triggers and providing a more integrated external appearance.

Description

开关控制方法、装置、电子设备及计算机可读存储介质Switch control method, device, electronic equipment and computer readable storage medium 技术领域Technical field
本发明涉及计算机技术领域,尤其涉及一种开关控制方法、装置、电子设备及计算机可读存储介质。The present invention relates to the field of computer technology, and in particular, to a switch control method, device, electronic device, and computer-readable storage medium.
背景技术Background technique
毛发干燥器具(电吹风、干发器、吹风机等)主要用于头发的干燥和整形,但也可供实验室、理疗室及工业生产、美工等方面作局部干燥、加热和理疗之用。随着科技的发展以及用户需求的不断提升,毛发干燥器具(电吹风、干发器、吹风机等)上的功能越来越丰富,随之而来的是在毛发干燥器具上的控制开关数量也不断增加。Hair drying appliances (hair dryers, hair dryers, hair dryers, etc.) are mainly used for hair drying and shaping, but can also be used for local drying, heating and physical therapy in laboratories, physiotherapy rooms, industrial production, and art. With the development of technology and the continuous improvement of user needs, the functions of hair drying appliances (hair dryers, hair dryers, hair dryers, etc.) are becoming more and more abundant, and the number of control switches on hair drying appliances is also coming Increasing.
技术问题technical problem
传统的毛发干燥器具通常包括开关机、风速档位切换、风温档位切换、冷风切换等功能,大部分毛发干燥器具采用机械开关来控制上述功能,导致开关数量过多并且增加了产品的重量。一些产品为了减少开关数量,会采用合并风速档位以及风温档位的方法,这虽然降低了产品的开关数量,但同时减少了不同风速以及不同风温的组合数量,造成用户在产品使用体验上不佳。同时由于机械开关具有体积大、寿命短的问题,过多的机械开关会使得产品的空间利用率不高,产品的使用寿命以及故障率提升。Traditional hair drying appliances usually include functions such as switch machine, wind speed range switching, wind temperature range switching, cold air switching, etc. Most hair drying appliances use mechanical switches to control the above functions, resulting in too many switches and increasing the weight of the product . In order to reduce the number of switches, some products will adopt the method of combining the wind speed gear and the wind temperature gear. Although this reduces the number of switches of the product, it also reduces the number of different wind speeds and combinations of different wind temperatures, causing the user to experience the product. Not good. At the same time, due to the problems of large size and short life of mechanical switches, too many mechanical switches will make the product's space utilization rate not high, and the product's service life and failure rate will increase.
技术解决方案Technical solution
本发明实施例提供一种开关控制方法、装置、电子设备及计算机可读存储介质,可以提升毛发干燥器具的空间利用率,并提升毛发干燥器具的使用寿命和操控性能。Embodiments of the present invention provide a switch control method, device, electronic equipment, and computer-readable storage medium, which can improve the space utilization rate of a hair drying appliance, and improve the service life and control performance of a hair drying appliance.
一种开关控制方法,应用于设有电子开关的毛发干燥器具,所述方法包括:A switch control method is applied to a hair drying appliance provided with an electronic switch. The method includes:
当检测到作用于所述电子开关的输入操作时,获取所述毛发干燥器具的状态信息;所述状态信息包括运行状态和待机状态;When an input operation acting on the electronic switch is detected, status information of the hair drying appliance is acquired; the status information includes an operating state and a standby state;
根据预设判断策略识别所述输入操作,根据所述状态信息生成与所述输入操作对应的控制指令;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;
根据所述控制指令控制所述毛发干燥器具运行至相应的工作状态。Control the operation of the hair drying appliance to a corresponding working state according to the control instruction.
可选的,在其中一个实施例中,所述电子开关包括轻触开关、感应开关、声控开关、触控开关、无线开关中的一种或一种以上。Optionally, in one of the embodiments, the electronic switch includes one or more than one of a tact switch, an induction switch, a voice control switch, a touch switch, and a wireless switch.
可选的,在其中一个实施例中,所述作用于所述电子开关的输入操作包括长按操作、短按操作、推拉操作、触控操作、声控操作、感应操作中的一种或一种以上。Optionally, in one of the embodiments, the input operation acting on 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 the above.
可选的,在其中一个实施例中,所述根据预设判断策略识别所述输入操作,包括:Optionally, in one of the embodiments, the identifying the input operation according to a preset judgment strategy includes:
获取作用在所述电子开关上的按压时长;Obtaining the duration of pressing on the electronic switch;
当所述按压时长大于预设时长时,确定所述输入操作为长按操作;When the pressing duration is greater than the preset duration, it is determined that the input operation is a long pressing operation;
当所述按压时长小于预设时长时,确定所述输入操作为短按操作。When the pressing duration is less than the preset duration, it is determined that the input operation is a short pressing operation.
可选的,在其中一个实施例中,所述根据所述状态信息生成与所述输入操作对应的控制指令,包括:Optionally, in one of the embodiments, the generating a control instruction corresponding to the input operation according to the status information includes:
当所述毛发干燥器具处于待机状态时,若识别出作用于所述电子开关的长按操作,则生成用于控制所述毛发干燥装置开始工作的开机指令;When the hair drying appliance is in a standby state, if a long-press operation acting on the electronic switch is recognized, a start-up instruction for controlling the hair drying device to start working is generated;
当所述毛发干燥器具处于运行状态时,若识别出作用于所述电子开关的长按操作,则生成用于控制所述毛发干燥装置停止工作的待机指令或控制所述毛发干燥装置停止加热的冷风切换指令;若识别出作用于所述电子开关的短按操作,则生成用于控制所述毛发干燥装置进行功能切换的功能指令。When the hair drying appliance is in the running state, if a long-pressing operation acting on the electronic switch is recognized, a standby command for controlling the operation of the hair drying device to stop working or controlling the hair drying device to stop heating is generated Cold wind switching instruction; if a short-press operation acting on the electronic switch is recognized, a function instruction for controlling the function switching of the hair drying device is generated.
可选的,在其中一个实施例中,所述电子开关包括第一电子开关和第二电子开关;所述根据所述状态信息生成与所述输入操作对应的控制指令还包括:Optionally, in one of the embodiments, the electronic switch includes a first electronic switch and a second electronic switch; and the generating a control instruction corresponding to the input operation according to the state information further includes:
当所述毛发干燥器具处于待机状态时,若识别出作用于所述第一电子开关的长按操作,则生成开机指令;When the hair drying appliance is in a standby state, if a long-press operation acting on the first electronic switch is recognized, a start-up instruction is generated;
当所述毛发干燥器具处于运行状态时,若识别出作用于所述第一电子开关的长按操作,则生成待机指令;When the hair drying appliance is in the running state, if a long-press operation acting on the first electronic switch is recognized, a standby instruction is generated;
当所述毛发干燥器具处于运行状态时,若识别出作用于所述第一电子开关的短按操作,则生成用于改变电机转动速度的风速切换指令;When the hair drying appliance is in the running state, if a short press operation acting on the first electronic switch is recognized, a wind speed switching instruction for changing the rotation speed of the motor is generated;
当所述毛发干燥器具处于运行状态时,若识别出作用于所述第二电子开关的短按操作,则生成用于改变发热元件加热温度的温度切换指令;When the hair drying appliance is in the running state, if a short-press operation acting on the second electronic switch is recognized, a temperature switching instruction for changing the heating temperature of the heating element is generated;
当所述毛发干燥器具处于运行状态时,若识别出作用于所述第二电子开关的长按操作,则生成用于控制所述毛发干燥器具停止加热的冷风切换指令。When the hair drying appliance is in the running state, if a long-press operation acting on the second electronic switch is recognized, a cold air switching command for controlling the hair drying appliance to stop heating is generated.
可选的,在其中一个实施例中,所述毛发干燥器具还设置有挡位指示灯,所述方法还包括:Optionally, in one of the embodiments, the hair drying appliance is further provided with a gear indicator, and the method further includes:
当所述毛发干燥器具处于运行状态时,根据当前挡位信息控制所述挡位指示灯进行挡位显示;所述挡位信息包括风速挡位和温度挡位;When the hair drying appliance is in the running state, the gear indicator is controlled to display the gear according to the current gear information; the gear information includes the wind speed gear and the temperature gear;
当执行所述控制指令并切换挡位时,控制所述挡位指示灯显示切换后的挡位信息。When the control instruction is executed and the gear is switched, the gear indicator light is controlled to display the gear information after the switch.
一种开关控制装置,包括:A switch control device, including:
输入操作检测模块,用于当检测到作用于所述电子开关的输入操作时,获取所述毛发干燥器具的状态信息;所述状态信息包括运行状态和待机状态;The input operation detection module is configured to obtain status information of the hair drying appliance when an input operation acting on the electronic switch is detected; the status information includes an operating state and a standby state;
控制指令生成模块,用于根据预设判断策略识别所述输入操作,根据所述状态信息生成与所述输入操作对应的控制指令;A control instruction generating module, configured to identify the input operation according to a preset judgment strategy, and generate a control instruction corresponding to the input operation according to the state information;
控制指令执行模块,用于根据所述控制指令控制所述毛发干燥器具运行至相应的工作状态。A control instruction execution module is used to control the hair drying appliance to operate according to the control instruction to a corresponding working state.
一种电子设备,包括存储器及处理器,所述存储器中储存有计算机可读指令,所述指令被所述处理器执行时,使得所述处理器执行上述的方法的步骤。An electronic device includes a memory and a processor. The memory stores computer-readable instructions. When the instructions are executed by the processor, the processor is caused to perform the steps of the foregoing method.
一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述的方法的步骤。A computer-readable storage medium has stored thereon a computer program, which when executed by a processor implements the steps of the above method.
有益效果Beneficial effect
实施本发明实施例,将具有如下有益效果:The implementation of the embodiments of the present invention will have the following beneficial effects:
上述开关控制方法、装置、电子设备及计算机可读存储介质,通过在检测到作用于所述电子开关的输入操作时获取所述毛发干燥器具的状态信息,根据预设判断策略识别所述输入操作,根据所述状态信息生成与所述输入操作对应的控制指令,根据所述控制指令控制所述毛发干燥器具运行至相应的工作状态。提升了毛发干燥器具的空间利用率,并提升毛发干燥器具的使用寿命和操控性能,降低了误触发概率,并且使干发器的外观更具有整体性。The above switch control method, device, electronic equipment, and computer-readable storage medium, by acquiring the state information of the hair drying appliance when an input operation acting on the electronic switch is detected, identify the input operation according to a preset judgment strategy , 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. The space utilization rate of the hair drying appliance is improved, and the service life and handling performance of the hair drying appliance are improved, the probability of false triggering is reduced, and the appearance of the hair dryer is more integrated.
附图说明BRIEF DESCRIPTION
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly explain the embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings required in the embodiments or the description of the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, without paying any creative work, other drawings can be obtained based on these drawings.
其中:among them:
图1为一个实施例中开关控制方法的应用环境示意图;1 is a schematic diagram of an application environment of a switch control method in an embodiment;
图2为另一个实施例中开关控制方法的流程示意图;2 is a schematic flowchart of a switch control method in another embodiment;
图3为一个实施例中开关控制装置的结构框图。3 is a structural block diagram of a switch control device in an embodiment.
本发明的实施方式Embodiments of the invention
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions and advantages of the present application more clear, the present application will be described in further detail in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, and are not used to limit the present application.
除非另有定义,本文所使用的所有的技术和科学术语与属于本申请的技术领域的技术人员通常理解的含义相同。本文中在本申请的说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在限制本申请。可以理解,本申请所使用的术语“第一”、“第二”等可在本文中用于描述各种元件,但这些元件不受这些术语限制。这些术语仅用于将第一个元件与另一个元件区分。举例来说,在不脱离本申请的范围的情况下,可以将第一应用程序称为第二应用程序,且类似地,可将第二进应用程序为第一应用程序。第一应用程序和第二应用程序两者都是应用程序,但其不是同一应用程序。Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the technical field of the present application. The terminology used in the specification of the present application herein is for the purpose of describing specific embodiments only, and is not intended to limit the present application. It can be understood that the terms “first”, “second”, etc. used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish the first element from another element. For example, without departing from the scope of the present application, the first application may be referred to as the second application, and similarly, the second application may be the first application. Both the first application and the second application are applications, but they are not the same application.
图1为一个实施例中开关控制方法的应用环境示意图。如图1所示,该应用环境包括毛发干燥器具100,以及设置在毛发干燥器具100上的第一电子开关110、第二电子开关120和挡位指示灯130。FIG. 1 is a schematic diagram of an application environment of a switch control method in an embodiment. As shown in FIG. 1, the application environment includes a hair drying appliance 100, and a first electronic switch 110, a second electronic switch 120, and a gear indicator 130 provided on the hair drying appliance 100.
其中,毛发干燥器具100可以是电吹风、干发器、吹风机等,毛发干燥器具100包括电机和发热元件,电机转动为毛发干燥器具100提供了吹风气流,发热元件为毛发干燥器具100提供了加热温度;电子开关可以是轻触开关、感应开关、声控开关等。通过操作毛发干燥器具100上的第一电子开关110和第二电子开关120可以控制毛发干燥器具100的开关机、风速挡位切换、温度挡位切换、冷风模式切换,负离子开关等功能,挡位指示灯130可以用于显示挡位信息以及开关机状态等。本实施例提供的开关控制方法,可以提升毛发干燥器具的空间利用率,并提升毛发干燥器具的使用寿命和操控性能,降低了误触发概率,并且使干发器的外观更具有整体性。Wherein, the hair drying appliance 100 may be an electric hair dryer, a hair dryer, a hair dryer, etc. The hair drying appliance 100 includes a motor and a heating element. The rotation of the motor provides a hair airflow for the hair drying appliance 100, and the heating element provides heating for the hair drying appliance 100 Temperature; electronic switch can be light touch switch, induction switch, voice control switch, etc. By operating the first electronic switch 110 and the second electronic switch 120 on the hair drying appliance 100, you can control the function of the hair drying appliance 100, such as switching on and off, wind speed range switching, temperature range switching, cold air mode switching, negative ion switch, etc. The indicator light 130 can be used to display gear information and on-off status. The switch control method provided in this embodiment can improve the space utilization of the hair drying appliance, improve the service life and handling performance of the hair drying appliance, reduce the probability of false triggering, and make the appearance of the hair dryer more integrated.
可以理解的是,该电子开关的数量还可以设置为其他数量,例如当电子开关的数量设置为一个时,可以进一步提高产品外观的整体度,降低产品成本;当电子开关设置为大于两个时,方便控制更多的功能,提升了操作便捷性。It can be understood that the number of the electronic switches can also be set to other numbers, for example, when the number of electronic switches is set to one, the overall appearance of the product can be further improved and the product cost can be reduced; when the number of electronic switches is set to more than two , It is convenient to control more functions, which improves the convenience of operation.
本申请实施例提供一种开关控制方法,应用于设有电子开关的毛发干燥器具,如图2所示,为一个实施例中开关控制方法的流程图,本实施例中的开关控制方法,以运行于图1中的毛发干燥器具上为例进行描述。该开关控制方法,包括以下步骤202~步骤206:An embodiment of the present application provides a switch control method, which is applied to a hair drying appliance provided with an electronic switch. As shown in FIG. 2, it is a flowchart of a switch control method in an embodiment. The switch control method in this embodiment is to An example will be described by running on the hair drying appliance in FIG. 1. The switch control method includes the following steps 202 to 206:
步骤202:当检测到作用于所述电子开关的输入操作时,获取所述毛发干燥器具的状态信息。Step 202: When an input operation acting on the electronic switch is detected, obtain status information of the hair drying appliance.
当用于需要使用毛发干燥器具进行头发吹干、定型等活动时,用户可以通过操作毛发干燥器具上的电子开关以启动相应的功能,具体的,所述电子开关包括但不限于轻触开关、感应开关、声控开关、触控开关、无线开关等,电子开关的输入操作包括长按操作、短按操作、推拉操作、触控操作、声控操作、感应操作中的一种或一种以上。本实施例可以检测作用于所述电子开关的触发操作,例如触发方式、触发时长、触发对象等。When it is used for activities that require the use of a hair drying appliance for hair drying and styling, the user can operate the electronic switch on the hair drying appliance to activate the corresponding function. Specifically, the electronic switch includes but is not limited to a tact switch, Inductive switches, voice-activated switches, touch switches, wireless switches, etc. The input operations of electronic switches include one or more of long-press operation, short-press operation, push-pull operation, touch operation, voice control operation, and induction operation. This embodiment can detect the trigger operation acting on the electronic switch, such as the trigger mode, trigger duration, and trigger object.
当检测该输入操作时,进一步获取所述毛发干燥器具的状态信息,所述状态信息包括运行状态和待机状态。运行状态是指设备的隔离开关处于合上状态,将电源至受电端的电路接通,以使设备处于工作的状态;待机状态是指设备通电但是不进行任何实质性工作(即不进行程序运行)的状态。根据该毛发干燥器具处于不同状态下对电子开关的输入操作可以产生不同的控制效果。When detecting the input operation, the state information of the hair drying appliance is further acquired, and the state information includes an operating state and a standby state. The running state means that the isolation switch of the device is closed, and the circuit from the power supply to the receiving end is turned on to make the device work; the standby state means that the device is powered on but does not perform any substantive work (that is, the program is not running )status. According to the input operation of the electronic switch in different states of the hair drying appliance, different control effects can be produced.
步骤204:根据预设判断策略识别所述输入操作,根据所述状态信息生成与所述输入操作对应的控制指令。Step 204: Identify the input operation according to a preset judgment strategy, and generate a control instruction corresponding to the input operation according to the status information.
具体的,以作用在电子开关上的输入操作为按压操作为例,该电子开关为轻触开关,获取作用在所述电子开关上的按压时长,根据按压的时长识别当前输入操作。当所述按压时长大于预设时长时,确定所述输入操作为长按操作;当所述按压时长小于预设时长时,确定所述输入操作为短按操作。Specifically, taking the input operation acting on the electronic switch as a pressing operation as an example, the electronic switch is a tact switch, obtains the pressing duration acting on the electronic switch, and recognizes the current input operation according to the pressing duration. When the pressing duration is greater than the preset duration, it is determined that the input operation is a long pressing operation; when the pressing duration is less than the preset duration, it is determined that the input operation is a short pressing operation.
需要说明的是,预设时长可以由系统默认设置,也可以根据用户需求自行设置。可选的,当电子开关的数量为两个时,对于第一电子开关的长按判断和第二电子开关的长按判断可以相同,也可以不同;例如,判断第一电子开关是否为长按的预设时长为3秒,若第一电子开关的按压时长大于3秒,则判断为长按;判断第二电子开关是否为长按的预设时长为2秒,若第二电子开关的按压时长大于2秒,则判断为长按。在其他实施例中,还可以通过其他识别策略对电子开关的输入操作进行识别,例如声控识别、语音识别等。It should be noted that the preset duration can be set by the system by default, or can be set according to user needs. Optionally, when the number of electronic switches is two, the judgment of the long press of the first electronic switch and the judgment of the long press of the second electronic switch may be the same or different; for example, whether the first electronic switch is a long press The preset time is 3 seconds, if the first electronic switch is pressed for more than 3 seconds, it is determined to be a long press; the preset time for determining whether the second electronic switch is a long press is 2 seconds, if the second electronic switch is pressed If the duration is longer than 2 seconds, it is determined as a long press. In other embodiments, the input operation of the electronic switch may also be recognized through other recognition strategies, such as voice control recognition, voice recognition, and the like.
进一步的,根据获取的毛发干燥器具的状态信息生成与输入操作对应的控制指令。毛发干燥器具上的控制功能主要包括开关机、风速挡位切换、温度挡位切换、冷风模式切换,负离子开关等功能,本实施例可以通过长按或短按的方式实现对不同控制功能的切换。Further, a control instruction corresponding to the input operation is generated according to the acquired state information of the hair drying appliance. The control functions on the hair drying appliance mainly include functions such as switch machine, wind speed gear switch, temperature gear switch, cold wind mode switch, negative ion switch, etc. In this embodiment, the switch of different control functions can be realized by long press or short press .
具体的,当所述毛发干燥器具处于待机状态时,若识别出作用于所述电子开关的长按操作,则生成用于控制所述毛发干燥装置开始工作的开机指令。当所述毛发干燥器具处于运行状态时,若识别出作用于所述电子开关的长按操作,则生成用于控制所述毛发干燥装置停止工作的待机指令或控制所述毛发干燥装置停止加热的冷风切换指令;若识别出作用于所述电子开关的短按操作,则生成用于控制所述毛发干燥装置进行功能切换的功能指令。Specifically, when the hair drying appliance is in a standby state, if a long-press operation acting on the electronic switch is recognized, a start-up instruction for controlling the hair drying device to start working is generated. When the hair drying appliance is in the running state, if a long-pressing operation acting on the electronic switch is recognized, a standby command for controlling the operation of the hair drying device to stop working or controlling the hair drying device to stop heating is generated Cold wind switching instruction; if a short-press operation acting on the electronic switch is recognized, a function instruction for controlling the function switching of the hair drying device is generated.
可以理解的是,短按操作可以是单击、双击等按压操作,单击即表示短时间内单次按压电子开关的操作,双击即表示短时间内两次连续按压电子开关。当电子开关的数量为两个时,作用于每个电子开关的长按操作或短按操作都可以用于控制不同功能,可以节省器件成本并提升外观的整体性,同时也增加了电子开关控制的多样性。It can be understood that the short-pressing operation may be a pressing operation such as clicking and double-clicking. A single-click means an operation of pressing the electronic switch once in a short time, and a double-click means pressing the electronic switch twice in a short time. When the number of electronic switches is two, the long-press operation or short-press operation acting on each electronic switch can be used to control different functions, which can save device costs and improve the integrity of the appearance, and also increase the electronic switch control Diversity.
步骤206:根据所述控制指令控制所述毛发干燥器具运行至相应的工作状态。Step 206: Control 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 operation of the hair drying appliance to a corresponding working state. The working state of the hair drying appliance includes an operating state and a standby state, and the air speed of the hair drying appliance in the operating state includes "low speed, medium speed, In the "high speed" three-block wind speed state, the blowing temperature of the hair drying appliance in the running state includes the "low temperature, medium temperature, high temperature, cold wind" four-block temperature state. Optionally, the hair drying appliance further includes a negative ion on state and a negative ion off state.
举例来说,毛发干燥器具设置有两个电子开关,当用户长按第一电子开关时,毛发干燥器具由待机状态切换为运行状态,当用户短按第一电子开关时,毛发干燥器具的吹风风速由“低速”切换为“中速”,当用户短按第二电子开关时,毛发干燥器具的吹风温度由“冷风”切换为“低温”,当用户双击第一电子开关时,毛发干燥器具进入负离子开启状态。For example, the hair drying appliance is provided with two electronic switches. When the user long presses the first electronic switch, the hair drying appliance switches from the standby state to the operating state. When the user short presses the first electronic switch, the hair drying appliance blows The wind speed is switched from "low speed" to "medium speed". When the user short presses the second electronic switch, the blowing temperature of the hair drying appliance is switched from "cold air" to "low temperature". When the user double-clicks the first electronic switch, the hair drying appliance Enter the negative ion on state.
上述开关控制方法,通过在检测到作用于所述电子开关的输入操作时获取所述毛发干燥器具的状态信息,根据预设判断策略识别所述输入操作,根据所述状态信息生成与所述输入操作对应的控制指令,根据所述控制指令控制所述毛发干燥器具运行至相应的工作状态。提升了毛发干燥器具的空间利用率,并提升毛发干燥器具的使用寿命和操控性能,降低了误触发概率,并且使干发器的外观更具有整体性。In the above switch control method, the state information of the hair drying appliance is acquired when an input operation acting on the electronic switch is detected, the input operation is identified according to a preset judgment strategy, and the input is generated based on the state information Operate the corresponding control instruction and control the hair dryer to run to a corresponding working state according to the control instruction. The space utilization rate of the hair drying appliance is improved, and the service life and handling performance of the hair drying appliance are improved, the probability of false triggering is reduced, and the appearance of the hair dryer is more integrated.
在一个实施例中,电子开关包括第一电子开关和第二电子开关,步骤204中根据所述状态信息生成与所述输入操作对应的控制指令还包括:In one embodiment, the electronic switch includes a first electronic switch and a second electronic switch. In step 204, generating a control instruction corresponding to the input operation according to the status information further includes:
当所述毛发干燥器具处于待机状态时,若识别出作用于所述第一电子开关的长按操作,则生成开机指令。具体的,第一电子开关用于控制毛发干燥器具的电源功能,当通过第一电子开关控制电源开启时,毛发干燥器具开始工作并在出风口喷出气流。When the hair drying appliance is in a standby state, if a long-press operation acting on the first electronic switch is recognized, a start-up instruction is generated. Specifically, the first electronic switch is used to control the power function of the hair drying appliance. When the power is turned on by the first electronic switch, the hair drying appliance starts to work and sprays airflow at the air outlet.
当所述毛发干燥器具处于运行状态时,若识别出作用于所述第一电子开关的长按操作,则生成待机指令。具体的,当通过第一电子开关控制电源关闭时,毛发干燥器具处于休眠状态,此时无法通过电子开关控制毛发干燥器具的吹风风速和吹风温度。When the hair drying appliance is in the running state, if a long press operation acting on the first electronic switch is recognized, a standby command is generated. Specifically, when the power is turned off by the first electronic switch, the hair drying appliance is in a sleep state, and at this time, the blowing speed and temperature of the hair drying appliance cannot be controlled by the electronic switch.
当所述毛发干燥器具处于运行状态时,若识别出作用于所述第一电子开关的短按操作,则生成用于改变电机转动速度的风速切换指令。具体的,第一电子开关还用于控制毛发干燥器具上的电机转速,也即控制毛发干燥器具的吹风风速。毛发干燥器具可以设置为三个风速挡位,分别表示“低速”、“中速”、“高速”挡位,当识别出作用于所述第一电子开关的短按操作时,毛发干燥器具的吹风风速由当前风速挡位切换至下一风速挡位,例如当用户短按第一电子开关时,毛发干燥器具的吹风风速由“低速”切换为“中速”。可以理解的是,毛发干燥装置上的风速挡位还可以设置为其他更多或更少的挡位数量,以适用不同产品定位和不同用户的需求,本实施例对此不进行限定。When the hair drying appliance is in the running state, if a short-press operation acting on the first electronic switch is recognized, a wind speed switching instruction for changing the rotation speed of the motor is generated. Specifically, the first electronic switch is also used to control the rotation speed of the motor on the hair drying appliance, that is, to control the blowing wind speed of the hair drying appliance. The hair drying appliance may be set to three wind speed gears, respectively representing "low speed", "medium speed", and "high speed" gears. When a short press operation acting on the first electronic switch is recognized, the hair drying appliance's The blowing wind speed is switched from the current wind speed gear to the next wind speed gear. For example, when the user short-presses the first electronic switch, the blowing wind speed of the hair drying appliance is switched from "low speed" to "medium speed". It can be understood that the wind speed gear on the hair drying device can also be set to other more or less gears to suit different product positioning and different user needs, which is not limited in this embodiment.
当所述毛发干燥器具处于运行状态时,若识别出作用于所述第二电子开关的短按操作,则生成用于改变发热元件加热温度的温度切换指令;具体的,第二电子开关还用于控制毛发干燥器具上的加热温度。毛发干燥器具可以设置为四个温度挡位,分别表示“冷风”、“低温”、“中温”、“高温”挡位,当识别出作用于所述第二电子开关的短按操作时,毛发干燥器具的吹风温度由当前温度挡位切换至下一温度挡位,例如当用户短按第二电子开关时,毛发干燥器具的吹风温度由“冷风”切换为“低温”。可以理解的是,毛发干燥装置上的温度挡位还可以设置为其他更多或更少的挡位数量,以适用不同产品定位和不同用户的需求,本实施例对此不进行限定。When the hair drying appliance is in the running state, if a short-press operation acting on the second electronic switch is recognized, a temperature switching instruction for changing the heating temperature of the heating element is generated; specifically, the second electronic switch is also used To control the heating temperature on the hair dryer. The hair drying appliance can be set to four temperature gears, which respectively represent "cold wind", "low temperature", "medium temperature", and "high temperature" gears. When a short press operation acting on the second electronic switch is recognized, the hair The blowing temperature of the drying appliance is switched from the current temperature gear to the next temperature gear. For example, when the user short-presses the second electronic switch, the blowing temperature of the hair drying appliance is switched from "cold air" to "low temperature". It can be understood that the temperature gear on the hair drying device can also be set to other more or less numbers of gears to adapt to different product positioning and different user needs, which is not limited in this embodiment.
当所述毛发干燥器具处于运行状态时,若识别出作用于所述第二电子开关的长按操作,则生成用于控制所述毛发干燥器具停止加热的冷风切换指令。具体的,第二电子开关还用于快捷切换至冷风功能,当用户长按第二电子开关时,毛发干燥器具的吹风温度直接切换至“冷风”,可便于用户快速将头发定型,提升了操作的便捷性。When the hair drying appliance is in the running state, if a long-press operation acting on the second electronic switch is recognized, a cold air switching command for controlling the hair drying appliance to stop heating is generated. Specifically, the second electronic switch is also used to quickly switch to the cold air function. When the user presses the second electronic switch for a long time, the hair dryer's blowing temperature is directly switched to "cold air", which can facilitate the user to quickly set the hair and improve the operation Convenience.
作为具体的举例说明,在毛发干燥器具的上设置有速度按钮和温度按钮。速度按钮用于控制电机的转速以及毛发干燥器具的工作状态,通过长按该速度按钮可以进行“运行状态”与“待机状态”的切换,控制毛发干燥器具的电源功能;通过短按该速度按钮可进行“低速、中速、高速”三挡风速切换,可以带给用户不同程度的吹风感受。温度按钮用于控制发热元件的加热温度,也即是控制毛发干燥器具的吹风温度,通过短按该温度按钮可进行“低温、中温、高温、冷风”四挡加热温度切换,通过长按该温度按钮可以直接切换至“冷风”状态。因此,通过速度按钮与温度按钮配合切换,可以实现12种不同风温风速的吹风组合,以满足用户的不同吹风需求。As a specific example, a speed button and a temperature button are provided on the hair drying appliance. The speed button is used to control the rotation speed of the motor and the working state of the hair drying appliance. You can switch between the "running state" and "standby state" by long pressing the speed button to control the power function of the hair drying appliance; by shortly pressing the speed button It can switch between "low speed, medium speed and high speed" three-block wind speed, which can bring users different levels of blowing experience. The temperature button is used to control the heating temperature of the heating element, that is, to control the blowing temperature of the hair drying appliance. By short pressing the temperature button, you can switch the heating temperature of "low temperature, medium temperature, high temperature, cold wind" four blocks, and by long pressing the temperature The button can be directly switched to the "cold air" state. Therefore, through the cooperative switching of the speed button and the temperature button, 12 combinations of blowing at different wind temperatures and wind speeds can be realized to meet different blowing needs of users.
可选的,在其他实施例中,毛发干燥器具上还可以设置独立的电源开关,以提升操作的便捷性。电源开关用于控制毛发干燥器具上电源的开启与关闭,当通过电源按钮控制电源开启时,毛发干燥器具开始工作并喷出气流,通过速度按钮和温度按钮控制吹风风速和吹风温度;当通过电源开关控制电源关闭时,毛发干燥器具处于休眠状态,此时无法通过速度按钮和温度按钮控制吹风风速和吹风温度。通过设置电源按钮,可以节省毛发干燥器具的待机功耗,在用户不需要使用毛发干燥器具时让毛发干燥器具处于关眠(待机)状态,并且可以有效避免误触发操作。需要说明的是,该电源开关可以是电子开关,例如轻触开关、感应开关、声控开关等;该电源开关还可以是机械开关,例如微动开关、滑动开关、按钮开关等。Optionally, in other embodiments, an independent power switch may be provided on the hair drying appliance to improve the convenience of operation. The power switch is used to control the power on and off of the hair drying appliance. When the power is controlled by the power button, the hair drying appliance starts to work and emits airflow. The speed and temperature buttons are used to control the blowing speed and temperature; when passing the power When the switch controls the power to be turned off, the hair drying appliance is in a dormant state, and at this time, the speed and temperature buttons cannot be used to control the blowing speed and blowing temperature. By setting the power button, the standby power consumption of the hair drying appliance can be saved. When the user does not need to use the hair drying appliance, the hair drying appliance can be put into a sleep (standby) state, and the false trigger operation can be effectively avoided. It should be noted that the power switch may be an electronic switch, such as a tact switch, an induction switch, a voice control switch, etc .; the power switch may also be a mechanical switch, such as a micro switch, a slide switch, a button switch, and the like.
在一个实施例中,毛发干燥器具还设置有挡位指示灯,该开关控制方法还包括:In one embodiment, the hair drying appliance is further provided with a gear indicator, and the switch control method further includes:
当所述毛发干燥器具处于运行状态时,根据当前挡位信息控制所述挡位指示灯进行挡位显示。具体的,所述挡位信息包括风速挡位和温度挡位,挡位指示灯用于指示毛发干燥器具的风速挡位和温度挡位,挡位指示灯可以分为风速挡位指示灯和温度挡位指示灯,挡位指示灯可以与电子开关设置在同一轴线上,便于用户快速获取当前挡位信息。挡位指示灯的数量与电子开关的可调挡位数量相对应,例如,速度按钮可以切换三个风速挡位,则速度按钮对应的挡位指示灯为三个,温度按钮可以切换四个温度挡位,则温度按钮对应的挡位指示灯为四个。可以理解的是,还可以通过挡位指示灯判断电源开关情况。可选的,在其他实施例中,还可以采用其他方式进行挡位指示,例如通过LCD显示屏对挡位以及电源开关情况进行显示。When the hair drying appliance is in the running state, the gear indicator is controlled to display gear according to the current gear information. Specifically, the gear information includes a wind speed gear and a temperature gear. The gear indicator is used to indicate the wind speed gear and temperature gear of the hair drying appliance. The gear indicator can be divided into a wind speed gear indicator and temperature Gear indicator light, gear indicator light can be set on the same axis with the electronic switch, which is convenient for users to quickly obtain the current gear information. The number of gear indicator lights corresponds to the number of adjustable gears of the electronic switch. For example, the speed button can switch three wind speed gears, then the speed button corresponds to three gear indicator lights, and the temperature button can switch four temperatures. Gear, the corresponding gear indicator of the temperature button is four. It is understandable that the power indicator can also be judged by the gear indicator. Optionally, in other embodiments, the gear indication may also be performed in other ways, for example, displaying the gear and the status of the power switch through the LCD display screen.
进一步的,当执行所述控制指令并切换挡位时,控制所述挡位指示灯显示切换后的挡位信息。Further, when the control instruction is executed and the gear is switched, the gear indicator is controlled to display the shifted gear information.
本实施例提供的开关控制方法,用户在毛发干燥器具上电后可以快速了解毛发干燥器具的状态信息,便于对毛发干燥器具的操作控制,选取自己想要的风速风温,提升用户体验。With the switch control method provided in this embodiment, the user can quickly understand the status information of the hair drying appliance after the hair drying appliance is powered on, which is convenient for the operation control of the hair drying appliance, select the desired wind speed and temperature, and improve the user experience.
如图3所示,在一个实施例中,提供一种开关控制装置,该装置包括:输入操作检测模块310、控制指令生成模块320、控制指令执行模块330。As shown in FIG. 3, in one embodiment, a switch control device is provided. The device includes an input operation detection module 310, a control instruction generation module 320, and a control instruction execution module 330.
输入操作检测模块310,用于当检测到作用于所述电子开关的输入操作时,获取所述毛发干燥器具的状态信息。The input operation detection module 310 is configured to obtain status information of the hair drying appliance when an input operation acting on the electronic switch is detected.
控制指令生成模块320,用于根据预设判断策略识别所述输入操作,根据所述状态信息生成与所述输入操作对应的控制指令。The control instruction generation module 320 is configured to recognize the input operation according to a preset judgment strategy and generate a control instruction corresponding to the input operation according to the state information.
控制指令执行模块330,用于根据所述控制指令控制所述毛发干燥器具运行至相应的工作状态。The control instruction execution module 330 is configured to control the hair drying appliance to run to a corresponding working state according to the control instruction.
上述开关控制装置,通过输入操作检测模块在检测到作用于所述电子开关的输入操作时获取所述毛发干燥器具的状态信息,控制指令生成模块根据预设判断策略识别所述输入操作,根据所述状态信息生成与所述输入操作对应的控制指令,控制指令执行模块根据所述控制指令控制所述毛发干燥器具运行至相应的工作状态。提升了毛发干燥器具的空间利用率,并提升毛发干燥器具的使用寿命和操控性能,降低了误触发概率,并且使干发器的外观更具有整体性。The above switch control device obtains the state information of the hair drying appliance when the input operation detection module detects the input operation acting on the electronic switch, and the control instruction generation module recognizes the input operation according to a preset judgment strategy, according to the The state information generates a control instruction corresponding to the input operation, and the control instruction execution module controls the hair dryer to operate to a corresponding working state according to the control instruction. The space utilization rate of the hair drying appliance is improved, and the service life and handling performance of the hair drying appliance are improved, the probability of false triggering is reduced, and the appearance of the hair dryer is more integrated.
在一个实施例中,所述电子开关包括轻触开关、感应开关、声控开关、触控开关、无线开关中的一种或一种以上。In one embodiment, the electronic switch includes one or more than one of a tact switch, an inductive switch, a voice control switch, a touch switch, and a wireless switch.
在一个实施例中,所述作用于所述电子开关的输入操作包括长按操作、短按操作、推拉操作、触控操作、声控操作、感应操作中的一种或一种以上。In one embodiment, the input operation acting on 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.
在一个实施例中,控制指令生成模块320还用于获取作用在所述电子开关上的按压时长;当所述按压时长大于预设时长时,确定所述输入操作为长按操作;当所述按压时长小于预设时长时,确定所述输入操作为短按操作。In one embodiment, the control instruction generation module 320 is further used to obtain the pressing duration acting on the electronic switch; when the pressing duration is greater than a preset duration, determine that the input operation is a long pressing operation; when the When the pressing duration is less than the preset duration, it is determined that the input operation is a short pressing operation.
在一个实施例中,控制指令生成模块320还用于当所述毛发干燥器具处于待机状态时,若识别出作用于所述电子开关的长按操作,则生成用于控制所述毛发干燥装置开始工作的开机指令;当所述毛发干燥器具处于运行状态时,若识别出作用于所述电子开关的长按操作,则生成用于控制所述毛发干燥装置停止工作的待机指令或控制所述毛发干燥装置停止加热的冷风切换指令;若识别出作用于所述电子开关的短按操作,则生成用于控制所述毛发干燥装置进行功能切换的功能指令。In one embodiment, the control instruction generation module 320 is further configured to generate a control for starting the hair drying device if the long press operation on the electronic switch is recognized when the hair drying appliance is in a standby state Start command for work; when the hair drying appliance is in a running state, if a long-press operation on the electronic switch is recognized, a standby command for controlling the hair drying device to stop working or controlling the hair is generated A cold air switching command for the drying device to stop heating; if a short-press operation acting on the electronic switch is recognized, a function command for controlling the function switching of the hair drying device is generated.
在一个实施例中,所述电子开关包括第一电子开关和第二电子开关;控制指令生成模块320还用于当所述毛发干燥器具处于待机状态时,若识别出作用于所述第一电子开关的长按操作,则生成开机指令;当所述毛发干燥器具处于运行状态时,若识别出作用于所述第一电子开关的长按操作,则生成待机指令;当所述毛发干燥器具处于运行状态时,若识别出作用于所述第一电子开关的短按操作,则生成用于改变电机转动速度的风速切换指令;当所述毛发干燥器具处于运行状态时,若识别出作用于所述第二电子开关的短按操作,则生成用于改变发热元件加热温度的温度切换指令;当所述毛发干燥器具处于运行状态时,若识别出作用于所述第二电子开关的长按操作,则生成用于控制所述毛发干燥器具停止加热的冷风切换指令。In one embodiment, the electronic switch includes a first electronic switch and a second electronic switch; the control instruction generation module 320 is also used to identify the action on the first electronic when the hair drying appliance is in a standby state A long press operation of the switch generates a power-on command; when the hair drying appliance is in a running state, if a long press operation acting on the first electronic switch is recognized, a standby command is generated; when the hair drying appliance is in In the running state, if a short press operation acting on the first electronic switch is recognized, a wind speed switching instruction for changing the rotation speed of the motor is generated; when the hair drying appliance is in the running state, if it acts on all The short press operation of the second electronic switch generates a temperature switching instruction for changing the heating temperature of the heating element; when the hair drying appliance is in the running state, if a long press operation acting on the second electronic switch is recognized , A cold air switching command for controlling the hair drying appliance to stop heating is generated.
在一个实施例中,所述毛发干燥器具还设置有挡位指示灯,该开关控制装置还包括挡位指示模块,用于当所述毛发干燥器具处于运行状态时,根据当前挡位信息控制所述挡位指示灯进行挡位显示;当执行所述控制指令并切换挡位时,控制所述挡位指示灯显示切换后的挡位信息。In one embodiment, the hair drying appliance is further provided with a gear indicator, and the switch control device further includes a gear indicating module for controlling the hair dryer according to the current gear information when the hair drying appliance is in the running state The gear indicator is used for gear display; when the control instruction is executed and the gear is switched, the gear indicator is controlled to display the gear information after the switch.
上述开关控制装置中各个模块的划分仅用于举例说明,在其他实施例中,可将开关控制装置按照需要划分为不同的模块,以完成上述开关控制装置的全部或部分功能。The division of each module in the above switch control device is for illustration only. 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 above switch control device.
关于开关控制装置的具体限定可以参见上文中对于开关控制方法的限定,在此不再赘述。上述开关控制装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For specific definitions of the switch control device, reference may be made to the above definition of the switch control method, and details are not repeated here. Each module in the above switch control device may be implemented in whole or in part by software, hardware, or a combination thereof. The above modules may be embedded in the hardware or independent of the processor in the computer device, or may be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
本申请实施例还提供了一种电子设备,包括存储器及处理器,所述存储器中储存有计算机可读指令,所述指令被所述处理器执行时,使得所述处理器执行如上述各实施例中所描述的开关控制方法。An embodiment of the present application further provides an electronic device, including a memory and a processor. The memory stores computer-readable instructions. When the instructions are executed by the processor, the processor is executed as described above. The switch control method described in the example.
本申请实施例还提供了一种计算机可读存储介质。一个或多个包含计算机可执行指令的非易失性计算机可读存储介质,当所述计算机可执行指令被一个或多个处理器执行时,使得所述处理器执行如上述各实施例中所描述的开关控制方法。The embodiments of the present application also provide a computer-readable storage medium. One or more non-volatile computer-readable storage media containing computer-executable instructions, when the computer-executable instructions are executed by one or more processors, causing the processors to execute as described in the above embodiments Describe the switch control method.
本申请实施例还提供了一种计算机程序产品。一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述各实施例中所描述的开关控制方法。The embodiments of the present application also provide a computer program product. A computer program product containing instructions, when it runs on a computer, causes the computer to execute the switch control method described in the above embodiments.
在上述实施例中,可以全部或部分的通过软件、硬件、固件或者其任意组合来实现。当使用软件程序实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本发明实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或半导体介质(例如固态硬盘Solid State Disk(SSD))等。In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using a software program, it can 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 the computer program instructions are loaded and executed on the computer, all or part of the processes or functions according to the embodiments of the present invention are generated. The computer may be a general-purpose computer, a dedicated computer, a computer network, or other programmable devices. 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 may be any available medium that can be accessed by a computer or a data storage device including a server, a data center, and the like integrated with one or more available media. The usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, or a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, Solid State Disk (SSD)).
以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。The above disclosure is only preferred embodiments of the present invention, and of course it cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention still fall within the scope of the present invention.

Claims (10)

  1. 一种开关控制方法,其特征在于,应用于设有电子开关的毛发干燥器具,所述方法包括:A switch control method, characterized in that it is applied to a hair drying appliance provided with an electronic switch, the method includes:
    当检测到作用于所述电子开关的输入操作时,获取所述毛发干燥器具的状态信息;所述状态信息包括运行状态和待机状态;When an input operation acting on the electronic switch is detected, status information of the hair drying appliance is acquired; the status information includes an operating state and a standby state;
    根据预设判断策略识别所述输入操作,根据所述状态信息生成与所述输入操作对应的控制指令;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;
    根据所述控制指令控制所述毛发干燥器具运行至相应的工作状态。Control the operation of the hair drying appliance to a corresponding working state according to the control instruction.
  2. 根据权利要求1所述的方法,其特征在于,所述电子开关包括轻触开关、感应开关、声控开关、触控开关、无线开关中的一种或一种以上。The method according to claim 1, wherein the electronic switch includes one or more than one of a tact switch, an induction switch, a voice control switch, a touch switch, and a wireless switch.
  3. 根据权利要求2所述的方法,其特征在于,所述作用于所述电子开关的输入操作包括长按操作、短按操作、推拉操作、触控操作、声控操作、感应操作中的一种或一种以上。The method according to claim 2, wherein the input operation acting on the electronic switch includes one of a long press operation, a short press operation, a push-pull operation, a touch operation, a voice control operation, and a sensing operation or More than one.
  4. 根据权利要求1所述的方法,其特征在于,所述根据预设判断策略识别所述输入操作,包括:The method according to claim 1, wherein the identifying the input operation according to a preset judgment strategy includes:
    获取作用在所述电子开关上的按压时长;Obtaining the duration of pressing on the electronic switch;
    当所述按压时长大于预设时长时,确定所述输入操作为长按操作;When the pressing duration is greater than the preset duration, it is determined that the input operation is a long pressing operation;
    当所述按压时长小于预设时长时,确定所述输入操作为短按操作。When the pressing duration is less than the preset duration, it is determined that the input operation is a short pressing operation.
  5. 根据权利要求4所述的方法,其特征在于,所述根据所述状态信息生成与所述输入操作对应的控制指令,包括:The method according to claim 4, wherein the generating a control instruction corresponding to the input operation according to the state information includes:
    当所述毛发干燥器具处于待机状态时,若识别出作用于所述电子开关的长按操作,则生成用于控制所述毛发干燥装置开始工作的开机指令;When the hair drying appliance is in a standby state, if a long-press operation acting on the electronic switch is recognized, a start-up instruction for controlling the hair drying device to start working is generated;
    当所述毛发干燥器具处于运行状态时,若识别出作用于所述电子开关的长按操作,则生成用于控制所述毛发干燥装置停止工作的待机指令或控制所述毛发干燥装置停止加热的冷风切换指令;若识别出作用于所述电子开关的短按操作,则生成用于控制所述毛发干燥装置进行功能切换的功能指令。When the hair drying appliance is in the running state, if a long-press operation acting on the electronic switch is recognized, a standby command for controlling the hair drying device to stop working or the hair drying device to stop heating is generated Cold wind switching instruction; if a short-press operation acting on the electronic switch is recognized, a function instruction for controlling the function switching of the hair drying device is generated.
  6. 根据权利要求5所述的方法,其特征在于,所述电子开关包括第一电子开关和第二电子开关;所述根据所述状态信息生成与所述输入操作对应的控制指令还包括:The method according to claim 5, wherein the electronic switch includes a first electronic switch and a second electronic switch; and the generating a control instruction corresponding to the input operation according to the state information further includes:
    当所述毛发干燥器具处于待机状态时,若识别出作用于所述第一电子开关的长按操作,则生成开机指令;When the hair drying appliance is in a standby state, if a long-press operation acting on the first electronic switch is recognized, a start-up instruction is generated;
    当所述毛发干燥器具处于运行状态时,若识别出作用于所述第一电子开关的长按操作,则生成待机指令;When the hair drying appliance is in the running state, if a long-press operation acting on the first electronic switch is recognized, a standby instruction is generated;
    当所述毛发干燥器具处于运行状态时,若识别出作用于所述第一电子开关的短按操作,则生成用于改变电机转动速度的风速切换指令;When the hair drying appliance is in the running state, if a short press operation acting on the first electronic switch is recognized, a wind speed switching instruction for changing the rotation speed of the motor is generated;
    当所述毛发干燥器具处于运行状态时,若识别出作用于所述第二电子开关的短按操作,则生成用于改变发热元件加热温度的温度切换指令;When the hair drying appliance is in the running state, if a short-press operation acting on the second electronic switch is recognized, a temperature switching instruction for changing the heating temperature of the heating element is generated;
    当所述毛发干燥器具处于运行状态时,若识别出作用于所述第二电子开关的长按操作,则生成用于控制所述毛发干燥器具停止加热的冷风切换指令。When the hair drying appliance is in the running state, if a long-press operation acting on the second electronic switch is recognized, a cold air switching command for controlling the hair drying appliance to stop heating is generated.
  7. 根据权利要求1所述的方法,其特征在于,所述毛发干燥器具还设置有挡位指示灯,所述方法还包括:The method according to claim 1, wherein the hair drying appliance is further provided with a gear indicator, and the method further comprises:
    当所述毛发干燥器具处于运行状态时,根据当前挡位信息控制所述挡位指示灯进行挡位显示;所述挡位信息包括风速挡位和温度挡位;When the hair drying appliance is in the running state, the gear indicator is controlled to display the gear according to the current gear information; the gear information includes the wind speed gear and the temperature gear;
    当执行所述控制指令并切换挡位时,控制所述挡位指示灯显示切换后的挡位信息。When the control instruction is executed and the gear is switched, the gear indicator light is controlled to display the gear information after the switch.
  8. 一种开关控制装置,其特征在于,包括:A switch control device, characterized in that it includes:
    输入操作检测模块,用于当检测到作用于所述电子开关的输入操作时,获取所述毛发干燥器具的状态信息;所述状态信息包括运行状态和待机状态;The input operation detection module is configured to obtain status information of the hair drying appliance when an input operation acting on the electronic switch is detected; the status information includes an operating state and a standby state;
    控制指令生成模块,用于根据预设判断策略识别所述输入操作,根据所述状态信息生成与所述输入操作对应的控制指令;A control instruction generating module, configured to identify the input operation according to a preset judgment strategy, and generate a control instruction corresponding to the input operation according to the state information;
    控制指令执行模块,用于根据所述控制指令控制所述毛发干燥器具运行至相应的工作状态。A control instruction execution module is used to control the hair drying appliance to operate according to the control instruction to a corresponding working state.
  9. 一种电子设备,其特征在于,包括存储器及处理器,所述存储器中储存有计算机可读指令,所述指令被所述处理器执行时,使得所述处理器执行如权利要求1至7中任一项所述的方法的步骤。An electronic device, characterized in that it includes a memory and a processor, and the memory stores computer-readable instructions, and when the instructions are executed by the processor, the processor is executed as claimed in claims 1 to 7. The method of any one of the steps.
  10. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至7中任一项所述的方法的步骤。A computer-readable storage medium on which a computer program is stored, characterized in that when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are realized.
PCT/CN2019/087819 2018-11-07 2019-05-21 Switch control method, device, electronic apparatus, and computer readable storage medium WO2020093680A1 (en)

Applications Claiming Priority (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
CN201811324027.0 2018-11-07

Publications (1)

Publication Number Publication Date
WO2020093680A1 true WO2020093680A1 (en) 2020-05-14

Family

ID=66067461

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/087819 WO2020093680A1 (en) 2018-11-07 2019-05-21 Switch control method, device, electronic apparatus, 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 (6)

* 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
CN109619796A (en) * 2018-11-07 2019-04-16 舒可士(深圳)科技有限公司 Method of controlling switch, device, electronic equipment and computer readable storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109171157A (en) * 2018-10-31 2019-01-11 舒可士(深圳)科技有限公司 Trichoxerosis device
CN109090796A (en) * 2018-10-31 2018-12-28 舒可士(深圳)科技有限公司 Trichoxerosis device

Patent Citations (6)

* 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
CN109619796A (en) * 2018-11-07 2019-04-16 舒可士(深圳)科技有限公司 Method of controlling switch, device, electronic equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN109619796B (en) 2021-09-14
CN109619796A (en) 2019-04-16

Similar Documents

Publication Publication Date Title
CN103067784B (en) A kind of virtual key method and television set based on touch-screen television set
CN106875945B (en) Voice control method and device and air conditioner
CN106847298B (en) Pickup method and device based on diffuse type voice interaction
CN102955468B (en) Open type monitoring system and operation method thereof
JP5739002B2 (en) Communication device and communication system
WO2020093680A1 (en) Switch control method, device, electronic apparatus, and computer readable storage medium
CN108446010A (en) Information processing method and electronic equipment
CN110515462A (en) It is a kind of intelligence wearable device in apply control method, device
WO2022105447A1 (en) Iot device control method, apparatus, terminal, and storage medium
CN105045519A (en) User terminal and screen control method therefor
CN108509020A (en) A kind of information processing method, electronic equipment and readable storage medium storing program for executing
CN105183314A (en) Bright screen duration adjustment method and mobile terminal
CN108937787B (en) Variable frequency driving method and device and computer readable storage medium
JP2018524962A (en) Power supply control method based on mobile power supply
KR102557678B1 (en) Server, electronic apparatus and information providing thereof
WO2021204117A1 (en) Household appliance control method, household appliance, and computer-readable storage medium
CN105138323B (en) A kind of information processing method and electronic equipment
TW201732742A (en) Electronic device and method for remote controlling appliance using the same
US20150355656A1 (en) Electric appliance standby electricity-saving control device
CN107436718A (en) Touch-control system and method
JP2017157960A (en) Network system
JP2004164530A (en) Battery condition reading method by operation system of portable computer
CN107436698A (en) Touch-control system and method
WO2022242385A1 (en) Household appliance control method and apparatus
TW201423560A (en) Handheld device and remote control method therefore

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19881890

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19881890

Country of ref document: EP

Kind code of ref document: A1