Patent attributes
A method and a device for controlling electronic cigarette belong to the technical field of computers. The method comprises: when a safety mode of electronic cigarette is turned on, if a cigarette lighting signal is detected, using a detection component to detect whether an atomizing head is moved out of an electronic cigarette body; if detecting that the atomizing head is moved out of the electronic cigarette body, stopping controlling the atomizing head to work according to the cigarette lighting signal, wherein when the atomizing head is moved out of the electronic cigarette body, the atomizing head is still electrically connected to battery assembly in the electronic cigarette. The method and the device solve the problem that electronic cigarette user mistakenly triggers lighting operation and causes to burn user when the atomizing head is exposed outside the electronic cigarette body, which achieving safe use effect of electronic cigarette.