TW202044091A - A method for dynamically switching an electronic cigarette system - Google Patents

A method for dynamically switching an electronic cigarette system Download PDF

Info

Publication number
TW202044091A
TW202044091A TW108141887A TW108141887A TW202044091A TW 202044091 A TW202044091 A TW 202044091A TW 108141887 A TW108141887 A TW 108141887A TW 108141887 A TW108141887 A TW 108141887A TW 202044091 A TW202044091 A TW 202044091A
Authority
TW
Taiwan
Prior art keywords
electronic cigarette
uart
software program
computer
function
Prior art date
Application number
TW108141887A
Other languages
Chinese (zh)
Other versions
TWI717108B (en
Inventor
曾欽煌
Original Assignee
正崴精密工業股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 正崴精密工業股份有限公司 filed Critical 正崴精密工業股份有限公司
Priority to US16/844,250 priority Critical patent/US11163712B2/en
Publication of TW202044091A publication Critical patent/TW202044091A/en
Application granted granted Critical
Publication of TWI717108B publication Critical patent/TWI717108B/en
Priority to US17/335,051 priority patent/US11481349B2/en

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

Landscapes

  • Stored Programmes (AREA)
  • Information Transfer Systems (AREA)
  • Protection Of Static Devices (AREA)
  • Control Of Resistance Heating (AREA)

Abstract

The present invention provides a method for dynamically switching an electronic cigarette system. After an USB interface of the electronic cigarette is connected to a computer through a USB cable, a determination software program that is stored in a microcontroller (MCU) stored in the electronic cigarette is used to switch steps for the UART functions of the electronic cigarette. The technical advantages of the steps of the determination software program are (1) after connecting the UART line from the inside of the electronic cigarette to the USB interface of the electronic cigarette, so that the computer can supply power to the electronic cigarette through the USB cable for charging, and (2) the UART for the electronic cigarette communicate with the computer to meet the production test, such as health management and other applications, and (3) when the USB interface of the electronic cigarette is connected to the computer through the USB cable for charging, the computer screen will not display the information that the device cannot recognize.

Description

電子菸系統動態切換方法Dynamic switching method of electronic cigarette system

本發明係關於一種電子菸系統動態切換方法,特別係關於一種電子菸的USB接口透過USB線與電腦連接後,經由儲存於電子菸內的微控制器(MCU)中判別軟體程式對電子菸的UART功能進行切換的方法。The present invention relates to a dynamic switching method of an electronic cigarette system, and particularly relates to an electronic cigarette's USB interface connected to a computer through a USB cable, and the identification software program of the electronic cigarette through the micro-controller (MCU) stored in the electronic cigarette How to switch the UART function.

電子霧化器(英語:VAPE 或 Electronic cigarette),俗稱「電子煙」,是一種以可充電鋰聚合物電池供電驅動霧化器,透過加熱油艙中的電子液體(俗稱煙油、電子液體、E-liquid或E-juice;煙油含有丙二醇、植物甘油、食用香精或尼古丁)的裝置。電子煙無需燃燒,只會產生「蒸氣」亦無焦油及一氧化碳,可以減少部分傳統紙菸對身體的影響,使得以電子煙替代紙菸的吸菸人士遠離紙菸中的致癌物。Electronic atomizer (English: VAPE or Electronic cigarette), commonly known as "electronic cigarette", is a rechargeable lithium polymer battery powered atomizer that heats the e-liquid (commonly known as e-liquid, e-liquid, E-liquid or E-juice; e-liquid containing propylene glycol, vegetable glycerin, food flavor or nicotine) device. E-cigarettes do not need to be burned, they only produce "vapor" without tar and carbon monoxide, which can reduce the impact of some traditional cigarettes on the body, so that smokers who replace cigarettes with electronic cigarettes stay away from carcinogens in cigarettes.

所知悉地,電子煙如同手機等諸多電子設備一般,使用後需要對如鋰電池或是IMR電池又稱錳酸鋰(LI MN)電池進行充電。As we all know, electronic cigarettes are like many electronic devices such as mobile phones. After use, they need to charge lithium batteries or IMR batteries, also known as lithium manganese oxide (LI MN) batteries.

如圖1所示,該圖為藉由電腦的USB(Universal Serial Bus)接口對電子菸進行充電之方塊示意圖。從電子菸內部到電子菸的 USB 接口,會將電源的部分連接起來,這樣的設計,可以讓電腦透過 USB 供電給電子菸,並且進行充電。As shown in Figure 1, the figure is a block diagram of charging an electronic cigarette through a USB (Universal Serial Bus) interface of a computer. From the inside of the electronic cigarette to the USB interface of the electronic cigarette, the power supply is connected. This design allows the computer to supply power to the electronic cigarette through USB and charge it.

如圖2所示,該圖為從電子菸內部將 UART 線路連接到電子菸的 USB 接口進行充電,及電子菸與電腦進行通訊之方塊示意圖。為了讓電子菸能夠使用 USB 供電及充電,同時滿足讓電子菸能與電腦通訊,從電子菸內部到電子菸的 USB 接口,會將電源的部分連接;另一方面,也會從電子菸內部將UART(Universal Asynchronous Receiver/Transmitter,通用非同步收發傳輸器,是一種異步收發傳輸器,是電腦硬體的一部分,將數據通過串行通信和並行通信間作傳輸轉換)線路連接到電子菸的 USB接口,以達到讓電腦透過 USB 供電給電子菸進行充電,同時也能讓電子菸與電腦通訊,滿足工廠生產測試、健康管理等應用。然而,當電子菸的 USB 接口連接電腦充電時,作業系統為Windows 下,電腦螢幕會出現裝置無法辨識的訊息。As shown in Figure 2, the figure is a block diagram of connecting the UART line of the electronic cigarette to the USB interface of the electronic cigarette for charging, and the electronic cigarette communicating with the computer. In order to allow e-cigarettes to use USB for power supply and charging, and at the same time to allow e-cigarettes to communicate with the computer, the power supply will be connected from the inside of the e-cigarette to the USB interface of the e-cigarette; on the other hand, it will also be connected from the inside of the e-cigarette. UART (Universal Asynchronous Receiver/Transmitter, Universal Asynchronous Receiver/Transmitter, is a kind of asynchronous transceiver, which is a part of computer hardware, which transfers data through serial communication and parallel communication) line is connected to the USB of the electronic cigarette The interface allows the computer to charge the e-cigarette through USB power supply, and also allows the e-cigarette to communicate with the computer to meet the application of factory production testing and health management. However, when the USB port of the e-cigarette is connected to a computer for charging, and the operating system is under Windows, a message that the device cannot recognize will appear on the computer screen.

若電子菸的USB接口具備UART功能,並且已開啟UART功能,當電子菸在與Windows電腦連接時便會在電腦螢幕出現裝置無法辨識的訊息。上述現象的成因在於Windows 電腦的USB接口是USB訊號,電子菸的USB接口若是接受到UART訊號,將會造成Windows電腦端無法辨識而跳出無法辨識訊息。If the USB interface of the electronic cigarette has UART function and the UART function is enabled, when the electronic cigarette is connected to a Windows computer, a message that the device cannot recognize will appear on the computer screen. The cause of the above phenomenon is that the USB interface of the Windows computer is a USB signal. If the USB interface of the electronic cigarette receives a UART signal, the Windows computer will not be able to recognize it and an unrecognizable message will pop up.

因此,在電子菸的USB接口透過 USB 線與Windows電腦連接後,如能提供一種軟體判別流程機制,而能對電子菸的UART功能進行切換的流程應是迫切需要的。Therefore, after the USB interface of the electronic cigarette is connected to the Windows computer through the USB cable, if a software identification process mechanism can be provided, the process that can switch the UART function of the electronic cigarette should be urgently needed.

本發明的目的為:當電子菸的USB接口與Windows電腦透過USB線連接後,因沒有開啟電子菸的UART功能,充電過程中不會出現無法辨識的訊息,若需使用電子菸的UART功能時,能透過本發明的特定操作來開啟電子菸的UART功能,在使用完電子菸的UART功能之後,本發明的目的在於能夠將電子菸的UART功能關閉,下次與 Windows電腦連接時,不會出現無法辨識的訊息。The purpose of the present invention is: when the USB interface of the electronic cigarette is connected to the Windows computer through the USB cable, because the UART function of the electronic cigarette is not turned on, no unrecognizable message will appear during the charging process. If the UART function of the electronic cigarette is required , The UART function of the electronic cigarette can be turned on through the specific operation of the present invention. After the UART function of the electronic cigarette is used, the purpose of the present invention is to be able to turn off the UART function of the electronic cigarette. An unrecognizable message appeared.

為達成前述目的,本發明提供一種電子菸系統動態切換方法,其中該電子菸的一USB接口透過一USB 線與一電腦連接後,經由儲存於該電子菸內的一微控制器(MCU)中一判別軟體程式對該電子菸內的一UART功能進行動態切換方法,包含下列步驟:步驟(a):在一第一預定時間藉由該判別軟體程式判斷該電子菸對該USB線之插拔次數是否達到一預定閥值,若是,執行步驟(b);步驟(b):藉由該判別軟體程式改變該電子菸的該MCU的UART的一暫存器的數值以暫時地開啟該電子菸的該UART功能,並執行步驟(c); 步驟(c):藉由該判別軟體程式判斷是否在一第二預定時間內是否接收由該電腦經過該USB線發送一啟動UART命令,若是,執行步驟(d);步驟(d):若於該第二預定時間內該判別軟體程式收到該啟動UART命令,則該判別軟體程式正式地開啟該電子菸的該UART功能,執行步驟(e);步驟(e):藉由該判別軟體程式接收該UART命令後,則該判別軟體程式會執行該電子菸的對應該UART命令功能;以及步驟(f):藉由該判別軟體程式判斷是否接收從該電腦發出一結束UART命令後,若是,執行步驟(i)該判別軟體程式關閉該電子菸的該MCU的該UART功能,切換回一般的狀態,否則執行步驟(e)。To achieve the foregoing objective, the present invention provides a dynamic switching method for an electronic cigarette system, wherein a USB interface of the electronic cigarette is connected to a computer through a USB cable and then stored in a microcontroller (MCU) in the electronic cigarette A method for dynamically switching a UART function in the e-cigarette by a discrimination software program includes the following steps: Step (a): at a first predetermined time, use the discrimination software program to determine whether the e-cigarette is plugged in or out of the USB cable Whether the number of times reaches a predetermined threshold, if yes, go to step (b); step (b): change the value of a register of the MCU's UART of the electronic cigarette by the judgment software program to temporarily turn on the electronic cigarette Step (c); Step (c): Determine whether to receive a start UART command sent by the computer via the USB cable within a second predetermined time by the judgment software program, and if so, execute Step (d); Step (d): If the discrimination software program receives the start UART command within the second predetermined time, the discrimination software program officially opens the UART function of the electronic cigarette, and executes step (e) Step (e): After receiving the UART command by the discrimination software program, the discrimination software program will execute the corresponding UART command function of the e-cigarette; and Step (f): Determine whether to receive by the discrimination software program After sending an end UART command from the computer, if yes, execute step (i) the discrimination software program closes the UART function of the MCU of the electronic cigarette and switch back to the normal state, otherwise, execute step (e).

較佳地,當步驟(a)不會達到該預定閥值,執行步驟(g)則該電腦透過該USB 線對該電子菸進行充電。Preferably, when step (a) does not reach the predetermined threshold, step (g) is executed, and the computer charges the electronic cigarette through the USB cable.

較佳地,當步驟(c)該判別軟體程式並無接收該啟動UART命令,執行步驟(h)則該判別軟體程式將該電子菸的該MCU的UART的該暫存器改回原先的數值。Preferably, when step (c) the judgment software program does not receive the start UART command, when step (h) is executed, the judgment software program changes the register of the MCU UART of the electronic cigarette back to the original value .

較佳地,該預定閥值之插拔次數為3次、該第一預定時間為6秒,以及該第二預定時間為5秒。Preferably, the number of times of insertion and removal of the predetermined threshold is 3 times, the first predetermined time is 6 seconds, and the second predetermined time is 5 seconds.

較佳地,該UART命令功能關於工廠生產測試、健康管理之應用。Preferably, the UART command function relates to the application of factory production testing and health management.

較佳地,該電腦為作業系統為Windows 電腦。Preferably, the computer is a Windows computer with an operating system.

圖3為本發明電子菸的USB接口透過 USB 線與電腦之連接電路示意圖。圖4為本發明電子菸系統動態切換方法之流程圖。上述兩張圖說明一電子菸1的USB接口11透過一USB 線2與一電腦3(以Windows 電腦為例,以下簡寫電腦3)連接後,經由儲存於該電子菸1內的一微控制器13(MCU)中一判別軟體程式14對該電子菸1內的一UART12功能進行動態切換方法之流程。Fig. 3 is a schematic diagram of the circuit connecting the USB interface of the electronic cigarette of the present invention to the computer through the USB cable. Figure 4 is a flow chart of the dynamic switching method of the electronic cigarette system of the present invention. The above two figures illustrate that the USB interface 11 of an electronic cigarette 1 is connected to a computer 3 (using a Windows computer as an example, hereinafter abbreviated as computer 3) through a USB cable 2 and then through a microcontroller stored in the electronic cigarette 1 The process of a method for dynamically switching a UART12 function in the electronic cigarette 1 by a discrimination software program 14 in 13(MCU).

其中,該判別軟體程式14為該電子菸1的系統程式,該電子菸1的硬體結構是MCU 13加上周邊的電路系統,MCU 13指的是微控制器,是把中央處理器、記憶體、定時/計數器、各種輸入輸出介面等都整合在積體電路晶片上的微型電腦。因此,該判別軟體程式14是儲存於該電子菸1內的MCU 13中判別軟體程式。Among them, the discrimination software program 14 is the system program of the electronic cigarette 1, and the hardware structure of the electronic cigarette 1 is the MCU 13 plus the peripheral circuit system. The MCU 13 refers to the microcontroller, which combines the central processing unit and the memory A microcomputer with integrated circuit chip integrated circuit chip, such as body, timer/counter, various input and output interfaces. Therefore, the discrimination software program 14 is a discrimination software program stored in the MCU 13 in the electronic cigarette 1.

請一併參閱圖3及圖4,該電子菸1的該USB接口11透過該USB 線2與該電腦3連接後,經由儲存於該電子菸1內的微控制器13(MCU)中判別軟體程式14,對該電子菸1內的UART12功能進行動態切換方法,包含下列步驟:Please refer to Figures 3 and 4 together. After the USB interface 11 of the electronic cigarette 1 is connected to the computer 3 through the USB cable 2, the software is determined by the microcontroller 13 (MCU) stored in the electronic cigarette 1 Program 14, the method of dynamically switching the UART12 function in the electronic cigarette 1, includes the following steps:

步驟(a):在一第一預定時間(以6秒為例)內藉由該判別軟體程式14判斷該電子菸1對該USB線2之插拔次數是否達到一預定閥值(插拔次數為3次),若是,執行步驟(b)。Step (a): In a first predetermined time (take 6 seconds as an example), use the discrimination software program 14 to determine whether the number of plug-ins and pulls of the electronic cigarette 1 to the USB cable 2 has reached a predetermined threshold (the number of plug-ins) 3 times), if yes, go to step (b).

也就是說,步驟(a)目的為:該判別軟體程式14判斷是否有達成要暫時開啟該電子菸1的UART功能的要求。這說明該電子菸1的該USB接口11第一次插入USB線2之後,是否於6秒內拔出再插入再拔出再插入,總共插入三次拔出兩次,若該判別軟體程式14判斷成立,即執行步驟(b),若不成立,則執行步驟(g):該電腦3透過該USB 線2對該電子菸1進行充電。In other words, the purpose of step (a) is: the judgment software program 14 judges whether there is a requirement to temporarily enable the UART function of the electronic cigarette 1. This means that after the USB port 11 of the electronic cigarette 1 is plugged into the USB cable 2 for the first time, whether it is unplugged and then plugged in and then unplugged and then plugged in within 6 seconds, a total of three plugs and two plugs, if the judgment software program 14 judges If yes, execute step (b), if not, execute step (g): the computer 3 charges the electronic cigarette 1 through the USB cable 2.

步驟(b):藉由該判別軟體程式14改變該電子菸1的該MCU 13的UART的一暫存器15的數值以暫時地開啟該電子菸1的該UART功能,並執行步驟(c)。例如:原UART的該暫存器 15的數值為0x00,將UART的該暫存器15的數值改變成 0xFF,如此便會開啟UART功能。Step (b): Use the discrimination software program 14 to change the value of a register 15 of the UART of the MCU 13 of the electronic cigarette 1 to temporarily enable the UART function of the electronic cigarette 1, and execute step (c) . For example: the value of the register 15 of the original UART is 0x00, and the value of the register 15 of the UART is changed to 0xFF, so that the UART function will be enabled.

步驟(c):藉由該判別軟體程式14判斷是否在一第二預定時間(以5秒為例)內是否接收由該電腦3經過該USB線2發送一啟動UART命令。若是,執行步驟(d),若不成立,則執行步驟(h):該判別軟體程式14將該電子菸1的該MCU 13的該UART的該暫存器15改回原先的數值。 例如原UART的該暫存器15的數值為 0xFF,改變該UART的該暫存器15的數值為 0x00,如此便會關閉UART功能。Step (c): Use the discrimination software program 14 to determine whether a start UART command sent by the computer 3 via the USB cable 2 is received within a second predetermined time (take 5 seconds as an example). If yes, execute step (d), if not, execute step (h): the discrimination software program 14 changes the register 15 of the UART of the MCU 13 of the electronic cigarette 1 back to the original value. For example, the value of the register 15 of the original UART is 0xFF. Changing the value of the register 15 of the UART to 0x00 will disable the UART function.

步驟(d):若於該第二預定時間內該判別軟體程式14收到該啟動UART命令,則該判別軟體程式14正式地開啟該電子菸1的該UART功能。Step (d): If the discrimination software program 14 receives the UART activation command within the second predetermined time, the discrimination software program 14 officially opens the UART function of the electronic cigarette 1.

步驟(e):藉由該判別軟體程式14接收該UART命令後,則該判別軟體程式14會執行該電子菸1的對應該UART命令功能。其中,該UART命令功能關於工廠生產測試、健康管理之應用。Step (e): After receiving the UART command through the discrimination software program 14, the discrimination software program 14 will execute the function of the electronic cigarette 1 corresponding to the UART command. Among them, the UART command function relates to the application of factory production testing and health management.

步驟(f):藉由該判別軟體程式14判斷是否接收從該電腦3發出一結束UART命令後,若是,執行步驟(i)該判別軟體程式14關閉該電子菸1的該MCU 13的該UART功能,切換回一般的狀態,否則執行步驟(e)。Step (f): After judging whether to receive an end UART command from the computer 3 by the judgment software program 14, if yes, execute step (i) the judgment software program 14 to close the UART of the MCU 13 of the electronic cigarette 1 Function, switch back to the normal state, otherwise go to step (e).

而當步驟(f)執行完畢後,至步驟(i)進行程式變數的初始化,這是改變UART的該暫存器15前的準備,準備完畢後會自動執行步驟(h),當步驟(h)執行完畢,便會自動地執行步驟(g)。When step (f) is executed, go to step (i) to initialize the program variables. This is the preparation before changing the register 15 of the UART. After the preparation is completed, step (h) will be executed automatically. When step (h ) After the execution is completed, step (g) will be executed automatically.

本發明提供了一種電子菸系統動態切換方法,在該電子菸的該USB接口透過該USB 線與該電腦連接後,經由儲存於該電子菸內的微控制器(MCU)中該判別軟體程式對該電子菸的該UART功能進行切換的步驟。其中,該判別軟體程式執行的步驟的技術優勢為:(1)從該電子菸內部將該UART線路連接到該電子菸的 該USB 接口,達到讓該電腦透過該 USB線供電給該電子菸以進行充電;(2)讓該電子菸的該UART線路與電腦進行通訊,滿足工廠生產測試、健康管理等應用;而且(3) 該電子菸的該USB接口透過該 USB 線與該電腦連接電腦進行充電時,該電腦螢幕不會出現裝置無法辨識的訊息。The present invention provides a dynamic switching method of an electronic cigarette system. After the USB interface of the electronic cigarette is connected to the computer through the USB cable, the judgment software program is stored in the microcontroller (MCU) of the electronic cigarette. Steps of switching the UART function of the electronic cigarette. Among them, the technical advantages of the steps executed by the discrimination software program are: (1) Connect the UART line from the inside of the electronic cigarette to the USB interface of the electronic cigarette, so that the computer can supply power to the electronic cigarette through the USB cable. Charge; (2) Let the UART line of the e-cigarette communicate with the computer to meet factory production testing, health management and other applications; and (3) The USB interface of the e-cigarette is connected to the computer through the USB cable When charging, the computer screen will not display a message that the device cannot recognize.

本發明所提供的電子菸系統動態切換方法具產業上之利用價值,惟以上之敘述僅為本發明之較佳實施例說明,凡精於此項技藝者皆可以輕易依據上述之說明而作其他種種之改良,但仍都屬於本發明之精神及以下所界定之專利範圍中。The dynamic switching method of the electronic cigarette system provided by the present invention has industrial utility value, but the above description is only a description of the preferred embodiment of the present invention. Anyone skilled in the art can easily make other methods based on the above description. Various improvements are still within the spirit of the present invention and the scope of the patent defined below.

1:電子菸 11:USB接口 12:UART 13:微控制器 (MCU) 14:判別軟體程式 15:暫存器 2:USB線 3:Windows電腦 步驟(a)~步驟(i)1: Electronic cigarette 11: USB interface 12: UART 13: Microcontroller (MCU) 14: Identify software programs 15: register 2: USB cable 3: Windows computer Step (a) ~ Step (i)

本領域中具有通常知識者在參照附圖閱讀下方的詳細說明後,可以對本發明的各種態樣以及其具體的特徵與優點有更良好的了解,其中,該些附圖包括: 圖1為根據電腦的USB接口對電子菸進行充電之方塊示意圖; 圖2為根據從電子菸內部將 UART 線路連接到電子菸的 USB 接口進行充電,及電子菸與電腦進行通訊之方塊示意圖; 圖 3為本發明電子菸的USB接口透過USB線與電腦之連接電路示意圖;以及 圖4為本發明電子菸系統動態切換方法之流程圖。Those with ordinary knowledge in the art can have a better understanding of the various aspects of the present invention and its specific features and advantages after reading the detailed description below with reference to the drawings. The drawings include: Figure 1 is a block diagram of charging an electronic cigarette according to the USB interface of a computer; Figure 2 is a block diagram of charging according to the UART line of the electronic cigarette connected to the USB interface of the electronic cigarette, and the electronic cigarette communicating with the computer; Figure 3 is a schematic diagram of the connection circuit between the USB interface of the electronic cigarette of the present invention and the computer through the USB cable; and Figure 4 is a flow chart of the dynamic switching method of the electronic cigarette system of the present invention.

步驟(a)~步驟(i) Step (a) ~ Step (i)

Claims (6)

一種電子菸系統動態切換方法,其中,該電子菸的一USB(Universal Serial Bus)接口透過一USB線與一電腦連接後,經由儲存於該電子菸內的一微控制器(MCU)中的一判別軟體程式,對該電子菸內的一UART(Universal Asynchronous Receiver/Transmitter)功能進行動態切換方法,該動態切換方法包含下列步驟: 步驟(a):在一第一預定時間藉由該判別軟體程式判斷該電子菸對該USB 線之插拔次數是否達到一預定閥值,若是,執行步驟(b); 步驟(b):藉由該判別軟體程式改變該電子菸的該MCU的UART的一暫存器的數值以暫時地開啟該電子菸的該UART功能,並執行步驟(c); 步驟(c):藉由該判別軟體程式判斷是否在一第二預定時間內是否接收由該電腦經過該USB線發送一啟動UART命令,若是,執行步驟(d); 步驟(d):若於該第二預定時間內該判別軟體程式收到該啟動UART命令,則該判別軟體程式正式地開啟該電子菸的該UART功能,執行步驟(e); 步驟(e):藉由該判別軟體程式接收該UART命令後,則該判別軟體程式會執行該電子菸的對應該UART命令功能,並執行步驟(f);以及 步驟(f):藉由該判別軟體程式判斷是否接收從該電腦發出一結束UART命令後,若是,執行步驟(i)該判別軟體程式關閉該電子菸的該MCU的該UART功能,切換回一般的狀態,否則執行步驟(e)。A dynamic switching method for an electronic cigarette system, wherein a USB (Universal Serial Bus) interface of the electronic cigarette is connected to a computer through a USB cable, and then is stored in a microcontroller (MCU) of the electronic cigarette. Identify the software program to dynamically switch a UART (Universal Asynchronous Receiver/Transmitter) function in the electronic cigarette. The dynamic switch method includes the following steps: Step (a): At a first predetermined time, use the discrimination software program to determine whether the number of times the e-cigarette has been plugged and unplugged to the USB cable has reached a predetermined threshold, if so, perform step (b); Step (b): Change the value of a register of the UART of the MCU of the electronic cigarette by the discrimination software program to temporarily turn on the UART function of the electronic cigarette, and execute step (c); Step (c): Use the judgment software program to determine whether to receive a start UART command sent by the computer via the USB cable within a second predetermined time, and if so, perform step (d); Step (d): If the discrimination software program receives the start UART command within the second predetermined time, the discrimination software program officially opens the UART function of the electronic cigarette, and executes step (e); Step (e): After receiving the UART command by the discrimination software program, the discrimination software program will execute the corresponding UART command function of the electronic cigarette, and execute step (f); and Step (f): Use the judgment software program to determine whether to receive an end UART command from the computer, if yes, execute step (i) the judgment software program to turn off the UART function of the MCU of the e-cigarette and switch back to normal , Otherwise go to step (e). 根據申請專利範圍第1項所述的電子菸系統動態切換方法,其中,當步驟(a)不會達到該預定閥值,執行步驟(g)則該電腦透過該USB 線對該電子菸進行充電。According to the electronic cigarette system dynamic switching method described in item 1 of the scope of patent application, wherein, when step (a) does not reach the predetermined threshold, the computer performs step (g) to charge the electronic cigarette through the USB cable . 根據申請專利範圍第1項所述的電子菸系統動態切換方法,其中,當步驟(c)該判別軟體程式並無接收該啟動UART命令,執行步驟(h)則該判別軟體程式將該電子菸的該MCU的UART的該暫存器改回原先的數值。According to the electronic cigarette system dynamic switching method described in item 1 of the scope of patent application, when step (c) the judgment software program does not receive the start UART command, the judgment software program executes step (h) and the electronic cigarette The register of the MCU's UART is changed back to the original value. 根據申請專利範圍第1項所述的電子菸系統動態切換方法,該預定閥值之插拔次數為3次及該第一預定時間為6秒及該第二預定時間為5秒。According to the dynamic switching method of the electronic cigarette system described in item 1 of the scope of patent application, the number of insertion and removal times of the predetermined threshold is 3 times, the first predetermined time is 6 seconds, and the second predetermined time is 5 seconds. 根據申請專利範圍第1項所述的電子菸系統動態切換方法,其中,該UART命令功能關於工廠生產測試、健康管理之應用。According to the electronic cigarette system dynamic switching method described in item 1 of the scope of patent application, the UART command function is related to the application of factory production testing and health management. 根據申請專利範圍第1項所述的電子菸系統動態切換方法,其中,該電腦為作業系統為Windows 電腦。According to the method for dynamic switching of the electronic cigarette system described in item 1 of the scope of patent application, the computer is a Windows computer as an operating system.
TW108141887A 2019-05-24 2019-11-19 A method for dynamically switching an electronic cigarette system TWI717108B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US16/844,250 US11163712B2 (en) 2019-05-24 2020-04-09 Electronic switching device
US17/335,051 US11481349B2 (en) 2019-05-24 2021-05-31 Dynamic switching method

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US201962852323P 2019-05-24 2019-05-24
US62/852,323 2019-05-24

Publications (2)

Publication Number Publication Date
TW202044091A true TW202044091A (en) 2020-12-01
TWI717108B TWI717108B (en) 2021-01-21

Family

ID=73441558

Family Applications (2)

Application Number Title Priority Date Filing Date
TW109204166U TWM601481U (en) 2019-05-24 2019-10-18 Short circuit detecting circuit for electronic cigarette
TW108141887A TWI717108B (en) 2019-05-24 2019-11-19 A method for dynamically switching an electronic cigarette system

Family Applications Before (1)

Application Number Title Priority Date Filing Date
TW109204166U TWM601481U (en) 2019-05-24 2019-10-18 Short circuit detecting circuit for electronic cigarette

Country Status (2)

Country Link
CN (2) CN111972717A (en)
TW (2) TWM601481U (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114094540B (en) * 2022-01-20 2022-04-12 深圳市益中源科技有限公司 Atomization system short-circuit protection method and atomization system

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8458429B2 (en) * 2006-12-31 2013-06-04 Texas Instruments Incorporated Memory controller idle mode
CN101937414B (en) * 2010-08-26 2013-05-15 惠州Tcl移动通信有限公司 Method and device of sharing minitype USB interface for UART (Universal Asynchronous Receive/Transmitter) and USB (Universal Serial Bus)
CN101931674B (en) * 2010-09-01 2014-04-16 惠州Tcl移动通信有限公司 Method and device for sharing Micro-USB interface
CN201984475U (en) * 2011-02-11 2011-09-21 南京工业职业技术学院 USB automatic identification multifunction converter
CN104037719B (en) * 2013-03-05 2018-12-18 惠州市吉瑞科技有限公司 It is a kind of for the overcurrent of electronic cigarette or the control device and method of short-circuit protection
EP2856893B2 (en) * 2013-10-02 2023-10-04 Fontem Holdings 1 B.V. Electronic smoking device
CN103853689A (en) * 2014-02-17 2014-06-11 上海大学 Device and method of automatic switchover of USB (Universal Serial Bus) and four-line serial port UART (Universal Asynchronous Receiver Transmitter)
US10103494B2 (en) * 2014-05-08 2018-10-16 Apple Inc. Connector system impedance matching
TW201627862A (en) * 2015-01-26 2016-08-01 鴻海精密工業股份有限公司 Debug circuit, debug request circuit and debug system
EP3171245B1 (en) * 2015-09-24 2020-03-18 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method, apparatus, and system for upgrading adapter
WO2017161346A1 (en) * 2016-03-17 2017-09-21 Qualcomm Incorporated Type-c factory and special operating mode support
CN106126266A (en) * 2016-07-08 2016-11-16 卓尔悦欧洲控股有限公司 Application interface replacing options, device and the electronic cigarette of electronic cigarette
US20190082968A1 (en) * 2017-09-15 2019-03-21 Prasad Karnik System and method of continuous health monitoring
CN108763131A (en) * 2018-05-18 2018-11-06 郑州云海信息技术有限公司 A kind of single UART port connector easy to plug

Also Published As

Publication number Publication date
TWI717108B (en) 2021-01-21
CN111972726B (en) 2023-09-08
TWM601481U (en) 2020-09-11
CN111972726A (en) 2020-11-24
CN111972717A (en) 2020-11-24

Similar Documents

Publication Publication Date Title
US9483093B2 (en) Electronic device and method for controlling a setting of a maximum consumption current
CN103064489B (en) A kind of method and terminal of carrying out internal circuit selection according to USB interface state
WO2011088672A1 (en) Intelligent charging method and device for terminal
CN102023912B (en) Dormancy wake-up testing system and method
US10345879B2 (en) Capacitance based accessory connection detection for a battery powered unit
US9444278B2 (en) USB charging with data communication
CN109511035A (en) A kind of Earphone box, wireless headset and its awakening method
CN110225167B (en) Terminal and processing method
TWI717108B (en) A method for dynamically switching an electronic cigarette system
CN105677596B (en) Control method and electronic equipment
CN102981916A (en) Mobile terminal and control method of mobile terminal and device of mobile terminal
CN100530812C (en) Method and device for charged side detecting charging mode of exterior charging source
CN105809002B (en) A kind of user terminal charging method and user terminal
CN102854417B (en) Master test board and testing method thereof
CN203574705U (en) Terminal
CN107681727A (en) The control method and device of electronic equipment
CN206821976U (en) Reset circuit and electronic cigarette
TWI640873B (en) Method for triggering fast charging mode of usb device and system and storage medium thereof
CN107197095A (en) A kind of intelligent terminal operating method, intelligent terminal operation device and intelligent terminal
CN207612080U (en) Charging circuit and intelligent terminal
CN101599297A (en) Safe U disc
CN111290717A (en) Off-line data storage device based on Bluetooth communication
CN104330984B (en) Prevent portable terminal and the method thereof of Auto Power On
CN114138377B (en) Electronic device, control method thereof, and storage medium
CN109240963A (en) The method and Related product of USB interface and Ethernet interface multiplexing