Test method for mainboard and peripheral of heat-not-burn appliance and related device
By automatically detecting the temperature, resistance, current and other parameters of the motherboard and peripherals of heating non-burning appliances, the problem in the existing technology that requires manual observation to obtain the test results is solved, which improves the detection efficiency and reduces the risk of missed detection.
Patent Information
- Application Number
- CN202411786262.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-04
- Publication Date
- 2025-02-25
AI Technical Summary
The existing test methods for heating non-burning equipment require manual observation to know the test results, and there are problems of missed detection and low detection efficiency.
Provide a test method for heating the motherboard and peripherals of non-burning appliances. By detecting the motherboard temperature, battery temperature, resistance value, heating current and power output current, the normality of the motherboard and peripherals are automatically judged, and the test results are generated.
It improves detection efficiency, reduces the risk of missed inspection by manual observation, and realizes an automated testing process.
Smart Images

Figure CN119511042A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of heat-not-burn appliances, and in particular to a method and a related device for testing a mainboard and peripherals of a heat-not-burn appliance. Background Art
[0002] Heating but not burning appliances undergo one or more tests during production. Existing testing methods require manual observation to obtain the test results when testing interactive peripherals such as motors and LED lights. However, manual observation is prone to missed detections and has low detection efficiency. Summary of the invention
[0003] The present application provides a method and related device for testing the mainboard and peripherals of a heating-not-burning appliance, which is used to improve the existing technology in which manual observation is required to know the test results when testing related interactive peripherals, and there are technical problems such as easy missed detection and low detection efficiency.
[0004] In view of this, the first aspect of the present application provides a method for testing a mainboard and peripherals of a heating-not-burning appliance, comprising:
[0005] When it is detected that the fixture pulls up the test pin of the mainboard and receives the test instruction, it detects whether the mainboard temperature and battery temperature of the heating-not-burning device are normal;
[0006] Read the resistance value of the resistor in the fixture, and determine whether the measurement circuit on the mainboard is normal according to the resistance value;
[0007] Controlling the heating circuit on the mainboard to heat, judging whether the heating circuit is normal according to the size of the heating current, and ending the heating after detecting the heating current;
[0008] Turning on the light-emitting device and judging whether the light-emitting device is normal according to the output current of the power supply;
[0009] Turning on the vibration device and judging whether the vibration device is normal according to the power supply output current;
[0010] Generate test results.
[0011] Optionally, the detecting whether the mainboard temperature and the battery temperature of the heating without burning appliance are normal includes:
[0012] Detect whether the mainboard temperature and the battery temperature of the heat-not-burn appliance are within a preset temperature range, and whether the temperature difference between the mainboard temperature and the battery temperature is within a preset temperature difference range.
[0013] Optionally, the turning on the light emitting device and judging whether the light emitting device is normal according to the power supply output current includes:
[0014] Turning on the light-emitting devices one by one, calculating the difference in power supply output current of each light-emitting device before and after being turned on, and obtaining the consumption current of each light-emitting device;
[0015] Determine whether each of the light-emitting devices is normal by the current consumption of each of the light-emitting devices, and turn off all of the light-emitting devices after all of the light-emitting devices have been detected;
[0016] Or, turning on all light-emitting devices to detect whether the current power supply output current is within a first preset current range;
[0017] Turning off the light-emitting devices one by one, calculating the difference in power supply output current of each light-emitting device before and after being turned off, and obtaining the current consumption of each light-emitting device;
[0018] Whether each of the light emitting devices is normal is judged by the current consumption of each of the light emitting devices until all of the light emitting devices are turned off.
[0019] Optionally, judging whether each of the light-emitting devices is normal by the current consumption of each of the light-emitting devices includes:
[0020] Determine whether the current consumption of the current light emitting device is within a second preset current range, and whether the current consumption difference between the current light emitting device and other light emitting devices is within a preset current difference range;
[0021] If the current consumption of the current light-emitting device is within the second preset current range, and the current consumption difference between the current light-emitting device and other light-emitting devices is within the preset current difference range, then the current light-emitting device is determined to be normal;
[0022] If the current consumption of the current light emitting device exceeds the second preset current range, or the current consumption difference between the current light emitting device and other light emitting devices exceeds the preset current difference range, the current light emitting device is determined to be abnormal.
[0023] Optionally, the method further includes:
[0024] When the consumption current of each of the light-emitting devices is within a second preset current range, and the consumption current difference between the light-emitting devices exceeds the preset current difference range, adjusting the voltage output duty cycle corresponding to each of the light-emitting devices according to the minimum consumption current of all the light-emitting devices or the ratio of the preset current to the consumption current of each of the light-emitting devices, so that the consumption current difference between the light-emitting devices is within the preset current difference range;
[0025] The preset current is the current consumption corresponding to the preset minimum brightness of the light emitting device.
[0026] Optionally, the method further includes:
[0027] When the test result is that the test fails, an error is reported through a light display, sound or vibration, and the tested abnormal information is stored in the memory of the mainboard.
[0028] The second aspect of the present application provides a testing device for a mainboard and peripherals of a heating-not-burning appliance, comprising:
[0029] The first detection unit is used to detect whether the temperature of the mainboard and the battery of the heating-not-burning device are normal when the fixture pulls up the test pin of the mainboard and receives the test instruction;
[0030] A second detection unit is used to read the resistance value of the resistor in the fixture, and judge whether the measurement circuit on the mainboard is normal according to the resistance value;
[0031] A third detection unit is used to control the heating circuit on the mainboard to heat, determine whether the heating circuit is normal according to the size of the heating current, and end the heating after detecting the heating current;
[0032] A fourth detection unit, used to turn on the light-emitting device and determine whether the light-emitting device is normal according to the output current of the power supply;
[0033] A fifth detection unit, used to turn on the vibration device and determine whether the vibration device is normal according to the power output current;
[0034] The result generating unit is used to generate the test result.
[0035] Optionally, the fourth detection unit is specifically used to:
[0036] Turning on the light-emitting devices one by one, calculating the difference in power supply output current of each light-emitting device before and after being turned on, and obtaining the consumption current of each light-emitting device;
[0037] Determine whether each of the light-emitting devices is normal by the current consumption of each of the light-emitting devices, and turn off all of the light-emitting devices after all of the light-emitting devices have been detected;
[0038] Or, turning on all light-emitting devices to detect whether the current power supply output current is within a first preset current range;
[0039] Turning off the light-emitting devices one by one, calculating the difference in power supply output current of each light-emitting device before and after being turned off, and obtaining the current consumption of each light-emitting device;
[0040] Whether each of the light emitting devices is normal is judged by the current consumption of each of the light emitting devices until all of the light emitting devices are turned off.
[0041] A third aspect of the present application provides an electronic device, the device comprising a processor and a memory;
[0042] The memory is used to store program code and transmit the program code to the processor;
[0043] The processor is used to execute the testing method of the mainboard and peripherals of the heating non-burning appliance according to any one of the first aspects according to the instructions in the program code.
[0044] A fourth aspect of the present application provides a computer-readable storage medium, which is used to store program codes. When the program codes are executed by a processor, the method for testing a mainboard and peripherals of a heating non-combustion appliance as described in any one of the first aspects is implemented.
[0045] It can be seen from the above technical solutions that this application has the following advantages:
[0046] The present application provides a method for testing the mainboard and peripherals of a heating but not burning appliance, which tests the mainboard and each circuit on the mainboard by temperature, resistance and heating current, and determines whether the motor and light display are normal by detecting the circuit current. The test process does not require manual intervention, which improves the detection efficiency and improves the technical problems of the prior art in which manual observation is required to know the test results when testing related interactive peripherals, and there are technical problems such as easy missed detection and low detection efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0048] Figure 1 A schematic flow chart of a method for testing a mainboard and peripherals of a heat-not-burn appliance provided in an embodiment of the present application;
[0049] Figure 2 A structural schematic diagram of a test device for a mainboard and peripherals of a heat-not-burn appliance provided in an embodiment of the present application;
[0050] Figure 3 A structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0051] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0052] For easier understanding, please refer to Figure 1 The present application embodiment provides a method for testing a mainboard and peripherals of a heating-not-burning appliance, including:
[0053] Step 110: When it is detected that the fixture pulls up the test pin of the mainboard and receives a test instruction, it is detected whether the mainboard temperature and the battery temperature of the heating without burning device are normal.
[0054] In this application, the automatic test program of the mainboard and peripherals of the heating-not-burning device is written into the mainboard. During the test, the fixture will pull up the test IO pin of the mainboard; the automatic test program reads the mainboard test pin and waits for the button to start the test after it is pulled high. After receiving the test instruction triggered by the button, it is detected whether the mainboard temperature and battery temperature of the heating-not-burning device are within the preset temperature range, and whether the temperature difference between the mainboard temperature and the battery temperature is within the preset temperature difference range. If the mainboard temperature and the battery temperature are within the preset temperature range, and the temperature difference between the mainboard temperature and the battery temperature is within the preset temperature difference range, then the mainboard temperature and the battery temperature are determined to be normal; if any one of the mainboard temperature and the battery temperature exceeds the preset temperature range, or the temperature difference between the mainboard temperature and the battery temperature exceeds the preset temperature difference range, then the mainboard temperature and the battery temperature are determined to be abnormal. It should be noted that the preset temperature range can be determined when the heating-not-burning device is cooled to a normal temperature state; the preset temperature difference range can be determined by measuring the actual temperature difference between the battery temperature and the mainboard temperature of the heating-not-burning device when it is cooled to a normal temperature state.
[0055] If the current motherboard temperature and battery temperature are detected to be abnormal, it may be that the motherboard and battery have not yet cooled to normal temperature. You can test the motherboard temperature and battery temperature again after a certain period of time after the entire test process is completed.
[0056] Step 120: read the resistance value of the resistor in the fixture, and determine whether the measurement circuit on the mainboard is normal according to the resistance value.
[0057] In the embodiment of the present application, a large resistor (with a resistance greater than a preset resistance threshold) is provided in the fixture to simulate the resistance of the heating element, read the resistance of the large resistor in the fixture, and determine whether the read resistance is within the preset resistance range. If so, it is determined that the measurement circuit on the mainboard can obtain the resistance normally. If not, it is determined that the measurement circuit on the mainboard is abnormal. The preset resistance range is determined according to the actual resistance of the large resistor in the fixture.
[0058] Step 130, control the heating circuit on the mainboard to heat, determine whether the heating circuit is normal according to the size of the heating current, and end the heating after detecting the heating current.
[0059] The heating circuit on the control mainboard is heated and the heating current, i.e., the output current of the power supply, is detected. Since a large resistor is used in the fixture to simulate the resistance of the heating element, the heating current quickly stabilizes during heating, so there is no need to wait when detecting the heating current. After the heating current is detected, it is determined whether the heating current is within the preset heating current range. If so, the heating circuit is determined to be normal. If not, the heating circuit is determined to be abnormal.
[0060] Step 140: Turn on the light-emitting device and determine whether the light-emitting device is normal based on the output current of the power supply.
[0061] Light-emitting devices include LED lights, digital tubes, etc. When testing light-emitting devices, in one embodiment, light-emitting devices are turned on one by one, and the current power output current is detected each time a light-emitting device is turned on, and then the difference between the power output current of each light-emitting device before and after it is turned on is calculated to obtain the consumption current of each light-emitting device. For example, the power output current before turning on light-emitting device i is I0, and the power output current after turning on light-emitting device i is I1, and the consumption current of light-emitting device i is I1-I0. Whether each light-emitting device is normal is determined by the consumption current of each light-emitting device, and all light-emitting devices are turned off after all light-emitting devices are detected.
[0062] In another embodiment, all the light-emitting devices may be turned on first to detect whether the current power supply output current is within a first preset current range. If the current power supply output current exceeds the first preset current range, it indicates that an abnormal light-emitting device exists. Then, the light-emitting devices may be turned off one by one, and the current power supply output current may be detected each time a light-emitting device is turned off. The difference in power supply output current of each light-emitting device before and after being turned off may be calculated to obtain the current consumption of each light-emitting device. Whether each light-emitting device is normal may be determined by the current consumption of each light-emitting device until all the light-emitting devices are turned off.
[0063] It should be noted that when testing the light-emitting device, other peripherals (such as the vibration device) are turned off, and the power output current obtained can be used for subsequent calculations after removing the current required by the motherboard chip itself. When testing the light-emitting device, the present application determines whether the light display of the light-emitting device is normal by detecting the circuit current, and does not require manual observation to determine whether the light display is normal, thereby avoiding the problem of missed detection due to manual observation and improving the detection efficiency.
[0064] In one embodiment, it is possible to directly determine whether each light emitting device is normal by its current consumption. Specifically, it is determined whether the current current consumption of the light emitting device is within the second preset current range. If so, the current light emitting device is determined to be normal, and if not, the current light emitting device is determined to be abnormal.
[0065] In another embodiment, in addition to determining whether the light-emitting device can display normally, it is also possible to determine whether the display brightness of all light-emitting devices is uniform. Specifically, it is determined whether the current consumption of the current light-emitting device is within the second preset current range, and whether the current consumption difference between the current light-emitting device and other light-emitting devices is within the preset current difference range; if the current consumption of the current light-emitting device is within the second preset current range, and the current consumption difference between the current light-emitting device and other light-emitting devices is within the preset current difference range, then the current light-emitting device is determined to be normal; if the current consumption of the current light-emitting device exceeds the second preset current range, or the current consumption difference between the current light-emitting device and other light-emitting devices exceeds the preset current difference range, then the current light-emitting device is determined to be abnormal.
[0066] In the embodiment of the present application, when it is determined that the consumption current of all light-emitting devices is within the second preset current range, and the consumption current difference between each light-emitting device and other light-emitting devices is within the preset current difference range, it means that all light-emitting devices can display normally and the display brightness of each light-emitting device is uniform. If it is determined that the consumption current of all light-emitting devices is within the second preset current range, but the consumption current difference between a certain light-emitting device and other light-emitting devices exceeds the preset current difference range, it means that each light-emitting device can display normally, but there is a problem of uneven display brightness.
[0067] Furthermore, when it is detected that the light-emitting devices can display normally but the display brightness is uneven, the duty cycle of the output voltage corresponding to the light-emitting devices can be adjusted to make the display brightness of each light-emitting device uniform.
[0068] In one embodiment, all the light-emitting devices of a single heating-not-burning appliance can be controlled to have uniform brightness according to the minimum current consumption of the single heating-not-burning appliance. Specifically, when the current consumption of each light-emitting device is within the second preset current range, and there is a current consumption difference between the light-emitting devices that exceeds the preset current difference range, the voltage output duty cycle corresponding to each light-emitting device is adjusted according to the ratio of the minimum current consumption among all the light-emitting devices to the current consumption of each light-emitting device, so that the current consumption difference between each light-emitting device is within the preset current difference range. Among them, the duty cycle of the output voltage corresponding to the minimum current consumption in the light-emitting device is 100%, and the duty cycle of the output voltage of the current light-emitting device is (minimum current consumption / current current consumption of the light-emitting device)*100%. After calculating the duty cycle of the current light-emitting device, adjust the duty cycle of the PWM (pulse width modulation) signal that controls the current light-emitting device. After adjusting the duty cycle of the light-emitting device, another test can be performed. When it is tested that each light-emitting device displays normally and the display brightness is uniform, save the adjusted duty cycle of each light-emitting device, and use the adjusted duty cycle to control the light display of each light-emitting device in subsequent production.
[0069] In another embodiment, all the light-emitting devices of all heating-not-burning appliances can be controlled to have a uniform brightness. Specifically, when the consumption current of each light-emitting device is within the second preset current range, and there is a consumption current difference between the light-emitting devices that exceeds the preset current difference range, the voltage output duty cycle corresponding to each light-emitting device is adjusted according to the ratio of the preset current to the consumption current of each light-emitting device, so that the consumption current difference between each light-emitting device is within the preset current difference range; wherein the preset current is the consumption current corresponding to the preset minimum brightness of the light-emitting device, and the preset minimum brightness is the minimum brightness acceptable in reality. Using the current corresponding to the acceptable minimum brightness as the preset current, the duty cycle of the output voltage of the current light-emitting device is (preset current / current consumption current of the current light-emitting device)*100%, after calculating the duty cycle of the current light-emitting device, adjust the duty cycle of the PWM (pulse width modulation) signal that controls the current light-emitting device, and after adjusting the duty cycle of the light-emitting device, another test can be performed. When the test shows that each light-emitting device displays normally and the display brightness is uniform, the adjusted duty cycle of each light-emitting device is saved, and the light display of each light-emitting device is controlled by the adjusted duty cycle in subsequent production.
[0070] Step 150: Turn on the vibration device and determine whether the vibration device is normal based on the power output current.
[0071] The vibration device includes a motor. When testing the vibration device, the vibration device is turned on, and other peripherals (such as light-emitting devices) are turned off. The current power output current is detected, and then whether the vibration device is normal is determined based on the current power output current. When determining whether the vibration device is normal based on the power output current, it is necessary to subtract the current required by the motherboard chip from the power output current to obtain the current consumption of the vibration device, and then determine whether the current consumption of the vibration device is within the third preset current range to determine whether the current vibration device is normal.
[0072] It should be noted that the test order between step 120 to step 150 can be swapped.
[0073] Step 160: Generate test results.
[0074] After completing all the above test steps, the test results are generated. When all the above test steps are passed, that is, when the test results are passed, the light can be displayed to indicate that it is normal and then the team will be eliminated and enter sleep.
[0075] The present application takes into account that the existing test methods cannot record abnormal information in the heating without burning appliance when abnormal conditions are detected, and recording through manual methods such as labels is prone to confusion or omission. In order to improve this problem, the present application can report an error through light display, sound or vibration when the test result is a test failure, that is, when a component has an abnormality, and store the tested abnormal information in the memory of the mainboard. Specifically, the abnormal information (that is, a circuit or peripheral abnormality tested in each test step) can be written into the flash of the mainboard, and the heating without burning appliance can be marked for maintenance. During subsequent maintenance, the abnormal information recorded in the flash can be read to accurately locate the cause of the abnormality.
[0076] The present application provides a method for testing the mainboard and peripherals of a heating-not-burning appliance, which tests the mainboard and each circuit on the mainboard by temperature, resistance and heating current, and determines whether the motor and light display are normal by detecting the circuit current. The test process does not require manual intervention, which improves the detection efficiency and improves the technical problems of the prior art in which manual observation is required to know the test results of related interactive peripherals, and there are easy omissions and low detection efficiency. Furthermore, when abnormal information is detected, the present application writes the abnormal information into the flash of the mainboard, and the abnormal information recorded in the flash can be read during subsequent maintenance to accurately locate the cause of the abnormality.
[0077] The above is an embodiment of a method for testing a mainboard and peripherals of a heat-not-burn appliance provided in the present application, and the following is an embodiment of a device for testing a mainboard and peripherals of a heat-not-burn appliance provided in the present application.
[0078] Please refer to Figure 2 , a test device for a mainboard and peripherals of a heating-not-burning appliance provided in an embodiment of the present application includes:
[0079] The first detection unit 210 is used to detect whether the temperature of the mainboard and the battery of the heating-not-burning device are normal when the fixture pulls up the test pin of the mainboard and receives the test instruction;
[0080] The second detection unit 220 is used to read the resistance value of the resistor in the fixture and determine whether the measurement circuit on the mainboard is normal according to the resistance value;
[0081] The third detection unit 230 is used to control the heating circuit on the mainboard to heat, determine whether the heating circuit is normal according to the size of the heating current, and end the heating after detecting the heating current;
[0082] The fourth detection unit 240 is used to turn on the light-emitting device and determine whether the light-emitting device is normal according to the output current of the power supply;
[0083] The fifth detection unit 250 is used to turn on the vibration device and determine whether the vibration device is normal according to the power output current;
[0084] The result generating unit 260 is used to generate a test result.
[0085] In the embodiment of the present application, after reading that the test pin of the mainboard is pulled high and detecting the test instruction triggered by the button, the first detection unit 210 detects whether the mainboard temperature and the battery temperature of the heating without burning device are within the preset temperature range, and whether the temperature difference between the mainboard temperature and the battery temperature is within the preset temperature difference range. If the mainboard temperature and the battery temperature are within the preset temperature range, and the temperature difference between the mainboard temperature and the battery temperature is within the preset temperature difference range, then the mainboard temperature and the battery temperature are determined to be normal; if any one of the mainboard temperature and the battery temperature exceeds the preset temperature range, or the temperature difference between the mainboard temperature and the battery temperature exceeds the preset temperature difference range, then the mainboard temperature and the battery temperature are determined to be abnormal. It should be noted that the preset temperature range can be determined when the heating without burning device is cooled to a normal temperature state; the preset temperature difference range can be determined by measuring the actual temperature difference between the battery temperature and the mainboard temperature of the heating without burning device when it is cooled to a normal temperature state. If the mainboard temperature and the battery temperature are abnormal at present, it may be that the current mainboard and the battery have not yet cooled to a normal temperature state. The mainboard temperature and the battery temperature can be tested again at a certain interval after the entire test process is completed.
[0086] The second detection unit 220 reads the resistance value of the resistor in the fixture, and specifically can obtain the resistance value through the measurement circuit on the main board, and then judges whether the measurement circuit on the main board is normal according to the resistance value. A large resistor is provided in the fixture to simulate the resistance of the heating element, read the resistance value of the large resistor in the fixture, and judge whether the read resistance value is within the preset resistance range. If so, it is determined that the measurement circuit on the main board can obtain the resistance value normally, and if not, it is determined that the measurement circuit on the main board is abnormal.
[0087] The third detection unit 230 controls the heating circuit on the mainboard to heat and detects the heating current, that is, the output current of the power supply. Since a large resistor is used in the fixture to simulate the resistance of the heating element, the heating current quickly tends to stabilize during heating, so there is no need to wait when detecting the heating current. After detecting the heating current, it is determined whether the heating current is within the preset heating current range. If so, the heating circuit is determined to be normal, and if not, the heating circuit is determined to be abnormal.
[0088] When the fourth detection unit 240 detects the light-emitting device, in one embodiment, the light-emitting devices can be turned on one by one, and the current power output current is detected each time a light-emitting device is turned on, and then the difference in the power output current of each light-emitting device before and after being turned on is calculated to obtain the consumption current of each light-emitting device; whether each light-emitting device is normal is judged according to the consumption current of each light-emitting device, and all light-emitting devices are turned off after all light-emitting devices are detected.
[0089] In another embodiment, the fourth detection unit 240 may also first turn on all the light-emitting devices to detect whether the current power supply output current is within a first preset current range. If the current power supply output current exceeds the first preset current range, it indicates that an abnormal light-emitting device exists. Then, the light-emitting devices are turned off one by one, and the current power supply output current is detected each time a light-emitting device is turned off. The difference in power supply output current of each light-emitting device before and after being turned off is calculated to obtain the current consumption of each light-emitting device. Whether each light-emitting device is normal is determined by the current consumption of each light-emitting device until all light-emitting devices are turned off.
[0090] It should be noted that when testing the light-emitting device, other peripherals are turned off, and the power output current obtained can be used for subsequent calculations after removing the current required by the motherboard chip itself. When testing the light-emitting device, the present application determines whether the light display of the light-emitting device is normal by detecting the circuit current, and does not require manual observation to determine whether the light display is normal, thereby avoiding the problem of missed detection due to manual observation and improving the detection efficiency.
[0091] In one embodiment, the fourth detection unit 240 can directly determine whether each light emitting device is normal by the current consumption of each light emitting device. Specifically, the fourth detection unit 240 is specifically used to determine whether the current consumption of the current light emitting device is within the second preset current range. If so, the current light emitting device is determined to be normal, and if not, the current light emitting device is determined to be abnormal.
[0092] In another embodiment, in addition to determining whether the light-emitting device can display normally, the fourth detection unit 240 can also determine whether the display brightness of all light-emitting devices is uniform. Specifically, the fourth detection unit 240 is specifically used to determine whether the current consumption of the current light-emitting device is within the second preset current range, and whether the current consumption difference between the current light-emitting device and other light-emitting devices is within the preset current difference range; if the current consumption of the current light-emitting device is within the second preset current range, and the current consumption difference between the current light-emitting device and other light-emitting devices is within the preset current difference range, then the current light-emitting device is determined to be normal; if the current consumption of the light-emitting device exceeds the second preset current range, or the current consumption difference between the current light-emitting device and other light-emitting devices exceeds the preset current difference range, then the current light-emitting device is determined to be abnormal.
[0093] In the embodiment of the present application, when it is determined that the consumption current of all light-emitting devices is within the second preset current range, and the consumption current difference between each light-emitting device and other light-emitting devices is within the preset current difference range, it means that all light-emitting devices can display normally and the display brightness of each light-emitting device is uniform. If it is determined that the consumption current of all light-emitting devices is within the second preset current range, but the consumption current difference between a certain light-emitting device and other light-emitting devices exceeds the preset current difference range, it means that each light-emitting device can display normally, but there is a problem of uneven display brightness.
[0094] As a further improvement, the parameter device also includes an adjustment unit 270 for adjusting the duty cycle of the output voltage corresponding to the light-emitting device when it is detected that the light-emitting device can display normally but the display brightness is uneven, so that the display brightness of each light-emitting device is uniform.
[0095] In one embodiment, the adjustment unit 270 can control all the light-emitting devices of a single heating-not-burning appliance to have uniform brightness according to the minimum current consumption of the single heating-not-burning appliance. Specifically, the adjustment unit 270 is specifically used to adjust the voltage output duty cycle corresponding to each light-emitting device according to the ratio of the minimum current consumption among all the light-emitting devices to the current consumption of each light-emitting device when the current consumption of each light-emitting device is within the second preset current range and the current consumption difference between the light-emitting devices exceeds the preset current difference range, so that the current consumption difference between the light-emitting devices is within the preset current difference range. Among them, the duty cycle of the output voltage corresponding to the minimum consumption current in the light-emitting device is 100%, and the duty cycle of the output voltage of the current light-emitting device is (minimum consumption current / current consumption current of the current light-emitting device)*100%. After calculating the duty cycle of the current light-emitting device, adjust the duty cycle of the PWM (pulse width modulation) signal that controls the current light-emitting device. After adjusting the duty cycle of the light-emitting device, you can perform another test. When it is tested that each light-emitting device displays normally and the display brightness is uniform, save the adjusted duty cycle of each light-emitting device, and use the adjusted duty cycle to control the light display of each light-emitting device in subsequent production.
[0096] In another embodiment, the adjustment unit 270 can control all the light-emitting devices of all the heating-not-burning appliances to have a uniform brightness. Specifically, the adjustment unit 270 is specifically used to adjust the voltage output duty cycle corresponding to each light-emitting device according to the ratio of the preset current to the consumption current of each light-emitting device when the consumption current of each light-emitting device is within the second preset current range, and the consumption current difference between the light-emitting devices exceeds the preset current difference range, so that the consumption current difference between the light-emitting devices is within the preset current difference range; wherein the preset current is the consumption current corresponding to the light-emitting device at the preset minimum brightness, and the preset minimum brightness is the minimum brightness acceptable in reality. Use the current corresponding to the acceptable minimum brightness as the preset current, and the duty cycle of the output voltage of the current light-emitting device is (preset current / current consumption current of the current light-emitting device)*100%. After calculating the duty cycle of the current light-emitting device, adjust the duty cycle of the PWM (pulse width modulation) signal that controls the current light-emitting device. After adjusting the duty cycle of the light-emitting device, you can perform another test. When it is tested that each light-emitting device displays normally and the display brightness is uniform, save the adjusted duty cycle of each light-emitting device, and use the adjusted duty cycle to control the light display of each light-emitting device in subsequent production.
[0097] When testing the vibration device, the fifth detection unit 250 turns on the vibration device, and at this time, other peripherals (such as the light-emitting device) are turned off, detects the current power output current, and then determines whether the vibration device is normal according to the current power output current. When determining whether the vibration device is normal according to the power output current, it is necessary to subtract the current required by the motherboard chip from the power output current to obtain the consumption current of the vibration device, and then determine whether the consumption current of the vibration device is within the third preset current range to determine whether the current vibration device is normal.
[0098] After completing all the above test steps, the result generating unit 260 generates a test result.
[0099] As a further improvement, the device further comprises:
[0100] The prompt and storage unit 280 is used to report an error through a light display, sound or vibration when the test result is a test failure, and store the tested abnormal information in the memory of the mainboard. The present application takes into account that the existing test method records the abnormal situation through manual methods such as labels when it is detected, which is easy to confuse or miss. In order to improve this problem, the present application reports an error through a light display, sound or vibration when the test result is a test failure, that is, when a certain component has an abnormality, and stores the tested abnormal information in the memory of the mainboard. Specifically, the abnormal information (that is, a circuit or a peripheral abnormality tested in each test step) can be written into the flash of the mainboard, and the heating without burning appliance can be marked for maintenance. During subsequent maintenance, the recorded abnormal information in the flash can be read to accurately locate the cause of the abnormality.
[0101] The present application provides a device for testing the mainboard and peripherals of a heating-not-burning appliance, which tests the mainboard and the circuits thereon by means of temperature, resistance and heating current, and determines whether the motor and the light display are normal by detecting the circuit current. The test process does not require manual intervention, thereby improving the detection efficiency and improving the technical problems of the prior art in which manual observation is required to know the test results of interactive peripherals, which is prone to missed detection and low detection efficiency. Furthermore, when the test device detects abnormal information, the abnormal information is written into the flash of the mainboard, and the abnormal information recorded in the flash can be read during subsequent maintenance to accurately locate the cause of the abnormality.
[0102] Please refer to Figure 3 , the embodiment of the present application further provides an electronic device, the device includes a processor 310 and a memory 320;
[0103] The memory 320 is used to store program codes and transmit the program codes to the processor 310;
[0104] The processor 310 is used to execute the method for testing the mainboard and peripherals of the heating without burning appliance in the aforementioned method embodiment according to the instructions in the program code.
[0105] The embodiment of the present application also provides a computer-readable storage medium, which is used to store program codes. When the program codes are executed by a processor, the testing method of the mainboard and peripherals of the heating non-combustion appliance in the aforementioned method embodiment is implemented.
[0106] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0107] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0108] It should be understood that in this application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0109] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0110] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0111] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0112] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a number of instructions for executing all or part of the steps of the method described in each embodiment of the present application through a computer device (which can be a personal computer, server, or network device, etc.). The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (full name in English: Read-Only Memory, English abbreviation: ROM), random access memory (full name in English: Random Access Memory, English abbreviation: RAM), disk or optical disk and other media that can store program codes.
[0113] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for testing a mainboard and peripherals of a heat-not-burn device, characterized in that: include: When it is detected that the fixture pulls up the test pin of the mainboard and receives the test instruction, it detects whether the mainboard temperature and battery temperature of the heating-not-burning device are normal; Read the resistance value of the resistor in the fixture, and determine whether the measurement circuit on the mainboard is normal according to the resistance value; Controlling the heating circuit on the mainboard to heat, judging whether the heating circuit is normal according to the size of the heating current, and ending the heating after detecting the heating current; Turning on the light-emitting device and judging whether the light-emitting device is normal according to the output current of the power supply; Turning on the vibration device and judging whether the vibration device is normal according to the power supply output current; Generate test results.
2. The method for testing the motherboard and peripherals of a heat-not-burn appliance according to claim 1, characterized in that: The detecting whether the mainboard temperature and the battery temperature of the heating without burning device are normal includes: Detect whether the mainboard temperature and the battery temperature of the heat-not-burn appliance are within a preset temperature range, and whether the temperature difference between the mainboard temperature and the battery temperature is within a preset temperature difference range.
3. The method for testing the motherboard and peripherals of a heat-not-burn appliance according to claim 1, characterized in that: The step of starting the light emitting device and judging whether the light emitting device is normal according to the output current of the power supply includes: Turning on the light-emitting devices one by one, calculating the difference in power supply output current of each light-emitting device before and after being turned on, and obtaining the consumption current of each light-emitting device; Determine whether each of the light-emitting devices is normal by the current consumption of each of the light-emitting devices, and turn off all of the light-emitting devices after all of the light-emitting devices have been detected; Or, turning on all light-emitting devices to detect whether the current power supply output current is within a first preset current range; Turning off the light-emitting devices one by one, calculating the difference in power supply output current of each light-emitting device before and after being turned off, and obtaining the current consumption of each light-emitting device; Whether each of the light emitting devices is normal is judged by the current consumption of each of the light emitting devices until all of the light emitting devices are turned off.
4. The method for testing the mainboard and peripherals of a heating-not-burning device according to claim 3, characterized in that: The determining whether each of the light emitting devices is normal by the current consumption of each of the light emitting devices comprises: Determine whether the current consumption of the current light emitting device is within a second preset current range, and whether the current consumption difference between the current light emitting device and other light emitting devices is within a preset current difference range; If the current consumption of the current light-emitting device is within the second preset current range, and the current consumption difference between the current light-emitting device and other light-emitting devices is within the preset current difference range, then the current light-emitting device is determined to be normal; If the current consumption of the current light emitting device exceeds the second preset current range, or the current consumption difference between the current light emitting device and other light emitting devices exceeds the preset current difference range, the current light emitting device is determined to be abnormal.
5. The method for testing the mainboard and peripherals of a heat-not-burn appliance according to claim 4, characterized in that: The method further comprises: When the consumption current of each of the light-emitting devices is within a second preset current range, and the consumption current difference between the light-emitting devices exceeds the preset current difference range, adjusting the voltage output duty cycle corresponding to each of the light-emitting devices according to the minimum consumption current of all the light-emitting devices or the ratio of the preset current to the consumption current of each of the light-emitting devices, so that the consumption current difference between the light-emitting devices is within the preset current difference range; The preset current is the current consumption corresponding to the preset minimum brightness of the light emitting device.
6. The method for testing the motherboard and peripherals of a heat-not-burn appliance according to claim 1, characterized in that: The method further comprises: When the test result is that the test fails, an error is reported through a light display, sound or vibration, and the tested abnormal information is stored in the memory of the mainboard.
7. A test device for a mainboard and peripherals of a heat-not-burn appliance, characterized in that: include: The first detection unit is used to detect whether the temperature of the mainboard and the battery of the heating-not-burning device are normal when the fixture pulls up the test pin of the mainboard and receives the test instruction; A second detection unit is used to read the resistance value of the resistor in the fixture, and judge whether the measurement circuit on the mainboard is normal according to the resistance value; A third detection unit is used to control the heating circuit on the mainboard to heat, determine whether the heating circuit is normal according to the size of the heating current, and end the heating after detecting the heating current; A fourth detection unit, used to turn on the light-emitting device and determine whether the light-emitting device is normal according to the output current of the power supply; A fifth detection unit, used to turn on the vibration device and determine whether the vibration device is normal according to the power output current; The result generating unit is used to generate the test result.
8. The device for testing the mainboard and peripherals of a heating-not-burning appliance according to claim 7, characterized in that: The fourth detection unit is specifically used for: Turning on the light-emitting devices one by one, calculating the difference in power supply output current of each light-emitting device before and after being turned on, and obtaining the consumption current of each light-emitting device; Determine whether each of the light-emitting devices is normal by the current consumption of each of the light-emitting devices, and turn off all of the light-emitting devices after all of the light-emitting devices have been detected; Or, turning on all light-emitting devices to detect whether the current power supply output current is within a first preset current range; Turning off the light-emitting devices one by one, calculating the difference in power supply output current of each light-emitting device before and after being turned off, and obtaining the current consumption of each light-emitting device; Whether each of the light emitting devices is normal is judged by the current consumption of each of the light emitting devices until all of the light emitting devices are turned off.
9. An electronic device, characterized in that: The device comprises a processor and a memory; The memory is used to store program codes and transmit the program codes to the processor; The processor is used to execute the method for testing the mainboard and peripherals of the heating non-burning appliance according to any one of claims 1-6 according to the instructions in the program code.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store program codes, and when the program codes are executed by a processor, the method for testing a mainboard and peripherals of a heating-not-burning appliance according to any one of claims 1 to 6 is implemented.
Citation Information
Cited By
Self-checking method of control panel, heating non-combustion appliance and storage medium
CN120490764A
