CN107232643B - Unlocking method and device of electronic cigarette, storage medium and electronic cigarette - Google Patents

Unlocking method and device of electronic cigarette, storage medium and electronic cigarette Download PDF

Info

Publication number
CN107232643B
CN107232643B CN201710263616.1A CN201710263616A CN107232643B CN 107232643 B CN107232643 B CN 107232643B CN 201710263616 A CN201710263616 A CN 201710263616A CN 107232643 B CN107232643 B CN 107232643B
Authority
CN
China
Prior art keywords
unlocking
electronic cigarette
data
behavior data
instruction
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
CN201710263616.1A
Other languages
Chinese (zh)
Other versions
CN107232643A (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 Smoore Technology Ltd
Original Assignee
Shenzhen Smoore Technology 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 Smoore Technology Ltd filed Critical Shenzhen Smoore Technology Ltd
Priority to CN201710263616.1A priority Critical patent/CN107232643B/en
Publication of CN107232643A publication Critical patent/CN107232643A/en
Application granted granted Critical
Publication of CN107232643B publication Critical patent/CN107232643B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A24TOBACCO; CIGARS; CIGARETTES; SIMULATED SMOKING DEVICES; SMOKERS' REQUISITES
    • A24FSMOKERS' REQUISITES; MATCH BOXES; SIMULATED SMOKING DEVICES
    • A24F47/00Smokers' requisites not otherwise provided for
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention relates to an unlocking method and device of an electronic cigarette, a storage medium and the electronic cigarette. The unlocking method of the electronic cigarette comprises the following steps: receiving an unlocking instruction acting on the electronic cigarette, acquiring behavior data acting on the electronic cigarette according to the unlocking instruction, judging whether the behavior data is matched with preset unlocking data, and unlocking the electronic cigarette if the behavior data is matched with the preset unlocking data. According to the electronic cigarette unlocking method and device, the storage medium and the electronic cigarette, the electronic cigarette can be prevented from being misused by others, and the unlocking safety of the electronic cigarette is improved.

Description

Unlocking method and device of electronic cigarette, storage medium and electronic cigarette
Technical Field
The invention relates to the technical field of electronic products, in particular to an unlocking method and device of an electronic cigarette, a storage medium and the electronic cigarette.
Background
The electronic cigarette is a mature smoking substitute in the market. After the electronic cigarette is started in the unlocking mode, the battery heats the heating element to atomize the tobacco tar in the atomizer, so that the smoke harmless to the human body is formed, and smokers can not absorb tar and other harmful substances in the traditional cigarette when experiencing smoking pleasure. Therefore, as the health consciousness of people increases, the electronic cigarette is worried by smokers.
The conventional electronic cigarette generally adopts a key unlocking mode, for example, an unlocking button is provided, and after the unlocking button is pressed, the electronic cigarette is unlocked. However, the electronic cigarette is easily misused by people due to the unlocking manner, and particularly, the child protection is not high, and the child can easily complete the unlocking operation of the electronic cigarette, which will cause a safety hazard in the use of the electronic cigarette.
Disclosure of Invention
Therefore, it is necessary to provide an unlocking method and apparatus for an electronic cigarette, a storage medium, and an electronic cigarette, aiming at the problem that the electronic cigarette is easily misused by people and thus potential safety hazards are generated due to the conventional unlocking method.
A method of unlocking an electronic cigarette, the method comprising:
receiving an unlocking instruction acting on the electronic cigarette;
acquiring behavior data acting on the electronic cigarette according to the unlocking instruction;
and judging whether the behavior data is matched with preset unlocking data or not, and unlocking the electronic cigarette if the behavior data is matched with the preset unlocking data.
In one embodiment, the behavior data includes motion data of the electronic cigarette, and the step of determining whether the behavior data matches preset unlocking data includes:
and judging whether the movement track and the movement speed in the motion data are matched with the movement track and the movement speed in the preset unlocking data.
In one embodiment, the behavior data includes touch trajectory data acting on the electronic cigarette, and the step of determining whether the behavior data matches preset unlocking data includes:
and judging whether the touch track of the touch track data is matched with the touch track in the preset unlocking data.
In one embodiment, the step of obtaining behavioural data acting on the electronic cigarette comprises:
and acquiring behavior data acting on the electronic cigarette within a preset time according to the unlocking instruction.
In one embodiment, after the receiving an unlocking instruction acting on the electronic cigarette, the method further includes:
selecting one or more preset unlocking modes, and displaying prompt information of the selected unlocking modes;
the judging whether the behavior data is matched with preset unlocking data or not comprises the following steps:
and judging whether the behavior data is matched with unlocking data corresponding to any one of the selected unlocking modes.
In one embodiment, before the receiving the unlocking instruction acting on the electronic cigarette, the method further includes:
receiving an unlocking action setting instruction acting on the electronic cigarette;
acquiring behavior data of the electronic cigarette in an unlocking action setting mode;
and setting the behavior data in the unlocking action setting mode as unlocking data.
An unlocking device of an electronic cigarette, the device comprising:
the unlocking instruction receiving module is used for receiving an unlocking instruction acting on the electronic cigarette;
the behavior data acquisition module is used for acquiring behavior data acting on the electronic cigarette according to the unlocking instruction;
and the unlocking module is used for judging whether the behavior data is matched with preset unlocking data or not, and unlocking the electronic cigarette if the behavior data is matched with the preset unlocking data.
An electronic cigarette, comprising:
a behavior data detection element for detecting behavior data acting on the electronic cigarette;
the memory is in communication connection with the behavior data detection element and is used for storing preset unlocking data;
the microcontroller is in communication connection with the behavior data detection element and the memory and is used for receiving an unlocking instruction acting on the electronic cigarette; the microcontroller acquires the behavior data detected by the behavior data detection element according to the unlocking instruction; and the microcontroller judges whether the behavior data is matched with the preset unlocking data or not, and if so, the electronic cigarette is unlocked.
One or more non-transitory computer-readable storage media storing computer-executable instructions that, when executed by one or more processors, cause the one or more processors to perform the steps of:
receiving an unlocking instruction acting on the electronic cigarette;
acquiring behavior data acting on the electronic cigarette according to the unlocking instruction;
and judging whether the behavior data is matched with preset unlocking data or not, and unlocking the electronic cigarette if the behavior data is matched with the preset unlocking data.
An electronic cigarette comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
receiving an unlocking instruction acting on the electronic cigarette;
acquiring behavior data acting on the electronic cigarette according to the unlocking instruction;
and judging whether the behavior data is matched with preset unlocking data or not, and unlocking the electronic cigarette if the behavior data is matched with the preset unlocking data.
According to the unlocking method and device of the electronic cigarette, the storage medium and the electronic cigarette, the behavior data acting on the electronic cigarette is obtained according to the unlocking instruction acting on the electronic cigarette, the behavior data is matched with the preset unlocking data, and the unlocking operation is carried out after the matching is successful. The unlocking method of the electronic cigarette increases the unlocking difficulty of the electronic cigarette, improves the interestingness of unlocking the electronic cigarette by setting the unlocking action, and avoids potential safety hazards of misuse of the electronic cigarette by people by setting the personalized unlocking action.
Drawings
Fig. 1 is a schematic diagram of an internal structure of an electronic cigarette device in one embodiment;
figure 2 is a flow diagram of a method of unlocking an e-cigarette in one embodiment;
fig. 3 is a schematic diagram of an unlocking action of the electronic cigarette by swinging up and down in one embodiment;
figure 4 is a schematic view of an electronic cigarette equipped with a display screen in one embodiment;
figure 5 is a schematic diagram of an electronic cigarette equipped with a touch screen in one embodiment;
figure 6 is a flow chart of a method of unlocking an e-cigarette in another embodiment;
figure 7 is a flow diagram of the setting of an unlocking action of the e-cigarette in one embodiment;
figure 8 is a block diagram of the unlocking device of the e-cigarette in one embodiment;
fig. 9 is a block diagram showing the structure of an unlocking device of the electronic cigarette in another embodiment;
figure 10 is a block diagram of an unlocking device of the electronic cigarette in a further embodiment;
figure 11 is a schematic diagram of the structure of an electronic cigarette in one embodiment;
figure 12 is a schematic structural view of an electronic cigarette in another embodiment;
fig. 13 is a schematic structural diagram of an electronic cigarette in yet another embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention 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 invention and are not intended to limit the invention.
Fig. 1 is a schematic diagram of an internal structure of an electronic cigarette device in one embodiment. As shown in fig. 1, the e-vaping device includes a processor, a non-volatile storage medium, an internal memory, and a display screen connected by a system bus. The electronic cigarette device comprises a nonvolatile storage medium and an unlocking device, wherein the nonvolatile storage medium of the electronic cigarette device stores an operating system, and the unlocking device of the electronic cigarette is used for realizing the unlocking method of the electronic cigarette provided by each embodiment. The processor is used to provide computing and control capabilities to support the operation of the entire electronic vaping device. The electronic cigarette unlocking device comprises an electronic cigarette unlocking device, an electronic cigarette unlocking device and a display screen, wherein the electronic cigarette unlocking device comprises an internal memory, an input device and a display screen, the internal memory provides an environment for the operation of the electronic cigarette unlocking device in a storage medium, the input device comprises a key used for receiving commands or data input by a user, and the display screen is used for displaying a prompt interface and the like, such as a schematic icon for displaying the unlocking action of the electronic. The display screen of the electronic cigarette device may be a touch screen, such as a capacitive screen or an electronic screen, and may be configured to receive a click operation applied to a space displayed on the touch screen to generate a corresponding instruction, receive touch trajectory information applied to the electronic cigarette, and the like.
Those skilled in the art will appreciate that the configuration shown in fig. 1 is a block diagram of only a portion of the configuration relevant to the present application, and does not constitute a limitation on the terminal to which the present application is applied, and that a particular terminal may include more or less components than those shown in the drawings, or may combine certain components, or have a different arrangement of components. For example, the e-vaping device of the figure may also not include a display screen or the like.
In one embodiment, the electronic cigarette device may not include a display screen, and the electronic cigarette device further includes a signal indicator light, and the user may determine the state of the electronic cigarette or the operation that can be performed according to any one or a combination of colors, frequencies, brightness, and the like of the signal indicator light.
In one embodiment, as shown in figure 2, a method of unlocking an e-cigarette is provided. The method can be applied to the electronic cigarette device shown in fig. 1, and comprises the following steps:
in step S210, an unlock instruction acting on the electronic cigarette is received.
In this embodiment, the electronic cigarette device is preset with an inertial sensor, wherein the inertial sensor may be, but is not limited to, a gyroscope sensor, an acceleration sensor, and the like. The inertial sensor can be used for detecting and measuring acceleration, slope, impact, vibration, rotation and the like of the electronic cigarette, and converting physical quantity into a usable electric signal. The unlock command applied to the electronic cigarette may be a command triggered by receiving motion data of the electronic cigarette, a touch operation on an input device of the electronic cigarette, or the like. The motion data of the electronic cigarette can be any one or combination of several of knocking, rotation, swinging, linear motion, non-linear motion and the like received by the inertial sensor and acting on the electronic cigarette. Touch operations on the input device include, but are not limited to, pressing of keys of the e-cigarette device or clicking, sliding, etc. on the e-cigarette touch screen. Or when the electronic cigarette is detected to be opened, an unlocking instruction is triggered.
And step S220, acquiring behavior data acting on the electronic cigarette according to the unlocking instruction.
In this embodiment, after the unlocking command is triggered, the inertial sensor in the electronic cigarette acquires behavior data acting on the electronic cigarette. After the behavior data is obtained, feature data in the behavior data may be extracted, where the feature data may be one or a combination of acceleration, angular velocity, slope, and the like of the electronic cigarette, and if the behavior data is touch data acting on a touch screen of the electronic cigarette, the feature data may be a touch trajectory or a position, a number of times of a click, and the like acting on the electronic cigarette, but the invention is not limited thereto. The acquired behavior data can be directly matched, or the extracted feature data can be imported into an internal memory for matching, wherein the internal memory stores one or more feature data of preset unlocking data.
In one embodiment, after the unlocking instruction is triggered, the unlocking action may be randomly acquired from an unlocking action set pre-stored in the electronic cigarette device, and corresponding prompt information may be generated according to the unlocking action. The unlocking action can be one or more of the combination of ' swinging the electronic cigarette up and down ', drawing a circle in the air by holding the electronic cigarette, writing 8 characters in the air by holding the electronic cigarette ', and the like, and the number of the unlocking actions can be one or more. The prompt message of the unlocking action can be displayed on the display screen in the form of characters, schematic icons, demonstration videos and the like, or can be prompted through one or a combination of colors, frequencies, brightness and the like of the signal indicator lamp. The unlocking action may include a specified completion time and sequence of completions. Because the unlocking action can be determined randomly, the interaction between the user and the electronic cigarette in the unlocking process is increased, the interestingness of the unlocking process is increased, the difficulty of completing the unlocking action is improved, and the unlocking safety of the electronic cigarette is improved.
Step S230, determining whether the behavior data matches the preset unlocking data.
In this embodiment, the acquired behavior data acting on the electronic cigarette may be directly compared with the preset unlocking data, or after the feature data of the behavior data is extracted, the extracted feature data may be compared with the feature data of the preset unlocking data to determine whether the extracted feature data is the same as the feature data of the preset unlocking data.
For example, when the electronic cigarette is unlocked by sliding, the touch trajectory data applied to the electronic cigarette may be directly compared with the preset touch trajectory data. When the electronic cigarette is subjected to vertical swing unlocking action, characteristic data such as displacement, acceleration and frequency of the electronic cigarette can be extracted, and the characteristic data is compared with the displacement, acceleration and frequency of the preset vertical swing unlocking action. If the acquired behavior data acting on the electronic cigarette is matched with the preset unlocking data, the process goes to step S240. And if the electronic cigarette does not acquire the behavior data matched with the preset unlocking data, the electronic cigarette is not processed and cannot be unlocked.
In one embodiment, the feature data may be dynamic data, and the extracted feature data may be compared to the preset unlock data for the same trend of change of the feature data over time. Specifically, for example, for the action of holding the electronic cigarette to draw a circle, the characteristic data of the electronic cigarette including the trajectory of motion in the air is continuous, and for the case that there is a sudden change, or the change trend does not conform to the corresponding trend characteristic, the characteristic data may be considered as not matching the characteristic data of the preset unlocking data.
In one embodiment, an error range of the unlocking data may be preset to avoid the obstacle of unlocking the electronic cigarette caused by slight difference which may be generated when the user performs the unlocking action each time. When the value of the behavior data of the electronic cigarette is within the error range of the preset unlocking data, the behavior data can be determined to be matched with the preset unlocking data, and the step S240 is entered.
And step S240, unlocking the electronic cigarette.
In this embodiment, when the acquired behavior data acting on the electronic cigarette matches with the preset unlocking data, the electronic cigarette is unlocked.
According to the unlocking method of the electronic cigarette, the behavior data acting on the electronic cigarette is obtained by receiving the unlocking instruction acting on the electronic cigarette, and when the behavior data is matched with the preset unlocking data, the electronic cigarette is unlocked. Because the user need make corresponding unblock action to the electron cigarette after triggering the unblock instruction, and the unblock action can be random action, has increased the interest of unblock, and increases the interactivity of user and electron cigarette in the unblock process to improve the degree of difficulty of unblock, avoided the potential safety hazard that the electron cigarette was misused by other people.
In one embodiment, the behavior data applied to the electronic cigarette includes motion data of the electronic cigarette, and the characteristic data of the motion data may be a moving track, a moving speed, and the like, and then step S230 includes determining whether the moving track and the moving speed in the motion data match with the moving track and the moving speed in the preset unlocking data.
The moving track may be a track of the electronic cigarette moving in a three-dimensional space. If the user holds the electronic cigarette to draw a circle in the air, the circle is the moving track of the electronic cigarette. The moving speed may be one or a combination of several of linear speed, angular speed, acceleration, etc. of the electronic cigarette, and the value of the moving speed is dynamic data and may change with time.
For example, as shown in fig. 3, when the user performs an up-and-down swing unlocking operation on the electronic cigarette, the moving trajectory of the electronic cigarette is firstly a downward moving path h1, and then an upward moving path h2, the moving speed of the electronic cigarette is first accelerated and then decelerated to zero, so as to complete the moving path h1, and then accelerated and then decelerated to zero, so as to complete the moving path h 2. The user swings the electronic cigarette about the arm as an axis, and the electronic cigarette may have an angular velocity about the elbow of the user as an axis. For the electronic cigarette with the display screen, as shown in fig. 4, prompt information for unlocking the electronic cigarette by swinging the electronic cigarette up and down, such as up-and-down arrows and text prompts, can be displayed on the display screen.
In one embodiment, for an electronic cigarette with a touch screen, the electronic cigarette is preset with unlocking data, and the unlocking data may be a touch trajectory, and step S230 includes determining whether a touch trajectory in the touch trajectory data acting on the electronic cigarette matches a touch trajectory in the preset unlocking data. The preset touch trajectory may be one or more, and the touch trajectory that needs to be input by the user during each unlocking may be a combination of one or more preset touch trajectories in advance, or may be any one of preset touch trajectories that are randomly generated. The electronic cigarette may display prompt information of the touch trajectory through the touch screen, and specifically, as shown in fig. 5, for an unlocking action performed by sliding on the touch screen, a touch trajectory and a sliding direction of a preset sliding unlocking may be prompted by a dotted arrow on the touch screen.
In one embodiment, the step of obtaining behavioural data acting on the e-cigarette comprises: and acquiring behavior data acting on the electronic cigarette within a preset time according to the unlocking instruction.
Specifically, behavior data acting on the electronic cigarette within a preset time period may be acquired as valid behavior data according to the unlocking instruction. The preset time period may be a preset time period longer than the time period required for completing the unlocking action, and may be set to any time period, such as 3 seconds or 5 seconds. The valid behavior data can be completed within any time period within the preset time length. The electronic cigarette can show preset duration information, and the showing mode can be one or a combination of a plurality of flashing lights, vibration, screen display and the like. The flashing mode may be to display the duration information according to preset flashing frequency, brightness, color, and the like. The vibration mode may be to display the duration information according to a preset vibration frequency, a vibration amplitude, and the like.
In one embodiment, when the behavior data applied to the electronic cigarette does not match the preset unlocking data, the electronic cigarette may prompt the unlocking failure information, and the prompting mode may be one or a combination of flashing lights, shaking, screen display, and the like. The flashing mode may prompt the unlocking failure information according to preset flashing frequency, brightness, color and the like. The vibration mode may be to prompt the unlocking failure information according to a preset vibration frequency, vibration amplitude and the like.
In one embodiment, when the unlocking failure occurs more than the preset number of times, the electronic cigarette may display the unlocking failure information for a preset duration in a manner of flashing a light, vibrating, displaying on a screen, and the like, and enter a temporary frozen state, so that the electronic cigarette cannot receive behavior data acting on the electronic cigarette. The flashing mode may be to show the temporary frozen state according to preset flashing frequency, brightness, color, and the like. The vibration mode may be to exhibit a temporary frozen state according to a preset vibration frequency, vibration amplitude, and the like.
In the embodiment, the electronic cigarette unlocking method has the advantages that the electronic cigarette unlocking time limit or the unlocking attempt time limit is obtained by presetting, so that the difficulty of unlocking the electronic cigarette after being triggered by other people is increased, the possibility that the unlocking action is cracked by other people is reduced, and the unlocking safety of the electronic cigarette is improved.
In one embodiment, more than one unlocking manner is preset in the electronic cigarette device, as shown in fig. 6, the steps of the method for unlocking the electronic cigarette include:
in step S610, an unlock instruction acting on the electronic cigarette is received.
And S620, selecting one or more preset unlocking modes, and displaying prompt information of the selected unlocking modes.
In one embodiment, the electronic cigarette device may provide an interface for selecting an unlocking mode for different unlocking modes, the interface includes a corresponding control for receiving an unlocking instruction, and the corresponding unlocking instruction of the electronic cigarette is triggered when a click operation acting on the control is detected. And step S630, acquiring behavior data acting on the electronic cigarette according to the unlocking instruction.
And step S640, judging whether the behavior data is matched with unlocking data corresponding to any one of the selected unlocking modes.
Specifically, after behavior data acting on the electronic cigarette is received, unlocking data corresponding to the unlocking mode selected in step S620 is read, and whether the unlocking data and the unlocking data are matched is compared, if yes, step S650 is performed, otherwise, no processing is performed, and unlocking cannot be performed.
For example, for an electronic cigarette with two preset unlocking modes, including sliding unlocking and up-down swing electronic cigarette unlocking, when the user selects the unlocking mode to be sliding unlocking, behavior data of the up-down swing electronic cigarette acting on the electronic cigarette cannot be matched with the unlocking data, and the electronic cigarette cannot be unlocked.
And step S650, unlocking the electronic cigarette.
In the embodiment, by providing multiple unlocking modes, the unlocking flexibility of the user is improved, and the user can select the unlocking mode according to the preference or convenience, so that the unlocking efficiency of the user is improved.
In one embodiment, as shown in fig. 7, the step of setting the unlocking action of the electronic cigarette comprises:
in step S710, an unlock operation setting instruction acting on the electronic cigarette is received.
In this embodiment, before receiving the unlocking instruction acting on the electronic cigarette, the electronic cigarette may perform the setting of the unlocking action according to the received unlocking action setting instruction acting on the electronic cigarette. The unlocking action setting instruction acting on the electronic cigarette can be a key or an operation mode such as screen menu selection. Specifically, for an electronic cigarette equipped with a touch screen, an interface for setting an unlocking action can be provided, the interface comprises a corresponding control for receiving an unlocking action setting instruction, when the click operation acting on the control is detected, the corresponding unlocking instruction of the electronic cigarette is triggered, and the electronic cigarette enters an unlocking action setting mode.
Step S720, acquiring behavior data of the electronic cigarette in the unlocking operation setting mode.
In one embodiment, the user needs to make an unlocking action that is desired to be set within a preset time period, such as one or a combination of several of "flick the electronic cigarette up and down," draw a circle in the air with the electronic cigarette, and write 8 words in the air with the electronic cigarette ". When the electronic cigarette is unlocked, the user needs to make a corresponding unlocking action.
In step S730, the behavior data in the unlocking action setting mode is set as unlocking data.
In this embodiment, behavior data received by the electronic cigarette in the unlocking operation setting mode is stored in an internal memory of the electronic cigarette as unlocking data. The unlocking data may be more than one.
In the above embodiment, the action data of the electronic cigarette in the unlocking action setting mode is acquired by receiving the unlocking action setting instruction acting on the electronic cigarette, and the action data acting on the electronic cigarette by the user is set as the unlocking data, so that the interactivity between the user and the electronic cigarette is increased, the unlocking of the electronic cigarette is more interesting, the unlocking data is more personalized, and the possibility of misuse of the electronic cigarette by other people is reduced.
In one embodiment, as shown in fig. 8, there is provided an unlocking device of an electronic cigarette, the device including:
an unlocking instruction receiving module 820, configured to receive an unlocking instruction acting on the electronic cigarette.
The behavior data acquiring module 840 is configured to acquire behavior data acting on the electronic cigarette according to the unlocking instruction.
And the unlocking module 860 is used for judging whether the behavior data is matched with preset unlocking data or not, and unlocking the electronic cigarette if the behavior data is matched with the preset unlocking data.
In the unlocking method for the electronic cigarette, after the unlocking instruction receiving module 820 receives the unlocking instruction acting on the electronic cigarette, the behavior data acting on the electronic cigarette is acquired through the behavior data acquiring module 840, and when the behavior data is matched with the preset unlocking data, the electronic cigarette is unlocked. Because the user need make corresponding unblock action to the electron cigarette after triggering the unblock instruction, increased the interest of unblock, and increased the interactivity of user and electron cigarette in the unblock process to improve the degree of difficulty of unblock, avoided the potential safety hazard that the electron cigarette was misused by other people.
In one embodiment, the behavior data includes motion data of the electronic cigarette, and the unlocking module 860 is further configured to determine whether a movement trajectory and a movement speed in the motion data match a movement trajectory and a movement speed in preset unlocking data.
In one embodiment, the behavior data includes touch trajectory data acting on the electronic cigarette, and the unlocking module 860 is further configured to determine whether the touch trajectory in the touch trajectory bookkeeping section matches the touch trajectory in the preset unlocking data.
In one embodiment, the behavior data acquiring module 840 is further configured to acquire behavior data acting on the electronic cigarette within a preset time period according to the unlocking instruction.
In one embodiment, as shown in fig. 9, the apparatus further comprises:
the prompt module 830 is configured to display one or more preset prompt messages of the unlocking modes after the unlocking instruction receiving module 820 receives the unlocking instruction acting on the electronic cigarette.
The unlocking module 860 is further configured to determine whether the behavior data matches unlocking data corresponding to any one of the selected unlocking manners.
In one embodiment, the apparatus further comprises:
an unlocking action setting module 880, configured to receive an unlocking action setting instruction acting on the electronic cigarette, acquire behavior data of the electronic cigarette in an unlocking action setting mode, and set the behavior data in the unlocking action setting mode as unlocking data.
All or part of the modules in the unlocking device of the electronic cigarette can be realized by software, hardware and a combination thereof. The modules can be embedded in a memory of the terminal in a hardware form or independent from the memory of the terminal, and can also be stored in the memory of the terminal in a software form, so that the processor can call and execute the corresponding operations of the modules. The processor can be a Central Processing Unit (CPU), a microprocessor, a singlechip and the like.
In one embodiment, one or more non-transitory computer-readable storage media storing computer-executable instructions that, when executed by one or more processors, cause the one or more processors to perform the steps of:
receiving an unlocking instruction acting on the electronic cigarette;
acquiring behavior data acting on the electronic cigarette according to the unlocking instruction;
and judging whether the behavior data is matched with preset unlocking data or not, and unlocking the electronic cigarette if the behavior data is matched with the preset unlocking data.
In one embodiment, the behavior data of the electronic cigarette comprises motion data of the electronic cigarette, and the step of determining whether the behavior data matches preset unlocking data comprises: and judging whether the movement track and the movement speed in the motion data are matched with the movement track and the movement speed in the preset unlocking data.
In one embodiment, the behavior data of the electronic cigarette includes touch trajectory data acting on the electronic cigarette, and the step of determining whether the behavior data matches preset unlock data is performed and includes: and judging whether the movement track and the movement speed in the motion data are matched with the movement track and the movement speed in the preset unlocking data.
In one embodiment, the step of obtaining behavioural data acting on the electronic cigarette performed by the one or more processors comprises: and acquiring behavior data acting on the electronic cigarette within a preset time according to the unlocking instruction.
In one embodiment, the one or more processors, after executing the step of receiving the unlock instruction to act on the e-cigarette, further comprise performing the steps of:
selecting one or more preset unlocking modes, and displaying prompt information of the selected unlocking modes;
the step of judging whether the behavior data is matched with the preset unlocking data includes:
and judging whether the behavior data is matched with unlocking data corresponding to any one of the selected unlocking modes.
In one embodiment, the one or more processors, prior to executing receiving the unlock instruction to act on the e-cigarette, further comprise performing the steps of:
receiving an unlocking action setting instruction acting on the electronic cigarette;
acquiring behavior data of the electronic cigarette in an unlocking action setting mode;
and setting the behavior data in the unlocking action setting mode as unlocking data.
In one embodiment, there is provided an electronic cigarette comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
receiving an unlocking instruction acting on the electronic cigarette;
acquiring behavior data acting on the electronic cigarette according to the unlocking instruction;
and judging whether the behavior data is matched with preset unlocking data or not, and unlocking the electronic cigarette if the behavior data is matched with the preset unlocking data.
In one embodiment, the behavior data of the electronic cigarette comprises movement data of the electronic cigarette, and the step of determining whether the behavior data matches preset unlocking data comprises: and judging whether the movement track and the movement speed in the motion data are matched with the movement track and the movement speed in the preset unlocking data.
In one embodiment, the behavior data of the electronic cigarette includes touch trajectory data acting on the electronic cigarette, and the step of determining whether the behavior data matches preset unlocking data includes: and judging whether the movement track and the movement speed in the motion data are matched with the movement track and the movement speed in the preset unlocking data.
In one embodiment, the step of obtaining behavioural data acting on the e-cigarette is implemented to comprise: and acquiring behavior data acting on the electronic cigarette within a preset time according to the unlocking instruction.
In one embodiment, after executing the program for receiving the unlocking instruction acting on the electronic cigarette, the processor further implements the following steps when executing the program:
selecting one or more preset unlocking modes, and displaying prompt information of the selected unlocking modes;
the step of judging whether the behavior data is matched with the preset unlocking data includes:
and judging whether the behavior data is matched with unlocking data corresponding to any one of the selected unlocking modes.
In one embodiment, the processor when executing the program further performs the following steps before executing the step of receiving an unlock instruction to act on the e-cigarette:
receiving an unlocking action setting instruction acting on the electronic cigarette;
acquiring behavior data of the electronic cigarette in an unlocking action setting mode;
and setting the behavior data in the unlocking action setting mode as unlocking data.
In one embodiment, as shown in figure 11, there is provided an electronic cigarette comprising: a behavior data detection element 1102 for detecting behavior data acting on the electronic cigarette; the memory 1104 is in communication connection with the behavior data detection element 1102 and is used for storing preset unlocking data; and the microcontroller 1106 is in communication connection with the behavior data detection element 1102 and the memory 1104 and is used for receiving an unlocking instruction acting on the electronic cigarette, acquiring the behavior data detected by the behavior data detection element 1102 according to the unlocking instruction, judging whether the behavior data is matched with the unlocking data stored in the memory 1104, and unlocking the electronic cigarette if the behavior data is matched with the unlocking data.
In one embodiment, the behavioural data comprises movement data of the electronic cigarette; the behavioural data detection element 1102 comprises an inertial sensor for detecting motion data acting on the e-cigarette.
In one embodiment, the inertial sensor is a gyroscope sensor and/or an acceleration sensor. The gyroscope sensor is a positioning and control system based on free space movement and gestures, and can be used for detecting physical quantities such as angular velocity and the like. The acceleration sensor can be used to measure physical quantities such as acceleration. For example, when a user holds an e-cigarette to draw a circle in the air, a gyro sensor may be used to detect the angular velocity of the e-cigarette. For example, when the user swings the electronic cigarette up and down, the acceleration sensor may be configured to detect the acceleration of the electronic cigarette.
In one embodiment, the behavioural data comprises touch trajectory data acting on the electronic cigarette; the behavior data detecting element 1102 includes a touch sensor for detecting touch trajectory data acting on the electronic cigarette. The touch sensor comprises one or a combination of a plurality of single-chip touch sensors, resistive sensors, capacitive touch sensors and the like. For example, when a user performs a sliding unlocking operation on a touch screen of the electronic cigarette, the capacitive touch sensor may be used to detect a touch trajectory of the user on the touch screen.
In one embodiment, as shown in figure 11, the e-cigarette further comprises a timer 1108 connected to the microcontroller 1106 for setting the preset time period. The preset time length may be greater than a time length required for completing the unlocking action, and may be set to any time length, such as 3 seconds or 5 seconds. The microcontroller 1106 is further configured to obtain the behavior data acting on the electronic cigarette within the preset time period by controlling the behavior data detecting element 1102 according to the unlocking instruction.
In one embodiment, as shown in fig. 13, the electronic cigarette further comprises a prompting element 1110 connected to the microcontroller 1106 for displaying a prompt message with a preset duration. The prompting element 1110 includes, but is not limited to, one or a combination of a vibrator, a flashlight, a display screen, and the like. For example, the duration information may be displayed by presetting the flashing frequency, brightness, color, and the like of the flash. Or the time length information is displayed by presetting the vibration frequency, the vibration amplitude and the like of the vibrator.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), or the like.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method of unlocking an electronic cigarette, the method comprising:
receiving an unlocking instruction acting on the electronic cigarette; the electronic cigarette is provided with an inertial sensor, and the unlocking instruction is an instruction triggered by data of combined behaviors of knocking, linear motion and non-linear motion which are received by the inertial sensor and act on the electronic cigarette;
when the unlocking instruction is triggered, randomly acquiring unlocking actions from an unlocking action set prestored in the electronic cigarette; the unlocking action comprises a specified completion time and a completion sequence;
acquiring behavior data acting on the electronic cigarette according to the unlocking instruction; the behavioral data is acquired by the inertial sensor;
judging whether the behavior data are matched with unlocking data corresponding to a preset unlocking action or not, and unlocking the electronic cigarette if the behavior data are matched with the unlocking data corresponding to the preset unlocking action; if not, displaying unlocking failure information; and when the unlocking failure times reach the preset times, switching the electronic cigarette to be in the frozen state.
2. The method of claim 1, wherein the behavior data comprises motion data of an electronic cigarette, and the step of determining whether the behavior data matches preset unlock data comprises:
and judging whether the movement track and the movement speed in the motion data are matched with the movement track and the movement speed in the preset unlocking data.
3. The method of claim 1, wherein the behavior data comprises touch trajectory data acting on the electronic cigarette, and the step of determining whether the behavior data matches preset unlock data comprises:
and judging whether the touch track of the touch track data is matched with the touch track in the preset unlocking data.
4. The method of claim 1, wherein the step of obtaining behavioural data acting on the electronic cigarette comprises:
and acquiring behavior data acting on the electronic cigarette within a preset time according to the unlocking instruction.
5. The method of claim 1, further comprising, after the receiving an unlock instruction to the electronic cigarette:
selecting one or more preset unlocking modes, and displaying prompt information of the selected unlocking modes;
the judging whether the behavior data is matched with preset unlocking data or not comprises the following steps:
and judging whether the behavior data is matched with unlocking data corresponding to any one of the selected unlocking modes.
6. The unlocking method according to claim 1, further comprising, before the receiving an unlocking instruction to the electronic cigarette:
receiving an unlocking action setting instruction acting on the electronic cigarette;
acquiring behavior data of the electronic cigarette in an unlocking action setting mode;
and setting the behavior data in the unlocking action setting mode as unlocking data.
7. An unlocking device of an electronic cigarette, the device comprising:
the unlocking instruction receiving module is used for receiving an unlocking instruction acting on the electronic cigarette; the electronic cigarette is provided with an inertial sensor, and the unlocking instruction is an instruction triggered by data of combined behaviors of knocking, linear motion and non-linear motion which are received by the inertial sensor and act on the electronic cigarette;
the unlocking action acquisition module is used for randomly acquiring unlocking actions from an unlocking action set prestored in the electronic cigarette when the unlocking instruction is triggered; the unlocking action comprises a specified completion time and a completion sequence;
the behavior data acquisition module is used for acquiring behavior data acting on the electronic cigarette according to the unlocking instruction; the behavioral data is acquired by the inertial sensor;
the unlocking module is used for judging whether the behavior data are matched with unlocking data corresponding to a preset unlocking action or not, and if yes, unlocking the electronic cigarette; if not, displaying unlocking failure information; and when the unlocking failure times reach the preset times, switching the electronic cigarette to be in the frozen state.
8. An electronic cigarette, comprising:
a behavior data detection element for detecting behavior data acting on the electronic cigarette;
the memory is in communication connection with the behavior data detection element and is used for storing preset unlocking data;
the microcontroller is in communication connection with the behavior data detection element and the memory and is used for receiving an unlocking instruction acting on the electronic cigarette; the unlocking instruction is an instruction triggered by data of combined behaviors of knocking, linear motion and non-linear motion which are received by the behavior data detection element and act on the electronic cigarette; when the unlocking instruction is triggered, the microcontroller randomly acquires unlocking actions from an unlocking action set prestored in the electronic cigarette; the unlocking action comprises a specified completion time and a completion sequence; the microcontroller acquires the behavior data detected by the behavior data detection element according to the unlocking instruction; the microcontroller judges whether the behavior data are matched with unlocking data corresponding to a preset unlocking action, and if yes, the electronic cigarette is unlocked; if not, displaying unlocking failure information; and when the unlocking failure times reach the preset times, switching the electronic cigarette to be in the frozen state.
9. One or more non-transitory computer-readable storage media storing computer-executable instructions that, when executed by one or more processors, cause the one or more processors to perform the steps of:
receiving an unlocking instruction acting on the electronic cigarette; the electronic cigarette is provided with an inertial sensor, and the unlocking instruction is an instruction triggered by data of combined behaviors of knocking, linear motion and non-linear motion which are received by the inertial sensor and act on the electronic cigarette;
when the unlocking instruction is triggered, randomly acquiring unlocking actions from an unlocking action set prestored in the electronic cigarette; the unlocking action comprises a specified completion time and a completion sequence;
acquiring behavior data acting on the electronic cigarette according to the unlocking instruction; the behavioral data is acquired by the inertial sensor;
judging whether the behavior data are matched with unlocking data corresponding to a preset unlocking action or not, and unlocking the electronic cigarette if the behavior data are matched with the unlocking data corresponding to the preset unlocking action; if not, displaying unlocking failure information; and when the unlocking failure times reach the preset times, switching the electronic cigarette to be in the frozen state.
10. An electronic cigarette comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
receiving an unlocking instruction acting on the electronic cigarette; the electronic cigarette is provided with an inertial sensor, and the unlocking instruction is an instruction triggered by data of combined behaviors of knocking, linear motion and non-linear motion which are received by the inertial sensor and act on the electronic cigarette;
when the unlocking instruction is triggered, randomly acquiring unlocking actions from an unlocking action set prestored in the electronic cigarette; the unlocking action comprises a specified completion time and a completion sequence;
acquiring behavior data acting on the electronic cigarette according to the unlocking instruction; the behavioral data is acquired by the inertial sensor;
judging whether the behavior data are matched with unlocking data corresponding to a preset unlocking action or not, and unlocking the electronic cigarette if the behavior data are matched with the unlocking data corresponding to the preset unlocking action; if not, displaying unlocking failure information; and when the unlocking failure times reach the preset times, switching the electronic cigarette to be in the frozen state.
CN201710263616.1A 2017-04-20 2017-04-20 Unlocking method and device of electronic cigarette, storage medium and electronic cigarette Active CN107232643B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710263616.1A CN107232643B (en) 2017-04-20 2017-04-20 Unlocking method and device of electronic cigarette, storage medium and electronic cigarette

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710263616.1A CN107232643B (en) 2017-04-20 2017-04-20 Unlocking method and device of electronic cigarette, storage medium and electronic cigarette

Publications (2)

Publication Number Publication Date
CN107232643A CN107232643A (en) 2017-10-10
CN107232643B true CN107232643B (en) 2020-09-04

Family

ID=59984079

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710263616.1A Active CN107232643B (en) 2017-04-20 2017-04-20 Unlocking method and device of electronic cigarette, storage medium and electronic cigarette

Country Status (1)

Country Link
CN (1) CN107232643B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110477451A (en) * 2018-05-15 2019-11-22 深圳市艾维普思科技有限公司 Control method, computer storage medium, Power Supply Assembly and the electronic cigarette of electronic cigarette
CN110881699A (en) * 2018-08-17 2020-03-17 深圳市艾维普思科技有限公司 Unlocking method and device of electronic cigarette and computer readable storage medium
CN109864706A (en) * 2019-01-08 2019-06-11 廖旺才 Reminding method, device, computer equipment and the storage medium of user state information
CN109744589A (en) * 2019-03-12 2019-05-14 深圳哈卡科技有限公司 Electronic cigarette and electronic cigarette electric quantity display method
CN111557482A (en) * 2020-04-09 2020-08-21 昂纳自动化技术(深圳)有限公司 Electronic cigarette starting control device and method and electronic cigarette
CN114209093B (en) * 2021-12-30 2024-04-26 西安稳先半导体科技有限责任公司 Battery protection circuit, battery pack and electronic cigarette

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102356555A (en) * 2008-12-23 2012-02-15 三星电子株式会社 Method and apparatus for unlocking electronic appliance
CN103019612A (en) * 2013-01-09 2013-04-03 王建民 Touch screen unlocking method and touch screen terminal
CN103294366A (en) * 2012-02-27 2013-09-11 联想(北京)有限公司 Screen unlocking method and electronic equipment
CN104010539A (en) * 2013-04-27 2014-08-27 惠州市吉瑞科技有限公司 Identity recognition method based on electronic cigarette and corresponding electronic cigarette
CN104615249A (en) * 2015-02-10 2015-05-13 苏州天平先进数字科技有限公司 Shaking unlocking method and system thereof
CN104921305A (en) * 2014-03-20 2015-09-23 惠州市吉瑞科技有限公司 Method for preventing child from smoking electronic cigarette accidentally
CN105354452A (en) * 2015-09-28 2016-02-24 卓尔悦欧洲控股有限公司 Electronic cigarette control method, apparatus and system and electronic cigarette

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102356555A (en) * 2008-12-23 2012-02-15 三星电子株式会社 Method and apparatus for unlocking electronic appliance
CN103294366A (en) * 2012-02-27 2013-09-11 联想(北京)有限公司 Screen unlocking method and electronic equipment
CN103019612A (en) * 2013-01-09 2013-04-03 王建民 Touch screen unlocking method and touch screen terminal
CN104010539A (en) * 2013-04-27 2014-08-27 惠州市吉瑞科技有限公司 Identity recognition method based on electronic cigarette and corresponding electronic cigarette
CN104921305A (en) * 2014-03-20 2015-09-23 惠州市吉瑞科技有限公司 Method for preventing child from smoking electronic cigarette accidentally
CN104615249A (en) * 2015-02-10 2015-05-13 苏州天平先进数字科技有限公司 Shaking unlocking method and system thereof
CN105354452A (en) * 2015-09-28 2016-02-24 卓尔悦欧洲控股有限公司 Electronic cigarette control method, apparatus and system and electronic cigarette

Also Published As

Publication number Publication date
CN107232643A (en) 2017-10-10

Similar Documents

Publication Publication Date Title
CN107232643B (en) Unlocking method and device of electronic cigarette, storage medium and electronic cigarette
US20180213848A1 (en) Password control method for electronic cigarette, apparatus and system, and electronic cigarette
US20180213849A1 (en) Control method for electronic cigarette apparatus and system, and electronic cigarette
US9996254B2 (en) Hidden application icons
US9703941B2 (en) Electronic device with touch screen for fingerprint recognition
CN108810698B (en) TWS earphone, charging box, upgrading method of charging box and storage medium
CN107643977B (en) Anti-addiction method and related product
CN110061984B (en) Account number switching method of vehicle-mounted system, vehicle-mounted system and vehicle
CN108804123B (en) TWS earphone, upgrading method and device thereof, and storage medium
CN109806590B (en) Object control method and device, storage medium and electronic device
US20150164144A1 (en) Identification method based on an electronic cigarette and electronic cigarette
CN103927466A (en) Method and device for controlling mobile terminal
US20200057844A1 (en) Unlocking method for electronic cigarette, unlocking device using same and computer readable storage medium
CN108874421B (en) TWS earphone, upgrading method and device thereof, and storage medium
WO2019100368A1 (en) Launching method and display method for application program, and terminal
CN110013671B (en) Action execution method and device, storage medium and electronic device
CN110090443B (en) Virtual object control method and device, storage medium and electronic device
CN102937869A (en) Method and device for triggering control command on terminal equipment
WO2014089993A1 (en) Method and apparatus for unlocking a touch screen
CN110201387B (en) Object control method and device, storage medium and electronic device
CN105159552B (en) A kind of flipping-over control method and user terminal browsing webpage
CN103019539A (en) Method, client and system using terminal motion to trigger unlocking
CN108234533B (en) User operation processing method and related equipment
US11483304B2 (en) Method for setting password for electronic cigarette, system, storage medium, and electronic cigarette
US20140282033A1 (en) Application version verification systems and methods

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: 518000 Guangdong city of Shenzhen province Baoan District Xixiang street guwu community Dongcai Industrial Zone No. 16

Applicant after: Shenzhen Mcwell Technology Co., Ltd.

Address before: 518000, 8th Building, 2nd Floor, 16th Gushi Dongcai Industrial Zone, Xixiang, Baoan District, Shenzhen City, Guangdong Province

Applicant before: SHENZHEN MAIKEWEIER CO., LTD.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant