CN111567885A - Parameter adjusting method, device and equipment of electronic cigarette microphone and readable storage medium - Google Patents

Parameter adjusting method, device and equipment of electronic cigarette microphone and readable storage medium Download PDF

Info

Publication number
CN111567885A
CN111567885A CN202010370920.8A CN202010370920A CN111567885A CN 111567885 A CN111567885 A CN 111567885A CN 202010370920 A CN202010370920 A CN 202010370920A CN 111567885 A CN111567885 A CN 111567885A
Authority
CN
China
Prior art keywords
electronic cigarette
cigarette microphone
parameter
microphone
adjusting
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.)
Pending
Application number
CN202010370920.8A
Other languages
Chinese (zh)
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.)
Weifang Zhengda Industry Co ltd
Original Assignee
Goertek Microelectronics Inc
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 Goertek Microelectronics Inc filed Critical Goertek Microelectronics Inc
Priority to CN202010370920.8A priority Critical patent/CN111567885A/en
Publication of CN111567885A publication Critical patent/CN111567885A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A24TOBACCO; CIGARS; CIGARETTES; SIMULATED SMOKING DEVICES; SMOKERS' REQUISITES
    • A24FSMOKERS' REQUISITES; MATCH BOXES; SIMULATED SMOKING DEVICES
    • A24F40/00Electrically operated smoking devices; Component parts thereof; Manufacture thereof; Maintenance or testing thereof; Charging means specially adapted therefor
    • A24F40/50Control or monitoring
    • A24F40/53Monitoring, e.g. fault detection
    • AHUMAN NECESSITIES
    • A24TOBACCO; CIGARS; CIGARETTES; SIMULATED SMOKING DEVICES; SMOKERS' REQUISITES
    • A24FSMOKERS' REQUISITES; MATCH BOXES; SIMULATED SMOKING DEVICES
    • A24F40/00Electrically operated smoking devices; Component parts thereof; Manufacture thereof; Maintenance or testing thereof; Charging means specially adapted therefor
    • A24F40/40Constructional details, e.g. connection of cartridges and battery parts
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The invention discloses a parameter adjusting method, a device, equipment and a readable storage medium of an electronic cigarette microphone, wherein the method comprises the following steps: when the electronic cigarette microphone is detected to enter the power-on waiting time, judging whether a state mark of an output pin on the electronic cigarette microphone is a test mark or not; if the electronic cigarette microphone is the test mark, controlling the electronic cigarette microphone to enter a parameter adjusting mode; and acquiring input parameters in the parameter adjusting mode based on the output pin positions, and adjusting the parameters of the electronic cigarette microphone according to the input parameters. The electronic cigarette microphone is controlled to enter a parameter adjusting mode, and input parameters in the parameter adjusting mode are obtained by combining the output pins, so that the parameter adjustment of the electronic cigarette microphone is realized; compared with a mode of disassembling the electronic cigarette microphone in the testing process to reset parameters, the testing workload is reduced, and the testing efficiency is improved.

Description

Parameter adjusting method, device and equipment of electronic cigarette microphone and readable storage medium
Technical Field
The invention relates to the technical field of electronic cigarettes, in particular to a method, a device and equipment for adjusting parameters of an electronic cigarette microphone and a readable storage medium.
Background
The electronic cigarette is an electronic product which generates smoke by driving an atomizer to heat tobacco tar and has the same shape and appearance as a common cigarette. The electronic cigarette microphone is an important component of the electronic cigarette, and generates pressure by inhaling air by a person, so that the diaphragm inside the microphone is connected with GND (ground) on the PCB (printed circuit board) in a deformed manner to generate smoke. The existing electronic cigarette microphone forms fixed parameters after being packaged into a module, and cannot adjust parameters such as the flashing frequency of the ignition and the extinguishing of the LED lamp, the sensitivity of smoking detection, the protection of large and small currents and the like. Therefore, if any one of the parameters needs to be adjusted in the testing process, the electronic cigarette microphone needs to be disassembled, and the parameters are reset for testing, so that the testing workload is increased, and the testing efficiency is reduced.
Therefore, the current electronic cigarette microphone lacks a parameter adjusting mechanism, so that the increase of the testing workload and the reduction of the testing efficiency are technical problems to be solved urgently.
Disclosure of Invention
The invention mainly aims to provide a parameter adjusting method, a parameter adjusting device, an electronic cigarette microphone device and a readable storage medium, and aims to solve the technical problems that in the prior art, due to the fact that the electronic cigarette microphone lacks a parameter adjusting mechanism, the testing workload is increased, and the testing efficiency is reduced.
In order to achieve the above object, the present invention provides a method for adjusting parameters of an electronic cigarette microphone, which comprises the following steps:
when the electronic cigarette microphone is detected to enter the power-on waiting time, judging whether a state mark of an output pin on the electronic cigarette microphone is a test mark or not;
if the electronic cigarette microphone is the test mark, controlling the electronic cigarette microphone to enter a parameter adjusting mode;
and acquiring input parameters in the parameter adjusting mode based on the output pin positions, and adjusting the parameters of the electronic cigarette microphone according to the input parameters.
Optionally, if the electronic cigarette microphone is a test identifier, the step of controlling the electronic cigarette microphone to enter a parameter adjustment mode includes:
if the electronic cigarette microphone is a test mark, initializing the output pin to control the electronic cigarette microphone to enter a parameter adjusting mode.
Optionally, the step of obtaining the input parameter in the parameter adjustment mode based on the output pin position includes:
when the time sequence state corresponding to the output pin is a reading state, reading a set value transmitted based on the output pin;
and determining the set value as the input parameter in the parameter adjusting mode.
Optionally, the step of adjusting parameters of the electronic cigarette microphone according to the input parameters includes:
determining a parameter to be adjusted corresponding to the input parameter in the electronic cigarette microphone according to the parameter identification of the input parameter;
and judging whether the input parameters are matched with the adjusting range of the parameters to be adjusted, and if so, adjusting the parameters to be adjusted into the input parameters.
Optionally, the output pins form a 1-Wire bus to obtain the input parameters based on a 1-Wire bus protocol.
Optionally, the step of determining whether the state identifier of the output pin on the electronic cigarette microphone is a test identifier includes:
detecting a level value of an output pin on the electronic cigarette microphone, and matching the level value with a preset value to judge whether the state identifier is a test identifier;
if the level value is matched with the preset value, judging that the state identifier is a test identifier;
and if the level value is not consistent with the preset value in a matching way, judging that the state identifier is not a test identifier.
Optionally, the step of determining whether the state of the output pin on the electronic cigarette microphone is the parameter adjusting state includes:
and if the state identification of the output pin is not the test identification, controlling the electronic cigarette microphone to enter a working mode.
Further, in order to achieve the above object, the present invention further provides a parameter adjusting device for an electronic cigarette microphone, including:
the electronic cigarette microphone comprises a judging module, a detecting module and a control module, wherein the judging module is used for judging whether a state identifier of an output pin on the electronic cigarette microphone is a test identifier or not when the electronic cigarette microphone is detected to enter power-on waiting time;
the control module is used for controlling the electronic cigarette microphone to enter a parameter adjusting mode if the electronic cigarette microphone is a test identifier;
and the adjusting module is used for acquiring the input parameters in the parameter adjusting mode based on the output pin positions and adjusting the parameters of the electronic cigarette microphone according to the input parameters.
Further, in order to achieve the above object, the present invention further provides a parameter adjusting apparatus for an electronic cigarette microphone, where the parameter adjusting apparatus for an electronic cigarette microphone includes a memory, a processor, and a parameter adjusting program of an electronic cigarette microphone stored in the memory and executable on the processor, and the parameter adjusting program of the electronic cigarette microphone when executed by the processor implements the steps of the parameter adjusting method for an electronic cigarette microphone.
Further, to achieve the above object, the present invention also provides a readable storage medium, on which a parameter adjustment program of an electronic cigarette microphone is stored, where the parameter adjustment program of the electronic cigarette microphone, when executed by a processor, implements the steps of the parameter adjustment method of the electronic cigarette microphone as described above.
According to the parameter adjusting method of the electronic cigarette microphone, once the electronic cigarette microphone is detected to enter the electrifying waiting time, whether the state identification of the output pin position on the electronic cigarette microphone is a test identification is judged; if the electronic cigarette microphone is the test mark, controlling the electronic cigarette microphone to enter a parameter adjusting mode; and further acquiring input parameters in a parameter adjusting mode based on the output pin positions, and adjusting the parameters of the electronic cigarette microphone according to the input parameters. Therefore, the electronic cigarette microphone is controlled to enter a parameter adjusting mode, and input parameters in the parameter adjusting mode are obtained by combining the output pins, so that the parameter adjustment of the electronic cigarette microphone is realized; compared with a mode of disassembling the electronic cigarette microphone in the testing process to reset parameters, the testing workload is reduced, and the testing efficiency is improved.
Drawings
Fig. 1 is a schematic structural diagram of a hardware operating environment of a device according to an embodiment of a parameter adjusting device of an electronic cigarette microphone of the present invention;
fig. 2 is a schematic flow chart illustrating a parameter adjustment method for an electronic cigarette microphone according to a first embodiment of the present invention;
fig. 3 is a functional block diagram of a parameter adjusting device of an electronic cigarette microphone according to a preferred embodiment of the invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The invention provides a parameter adjusting device of an electronic cigarette microphone, and referring to fig. 1, fig. 1 is a schematic structural diagram of a hardware operating environment of a device related to an embodiment of the parameter adjusting device of the electronic cigarette microphone of the invention.
As shown in fig. 1, the parameter adjusting apparatus of the electronic cigarette microphone may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a memory device separate from the processor 1001 described above.
It will be appreciated by those skilled in the art that the hardware configuration of the parameter adjustment device of the electronic vaping head shown in figure 1 does not constitute a limitation of the parameter adjustment device of the electronic vaping head and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, the memory 1005, which is a readable storage medium, may include therein a parameter adjustment program of an operating system, a network communication module, a user interface module, and an electronic cigarette head. The operating system is a program for managing and controlling parameter adjusting equipment and software resources of the electronic cigarette microphone, and supports the operation of a network communication module, a user interface module, a parameter adjusting program of the electronic cigarette microphone and other programs or software; the network communication module is used to manage and control the network interface 1004; the user interface module is used to manage and control the user interface 1003.
In the hardware structure of the parameter adjusting device of the electronic cigarette microphone shown in fig. 1, the network interface 1004 is mainly used for connecting a background server and performing data communication with the background server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; the processor 1001 may call a parameter adjustment program of the electronic cigarette microphone stored in the memory 1005 and perform the following operations:
when the electronic cigarette microphone is detected to enter the power-on waiting time, judging whether a state mark of an output pin on the electronic cigarette microphone is a test mark or not;
if the electronic cigarette microphone is the test mark, controlling the electronic cigarette microphone to enter a parameter adjusting mode;
and acquiring input parameters in the parameter adjusting mode based on the output pin positions, and adjusting the parameters of the electronic cigarette microphone according to the input parameters.
Further, if the electronic cigarette is a test identifier, the step of controlling the electronic cigarette microphone to enter a parameter adjusting mode includes:
if the electronic cigarette microphone is a test mark, initializing the output pin to control the electronic cigarette microphone to enter a parameter adjusting mode.
Further, the step of obtaining the input parameter in the parameter adjustment mode based on the output pin position includes:
when the time sequence state corresponding to the output pin is a reading state, reading a set value transmitted based on the output pin;
and determining the set value as the input parameter in the parameter adjusting mode.
Further, the step of adjusting the parameters of the electronic cigarette microphone according to the input parameters includes:
determining a parameter to be adjusted corresponding to the input parameter in the electronic cigarette microphone according to the parameter identification of the input parameter;
and judging whether the input parameters are matched with the adjusting range of the parameters to be adjusted, and if so, adjusting the parameters to be adjusted into the input parameters.
Further, the output pins form a 1-Wire bus to obtain the input parameters based on a 1-Wire bus protocol.
Further, the step of judging whether the state identifier of the output pin on the electronic cigarette microphone is a test identifier includes:
detecting a level value of an output pin on the electronic cigarette microphone, and matching the level value with a preset value to judge whether the state identifier is a test identifier;
if the level value is matched with the preset value, judging that the state identifier is a test identifier;
and if the level value is not consistent with the preset value in a matching way, judging that the state identifier is not a test identifier.
Further, after the step of determining whether the state of the output pin on the electronic cigarette microphone is the parameter adjusting state, the processor 1001 may call a parameter adjusting program of the electronic cigarette microphone stored in the memory 1005, and perform the following operations:
and if the state identification of the output pin is not the test identification, controlling the electronic cigarette microphone to enter a working mode.
The specific implementation of the parameter adjusting device of the electronic cigarette microphone of the present invention is substantially the same as the following embodiments of the parameter adjusting method of the electronic cigarette microphone, and is not described herein again.
The invention further provides a parameter adjusting method of the electronic cigarette microphone.
Referring to fig. 2, fig. 2 is a schematic flow chart of a parameter adjustment method for an electronic cigarette microphone according to a first embodiment of the invention.
Embodiments of the present invention provide embodiments of a method for adjusting parameters of an electronic cigarette microphone, and it should be noted that, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in an order different from that shown or described here. Specifically, the method for adjusting parameters of the electronic cigarette microphone in the embodiment includes:
step S10, when it is detected that the electronic cigarette microphone enters the power-on waiting time, determining whether the state identifier of the output pin on the electronic cigarette microphone is the test identifier.
The parameter adjusting method of the electronic cigarette microphone is applied to a control center of an electronic cigarette, and the control center is in communication connection with the electronic cigarette microphone so as to adjust parameters of the electronic cigarette microphone. The electronic cigarette microphone at least comprises four pins of VCC, GND, LED and OUT, wherein VCC and GNG are respectively connected with the positive pole and the negative pole of the current trend so as to supply power to the electronic cigarette microphone, and the LED pin is connected with the LED on the electronic cigarette so as to output a signal to control the ignition and the extinguishing of an LED lamp; for the OUT pin, the test mode and the working mode of the electronic cigarette microphone have different functions. For the test mode, the OUT pin can be used for carrying OUT parameter adjustment on the electronic cigarette microphone in the parameter adjustment process; for the working mode, the OUT pin outputs a start signal to generate smoke.
In the testing process, the electronic cigarette is connected with the testing equipment, if the parameter adjustment requirement for the electronic cigarette microphone exists, the OUT pin in the electronic cigarette equipment is used as the output pin, the output pin forms a 1-Wire bus, and the testing equipment and the electronic cigarette form two sides of communication. The input parameters for adjustment are transmitted by a 1-Wire bus protocol between the two communication parties, and the parameters of the electronic microphone are adjusted. The 1-WIRE bus is asynchronous half-duplex serial transmission, only one signal line (OWIO) is needed to transmit data, the signal line not only transmits a clock but also transmits data, and the parameter adjustment of the electronic cigarette microphone is bidirectional. In the parameter adjustment process, the output pin is used as an oweio to transmit the clock signal and the input parameter.
Further, the control center monitors whether the electronic cigarette is powered on or not so as to start a test; if the electronic cigarette microphone is powered on, the electronic cigarette microphone is judged to enter the power-on waiting time, and whether the state mark of the output pin position on the electronic cigarette microphone is the test mark or not is judged within the power-on waiting time. The power-on waiting time is set according to requirements, such as 5 seconds or 10 seconds. If the tester needs to adjust the parameters of the electronic cigarette microphone, the tester sends adjusting information to the electronic cigarette in the time period, and the control center determines the state identification of the output pin on the electronic cigarette microphone as the test identification after detecting the adjusting information. Otherwise, if the control center does not detect the adjusting information in the power-on waiting time, the state identifier of the output pin position on the electronic cigarette microphone is determined as a non-test identifier. The adjusting information exists in the form of an instruction for changing the level value of the output pin, and the level value of the output pin can be changed by sending the instruction to the electronic cigarette through the testing equipment to form the adjusting information; an adjusting switch can be arranged on the electronic cigarette, and the level value of the output pin is changed through the adjusting switch, so that adjusting information is formed; the embodiment preferably uses the test equipment to send the instruction to the electronic cigarette to form the adjustment information, the test equipment can be simultaneously connected with a plurality of electronic cigarettes through the bus to test, the adjustment information is formed through the test equipment, the parameter adjustment of the plurality of electronic cigarettes can be simultaneously triggered, and the operation is simplified. Specifically, the step of judging whether the state identifier of the output pin on the electronic cigarette microphone is a test identifier includes:
step S11, detecting a level value of an output pin on the electronic cigarette microphone, and matching the level value with a preset value to judge whether the state identifier is a test identifier;
step S12, if the level value is matched with the preset value, the state identifier is judged to be a test identifier;
and step S13, if the level value is not consistent with the preset value, judging that the state identifier is not a test identifier.
Furthermore, a characterization and then parameter adjustment mode is preset to perform a preset value of parameter adjustment. And the preset value is set according to requirements, such as a value representing high level, or a value representing alternating high level and low level. The control center detects the level value of the output pin on the electronic cigarette microphone, compares the detected level value with a preset value, judges whether the electronic cigarette microphone and the electronic cigarette microphone are matched or not according to the consistency of the level value and the preset value, and further represents whether the state identification of the output pin is a test identification or not according to whether the electronic cigarette microphone and the electronic cigarette microphone are matched or not. If the two are matched after comparison, the adjustment information is detected, and the state identifier of the output pin is a test identifier; otherwise, if the two are not matched, it is determined that the adjustment information is not detected within the power-on waiting time, and the state identifier of the output pin is not the test identifier.
Further, if the state identification of the output pin is judged not to be the test identification, the electronic cigarette microphone is controlled to enter a working mode without adjusting the parameters of the electronic cigarette microphone, so that whether each function of the electronic cigarette in the working mode is normal or not is tested.
Step S20, if the electronic cigarette microphone is a test mark, controlling the electronic cigarette microphone to enter a parameter adjusting mode;
furthermore, if the state identifier of the output pin is determined to be the test identifier and the parameter of the electronic cigarette microphone needs to be adjusted, the electronic cigarette microphone is controlled to enter a parameter adjusting mode so as to adjust the parameter of the electronic cigarette microphone in the parameter adjusting mode. The parameters supporting adjustment at least comprise the flashing frequency of the ignition and the extinction of the LED in the electronic cigarette, the smoking detection sensitivity, the current protection size and the like.
And step S30, acquiring input parameters in the parameter adjusting mode based on the output pin positions, and adjusting the parameters of the electronic cigarette microphone according to the input parameters.
Further, after the electronic cigarette microphone enters the parameter adjusting mode, the tester can adjust the parameters related to the electronic cigarette microphone in the mode. The method comprises the steps of selecting adjustment parameters to be adjusted through test equipment, setting the adjusted parameter values, using the selected adjustment parameters and the set parameter values as input parameters in a parameter adjustment mode, and conveying the input parameters through a 1-Wire bus formed by output pins between the test equipment and the electronic cigarette. The control center obtains the input parameters under the parameter adjusting mode through the output pins according to the 1-Wire bus protocol. And then according to the characteristic of the selected adjustment parameter to be adjusted in the input parameters, searching the storage position of the parameter, and then using the parameter value after the characteristic adjustment in the input parameters to replace and write the original data in the storage position, thereby realizing the parameter adjustment of the electronic microphone.
It should be noted that parameter adjustment can also be realized through the test equipment, and in the test process, after the communication line connection between the test equipment and the electronic cigarette is completed, the test is started. The electronic cigarette is monitored by the testing equipment, and once the electronic cigarette microphone is detected to enter the power-on waiting time, whether the state identifier of the electronic cigarette is a testing identifier is continuously judged; if the electronic cigarette is the test mark, the test equipment sends a control signal to the electronic cigarette to control the electronic cigarette microphone to enter a parameter adjusting mode; and setting parameters to be adjusted of the electronic cigarette microphone through the testing equipment in a parameter adjusting mode to obtain input parameters, transmitting the obtained input parameters to the electronic cigarette device through a 1-Wire bus formed by the output pins to perform writing operation, and adjusting the parameters of the electronic cigarette microphone. The specific process of adjusting through the test device is similar to the specific process of adjusting through the control center, and is not described herein again.
According to the parameter adjusting method of the electronic cigarette microphone, once the electronic cigarette microphone is detected to enter the electrifying waiting time, whether the state identification of the output pin position on the electronic cigarette microphone is a test identification is judged; if the electronic cigarette microphone is the test mark, controlling the electronic cigarette microphone to enter a parameter adjusting mode; and further acquiring input parameters in a parameter adjusting mode based on the output pin positions, and adjusting the parameters of the electronic cigarette microphone according to the input parameters. Therefore, the electronic cigarette microphone is controlled to enter a parameter adjusting mode, and input parameters in the parameter adjusting mode are obtained by combining the output pins, so that the parameter adjustment of the electronic cigarette microphone is realized; compared with a mode of disassembling the electronic cigarette microphone in the testing process to reset parameters, the testing workload is reduced, and the testing efficiency is improved.
Further, based on the first embodiment of the method for adjusting parameters of the electronic cigarette microphone, the second embodiment of the method for adjusting parameters of the electronic cigarette microphone is provided.
The difference between the second embodiment of the method for adjusting parameters of an electronic cigarette microphone and the first embodiment of the method for adjusting parameters of an electronic cigarette microphone is that if the parameter is a test identifier, the step of controlling the electronic cigarette microphone to enter a parameter adjustment mode includes:
and a, if the electronic cigarette is a test mark, initializing the output pin to control the electronic cigarette microphone to enter a parameter adjusting mode.
In this embodiment, before the state identifier of the output pin is determined to be the test identifier and the electronic cigarette microphone is controlled to enter the parameter adjustment mode, the output pin is formed into a 1-Wire bus and initialized to control the electronic cigarette microphone and further the parameter adjustment mode, 1-Wire bus communication is performed based on the initialized output pin, and input parameters for adjustment are transmitted. The process of initializing the output pins is essentially the process of resetting the 1-Wire bus, and the test equipment pulls down the bus for 480-960 mus and then releases the bus so as to change the bus into high level and generate reset pulse; the electronic cigarette serving as a 1-Wire bus device can pull down the bus for 60-240 mu s within 15-60 mu s after receiving effective jump, and during the period, the testing equipment judges whether the electronic cigarette serving as a slave device is hung on the current bus or not through sampling; if the return value of the function Reset () is 0, the slave device is hung on the bus, and the return value of 1 indicates that the slave device is not hung on the bus; and when the test equipment receives the response pulse with the return value of 0, the condition that each device on the 1-Wire bus is ready is indicated, and the initialization process is completed.
Furthermore, after the electronic cigarette microphone enters the parameter adjusting mode, the parameters can be adjusted through the input parameters transmitted by the output pins. Specifically, the step of obtaining the input parameter in the parameter adjustment mode based on the output pin position includes:
step S31, when the timing state corresponding to the output pin is a read state, reading a setting value transmitted by the output pin;
step S32, determining the set value as the input parameter in the parameter adjustment mode.
Further, in the parameter adjusting process, a tester selects an adjusting parameter through the testing equipment, and an adjusting value after the adjusting parameter is adjusted is formed as an input parameter in a parameter adjusting mode and is transmitted through a 1-Wire bus formed by the output pin. In the transmission process, the input parameters are converted into setting values in a binary form for transmission. The test equipment carries out bit-by-bit writing operation on the 1-Wire bus, one byte of the bus can be written in by continuously writing for 8 times, at least 60 mu s is needed for writing 1bit into the 1-Wire bus, and meanwhile, the interval of more than 1 mu s is ensured for two times of continuous writing operation. And if the bit to be written wbit is 0, the host pulls down the bus for 60 mus and then releases, and the operation of writing 0 is finished. And if the bit to be written wbit is 1, the host pulls down the bus and releases the bus within 1-15 mus, and then waits for 60 mus, and the operation of writing 1 is finished. Therefore, the input parameters are written into the 1-Wire bus in a binary mode, and the input parameters are transmitted.
Furthermore, in the process of transmitting the set value based on the output pin, the control center reads the set value transmitted by the output pin according to the time sequence state of the output pin. And determining whether the current transmission time sequence of the output pin is positioned in the reading time interval according to the reading time interval of the 1-Wire bus protocol, if so, judging that the time sequence state corresponding to the output pin is the reading state, and reading the output pin at the moment to obtain a set value which is the read set value and is transmitted based on the output pin. And the type of the write operation, the read operation of the control center to the 1-Wire bus is also carried out bit by bit, and 8 times of continuous reading can be carried out, namely, one byte transmitted on the 1-Wire bus can be read. Reading 1bit from the 1-Wire bus also requires at least 60 mus, while also ensuring that two consecutive read operations are separated by more than 1 mus. When data is read from the 1-Wire bus, the bus is pulled down for more than 1 mu s and then released, and the sampling value of the bus within 1-15 mu s after the bus is released is the read data.
Further, after reading the setting value transmitted based on the output pin, the read setting value is determined as the input parameter in the parameter adjustment mode. In addition, the input parameter may directly exist as a binary set value, or the binary set value may be converted into a required binary value, which is further used as the input parameter, without limitation.
Understandably, after the control center obtains the input parameters in the parameter adjusting mode, the control center can adjust the parameters of the electronic cigarette microphone according to the input parameters. Specifically, according to the input parameters, the step of adjusting the parameters of the electronic cigarette microphone comprises the following steps:
step S33, determining the parameter to be adjusted corresponding to the input parameter according to the parameter identification of the input parameter;
step S34, determining whether the adjustment range of the input parameter and the parameter to be adjusted is matched, and if the adjustment range is matched, adjusting the parameter to be adjusted to the input parameter.
Furthermore, the adjustment parameters which are required to be adjusted are represented in the input parameters in the form of addresses, the addresses which are stored in the parameters which are required to be adjusted are represented, the addresses are used as parameter identifiers of the input parameters to be read, and the parameters to be adjusted, corresponding to the input parameters, in the electronic cigarette are determined according to the identifiers. The address represented by the parameter identifier is searched according to the parameter identifier, and the data stored in the address is the parameter to be adjusted, so that the data is determined as the parameter to be adjusted corresponding to the input parameter.
Understandably, different parameters have different value ranges, for example, the sensitivity range of smoking detection and the range of current protection are necessarily different, and different value ranges make the supported adjustment range different. After the parameter to be adjusted is determined, reading a numerical range corresponding to the parameter to be adjusted as an adjustment range, comparing an adjustment value representing the adjusted parameter in the input parameter with the adjustment range, and judging whether the adjustment range of the input parameter and the parameter to be adjusted is matched by judging whether the adjustment value is within the adjustment range.
Further, if it is determined that the adjustment value is within the adjustment range, it is determined that the input parameter matches the adjustment range of the parameter to be adjusted. At the moment, the numerical value of the parameter to be adjusted is adjusted to be the adjusting value in the input parameter, the parameter adjustment of the electronic cigarette microphone is achieved, meanwhile, information such as the value before adjustment, the value after adjustment, the adjusting time and the like is recorded, and various operations performed in the testing process of the electronic cigarette are recorded, so that the electronic cigarette can be conveniently checked subsequently. On the contrary, if the determined adjustment value is not in the adjustment range, the input parameter is determined not to be matched with the adjustment range of the parameter to be adjusted. At this time, the adjustment range is generated as a prompt message to output to prompt that the set adjusted value does not meet the requirement, and the adjusted value should be set according to the adjustment range so that the adjusted value is favorable for the use of the electronic cigarette. Meanwhile, it is also possible to output advice information, which generates an upper limit value or a lower limit value of the adjustment range as advice information output to advise that the adjusted value is set as the upper limit value or the lower limit value. If the indication of accepting the suggestion is detected, the numerical value of the suggestion information is set as the adjusted value, the parameter to be adjusted is adjusted through the numerical value, resetting is avoided, the operation times are reduced, and the adjustment is more convenient and quicker.
The implementation avoids resetting the pins for communication in the electronic cigarette microphone by setting the output pin sum as the 1-Wire bus, simplifies the hardware structure and reduces the cost. Meanwhile, parameter adjustment of the electronic cigarette microphone is achieved through the 1-Wire bus, the electronic cigarette microphone can be connected with the testing equipment simultaneously, respective parameter adjustment is achieved, and parameter adjustment efficiency is improved.
The invention also provides a parameter adjusting device of the electronic cigarette microphone.
Referring to fig. 3, fig. 3 is a functional module schematic diagram of a parameter adjustment device of an electronic cigarette microphone according to a first embodiment of the invention. Parameter adjustment device of electron cigarette miaow head includes:
the electronic cigarette microphone comprises a judging module 10, a detecting module and a processing module, wherein the judging module is used for judging whether a state identifier of an output pin on an electronic cigarette microphone is a test identifier when the electronic cigarette microphone is detected to enter a power-on waiting time;
the control module 20 is used for controlling the electronic cigarette microphone to enter a parameter adjusting mode if the electronic cigarette microphone is a test identifier;
and the adjusting module 30 is configured to obtain an input parameter in the parameter adjusting mode based on the output pin position, and perform parameter adjustment on the electronic cigarette microphone according to the input parameter.
Further, the control module 20 includes:
and the initialization unit is used for initializing the output pin if the electronic cigarette microphone is a test identifier so as to control the electronic cigarette microphone to enter a parameter adjusting mode.
Further, the adjusting module 30 further includes:
the reading unit is used for reading a set value transmitted based on the output pin when the time sequence state corresponding to the output pin is a reading state;
a first determination unit configured to determine the set value as the input parameter in the parameter adjustment mode.
Further, the adjusting module 30 further includes:
the second determining unit is used for determining the parameter to be adjusted corresponding to the input parameter according to the parameter identifier of the input parameter;
and the adjusting unit is used for judging whether the input parameters are matched with the adjusting range of the parameters to be adjusted or not, and if so, adjusting the parameters to be adjusted into the input parameters.
Further, the output pins form a 1-Wire bus to obtain the input parameters based on a 1-Wire bus protocol.
Further, the determining module 10 further includes:
the detection unit is used for detecting a level value of an output pin on the electronic cigarette microphone and matching the level value with a preset value so as to judge whether the state identifier is a test identifier;
the first judging unit is used for judging that the state identifier is a test identifier if the level value is matched with a preset value;
and the second judging unit is used for judging that the state identifier is not a test identifier if the level value is not matched with the preset value.
Further, the control module is further configured to:
and if the state identification of the output pin is not the test identification, controlling the electronic cigarette microphone to enter a working mode.
The specific implementation of the parameter adjusting device of the electronic cigarette microphone of the present invention is substantially the same as the embodiments of the parameter adjusting method of the electronic cigarette microphone, and is not described herein again.
In addition, the embodiment of the invention also provides a readable storage medium.
The readable storage medium stores a parameter adjusting program of the electronic cigarette microphone, and the parameter adjusting program of the electronic cigarette microphone is executed by the processor to implement the steps of the parameter adjusting method of the electronic cigarette microphone.
The readable storage medium of the present invention may be a computer readable storage medium, and the specific implementation manner of the readable storage medium of the present invention is substantially the same as that of each embodiment of the parameter adjustment method for an electronic cigarette microphone, and will not be described herein again.
The present invention is described in connection with the accompanying drawings, but the present invention is not limited to the above embodiments, which are only illustrative and not restrictive, and those skilled in the art can make various changes without departing from the spirit and scope of the invention as defined by the appended claims, and all changes that come within the meaning and range of equivalency of the specification and drawings that are obvious from the description and the attached claims are intended to be embraced therein.

Claims (10)

1. A parameter adjusting method of an electronic cigarette microphone is characterized by comprising the following steps:
when the electronic cigarette microphone is detected to enter the power-on waiting time, judging whether a state mark of an output pin on the electronic cigarette microphone is a test mark or not;
if the electronic cigarette microphone is the test mark, controlling the electronic cigarette microphone to enter a parameter adjusting mode;
and acquiring input parameters in the parameter adjusting mode based on the output pin positions, and adjusting the parameters of the electronic cigarette microphone according to the input parameters.
2. The method for adjusting parameters of an electronic cigarette microphone according to claim 1, wherein the step of controlling the electronic cigarette microphone to enter a parameter adjustment mode if the electronic cigarette microphone is a test identifier comprises:
if the electronic cigarette microphone is a test mark, initializing the output pin to control the electronic cigarette microphone to enter a parameter adjusting mode.
3. The method for adjusting parameters of an electronic cigarette microphone according to claim 1, wherein the step of obtaining the input parameters in the parameter adjustment mode based on the output pin position includes:
when the time sequence state corresponding to the output pin is a reading state, reading a set value transmitted based on the output pin;
and determining the set value as the input parameter in the parameter adjusting mode.
4. The method for adjusting parameters of an electronic cigarette microphone according to claim 1, wherein the step of adjusting parameters of the electronic cigarette microphone according to the input parameters comprises:
determining a parameter to be adjusted corresponding to the input parameter according to the parameter identification of the input parameter;
and judging whether the input parameters are matched with the adjusting range of the parameters to be adjusted, and if so, adjusting the parameters to be adjusted into the input parameters.
5. The method for adjusting parameters of an electronic cigarette microphone according to claim 1, wherein the output pin forms a 1-Wire bus to obtain the input parameters based on a 1-Wire bus protocol.
6. The method for adjusting parameters of an electronic cigarette microphone according to any one of claims 1 to 5, wherein the step of determining whether the status flag of the output pin on the electronic cigarette microphone is a test flag includes:
detecting a level value of an output pin on the electronic cigarette microphone, and matching the level value with a preset value to judge whether the state identifier is a test identifier;
if the level value is matched with the preset value, judging that the state identifier is a test identifier;
and if the level value is not consistent with the preset value in a matching way, judging that the state identifier is not a test identifier.
7. The method for adjusting parameters of an electronic cigarette microphone according to any one of claims 1 to 5, wherein the step of determining whether the state of the output pin on the electronic cigarette microphone is a parameter adjustment state comprises:
and if the state identification of the output pin is not the test identification, controlling the electronic cigarette microphone to enter a working mode.
8. The utility model provides a parameter adjustment device of electron cigarette miaow head which characterized in that, parameter adjustment device of electron cigarette miaow head includes:
the electronic cigarette microphone comprises a judging module, a detecting module and a control module, wherein the judging module is used for judging whether a state identifier of an output pin on the electronic cigarette microphone is a test identifier or not when the electronic cigarette microphone is detected to enter power-on waiting time;
the control module is used for controlling the electronic cigarette microphone to enter a parameter adjusting mode if the electronic cigarette microphone is a test identifier;
and the adjusting module is used for acquiring the input parameters in the parameter adjusting mode based on the output pin positions and adjusting the parameters of the electronic cigarette microphone according to the input parameters.
9. A parameter adjustment device of an electronic cigarette microphone, characterized in that the parameter adjustment device of the electronic cigarette microphone comprises a memory, a processor and a parameter adjustment program of the electronic cigarette microphone stored on the memory and executable on the processor, the parameter adjustment program of the electronic cigarette microphone when executed by the processor implementing the steps of the parameter adjustment method of the electronic cigarette microphone according to any one of claims 1-7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a parameter adjustment program of an electronic cigarette microphone, which, when executed by a processor, carries out the steps of the method of parameter adjustment of an electronic cigarette microphone according to any one of claims 1-7.
CN202010370920.8A 2020-04-30 2020-04-30 Parameter adjusting method, device and equipment of electronic cigarette microphone and readable storage medium Pending CN111567885A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010370920.8A CN111567885A (en) 2020-04-30 2020-04-30 Parameter adjusting method, device and equipment of electronic cigarette microphone and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010370920.8A CN111567885A (en) 2020-04-30 2020-04-30 Parameter adjusting method, device and equipment of electronic cigarette microphone and readable storage medium

Publications (1)

Publication Number Publication Date
CN111567885A true CN111567885A (en) 2020-08-25

Family

ID=72115143

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010370920.8A Pending CN111567885A (en) 2020-04-30 2020-04-30 Parameter adjusting method, device and equipment of electronic cigarette microphone and readable storage medium

Country Status (1)

Country Link
CN (1) CN111567885A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102934843A (en) * 2012-11-13 2013-02-20 卓尔悦(常州)电子科技有限公司 Electronic cigarette control device and method for achieving visualized man-machine interaction
CN202949974U (en) * 2012-11-13 2013-05-29 卓尔悦(常州)电子科技有限公司 Electronic cigarette controlling device achieving visualized man-machine interaction and electronic cigarette
US20140006678A1 (en) * 2012-07-02 2014-01-02 Yu-Peng Lai Portable electronic device and accessory device thereof, and operating method for the portable electronic device
CN207638887U (en) * 2017-11-16 2018-07-20 惠州市惠之声实业有限公司 A kind of microphone test device
CN109820254A (en) * 2019-04-11 2019-05-31 上海炘璞电子科技有限公司 A kind of electronic cigarette control method, device, electronic cigarette and storage medium
WO2019200559A1 (en) * 2018-04-18 2019-10-24 深圳麦克韦尔股份有限公司 Electronic cigarette, atomizing core, atomizer, and electronic cigarette control method
CN110881699A (en) * 2018-08-17 2020-03-17 深圳市艾维普思科技有限公司 Unlocking method and device of electronic cigarette and computer readable storage medium
CN110946337A (en) * 2019-12-06 2020-04-03 歌尔微电子有限公司 Sensor circuit, miaow head sensor and electron cigarette
CN110958523A (en) * 2019-11-29 2020-04-03 歌尔股份有限公司 Parameter adjusting method, adjusting device and computer readable storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140006678A1 (en) * 2012-07-02 2014-01-02 Yu-Peng Lai Portable electronic device and accessory device thereof, and operating method for the portable electronic device
CN102934843A (en) * 2012-11-13 2013-02-20 卓尔悦(常州)电子科技有限公司 Electronic cigarette control device and method for achieving visualized man-machine interaction
CN202949974U (en) * 2012-11-13 2013-05-29 卓尔悦(常州)电子科技有限公司 Electronic cigarette controlling device achieving visualized man-machine interaction and electronic cigarette
CN207638887U (en) * 2017-11-16 2018-07-20 惠州市惠之声实业有限公司 A kind of microphone test device
WO2019200559A1 (en) * 2018-04-18 2019-10-24 深圳麦克韦尔股份有限公司 Electronic cigarette, atomizing core, atomizer, and electronic cigarette control method
CN110881699A (en) * 2018-08-17 2020-03-17 深圳市艾维普思科技有限公司 Unlocking method and device of electronic cigarette and computer readable storage medium
CN109820254A (en) * 2019-04-11 2019-05-31 上海炘璞电子科技有限公司 A kind of electronic cigarette control method, device, electronic cigarette and storage medium
CN110958523A (en) * 2019-11-29 2020-04-03 歌尔股份有限公司 Parameter adjusting method, adjusting device and computer readable storage medium
CN110946337A (en) * 2019-12-06 2020-04-03 歌尔微电子有限公司 Sensor circuit, miaow head sensor and electron cigarette

Similar Documents

Publication Publication Date Title
CN109062745B (en) Test terminal with test server hardware temperature
CN109783340B (en) SoC test code programming method, IP test method and device
CN110069288B (en) USB equipment sharing method, device and system
US11404036B2 (en) Communication method, sound generation method and mobile communication terminal
CN102981949A (en) Method for on-line automatic tests of server
CN112087354A (en) Communication protocol testing method and device, electronic equipment and storage medium
CN107357694A (en) Error event reporting system and its method during startup self-detection
EP3296875B1 (en) Simulation reproduction device, simulation reproduction method, and simulation reproduction program
CN111567886A (en) Parameter adjusting method, device and equipment of electronic cigarette microphone and readable storage medium
CN114660436A (en) Chip testing equipment and chip testing method
CN111567885A (en) Parameter adjusting method, device and equipment of electronic cigarette microphone and readable storage medium
CN113407469A (en) Parameter configuration method and device, storage medium and electronic device
CN115904849B (en) PCIE link signal testing method, system, computer equipment and medium
JPH09223038A (en) Remote terminal emulator
JP2015515766A (en) Input decoder
CN107451067B (en) Processing method for downloading test and related product
CN116306474A (en) Method, device, equipment and storage medium for verifying access of network on chip
CN111352780B (en) Method and device for determining state of path and readable storage medium
CN110874280B (en) Startup exception processing method and device, electronic equipment and storage medium
CN114490206A (en) Interface performance test method and system
CN112783708A (en) DTU hardware testing method, terminal and computer readable storage medium
CN113434421A (en) Virtual equipment testing method and device
CN113760750B (en) Intelligent device testing method and device, electronic device and storage medium
CN113220517B (en) Operation time-consuming test system, signal processing equipment and signal processing method
CN117436405B (en) Simulation verification method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Room 103, 396 Songling Road, Laoshan District, Qingdao City, Shandong Province 266100

Applicant after: Geer Microelectronics Co.,Ltd.

Address before: Room 103, 396 Songling Road, Laoshan District, Qingdao City, Shandong Province 266100

Applicant before: Goer Microelectronics Co.,Ltd.

TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20231116

Address after: 261200 No.2 Zhengtai Road, Fangzi District, Weifang City, Shandong Province

Applicant after: WEIFANG ZHENGDA INDUSTRY CO.,LTD.

Address before: Room 103, 396 Songling Road, Laoshan District, Qingdao City, Shandong Province 266100

Applicant before: Geer Microelectronics Co.,Ltd.