[go: up one dir, main page]

CN108208937B - Electronic cigarette control method and control device and electronic cigarette - Google Patents

Electronic cigarette control method and control device and electronic cigarette Download PDF

Info

Publication number
CN108208937B
CN108208937B CN201711330176.3A CN201711330176A CN108208937B CN 108208937 B CN108208937 B CN 108208937B CN 201711330176 A CN201711330176 A CN 201711330176A CN 108208937 B CN108208937 B CN 108208937B
Authority
CN
China
Prior art keywords
electronic cigarette
power supply
target
instruction
equipment
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
CN201711330176.3A
Other languages
Chinese (zh)
Other versions
CN108208937A (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.)
Changzhou Paiteng Electronic Technology Co Ltd
Original Assignee
Changzhou Paiteng Electronic Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Changzhou Paiteng Electronic Technology Co Ltd filed Critical Changzhou Paiteng Electronic Technology Co Ltd
Priority to CN201711330176.3A priority Critical patent/CN108208937B/en
Publication of CN108208937A publication Critical patent/CN108208937A/en
Application granted granted Critical
Publication of CN108208937B publication Critical patent/CN108208937B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • A24F47/008

Landscapes

  • Selective Calling Equipment (AREA)

Abstract

The invention discloses a control method and a control device of an electronic cigarette and the electronic cigarette, and belongs to the technical field of electronic cigarettes. The control method comprises the following steps: the electronic cigarette is connected with a target electric device through a protocol converter, the protocol converter is used for adapting the electronic cigarette with the target electric device, and the control method comprises the following steps: acquiring a power supply adjusting instruction; and controlling the electronic cigarette to output the electric energy to the target electric equipment through the protocol converter according to the power supply adjusting instruction. The problem of the function that electron cigarette can provide among the correlation technique too single is solved, reach the effect of the function of abundant electron cigarette.

Description

电子烟的控制方法、控制装置以及电子烟Electronic cigarette control method, control device and electronic cigarette

技术领域technical field

本发明涉及电子烟技术领域,特别涉及一种电子烟的控制方法、控制装置以及电子烟。The invention relates to the technical field of electronic cigarettes, and in particular, to a control method, control device and electronic cigarette of an electronic cigarette.

背景技术Background technique

电子烟是一种模仿卷烟的电子产品,其可通过雾化烟液产生烟雾,该烟雾可以被电子烟的使用者从烟嘴吸入体内,从而达到模拟吸烟的目的。An electronic cigarette is an electronic product that imitates cigarettes. It can generate smoke by atomizing liquid smoke, and the smoke can be inhaled by the user of the electronic cigarette from the mouthpiece, so as to achieve the purpose of simulating smoking.

然而,现有技术的电子烟仅仅提供模拟吸烟功能,电子烟所能够提供的功能过于单一。However, the electronic cigarette in the prior art only provides the function of simulating smoking, and the functions provided by the electronic cigarette are too single.

发明内容SUMMARY OF THE INVENTION

为了解决现有技术中电子烟所能够提供的功能过于单一的问题,本发明实施例提供了一种电子烟的控制方法、控制装置以及电子烟。所述技术方案如下:In order to solve the problem that the functions provided by the electronic cigarette in the prior art are too single, the embodiments of the present invention provide a control method, a control device and an electronic cigarette for the electronic cigarette. The technical solution is as follows:

第一方面,提供了一种电子烟的控制方法,电子烟通过协议转换器与目标用电设备相连接,所述协议转换器用于将所述电子烟与所述目标用电设备适配,所述控制方法包括:In a first aspect, a method for controlling an electronic cigarette is provided. The electronic cigarette is connected to a target electrical device through a protocol converter, and the protocol converter is used to adapt the electronic cigarette to the target electrical device. The control methods include:

获取供电调整指令;Obtain power supply adjustment instructions;

根据所述供电调整指令控制所述电子烟通过所述协议转换器向所述目标用电设备输出的电能。The electrical energy output by the electronic cigarette to the target electrical device through the protocol converter is controlled according to the power supply adjustment instruction.

可选的,所述根据所述供电调整指令控制所述电子烟通过所述协议转换器向所述目标用电设备输出的电能,包括:Optionally, the controlling the electrical energy output by the electronic cigarette to the target electrical device through the protocol converter according to the power supply adjustment instruction includes:

获取所述供电调整指令中的目标供电要求,所述目标供电要求包括供电电流、供电功率、供电电压中的至少一种;Acquiring a target power supply requirement in the power supply adjustment instruction, where the target power supply requirement includes at least one of supply current, power supply, and supply voltage;

根据所述目标供电要求向所述目标用电设备输出电能。Output power to the target electrical device according to the target power supply requirement.

可选的,所述根据所述供电调整指令控制所述电子烟通过所述协议转换器向所述目标用电设备输出的电能,包括:Optionally, the controlling the electrical energy output by the electronic cigarette to the target electrical device through the protocol converter according to the power supply adjustment instruction includes:

获取所述目标用电设备的安全使用信息,所述安全使用信息包括安全工作电压范围、安全工作电流范围、安全工作功率范围中的至少一种;Acquire safe use information of the target electrical equipment, where the safe use information includes at least one of a safe working voltage range, a safe working current range, and a safe working power range;

根据所述供电调整指令和所述安全使用信息,控制电子烟通过所述协议转换器向所述目标用电设备输出的电能。According to the power supply adjustment instruction and the safe use information, the electrical energy output by the electronic cigarette to the target electrical device through the protocol converter is controlled.

可选的,所述获取所述目标用电设备的安全使用信息,包括:Optionally, the obtaining the safe use information of the target electrical equipment includes:

接收所述目标用电设备发送的所述安全使用信息;receiving the safety usage information sent by the target electrical device;

或者,or,

获取所述目标用电设备的设备信息,根据所述设备信息从服务器获取所述目标用电设备的安全使用信息,所述设备信息包括所述目标用电设备的设备标识、设备类型以及设备名称中的至少一种;Acquire the device information of the target electrical device, and obtain the safe use information of the target electrical device from the server according to the device information, where the device information includes the device identification, device type and device name of the target electrical device at least one of;

或者,or,

获取用户输入的所述安全使用信息。Obtain the security usage information input by the user.

可选的,所述控制方法还包括:Optionally, the control method further includes:

接收第一控制指令,所述第一控制指令包括目标用电设备的工作参数;receiving a first control instruction, where the first control instruction includes working parameters of the target electrical equipment;

向所述目标用电设备发送所述第一控制指令,所述第一控制指令用于触发所述目标用电设备根据按照所述工作参数运行。Send the first control instruction to the target electrical equipment, where the first control instruction is used to trigger the target electrical equipment to operate according to the working parameters.

可选的,所述控制方法还包括:Optionally, the control method further includes:

接收第二控制指令;receiving a second control instruction;

根据所述第二控制指令控制通过所述协议转换器向所述目标用电设备输出的电能,使所述目标用电设备执行所述第二控制指令对应的目标操作。The power output to the target electrical equipment through the protocol converter is controlled according to the second control instruction, so that the target electrical equipment executes the target operation corresponding to the second control instruction.

可选的,所述获取供电调整指令,包括:Optionally, the obtaining the power supply adjustment instruction includes:

接收电子设备发送的所述供电调整指令,所述供电调整指令为所述电子设备根据其采集的语音信号生成的;或者,Receive the power supply adjustment instruction sent by the electronic device, where the power supply adjustment instruction is generated by the electronic device according to the voice signal collected by the electronic device; or,

接收服务器发送的所述供电调整指令,所述供电调整指令为所述服务器根据所述电子设备发送的语音信号生成的。Receive the power supply adjustment instruction sent by the server, where the power supply adjustment instruction is generated by the server according to the voice signal sent by the electronic device.

第二方面,提供了一种控制装置,所述控制装置包括:In a second aspect, a control device is provided, the control device comprising:

存储器和处理器;memory and processor;

所述存储器中存储有至少一条程序指令;at least one program instruction is stored in the memory;

所述处理器,通过加载并执行所述至少一条程序指令以实现第一方面以及第一方面任一可选实施例所涉及的电子烟的控制方法。The processor, by loading and executing the at least one program instruction, implements the first aspect and the electronic cigarette control method involved in any optional embodiment of the first aspect.

第三方面,提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有一个或一个以上的指令,所述一个或一个以上的指令被电子烟内的处理器执行时实现第一方面以及第一方面任一可选实施例所涉及的电子烟的控制方法。In a third aspect, a computer-readable storage medium is provided, wherein one or more instructions are stored in the computer-readable storage medium, and when the one or more instructions are executed by a processor in the electronic cigarette, the first One aspect and a method for controlling an electronic cigarette involved in any optional embodiment of the first aspect.

第四方面,提供了一种电子烟,该电子烟包括第二方面所涉及的控制装置。In a fourth aspect, an electronic cigarette is provided, which includes the control device involved in the second aspect.

本发明实施例提供的技术方案带来的有益效果是:The beneficial effects brought by the technical solutions provided in the embodiments of the present invention are:

通过获取供电调整指令;根据该供电调整指令控制电子烟向目标用电设备输出的电能;使得电子烟具备向目标用电设备供电的功能,解决了相关技术中电子烟所能够提供的功能过于单一的问题,达到丰富电子烟的功能的效果。By obtaining the power supply adjustment instruction; controlling the electric energy output by the electronic cigarette to the target electrical equipment according to the power supply adjustment instruction; so that the electronic cigarette has the function of supplying power to the target electrical equipment, which solves the problem that the functions provided by the electronic cigarette in the related art are too single. problem, to achieve the effect of enriching the functions of electronic cigarettes.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings used in the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative effort.

图1是本发明一个实施例中提供一种控制系统的结构示意图;1 is a schematic structural diagram of a control system provided in an embodiment of the present invention;

图2是本发明另一个实施例中提供的控制方法的方法流程图。FIG. 2 is a method flowchart of a control method provided in another embodiment of the present invention.

具体实施方式Detailed ways

为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。文中所讲的“电子设备”可以包括智能手机、平板电脑、智能电视、电子书阅读器、MP3播放器(Moving Picture Experts Group Audio Layer III,动态影像专家压缩标准音频层面3)、MP4(Moving Picture Experts Group Audio Layer IV,动态影像专家压缩标准音频层面4)播放器、膝上型便携计算机和台式计算机等等。In order to make the objectives, technical solutions and advantages of the present invention clearer, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings. The "electronic devices" mentioned in this article can include smart phones, tablet computers, smart TVs, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III), MP4 (Moving Picture Experts Group Audio Layer III) Experts Group Audio Layer IV, Motion Picture Expert Compression Standard Audio Layer 4) Players, Laptops and Desktops, etc.

本发明一示例性实施例提供了一种控制系统,该控制系统包括电子烟和用电设备。An exemplary embodiment of the present invention provides a control system including an electronic cigarette and an electrical device.

本文中所涉及的用电设备可以为诸如电扇、mini电扇、LED台灯、电动螺丝刀、电视机、红外发射器等等的用电设备。The electrical equipment involved in this article may be electrical equipment such as electric fans, mini electric fans, LED desk lamps, electric screwdrivers, televisions, infrared transmitters, and the like.

可选的,该电子烟上设置有协议转换器,该协议转换器用于将该电子烟与与用电设备相适配。也就是说,该协议转换器上的物理接口可与该用电设备上的物理接口相连接,并且该协议转换器还用于电子烟的通信协议与该用电设备的通信协议之间的转换。Optionally, the electronic cigarette is provided with a protocol converter, and the protocol converter is used to adapt the electronic cigarette to the electrical equipment. That is to say, the physical interface on the protocol converter can be connected with the physical interface on the powered device, and the protocol converter is also used for conversion between the communication protocol of the electronic cigarette and the communication protocol of the powered device .

举例来讲,在该用电设备为红外发射器时,协议转换器将电子烟发送电视机开启指令转换为用于触发红外发射器发射红外信号的指令,且该红外信号用于触发电视机开启。For example, when the electrical device is an infrared transmitter, the protocol converter converts the electronic cigarette to send a TV turn-on command into a command for triggering the infrared transmitter to emit an infrared signal, and the infrared signal is used to trigger the TV to turn on. .

可选的,该电子烟上设置有用于与协议转换器相连接的硬件接口,该电子烟通过该硬件接口可与一个协议转换器相连接,并且,协议转换器上还设置有与用电设备相连的接口,使得协议转换器可以与用电设备相适配,因此电子烟可通过协议转换器与用电设备建立连接,也即该协议转换器可用于将该电子烟与用电设备相适配。Optionally, the electronic cigarette is provided with a hardware interface for connecting with a protocol converter, the electronic cigarette can be connected with a protocol converter through the hardware interface, and the protocol converter is also provided with electrical equipment. The connected interface enables the protocol converter to be adapted to the electrical equipment, so the electronic cigarette can establish a connection with the electrical equipment through the protocol converter, that is, the protocol converter can be used to adapt the electronic cigarette to the electrical equipment. match.

在电子烟通过协议转换器与一个用电设备相连接的情况下,其可通过该协议转换器向该用电设备输出电能。举例来讲,该电子烟的协议转换器可与一根连接线的USB(Universal Serial Bus,通用串行总线)接口相连接,该连接线的另一端与用电设备相连接。可选的,该连接线还可用于传输数据。When the electronic cigarette is connected to an electrical device through a protocol converter, it can output electric energy to the electrical device through the protocol converter. For example, the protocol converter of the electronic cigarette can be connected to a USB (Universal Serial Bus) interface of a connecting line, and the other end of the connecting line is connected to the electrical equipment. Optionally, the connection line can also be used to transmit data.

可选的,电子烟可通过以下几种方式与用电设备进行通信:Optionally, the electronic cigarette can communicate with the electrical device in the following ways:

第一种,电子烟通过协议转换器与用电设备进行通信。The first is that the electronic cigarette communicates with the electrical device through a protocol converter.

第二种,电子烟利用无线传输技术与用电设备进行通信,这里所讲的无线传输技术可以为诸如蓝牙、WIFI(Wireless-Fidelity,无线保真)技术直连、NFC(Near FieldCommunication,近距离无线通讯技术)、红外等等的近距离无线传输技术。Second, electronic cigarettes use wireless transmission technology to communicate with electrical equipment. The wireless transmission technology mentioned here can be such as Bluetooth, WIFI (Wireless-Fidelity, wireless fidelity) technology direct connection, NFC (Near Field Communication, short-distance communication) wireless communication technology), infrared and other short-range wireless transmission technology.

可选的,该控制系统包括电子设备,该电子设备上安装有用于控制该控制系统中用电设备的应用程序。Optionally, the control system includes an electronic device, and an application program for controlling the electrical equipment in the control system is installed on the electronic device.

可选的,电子烟可利用无线传输技术与电子设备进行通信。Optionally, the electronic cigarette may communicate with the electronic device using wireless transmission technology.

可选的,该控制系统还包括服务器,该服务器为上述应用程序的后台服务器,该服务器可以通过有线或者无线网络分别与电子烟、电子设备相连接。可选的,该后台服务器可以为一台服务器,也可以为由多台服务器组成的服务器集群。Optionally, the control system further includes a server, which is a background server of the above application program, and the server can be connected to the electronic cigarette and the electronic device respectively through a wired or wireless network. Optionally, the background server may be one server, or may be a server cluster composed of multiple servers.

举例来讲,如图1所示,该控制系统包括电子烟110、服务器120以及电子设备130和多个用电设备,该多个用电设备分别为LED(Light Emitting Diode,发光二极管)台灯140、电动螺丝刀150以及电视机160。For example, as shown in FIG. 1 , the control system includes an electronic cigarette 110 , a server 120 , an electronic device 130 and a plurality of electrical devices, which are LED (Light Emitting Diode, light-emitting diode) desk lamps 140 respectively. , an electric screwdriver 150 and a TV 160 .

请参考图2,其示出了本发明一个实施例提供的电子烟的控制方法的方法流程图。如图2所示,该电子烟的控制方法可以包括:Please refer to FIG. 2 , which shows a method flowchart of a method for controlling an electronic cigarette provided by an embodiment of the present invention. As shown in Figure 2, the control method of the electronic cigarette may include:

步骤210,接收供电调整指令。Step 210, receiving a power supply adjustment instruction.

步骤210可通过以下两种方式实现:Step 210 can be implemented in the following two ways:

步骤210的第一种实现方式:接收电子设备发送的供电调整指令。A first implementation manner of step 210: receiving a power supply adjustment instruction sent by the electronic device.

一般来讲,电子设备上安装的应用程序可用于控制至少一种用电设备,电子设备可在应用程序中向用户提供该至少一种用电设备供用户选择。用户在将目标用电设备与电子烟相连接后,可从该至少一种用电设备中选中目标用电设备。Generally speaking, an application program installed on the electronic device can be used to control at least one electrical device, and the electronic device can provide the user with the at least one electrical device in the application program for the user to select. After connecting the target electrical device with the electronic cigarette, the user can select the target electrical device from the at least one electrical device.

以目标用电设备为LED灯来举例说明,电子设备将该至少一种用电设备中每个用电设备的图标或名称显示在应用程序的显示界面中。用户在将LED灯与电子烟相连后,在该应用程序中选中LED灯对应的图标,则电子设备将LED灯台灯作为目标用电设备。Taking the target electrical device as an LED light as an example, the electronic device displays the icon or name of each electrical device in the at least one electrical device in the display interface of the application program. After connecting the LED light to the electronic cigarette, the user selects the icon corresponding to the LED light in the application, and the electronic device uses the LED light table lamp as the target electrical device.

电子设备在获取到目标用电设备后,可通过以下两种方式获取供电调整指令:After the electronic device obtains the target electrical device, it can obtain the power supply adjustment instruction in the following two ways:

1、该供电调整指令包括供电功率的调整量、供电电压的调整量、供电电流的调整量、供电电流方向和供电电压方向中的至少一种。1. The power supply adjustment instruction includes at least one of the adjustment amount of the supply power, the adjustment amount of the supply voltage, the adjustment amount of the supply current, the direction of the supply current and the direction of the supply voltage.

可选的,电功率的调整量、供电电压的调整量、供电电流的调整量、供电电流方向和供电电压方向可以是用户设定的,也可是电子设备根据目标用电设备的可执行操作中被用户选中的目标操作生成的。Optionally, the adjustment amount of the electric power, the adjustment amount of the supply voltage, the adjustment amount of the supply current, the direction of the supply current and the direction of the supply voltage may be set by the user, or the electronic device may be set according to the executable operation of the target electric device. Generated by the target action selected by the user.

电子设备上的应用程序针对每个用电设备提供了至少一个可执行操作供用户选择。例如,针对LED台灯提供的可执行操作可以包括诸如增大亮度、减小亮度、亮度增加一倍、亮度降低50%、开启、关闭等等操作;再例如,针对电动螺丝刀提供的可执行操作可以包括增大转速、减小转速、改变转动方向、增大力矩、减小力矩、开启、关闭等等操作;再例如,针对mini电扇提供的可执行操作可以包括增大风速、减小风速、改变风速、改变风向以及定时关机等等操作。再例如,针对电视提供的可执行操作可以包括开机、关机、增大音量、减小音量以及切换频道等等操作。The application on the electronic device provides at least one executable operation for each powered device for the user to select. For example, the executable operations provided for an LED desk lamp may include operations such as increasing the brightness, decreasing the brightness, doubling the brightness, reducing the brightness by 50%, turning on, turning off, etc.; for another example, the executable operations provided for the electric screwdriver may Including operations such as increasing the rotational speed, decreasing the rotational speed, changing the direction of rotation, increasing the torque, reducing the torque, opening, closing, etc.; for another example, the executable operations provided for the mini fan may include increasing the wind speed, reducing the wind speed, changing the Wind speed, changing wind direction, and timing shutdown, etc. For another example, the executable operations provided for the TV may include operations such as turning on, turning off, increasing the volume, decreasing the volume, and switching channels.

电子设备根据目标操作生成供电调整指令。以目标用电设备为LED台灯、目标操作为指示增大LED台灯的亮度来举例说明。电子设备在检测到目标操作为增大LED台灯的亮度时,生成一条供电调整指令,该供电调整指令包括供电电流的调整量+5mA。The electronic device generates a power supply adjustment instruction according to the target operation. Take the target electrical equipment as an LED desk lamp and the target operation as an instruction to increase the brightness of the LED desk lamp as an example. When the electronic device detects that the target operation is to increase the brightness of the LED desk lamp, it generates a power supply adjustment instruction, and the power supply adjustment instruction includes the adjustment amount of the power supply current +5 mA.

2、应用程序针对至少一个用电设备提供了设置目标供电要求的功能,这里所讲的供电要求可以包括供电功率、供电电压、供电电流、供电电流方向和供电电压方向中的至少一种。电子设备在获取到目标用电设备以及目标供电要求后,利用该目标供电要求生成供电调整指令。2. The application provides the function of setting target power supply requirements for at least one powered device, and the power supply requirements mentioned here may include at least one of power supply, supply voltage, supply current, supply current direction, and supply voltage direction. After acquiring the target electrical device and the target power supply requirement, the electronic device generates a power supply adjustment instruction by using the target power supply requirement.

举例来讲,电子设备可显示至少一个用电设备的图标,电子设备在检测到该至少一个用电设备中LED台灯的图标被选中后,将LED台灯作为目标用电设备,显示LED台灯的供电要求设置界面,该供电要求设置界面中包括用于输入供电电流的输入框和确认按钮。电子设备在检测到该确认按钮被操作时产生的操作信号时,获取该输入框中输入的供电电流,利用LED台灯的设备标识以及供电电流生成控制指令。For example, the electronic device may display an icon of at least one electric device. After detecting that the icon of the LED desk lamp in the at least one electric device is selected, the electronic device uses the LED desk lamp as the target electric device and displays the power supply of the LED desk lamp. A request setting interface, which includes an input box and a confirmation button for inputting the supply current. When the electronic device detects the operation signal generated when the confirmation button is operated, it obtains the power supply current input in the input box, and generates a control command by using the device identification of the LED desk lamp and the power supply current.

电子设备可利用以下几种方式向电子烟发送供电调整指令:Electronic devices can send power supply adjustment instructions to electronic cigarettes in the following ways:

1、电子设备利用近距离无线传输技术向电子烟发送该供电调整指令。1. The electronic device uses the short-range wireless transmission technology to send the power supply adjustment command to the electronic cigarette.

电子设备与电子烟可预先进行绑定。Electronic devices and electronic cigarettes can be bound in advance.

可选的,电子设备中可存储与其绑定的电子烟的设备标识,利用近距离无线传输技术将携带有该电子烟的设备标识的供电调整指令发送给该电子烟。接收到该供电调整指令的电子烟可能存在多个,该多个电子烟中具备该供电调整指令中设备标识的电子烟可执行步骤220。Optionally, the electronic device can store the device identification of the electronic cigarette bound to it, and use the short-range wireless transmission technology to send the power supply adjustment instruction carrying the device identification of the electronic cigarette to the electronic cigarette. There may be multiple electronic cigarettes that have received the power supply adjustment instruction, and step 220 may be performed on the electronic cigarettes that have the device identifier in the power supply adjustment instruction among the multiple electronic cigarettes.

可选的,每个电子烟中可存储与其绑定的电子设备的设备标识,该电子设备可利用近距离无线传输技术将携带有其设备标识的供电调整指令发送给该电子烟。接收到该供电调整指令的电子烟可能存在多个,该多个电子烟中存储该供电调整指令中设备标识的电子烟可执行步骤220。Optionally, each electronic cigarette can store the device identification of the electronic device bound to it, and the electronic device can send the power supply adjustment instruction carrying its device identification to the electronic cigarette using the short-range wireless transmission technology. There may be multiple electronic cigarettes that have received the power supply adjustment instruction, and the electronic cigarette that stores the device identifier in the power supply adjustment instruction among the multiple electronic cigarettes can perform step 220 .

2、电子设备将该供电调整指令发送至服务器;服务器将该供电调整指令发送至该电子烟。2. The electronic device sends the power supply adjustment instruction to the server; the server sends the power supply adjustment instruction to the electronic cigarette.

可选的,电子设备中预先存储了与其绑定的电子烟的设备标识,其向服务器发送的服务器中携带有该电子烟的设备标识;服务器根据该电子烟的设备标识向该电子烟转发该供电调整指令。Optionally, the device identification of the electronic cigarette bound to the electronic device is pre-stored in the electronic device, and the device identification of the electronic cigarette is carried in the server sent to the server; the server forwards the device identification to the electronic cigarette according to the device identification of the electronic cigarette. Power supply adjustment command.

可选的,服务器中可将相互绑定的电子烟以及电子设备的设备标识对应存储。电子烟向服务器发送携带其设备标识的供电调整指令,服务器根据该供电调整指令中电子设备的设备标识确定与该电子设备绑定的电子烟,向电子烟转发该供电调整指令。Optionally, the server may store the device identifiers of the electronic cigarettes and electronic devices that are bound to each other correspondingly. The electronic cigarette sends a power supply adjustment instruction carrying its device identification to the server, and the server determines the electronic cigarette bound to the electronic device according to the device identification of the electronic device in the power supply adjustment instruction, and forwards the power supply adjustment instruction to the electronic cigarette.

步骤210的第二种实现方式:电子烟具备显示屏和操作键盘,电子烟根据用户操作获取供电调整指令。The second implementation manner of step 210: the electronic cigarette is provided with a display screen and an operation keyboard, and the electronic cigarette obtains a power supply adjustment instruction according to a user operation.

其中,电子烟获取供电调整指令的具体实现可参照步骤210的第一种实现方式中,电子设备获取供电调整指令的实现方式,此处不再赘述。The specific implementation of the electronic cigarette acquiring the power supply adjustment instruction may refer to the first implementation manner of step 210, the implementation manner of the electronic device acquiring the power supply adjustment instruction, which will not be repeated here.

步骤220,根据该供电调整指令控制电子烟通过该协议转换器向目标用电设备输出的电能。Step 220: Control the electrical energy output by the electronic cigarette to the target electrical device through the protocol converter according to the power supply adjustment instruction.

以下分两种情况分别说明:The two cases are described below:

第一种情况,该供电调整指令包括目标供电要求。In the first case, the power supply adjustment instruction includes a target power supply requirement.

在该目标供电要求包括供电电压的情况下,通过该协议转换器输出电压值与该供电要求中供电电压相同或相近的输出电压。In the case that the target power supply request includes a power supply voltage, the protocol converter outputs an output voltage whose voltage value is the same as or similar to the power supply voltage in the power supply request.

在该目标供电要求包括供电电流的情况下,通过该协议转换器输出电流值与该供电要求中供电电流相同或相近的输出电流。In the case that the target power supply requirement includes a supply current, the protocol converter outputs an output current whose current value is the same as or similar to the supply current in the power supply requirement.

在该目标供电要求包括供电功率的情况下,控制通过该协议转换器输出的输出电压以及输出电流,使从协议转换器输出的输出功率与目标供电要求中的供电功率相等或相近。When the target power supply request includes power supply, the output voltage and output current output by the protocol converter are controlled so that the output power output from the protocol converter is equal to or similar to the power supply power in the target power supply request.

电子设备根据用户选中的可执行操作(本文称为目标操作)生成供电调整指令。其中,该供电调整指令用于指示电子烟如何调整通过协议转换器输出的电能,使目标用电设备能够执行该目标操作。The electronic device generates the power supply adjustment instruction according to the executable operation selected by the user (herein referred to as the target operation). The power supply adjustment instruction is used to instruct the electronic cigarette how to adjust the power output through the protocol converter, so that the target electrical device can perform the target operation.

以目标用电设备为LED台灯、供电调整指令指示增大LED台灯的亮度来举例说明,目前电子烟输出的供电电流为5mA。电子烟在接收到该供电调整指令时,将电子烟提供的输出电流提高5mA。也就是说,电子烟确定出的LED台灯执行增大LED台灯的亮度所需要的供电电流为10mA。电子烟通过协议转换器向LED台灯输出10mA的电流。Taking the target electrical equipment as an LED desk lamp, and the power supply adjustment instruction instructing to increase the brightness of the LED desk lamp as an example, the current output power supply current of the electronic cigarette is 5mA. When the electronic cigarette receives the power supply adjustment command, the output current provided by the electronic cigarette is increased by 5 mA. That is to say, the power supply current required for the LED desk lamp determined by the electronic cigarette to increase the brightness of the LED desk lamp is 10 mA. The electronic cigarette outputs a current of 10mA to the LED desk lamp through the protocol converter.

第二种情况,供电调整指令包括供电功率的调整量、供电电压的调整量、供电电流的调整量中的至少一种。In the second case, the power supply adjustment instruction includes at least one of the adjustment amount of the supply power, the adjustment amount of the supply voltage, and the adjustment amount of the supply current.

综上所述,本实施例提供的方法,通过获取供电调整指令;根据该供电调整指令控制电子烟向目标用电设备输出的电能;使得电子烟具备向目标用电设备供电的功能,解决了相关技术中电子烟所能够提供的功能过于单一的问题,达到丰富电子烟的功能的效果。To sum up, the method provided in this embodiment solves the problem by obtaining the power supply adjustment instruction; controlling the electric energy output by the electronic cigarette to the target electrical equipment according to the power supply adjustment instruction; enabling the electronic cigarette to have the function of supplying power to the target electrical equipment In the related art, the functions that the electronic cigarette can provide is too single, so as to achieve the effect of enriching the functions of the electronic cigarette.

需要说明的一点是:通过电子烟通过利用其协议转换器向目标用电设备供电,使得目标用电设备的使用场地不再受到限制。以目标用电设备为电动螺丝刀来举例说明,现有技术中技术人员需要将电动螺丝刀与市电供电插座相连接后,才能使用电动螺丝刀。而本申请中,在将电动螺丝刀与电子烟的协议转换器连接后,电子烟向电动螺丝刀供电使电动螺丝刀正常工作,电动螺丝刀的使用不再受到场地的限制。It should be noted that the electronic cigarette uses its protocol converter to supply power to the target electrical equipment, so that the use site of the target electrical equipment is no longer restricted. Taking the target electrical device as an electric screwdriver as an example, in the prior art, the technical personnel need to connect the electric screwdriver to the mains power supply socket before using the electric screwdriver. In this application, after connecting the electric screwdriver to the protocol converter of the electronic cigarette, the electronic cigarette supplies power to the electric screwdriver to make the electric screwdriver work normally, and the use of the electric screwdriver is no longer restricted by the site.

在一个示例中,步骤210的实现还可以为:采集语音信号;根据语音信号确定目标用电设备和目标供电要求;根据该目标供电要求以及该目标用电设备生成供电调整指令,该供电调整指令包括该目标用电设备的设备标识、设备类型以及设备名称中至少一种。In an example, the implementation of step 210 may also be: collecting a voice signal; determining a target electrical device and a target power supply requirement according to the voice signal; generating a power supply adjustment instruction according to the target power supply requirement and the target electrical device, and the power supply adjustment instruction It includes at least one of the device identification, device type, and device name of the target electrical device.

可选的,电子设备在采集到语音信号后,将其采集的语音信号发送至服务器;服务器根据语音信号确定目标用电设备和目标供电要求;根据目标供电要求以及目标用电设备生成供电调整指令,将该供电调整指令发送至电子烟,该供电调整指令包括该目标用电设备的设备标识、设备类型以及设备名称中至少一种。Optionally, after collecting the voice signal, the electronic device sends the collected voice signal to the server; the server determines the target electrical device and the target power supply requirement according to the voice signal; generates a power supply adjustment instruction according to the target power supply requirement and the target electrical device. , sending the power supply adjustment instruction to the electronic cigarette, where the power supply adjustment instruction includes at least one of the device identification, device type and device name of the target electrical device.

可选的,在一个示例中,电子烟还根据获取目标用电设备的安全使用信息向目标用电设备输出电能。也就是说,步骤220可以替换为:根据该供电调整指令和目标用电设备的安全使用信息,控制电子烟通过协议转换器向目标用电设备输出的电能。Optionally, in an example, the electronic cigarette further outputs electrical energy to the target electrical device according to the obtained safety usage information of the target electrical device. That is to say, step 220 can be replaced by: controlling the electrical energy output by the electronic cigarette to the target electrical device through the protocol converter according to the power supply adjustment instruction and the safe use information of the target electrical device.

具体实现可以为:获取目标用电设备的安全使用信息,该安全使用信息包括安全工作电压范围、安全工作电流范围、安全工作功率范围中的一种;根据供电调整指令和该安全使用信息控制电子烟向目标用电设备输出的电能,使得通过电子烟上协议转换器输出的输出电压、输出电流以及输出功率符合该安全使用信息。The specific implementation can be as follows: obtaining the safe use information of the target electrical equipment, the safe use information including one of the safe working voltage range, the safe working current range and the safe working power range; controlling the electronic device according to the power supply adjustment instruction and the safe use information The electrical energy output by the cigarette to the target electrical device makes the output voltage, output current and output power output through the protocol converter on the electronic cigarette conform to the safe use information.

也就是说,在该安全使用信息包括安全工作电压范围的情况下,控制其输出电压不超出该安全工作电压范围;在该安全使用信息包括安全工作电流范围的情况下,控制其输出电流不超出该安全工作电流范围;在该安全使用信息包括安全工作功率范围的情况下,控制其输出功率不超出该安全工作功率范围。That is to say, when the safe use information includes the safe working voltage range, the output voltage is controlled not to exceed the safe working voltage range; when the safe use information includes the safe working current range, the output current is controlled not to exceed the safe working voltage range. The safe working current range; when the safe use information includes a safe working power range, control the output power not to exceed the safe working power range.

电子烟可通过以下几种方式获取目标用电设备的安全使用信息:Electronic cigarettes can obtain information on the safe use of target electrical equipment in the following ways:

第一种,目标用电设备将其本地存储的安全使用信息发送给电子烟;电子烟接收该安全使用信息。可选的,目标用电设备还可将其设备名称和/或设备类型与该安全使用信息一同发送给电子烟。First, the target electrical device sends its locally stored safety usage information to the electronic cigarette; the electronic cigarette receives the safety usage information. Optionally, the target powered device may also send its device name and/or device type to the electronic cigarette together with the safety usage information.

目标用电设备可通过协议转换器或者无线传输技术向电子烟发送该安全使用信息。The target electrical device can send the safe use information to the electronic cigarette through a protocol converter or wireless transmission technology.

第二种,电子烟获取到目标用电设备的设备信息,该设备信息包括设备标识、设备类型、设备名称中的至少一种;向服务器发送携带有获取到的设备信息的查询请求;服务器根据该查询请求查询该目标用电设备的安全使用信息,将该安全使用信息发送给该电子烟。Second, the electronic cigarette obtains the device information of the target electrical device, the device information includes at least one of device identification, device type, and device name; sends a query request carrying the obtained device information to the server; The query request queries the safety use information of the target electrical equipment, and sends the safety use information to the electronic cigarette.

可选的,目标用电设备通过与电子烟的协议转换器相连接时,目标用电设备将其设备标识或设备类型或设备名称发送给电子烟。Optionally, when the target powered device is connected with the protocol converter of the electronic cigarette, the target powered device sends its device identification or device type or device name to the electronic cigarette.

第三种,电子烟获取用户在电子烟上输入的安全使用信息。举例来讲,电子烟可在其显示屏上显示用于输入安全使用信息的输入框,电子烟从该输入框中获取用户输入的安全使用信息。Third, the electronic cigarette obtains the safe use information entered by the user on the electronic cigarette. For example, the electronic cigarette may display an input box for inputting safety use information on its display screen, and the electronic cigarette obtains the safety use information input by the user from the input box.

在一个示例中,电子烟从目标用电设备或者服务器中获取到安全使用信息后,还将安全使用信息发送至电子设备供用户确认;获取经电子设备确认的安全使用信息时,控制通过协议转换器输出的输出电压、输出电流以及输出功率符合该经确认的安全使用信息。In one example, after obtaining the safety usage information from the target electrical device or server, the electronic cigarette also sends the safety usage information to the electronic device for confirmation by the user; when obtaining the safety usage information confirmed by the electronic device, the control is performed through protocol conversion The output voltage, output current and output power of the output of the device comply with the confirmed safe use information.

电子设备在接收到安全使用信息后,显示该安全使用信息。使得用户可在电子设备上确认目标用电设备的安全使用信息;在电子设备上显示的安全使用信息中有误时,用户可直接在电子设备上修改。After receiving the safety use information, the electronic device displays the safety use information. The user can confirm the safety use information of the target electrical equipment on the electronic device; when the safety use information displayed on the electronic device is incorrect, the user can directly modify it on the electronic device.

可选的,在电子设备显示安全使用信息的过程中,在检测到用于确认安全使用信息的操作时,将其显示的安全使用信息作为经用户确认的安全使用信息发送给电子烟。Optionally, in the process of displaying the safety use information on the electronic device, when an operation for confirming the safety use information is detected, the displayed safety use information is sent to the electronic cigarette as the safety use information confirmed by the user.

举例来讲,电子设备在显示安全使用信息的显示界面中还显示确认按钮,在检测到该确认按钮被按动时产生的操作时,将将其显示的安全使用信息作为经用户确认的安全使用信息发送给电子烟。For example, the electronic device also displays a confirmation button on the display interface displaying the safety use information, and when detecting an operation generated when the confirmation button is pressed, the displayed safety use information will be used as the user-confirmed safety use information. Information sent to e-cigarettes.

可选的,电子设备显示安全使用信息的过程中,在检测到用于确认安全使用信息的操作时,确定电子设备显示的安全使用信息是否被修改;如果未被修改,则向电子烟发送确认信号,该确认信号用于指示电子烟向电子设备发送的全使用信息无误;否则,则将修改后的安全使用信息发送给电子烟。Optionally, during the process of displaying the safety use information by the electronic device, when an operation for confirming the safety use information is detected, determine whether the safety use information displayed by the electronic device has been modified; if not, send a confirmation to the electronic cigarette. The confirmation signal is used to indicate that the full use information sent by the electronic cigarette to the electronic device is correct; otherwise, the modified safe use information is sent to the electronic cigarette.

在一个示例中,电子烟在获取到目标用电设备的安全使用信息后,获取该目标用电设备的目标供电要求;在该目标供电要求超出该安全使用信息中的安全工作电压范围和/或安全工作电流范围和/或安全工作功率范围时,停止通过协议转换器向目标用电设备输出电能和/或展示提醒消息。In one example, after obtaining the safe use information of the target electrical device, the electronic cigarette obtains the target power supply requirement of the target electrical device; the target power supply requirement exceeds the safe working voltage range and/or the safe operating voltage range in the safe use information. In the safe working current range and/or the safe working power range, stop outputting power to the target electrical device through the protocol converter and/or display a reminder message.

可选的,该提醒消息可以为文本提示消息,也可以为语音提示消息,也可以为电子烟的振动器震动,本实施例对此提醒消息不做具体限定。用户可根据该提醒消息断开电子烟的协议转换器与目标用电设备的连接,用户还可根据该提醒消息修改目标用电设备的供电要求、为目标用电设备选择目标执行操作等等。Optionally, the reminder message may be a text prompt message, a voice prompt message, or a vibrator vibration of the electronic cigarette, which is not specifically limited in this embodiment. The user can disconnect the protocol converter of the electronic cigarette from the target electrical device according to the reminder message. The user can also modify the power supply requirements of the target electrical device according to the reminder message, select a target to perform operations for the target electrical device, and so on.

以目标用电设备为LED台灯,在LED台灯的目标供电要求中的供电电流超出安全工作电流范围时,在电子烟的显示屏幕中显示文本消息“请重新设置LED台灯的供电电流”Taking the target electrical device as the LED desk lamp, when the power supply current in the target power supply requirement of the LED desk lamp exceeds the safe working current range, the text message "Please reset the power supply current of the LED desk lamp" is displayed on the display screen of the electronic cigarette.

可选的,电子烟还可将该提醒消息发送至电子设备,该电子设备展示该提醒消息。Optionally, the electronic cigarette can also send the reminder message to the electronic device, and the electronic device displays the reminder message.

在一个示例中,电子设备在获取到目标用电设备后,电子设备可获取用于控制该目标用电设备的第一控制指令,该第一控制指令包括目标用电设备的工作参数。具体实现可以为:电子设备上的应用程序针对目标用电设备(电子设备上被用户选中的用电设备)提供了设置目标用电设备的工作参数的功能。例如,电动螺丝刀的工作参数可以包括转速、转动方向、力矩;再例如,电风扇的工作参数可以包括风速、风类、风向等等。电子设备在获取到目标用电设备和目标用电设备的工作参数后,利用该目标用电设备的工作参数生成第一控制指令。In one example, after the electronic device acquires the target powered device, the electronic device may acquire a first control instruction for controlling the target powered device, where the first control instruction includes the working parameters of the target powered device. The specific implementation may be as follows: an application program on the electronic device provides a function of setting working parameters of the target powered device for the target powered device (the powered device selected by the user on the electronic device). For example, the working parameters of an electric screwdriver may include rotational speed, rotation direction, and torque; for another example, the working parameters of an electric fan may include wind speed, wind type, wind direction, and the like. After acquiring the target electrical equipment and the operating parameters of the target electrical equipment, the electronic device generates a first control instruction by using the operating parameters of the target electrical equipment.

可选的,该第一控制指令还可以包括目标用电设备的相关信息。Optionally, the first control instruction may further include relevant information of the target electrical device.

其中,电子烟可利用无线通信技术向目标用电设备发送该第一控制指令,电子烟也可通过协议转换器向目标用电设备发送该第一控制指令。目标用电设备接收到该第一控制指令时,按照该第一控制指令中的工作参数运行。Wherein, the electronic cigarette can send the first control instruction to the target electrical equipment by using the wireless communication technology, and the electronic cigarette can also send the first control instruction to the target electrical equipment through the protocol converter. When the target electrical equipment receives the first control instruction, it operates according to the working parameters in the first control instruction.

可选的,目标用电设备按照该第一控制指令中的工作参数运行前,还获取第一控制指令中包括的相关信息。在该相关信息包括该目标用电设备的设备标识和/或设备类型时,目标用电设备再按照该第一控制指令中的工作参数运行。Optionally, before the target electrical device operates according to the working parameters in the first control instruction, the relevant information included in the first control instruction is also acquired. When the relevant information includes the device identification and/or device type of the target electrical device, the target electrical device operates according to the working parameters in the first control instruction.

在一个示例中,电子烟可获取根据目标操作生成的第二控制指令,根据该第二控制指令控制通过协议转换器向目标用电设备输出的电能,使目标用电设备能够执行该第二控制指令对应的目标操作。In one example, the electronic cigarette can acquire a second control instruction generated according to the target operation, and control the electrical energy output to the target electrical equipment through the protocol converter according to the second control instruction, so that the target electrical equipment can perform the second control The target operation corresponding to the instruction.

以目标用电设备为LED台灯、目标操作为LED台灯的增大亮度、第二控制指令指示增大LED台灯的亮度来举例说明。目前电子烟输出的供电电流为5mA。电子烟在接收到该第二控制指令时,将电子烟提供的输出电流提高5mA,使LED台灯增大亮度。也就是说,电子烟确定出的LED台灯执行增大LED台灯的亮度所需要的供电电流为10mA。电子烟通过协议转换器向LED台灯输出10mA的电流。Take the target electrical equipment as an LED desk lamp, the target operation as increasing the brightness of the LED desk lamp, and the second control instruction instructing to increase the brightness of the LED desk lamp as an example. At present, the power supply current output by the electronic cigarette is 5mA. When the electronic cigarette receives the second control command, the output current provided by the electronic cigarette is increased by 5 mA, so that the brightness of the LED desk lamp is increased. That is to say, the power supply current required for the LED desk lamp determined by the electronic cigarette to increase the brightness of the LED desk lamp is 10 mA. The electronic cigarette outputs a current of 10mA to the LED desk lamp through the protocol converter.

可选的,该第二控制指令还可用于触发目标用电设备执行该第二控制指令对应的目标操作。电子烟还可将第二控制指令发送给目标用电设备,使目标用电设备执行该第二控制指令对应的目标操作。Optionally, the second control instruction may also be used to trigger the target electrical device to perform the target operation corresponding to the second control instruction. The electronic cigarette can also send the second control instruction to the target electrical device, so that the target electrical device executes the target operation corresponding to the second control instruction.

可选的,该第二控制指令还可以包括目标用电设备的相关信息,该相关信息可以包括目标用电设备的标识和/或用于指示该目标用电设备的设备类型的信息,这里所讲的设备类型可以为诸如电视、电扇、电钻、电风扇以及红外发射器等等。Optionally, the second control instruction may also include relevant information of the target electric device, and the relevant information may include the identification of the target electric device and/or the information used to indicate the device type of the target electric device. The types of equipment in question may be, for example, televisions, fans, drills, fans, and infrared transmitters, among others.

可选的,目标用电设备按照执行该目标操作之前,还获取第二控制指令中包括的相关信息。在该相关信息包括该目标用电设备的设备标识和/或设备类型时,目标用电设备再执行该目标操作。Optionally, the target electrical device further acquires the relevant information included in the second control instruction before executing the target operation. When the relevant information includes the device identification and/or device type of the target powered device, the target powered device then performs the target operation.

在一个示例中,电子设备获取第二控制指令的实现还可以为:采集语音信号;根据语音信号确定目标用电设备以及目标用电操作;根据目标用电设备以及目标用电操作生成第二控制指令。举例来讲,电子设备上的应用程序可提供语音按钮,用户在按下语音按钮的过程中说出目标用电设备的名称以及目标操作;电子设备在检测到语音按钮被按动时产生的操作信号的过程中进行语音采集,分析所采集的语音信号的语音内容。提取该语音内容中的目标用电设备的名称以及目标操作,根据目标用电设备的名称、目标操作生成第二控制指令。In an example, the acquisition of the second control instruction by the electronic device may further be: collecting a voice signal; determining a target power-consuming device and a target power-consuming operation according to the voice signal; generating a second control according to the target power-consuming device and the target power-consuming operation instruction. For example, an application on an electronic device can provide a voice button, and the user speaks the name of the target electrical device and the target operation during the process of pressing the voice button; the electronic device detects the operation generated when the voice button is pressed In the process of signal transmission, voice collection is performed, and the voice content of the collected voice signal is analyzed. Extract the name and target operation of the target electrical equipment in the voice content, and generate a second control instruction according to the name and target operation of the target electrical equipment.

可选的,电子设备在采集到语音信号后,将其采集的语音信号发送至服务器;服务器根据该语音信号生成第二控制指令,将该第二控制指令发送至电子烟。Optionally, after collecting the voice signal, the electronic device sends the collected voice signal to the server; the server generates a second control instruction according to the voice signal, and sends the second control instruction to the electronic cigarette.

在一个示例中,电子烟上还设置有红外发射器,电子烟利用该红外发射器发射第三控制指令对应的红外信号,该红外信号用于触发目标用电设备根据该红外信号执行该第三控制指令对应的目标操作。这里所讲的目标用电设备为电子烟或电子设备上被用户选中的用电设备,目标操作为电子烟或电子设备上被用户选中的可执行操作,第三控制指令是根据该被用户选中的可执行操作以及目标用电设备生成的。In an example, the electronic cigarette is further provided with an infrared transmitter, and the electronic cigarette uses the infrared transmitter to transmit an infrared signal corresponding to the third control instruction, and the infrared signal is used to trigger the target electrical device to execute the third control instruction according to the infrared signal. The target operation corresponding to the control instruction. The target electrical device mentioned here is the electronic cigarette or the electrical device selected by the user on the electronic device, the target operation is the executable operation selected by the user on the electronic cigarette or the electronic device, and the third control instruction is based on the selected by the user. and generated by the target powered device.

以目标用电设备为电视、用户为目标用电设备选中的可执行操作(也即,目标操作)为开机来举例说明,电子烟在接收到根据目标用电设备电视、目标操作开机生成的第三控制指令时,该第三控制指令用于指示电子烟控制电视开机,则电子烟可利用该红外发射器发射用于触发电视开机的红外信号,使得用户可通过手握电子烟将红外发射器对准电视来开启电视。Take the target electrical device as the TV and the user as the target electrical device to select the executable operation (that is, the target operation) as the power-on as an example. When the third control command is used, the third control command is used to instruct the electronic cigarette to control the TV to turn on, then the electronic cigarette can use the infrared transmitter to emit an infrared signal for triggering the TV to start, so that the user can hold the electronic cigarette to turn on the infrared transmitter. Aim at the TV to turn on the TV.

可选的,电子烟在接收到第三控制指令后的预设时长内,利用该红外发射器发射该第三控制指令对应的红外信号。其中,预设时长可以由开发人员设定,也可由用户自定义;用户可以在电子烟或者电子设备上自定义。Optionally, within a preset time period after receiving the third control instruction, the electronic cigarette uses the infrared transmitter to transmit an infrared signal corresponding to the third control instruction. Among them, the preset duration can be set by the developer or customized by the user; the user can customize it on the electronic cigarette or electronic device.

在一个示例中,电子烟还可通过协议转换器与红外发射器(即目标用电设备)相连接,电子烟在接收到第三控制指令时,控制该红外发射器发射该第三控制指令对应的红外信号。例如,电子烟通过红外发射器向电视机发送切换电视频道的红外信号。In one example, the electronic cigarette can also be connected to an infrared transmitter (that is, the target electrical device) through a protocol converter. When the electronic cigarette receives the third control instruction, it controls the infrared transmitter to emit the corresponding third control instruction. infrared signal. For example, the electronic cigarette sends an infrared signal to the TV to switch the TV channel through the infrared transmitter.

以第三控制指令用于指示电子烟控制电视开机来举例说明,电子烟可利用该红外发射器发射用于触发电视开机的红外信号,使得用户可通过手握电子烟将红外发射器对准电视来开启电视。Taking the third control command for instructing the electronic cigarette to control the TV to turn on as an example, the electronic cigarette can use the infrared transmitter to emit an infrared signal for triggering the TV to start, so that the user can hold the electronic cigarette and aim the infrared transmitter at the TV to turn on the TV.

需要说明的一点是,在本发明实施例中,电子烟也具备语音功能,也可接收语音信号形式的供电调整指令和语音信号形式的第一控制指令;并将其解析得到供电调整指令和第一控制指令,随后执行对应的操作。It should be noted that, in the embodiment of the present invention, the electronic cigarette also has a voice function, and can also receive power supply adjustment instructions in the form of voice signals and first control instructions in the form of voice signals; and parse them to obtain power supply adjustment instructions and first control instructions. A control command, and then the corresponding operation is performed.

本发明还提供了一种控制装置,该控制装置包括:存储器和处理器;该存储器中存储有至少一条程序指令;该处理器,通过加载并执行所述至少一条程序指令以实现上述任一实施例所涉及的控制方法。The present invention also provides a control device, which includes: a memory and a processor; the memory stores at least one program instruction; the processor implements any of the above implementations by loading and executing the at least one program instruction The control method involved in the example.

本发明还提供了一种电子烟,该电子烟还包括该控制装置。The present invention also provides an electronic cigarette, which further includes the control device.

本发明还提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有一个或一个以上的指令,所述一个或一个以上的指令被电子烟内的处理器执行时实现上述任一实施例所涉及的控制方法。The present invention also provides a computer-readable storage medium, wherein one or more instructions are stored in the computer-readable storage medium, and when the one or more instructions are executed by a processor in the electronic cigarette, any of the above-mentioned functions are implemented. A control method according to an embodiment.

上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The above-mentioned serial numbers of the embodiments of the present invention are only for description, and do not represent the advantages or disadvantages of the embodiments.

本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps of implementing the above embodiments can be completed by hardware, or can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium. The storage medium mentioned may be a read-only memory, a magnetic disk or an optical disk, etc.

以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the protection of the present invention. within the range.

Claims (8)

1. A control method of an electronic cigarette is characterized in that the electronic cigarette is connected with a target electric device through a protocol converter, the protocol converter is used for adapting the electronic cigarette with the target electric device and converting a communication protocol of the electronic cigarette with the communication protocol of the electric device, and the control method comprises the following steps:
acquiring a power supply adjusting instruction; the power supply adjusting instruction is generated by the electronic equipment according to a target operation selected by a user in the executable operations of the target electric equipment;
controlling the electronic cigarette to output electric energy to the target electric equipment through the protocol converter according to the power supply adjusting instruction;
the controlling the electronic cigarette to output the electric energy to the target electric equipment through the protocol converter according to the power supply adjusting instruction comprises:
acquiring safe use information of the target electric equipment, wherein the safe use information comprises at least one of a safe working voltage range, a safe working current range and a safe working power range;
controlling the electric energy output to the target electric equipment by the electronic cigarette through the protocol converter according to the power supply adjusting instruction and the safe use information;
the acquiring of the safe use information of the target electric equipment comprises:
acquiring equipment information of the target electric equipment, and acquiring safe use information of the target electric equipment from a server according to the equipment information, wherein the equipment information comprises at least one of an equipment identifier, an equipment type and an equipment name of the target electric equipment;
in the process of displaying the safe use information by the electronic equipment, when the operation for confirming the safe use information is detected, the displayed safe use information is sent to the electronic cigarette as the safe use information confirmed by the user.
2. The control method according to claim 1, wherein the controlling the electric power output by the electronic cigarette to the target electric device through the protocol converter according to the power supply adjustment instruction comprises:
acquiring a target power supply requirement in the power supply adjustment instruction, wherein the target power supply requirement comprises at least one of power supply current, power supply power and power supply voltage;
and outputting electric energy to the target electric equipment according to the target power supply requirement.
3. The control method according to claim 1, characterized by further comprising:
receiving a first control instruction, wherein the first control instruction comprises working parameters of target electric equipment;
and sending the first control instruction to the target electric equipment, wherein the first control instruction is used for triggering the target electric equipment to operate according to the working parameters.
4. The control method according to claim 1, characterized by further comprising:
receiving a second control instruction;
and controlling the electric energy output to the target electric equipment through the protocol converter according to the second control instruction, so that the target electric equipment executes the target operation corresponding to the second control instruction.
5. The control method according to any one of claims 1 to 4, wherein the obtaining of the power supply adjustment instruction includes:
receiving the power supply adjusting instruction sent by the electronic equipment, wherein the power supply adjusting instruction is generated by the electronic equipment according to the collected voice signal; or,
and receiving the power supply adjusting instruction sent by the server, wherein the power supply adjusting instruction is generated by the server according to the voice signal sent by the electronic equipment.
6. A control device, characterized in that the control device comprises:
a memory and a processor;
at least one program instruction is stored in the memory;
the processor, by loading and executing the at least one program instruction, implements the control method of the electronic cigarette of any one of claims 1 to 5.
7. A computer readable storage medium having one or more instructions stored therein, wherein the one or more instructions, when executed by a processor within an electronic cigarette, implement the method of controlling an electronic cigarette of any of claims 1-5.
8. An electronic cigarette, characterized in that the electronic cigarette comprises the control device of claim 6.
CN201711330176.3A 2017-12-13 2017-12-13 Electronic cigarette control method and control device and electronic cigarette Active CN108208937B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711330176.3A CN108208937B (en) 2017-12-13 2017-12-13 Electronic cigarette control method and control device and electronic cigarette

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711330176.3A CN108208937B (en) 2017-12-13 2017-12-13 Electronic cigarette control method and control device and electronic cigarette

Publications (2)

Publication Number Publication Date
CN108208937A CN108208937A (en) 2018-06-29
CN108208937B true CN108208937B (en) 2021-06-25

Family

ID=62652143

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711330176.3A Active CN108208937B (en) 2017-12-13 2017-12-13 Electronic cigarette control method and control device and electronic cigarette

Country Status (1)

Country Link
CN (1) CN108208937B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110664002B (en) * 2018-07-02 2022-07-12 常州市派腾电子技术服务有限公司 Method and device for obtaining the amount of cartridge, electronic cigarette and smoke liquid

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1342941A (en) * 2000-09-08 2002-04-03 武汉太乙科技开发有限责任公司 Internal-based intelligent control center
CN1507307A (en) * 2002-12-11 2004-06-23 上海科星自动化技术有限公司 Illuminance adapting desk lamp
CN100594686C (en) * 2004-01-16 2010-03-17 深圳市鼎鑫源实业有限公司 Method and device for realizing remote wireless monitoring through wireless network
CN101047671A (en) * 2006-03-31 2007-10-03 中国移动通信集团公司 Home gateway control system
KR20080016161A (en) * 2006-08-17 2008-02-21 주식회사 렉터슨 Home gateway device for integrated control of heterogeneous products in home network system using power line communication
WO2008051464A1 (en) * 2006-10-19 2008-05-02 Philips Solid-State Lighting Solutions Networkable led-based lighting fixtures and methods for powering and controlling same
CN1988489B (en) * 2006-11-30 2010-05-12 中国电信集团公司 Intelligent system and method for monitoring house
CN201555183U (en) * 2009-06-30 2010-08-18 黄火土 Light source adjusting device of desk lamp
CN102355390B (en) * 2011-08-16 2014-06-18 中国科学院电工研究所 Intelligent home system
CN202551442U (en) * 2012-04-01 2012-11-21 上海视莹电子科技有限公司 Remote-control light emitting diode (LED) desk lamp
CN103883922B (en) * 2012-12-21 2018-11-02 陈伟民 LED desk lamp
CN203897289U (en) * 2014-04-24 2014-10-29 张银虎 Electronic cigarette with function of portable power supply
CN105485561A (en) * 2015-12-09 2016-04-13 深圳市华士科技有限公司 Intelligent multi-functional LED (Light-Emitting Diode) table lamp
CN206462416U (en) * 2017-01-20 2017-09-05 常州市派腾电子技术服务有限公司 Electronic cigarette and its control system
CN106880084B (en) * 2017-03-27 2023-09-26 云南中烟工业有限责任公司 A smart electronic cigarette system based on wireless communication and its control method
CN107171914A (en) * 2017-07-20 2017-09-15 梧州井儿铺贸易有限公司 A kind of intelligent home device energy-saving safe control system

Also Published As

Publication number Publication date
CN108208937A (en) 2018-06-29

Similar Documents

Publication Publication Date Title
KR101351575B1 (en) System and method for data processing using earphone port
KR20200078593A (en) Data transmission device and data transmission method
CN103702162B (en) A kind of remote control thereof, system and television
WO2018214459A1 (en) Power adapting apparatus, control method and apparatus
CN102663883A (en) Distributed intelligent remote controller for household appliances
US20200210130A1 (en) Wireless display screen
TW201539391A (en) Bluetooth remote control system and related device
CN107948565B (en) Method and device for realizing wired screen transmission
CN113423026B (en) Wireless switch, processing method thereof and control system
CN105992066A (en) Character input method and character input device applied to intelligent device
WO2018090720A1 (en) Method and apparatus for plug and play screen mirroring
JP2019536370A (en) Electronic device and power supply control method thereof
CN108208937B (en) Electronic cigarette control method and control device and electronic cigarette
WO2013127127A1 (en) Method, system and external equipment for controlling household appliances by means of mobile terminal
CN105282604A (en) Television and intelligent information source selection method for television
CN107132824A (en) A kind of Intelligent household network control system and method based on infrared and Bluetooth signal
CN103209252A (en) Universal remote control system
CN104035798B (en) Multifunctional electronic equipment with function of sequential starting up and starting up method of electronic equipment
US20150351144A1 (en) Wireless transmission apparatus and implementation method thereof
TW201725915A (en) Remote control integrated system and method of infrared household appliance with an intelligent electronic device running an application and combining a transmission device to serve as an integrated remote control
CN205912193U (en) Universal remote control system
CN104751623A (en) Universal infrared remote control device and method based on mobile terminal earphone interface
CN107834639A (en) Method of supplying power to, electric supply installation, electronic cigarette and intelligent power
CN115174302A (en) Processing method, device, equipment and storage medium of pluggable accessory
WO2018188469A1 (en) Atomization circuit, atomization device, and control method for atomization circuit

Legal Events

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