Equipment detection method and device, equipment, storage medium and program product

By configuring multiple serial ports in the test equipment to connect with the aerosol generation device, obtaining and analyzing the test data, the problem of heating omission in the detection of the aerosol generation device is solved, and the accuracy of the detection is improved.

CN119867399APending Publication Date: 2025-04-25SHENZHEN GEEKVAPE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411984716.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-28
Publication Date
2025-04-25

AI Technical Summary

Technical Problem

During the large-scale production process of aerosol generation equipment, there are omissions in heating detection, resulting in a decrease in the accuracy of equipment detection.

Method used

By configuring multiple serial ports in the test device, connecting to different aerosol generation devices, obtaining the test data uploaded by the serial port, and determining whether the device performs the next heating process based on these data.

Benefits of technology

The heating process of each aerosol generation device is implemented independently, avoiding the occurrence of heating omissions and improving the accuracy of equipment detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119867399A_ABST
    Figure CN119867399A_ABST
Patent Text Reader

Abstract

The invention is suitable for the technical field of equipment detection, and provides an equipment detection method and device, equipment, a storage medium and a program product, and the method comprises the steps: obtaining connection states corresponding to a plurality of serial ports, i being a positive integer; under the condition that the ith serial port is in the connection success state, obtaining test data uploaded by the ith serial port; and determining whether the aerosol generating equipment executes the (n + 1) th heating process or not based on the test data. The plurality of serial ports are configured to be connected with different aerosol generating devices, and the heating conditions of the aerosol generating devices are mastered by reading the test data uploaded by the serial ports, so that the heating process of each aerosol generating device is independently executed, the phenomenon of heating omission can be avoided, and the accuracy of device detection can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of equipment detection technology, and in particular, relates to equipment detection methods, devices, equipment, storage media and program products. Background Art

[0002] With the development of technology, the application of aerosol generating equipment has become increasingly widespread. When in use, a built-in power supply provides electrical energy, and the aerosol generating matrix is ​​heated and atomized through a heating system, thereby generating atomized aerosol.

[0003] In the related art, before an aerosol generating device leaves the factory, it is necessary to perform a heating test on the aerosol generating device according to a specified number of heating times, and the device can only leave the factory after passing the heating test.

[0004] However, when the product output is large, heating detection may be missed, which reduces the accuracy of equipment detection. Summary of the invention

[0005] The embodiments of the present application provide a device detection method, apparatus, equipment, storage medium and program product. By setting multiple serial ports in the test equipment to connect with different aerosol generating devices, the test data of the aerosol generating device is determined based on the serial port, and different aerosol generating devices can independently perform heating tests, thereby improving the accuracy of equipment testing.

[0006] In a first aspect, an embodiment of the present application provides a device detection method, the method is applied to a test device, the test device is configured with multiple serial ports, the method comprising:

[0007] Obtaining connection states corresponding to the plurality of serial ports, respectively, wherein the i-th serial port has established a communication connection with the aerosol generating device, and i is a positive integer;

[0008] When the i-th serial port is in a connection success state, obtaining test data uploaded by the i-th serial port, wherein the connection success state is used to indicate that the i-th serial port is successfully connected to the aerosol generating device, and the test data is used to indicate a heating condition corresponding to the aerosol generating device during the n-th heating process, where n is a positive integer;

[0009] Determining whether the aerosol generating device performs an (n+1)th heating process based on the test data.

[0010] Optionally, determining whether the aerosol generating device performs the (n+1)th heating process based on the test data comprises:

[0011] When the number of heating times corresponding to the test data reaches a preset number threshold, determining that the aerosol generating device ends the heating process; or,

[0012] When the number of heating times corresponding to the test data does not reach the preset number threshold, it is determined that the aerosol generating device performs the (n+1)th heating process.

[0013] Optionally, after determining that the aerosol generating device ends the heating process, the method further includes:

[0014] A first character is sent to the i-th serial port, where the first character is used to indicate the end of a heating process corresponding to the aerosol generating device.

[0015] Optionally, after determining that the aerosol generating device performs the (n+1)th heating process, the method further includes:

[0016] A second character is sent to the ith serial port, where the second character is used to instruct to perform the (n+1)th heating process on the aerosol generating device.

[0017] Optionally, the test device includes a first display area and a second display area, the first display area is used to display the number of heating cycles corresponding to the aerosol generating device connected to the serial port, and the second display area is used to display the heating progress corresponding to the aerosol generating device connected to the serial port during the current heating process.

[0018] Optionally, the multiple serial ports include a first serial port and a second serial port, wherein the first serial port is connected to a first device, and the second serial port is connected to a second device;

[0019] The method further comprises:

[0020] When the heating progresses corresponding to the first device and the second device are the same, the first progress values ​​corresponding to the first device and the second device are displayed in the second display area, and the first serial port identifier and the second serial port identifier are marked at the designated positions of the first progress values, wherein the first serial port identifier corresponds to the first serial port, and the second serial port identifier corresponds to the second serial port.

[0021] In a second aspect, an embodiment of the present application provides a device detection apparatus, including:

[0022] An acquisition module, used for acquiring connection states corresponding to a plurality of serial ports, wherein the i-th serial port has established a communication connection with the aerosol generating device, and i is a positive integer;

[0023] The acquisition module is further used to acquire the test data uploaded by the i-th serial port when the i-th serial port is in a connection success state, wherein the connection success state is used to indicate that the i-th serial port is successfully connected to the aerosol generating device, and the test data is used to indicate the heating condition corresponding to the aerosol generating device in the n-th heating process, where n is a positive integer;

[0024] A determination module is used to determine whether the aerosol generating device performs an (n+1)th heating process based on the test data.

[0025] In a third aspect, an embodiment of the present application provides a computer device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the device detection method described in any one of the first aspects above is implemented.

[0026] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the device detection method described in any one of the first aspects is implemented.

[0027] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product is executed on a computer device, the computer device executes the device detection method described in any one of the above-mentioned first aspects.

[0028] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here.

[0029] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:

[0030] Multiple serial ports are configured in the test device, and the connection status corresponding to the multiple serial ports is obtained, wherein the serial port is used to establish a communication connection with the aerosol generating device. Taking one of the serial ports as an example, when the serial port is successfully connected to the aerosol generating device, the test data corresponding to the heating status uploaded by the serial port is obtained, and whether the aerosol generating device performs the next heating process is determined according to the test data. That is to say, by configuring multiple serial ports to connect with different aerosol generating devices, the heating status of the aerosol generating device is mastered by reading the test data uploaded by the serial port, so that the heating process of each aerosol generating device is executed independently, which can not only avoid the phenomenon of heating omission, but also improve the accuracy of equipment detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to more clearly illustrate the technical solutions in the embodiments of the present application, 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 any creative work.

[0032] Figure 1 is a flow chart of a device detection method provided by an embodiment of the present application;

[0033] Figure 2 is a hardware structure diagram of a detection device provided in an embodiment of the present application;

[0034] Figure 3 is a flow chart of a device detection method provided by an embodiment of the present application;

[0035] Figure 4 It is a structural schematic diagram of a device detection device provided in an embodiment of the present application;

[0036] Figure 5 It is a schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0037] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0038] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0039] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0040] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0041] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0042] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0043] The device detection method provided in the embodiment of the present application is described in detail. For illustration, please refer to Figure 1 , which shows a flow chart of a device detection method provided by an exemplary embodiment of the present application, the method includes the following steps 110 to 130.

[0044] Step 110, obtaining connection states corresponding to the plurality of serial ports respectively.

[0045] The test device is configured with multiple serial ports, and the i-th serial port establishes a communication connection with the aerosol generating device, where i is a positive integer.

[0046] Schematically, the serial port refers to a channel for data transmission between the chip and the external device. Therefore, when the aerosol generating device is connected to the serial port configured on the test device, data transmission can be achieved between the test device and the aerosol generating device through the serial port.

[0047] Schematically, with respect to the multiple serial ports configured on the test device, the data transmission process corresponding to each serial port is executed independently. For example, when device 1 is connected to serial port 1 of the test device, and when device 2 is connected to serial port 2 of the test device, device 1 sends data a to the test device through the serial port, and the test device sends data b to device 2 through serial port 2, the transmission process of data a and data b are two independent processes in the test device, that is, the test device can send data b while receiving data a, and the two complement each other and interfere with each other.

[0048] Optionally, the multiple serial ports configured on the test device are all connected to different aerosol generating devices; or, among the multiple serial ports configured on the test device, at least one serial port is connected to the aerosol generating device.

[0049] In some embodiments, when the test device receives messages sent from different serial ports, the test device stores them separately according to the message sending sources. For example, the test device receives data 1 sent by serial port A and data 2 sent by serial port B. In the process of storing data 1 and data 2, data 1 is stored in the storage space corresponding to serial port A, and data 2 is stored in the storage space corresponding to serial port B. Therefore, when the test device sends data to the serial port, it also reads the data from the storage space corresponding to the serial port and sends it to the serial port.

[0050] Optionally, data between different serial ports may be interoperable; or data between different serial ports may not be interoperable, which is not limited.

[0051] Step 120, when the i-th serial port is in a successfully connected state, obtain the test data uploaded by the i-th serial port.

[0052] The connection success status is used to indicate that the i-th serial port is successfully connected to the aerosol generating device, and the test data is used to indicate the corresponding heating condition of the aerosol generating device during the n-th heating process, where n is a positive integer.

[0053] Schematically, the heating process refers to the aerosol generating device heating the heating component when it is fully charged until the battery is in an undervoltage state, which serves as a heating process.

[0054] Schematically, taking the successful connection between the i-th serial port and the aerosol generating device as an example, when the aerosol generating device completes the n-th heating process and generates test data, the aerosol generating device feeds the test data back to the test device through the i-th serial port. After receiving the test data, the test device stores it in the storage space corresponding to the i-th serial port.

[0055] The storage space of the i-th serial port of the test device stores test data generated by multiple heating processes corresponding to the aerosol generating device.

[0056] Step 130 : determining whether the aerosol generating device performs the (n+1)th heating process based on the test data.

[0057] Schematically, for the aerosol generating device, the test device is pre-set with a corresponding heating times threshold. When the test device receives the test data, the test data is stored in the storage space of the i-th serial port. If the number of test data stored in the storage space reaches the heating times threshold, it means that the heating process of the aerosol generating device is completed and the next heating process is not performed. If the number of test data stored in the storage space does not reach the heating times threshold, it means that the heating process of the aerosol generating device has not been completed and the next heating process needs to be performed. That is, when the heating times corresponding to the test data reaches the preset times threshold, it is determined that the aerosol generating device ends the heating process; or, when the heating times corresponding to the test data does not reach the preset times threshold, it is determined that the aerosol generating device performs the n+1th heating process.

[0058] In some embodiments, a first character is sent to the ith serial port, where the first character is used to indicate the end of a heating process corresponding to the aerosol generating device.

[0059] In an illustrative manner, if the number of test data stored in the storage space reaches the heating times threshold, it indicates that the heating process of the aerosol generating device is completed. At this time, the test device sends a first character to the i-th serial port to instruct the aerosol generating device not to perform the heating process any more. When the aerosol generating device reads the first character through the i-th serial port, the heating is terminated.

[0060] In some embodiments, a second character is sent to the ith serial port, where the second character is used to indicate that an n+1th heating process is to be performed on the aerosol generating device.

[0061] Indicatively, if the number of test data stored in the storage space does not reach the heating times threshold, it means that the aerosol generating device needs to perform the next heating process. At this time, the test device sends a second character to the i-th serial port to indicate that the aerosol generating device needs to perform the next heating process. When the aerosol generating device reads the second character through the i-th serial port, it starts the n+1-th heating process.

[0062] In some embodiments, the test device includes a first display area and a second display area, the first display area is used to display the number of heating cycles corresponding to the aerosol generating device connected to the serial port, and the second display area is used to display the heating progress corresponding to the aerosol generating device connected to the serial port during the current heating process.

[0063] In this embodiment, the test device includes a first display area and a second display area, wherein the first display area is used to display in real time the number of heating cycles of the aerosol generating device connected to the serial port. For example, port 1 is connected to device 1, and port 2 is connected to device 2. If device 1 performs the third heating process and device 2 performs the fourth heating process, then "01:1-3" is first displayed in the first display area, and then "02:2-4" is displayed, wherein "01" and "02" represent port numbers, "1-3" represents that device 1 performs the third heating process, and "2-4" represents that device 2 performs the fourth heating process.

[0064] In this embodiment, the second display area is used to display the heating progress of the aerosol generating device. For example, if the heating time is set to 100 seconds and the aerosol generating device is connected to port 1, the heating time of the aerosol generating device is 50 seconds, then "1, 0.5" is displayed in the second display area, where "1" represents port 1, and 0.5 represents the heating progress of 50% (50 / 100=0.5).

[0065] In addition, the test device also includes a third display area, which is used to indicate whether the aerosol generating device passes the heating test. If the aerosol generating device passes the heating test, the third display area displays green; if the aerosol generating device fails the heating test, the third display area displays red.

[0066] In some embodiments, the multiple serial ports include a first serial port and a second serial port, wherein the first serial port is connected to a first device and the second serial port is connected to a second device; when the heating progress corresponding to the first device and the second device are the same, the first progress values ​​corresponding to the first device and the second device are displayed in the second display area, and the first serial port identifier and the second serial port identifier are marked at the designated positions of the first progress values, wherein the first serial port identifier corresponds to the first serial port and the second serial port identifier corresponds to the second serial port.

[0067] In this embodiment, if the first serial port and the second serial port are respectively connected to the first device and the second device, and the heating progress of the first device and the second device is the same, the first progress value is displayed in the second display area, and the first serial port identifier corresponding to the first serial port and the second serial port identifier corresponding to the second serial port are marked at the designated position of the first progress value, thereby realizing the data integration display function.

[0068] The device detection method provided in the embodiment of the present application configures multiple serial ports in the test device, and obtains the connection status corresponding to the multiple serial ports, wherein the serial port is used to establish a communication connection with the aerosol generating device. Taking one of the serial ports as an example, when the serial port is successfully connected to the aerosol generating device, the test data corresponding to the heating status uploaded by the serial port is obtained, and whether the aerosol generating device performs the next heating process is determined according to the test data. That is to say, by configuring multiple serial ports to connect with different aerosol generating devices, the heating status of the aerosol generating device is mastered by reading the test data uploaded by the serial port, so that the heating process of each aerosol generating device is executed independently, which can not only avoid the phenomenon of heating omission, but also improve the accuracy of device detection.

[0069] For illustration, please refer to Figure 2 , which shows a hardware structure diagram of a test device provided by an exemplary embodiment of the present application, such as Figure 2 As shown, the test equipment includes a single chip microcomputer 210, an LED display screen 211, a digital tube 212, a two-color LED indicator light 213, a key input module 214 and a serial port expansion chip 215.

[0070] The single-chip microcomputer 210 is also called a microcontroller unit (MCU), and all test data are stored in the flash of the single-chip microcomputer 210 .

[0071] Key input module 214: key input functions, including the start-up function of the test device, the selection function of the serial port, and the abnormality clearing function.

[0072] The LED display screen 211 displays the current heating cycle times of the channels corresponding to different serial ports, the digital tube 212 displays the percentage of the current cycle state of the aerosol generating device, and the two-color LED indicator light 213 displays whether the test is passed or not, with red light representing failure and green representing success.

[0073] The serial port expansion chip 215 can control four ports at the same time, corresponding to four serial ports (ie, serial ports). Therefore, two serial port expansion chips 215 can control eight ports at the same time.

[0074] The device detection method provided in the embodiment of the present application configures multiple serial ports in the test device, and obtains the connection status corresponding to the multiple serial ports, wherein the serial port is used to establish a communication connection with the aerosol generating device. Taking one of the serial ports as an example, when the serial port is successfully connected to the aerosol generating device, the test data corresponding to the heating status uploaded by the serial port is obtained, and whether the aerosol generating device performs the next heating process is determined according to the test data. That is to say, by configuring multiple serial ports to connect with different aerosol generating devices, the heating status of the aerosol generating device is mastered by reading the test data uploaded by the serial port, so that the heating process of each aerosol generating device is executed independently, which can not only avoid the phenomenon of heating omission, but also improve the accuracy of device detection.

[0075] For illustration, please refer to Figure 3 , which shows a flow chart of a device detection method provided by an exemplary embodiment of the present application, such as Figure 3 As shown, the method includes the following steps.

[0076] Step 310, configure port information.

[0077] The program configures the number of serial ports (ie, number of channels) supported by the test device.

[0078] It is determined whether the serial port is connected to the aerosol generating device by specifying a protocol, such as a handshake protocol or a left-turn-right-turn protocol.

[0079] If the serial port is successfully connected to the aerosol generating device, the test data is read and saved in real time.

[0080] When the number of test data is greater than the set number, step 350 is executed, otherwise step 320 is executed.

[0081] Step 320, performing a heating process.

[0082] A heating process is performed on the aerosol generating device.

[0083] During the heating process, the negative temperature coefficient (NTC) temperature corresponding to the battery and the hardware circuit board in the aerosol generating device is read. If the NTC temperature is between 3 degrees Celsius and 30 degrees Celsius, or the heating time of the aerosol generating device is greater than 240 seconds, it means that the heating of the aerosol generating device is completed. At this time, the aerosol generating device is in a cooling state, and step 340 is executed. On the contrary, if the NTC temperature is greater than 40 degrees Celsius, or the operating time is less than 240 seconds, it is considered that the aerosol generating device is in the heating process or has not yet cooled down, and step 330 is executed.

[0084] Step 330, remind to cool down for five minutes.

[0085] Since the aerosol generating device has not yet cooled down, a prompt is displayed, indicating that the aerosol generating device needs to be cooled down for five minutes.

[0086] Step 340, MCU counter +1.

[0087] If cooling is completed, the single chip microcomputer counter counts +1, indicating that a heating process is completed. The counting result of the counter is used to indicate the number of heating times of the aerosol generating device.

[0088] Step 350, end.

[0089] The device detection method provided in the embodiment of the present application configures multiple serial ports in the test device, and obtains the connection status corresponding to the multiple serial ports, wherein the serial port is used to establish a communication connection with the aerosol generating device. Taking one of the serial ports as an example, when the serial port is successfully connected to the aerosol generating device, the test data corresponding to the heating status uploaded by the serial port is obtained, and whether the aerosol generating device performs the next heating process is determined according to the test data. That is to say, by configuring multiple serial ports to connect with different aerosol generating devices, the heating status of the aerosol generating device is mastered by reading the test data uploaded by the serial port, so that the heating process of each aerosol generating device is executed independently, which can not only avoid the phenomenon of heating omission, but also improve the accuracy of device detection.

[0090] For illustration, please refer to Figure 4 , which shows a schematic diagram of the structure of a device detection device provided by an exemplary embodiment of the present application, wherein the device detection device may specifically include the following modules:

[0091] The acquisition module 410 is used to acquire the connection status corresponding to the plurality of serial ports, wherein the i-th serial port has established a communication connection with the aerosol generating device, and i is a positive integer;

[0092] The acquisition module 410 is further configured to acquire test data uploaded by the i-th serial port when the i-th serial port is in a connection success state, wherein the connection success state is used to indicate that the i-th serial port is successfully connected to the aerosol generating device, and the test data is used to indicate a heating condition corresponding to the aerosol generating device during the n-th heating process, where n is a positive integer;

[0093] The determination module 420 is configured to determine whether the aerosol generating device performs an (n+1)th heating process based on the test data.

[0094] Optionally, the determination module 420 is further used to determine that the aerosol generating device ends the heating process when the number of heating times corresponding to the test data reaches a preset number threshold; or to determine that the aerosol generating device performs the n+1th heating process when the number of heating times corresponding to the test data does not reach the preset number threshold.

[0095] Optionally, the determination module 420 is further configured to send a first character to the i-th serial port, where the first character is used to indicate the end of the heating process corresponding to the aerosol generating device.

[0096] Optionally, the determination module 420 is further configured to send a second character to the i-th serial port, where the second character is used to indicate that the (n+1)-th heating process is to be performed on the aerosol generating device.

[0097] Optionally, the test device includes a first display area and a second display area, the first display area is used to display the number of heating cycles corresponding to the aerosol generating device connected to the serial port, and the second display area is used to display the heating progress corresponding to the aerosol generating device connected to the serial port during the current heating process.

[0098] Optionally, the multiple serial ports include a first serial port and a second serial port, wherein the first serial port is connected to a first device, and the second serial port is connected to a second device;

[0099] The determination module 420 is also used to display the first progress values ​​corresponding to the first device and the second device in the second display area when the heating progresses corresponding to the first device and the second device are the same, and to mark the first serial port identifier and the second serial port identifier at the designated position of the first progress value, wherein the first serial port identifier corresponds to the first serial port, and the second serial port identifier corresponds to the second serial port.

[0100] The device detection device provided in the embodiment of the present application configures multiple serial ports in the test device, and obtains the connection status corresponding to the multiple serial ports, wherein the serial port is used to establish a communication connection with the aerosol generating device. Taking one of the serial ports as an example, when the serial port is successfully connected to the aerosol generating device, the test data corresponding to the heating status uploaded by the serial port is obtained, and whether the aerosol generating device performs the next heating process is determined according to the test data. That is to say, by configuring multiple serial ports to connect with different aerosol generating devices, the heating status of the aerosol generating device is mastered by reading the test data uploaded by the serial port, so that the heating process of each aerosol generating device is executed independently, which can not only avoid the phenomenon of heating omission, but also improve the accuracy of device detection.

[0101] See also Figure 5 , which shows a schematic diagram of the structure of a computer device provided in an embodiment of the present application. Figure 5 As shown, the computer device 1000 of this embodiment includes: at least one processor 1010 ( Figure 5 Only one is shown in the figure) a processor, a memory 1020, and a computer program 1021 stored in the memory 1020 and executable on at least one processor 1010, and when the processor 1010 executes the computer program 1021, the steps in the above-mentioned device detection method embodiment are implemented.

[0102] The computer device 1000 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The terminal device may include, but is not limited to, a processor 1010 and a memory 1020. Those skilled in the art will appreciate that Figure 5 The computer device 1000 is merely an example and does not constitute a limitation on the computer device 1000 . The computer device 1000 may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the computer device 1000 may also include input and output devices, network access devices, etc.

[0103] The processor 1010 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0104] In some embodiments, the memory 1020 may be an internal storage unit of the computer device 1000, such as a hard disk or memory of the computer device 1000. In other embodiments, the memory 1020 may also be an external storage device of the computer device 1000, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the computer device 1000. Further, the memory 1020 may also include both an internal storage unit of the computer device 1000 and an external storage device. The memory 1020 is used to store an operating system, an application program, a boot loader, data, and other programs, such as program codes of a computer program. The memory 1020 may also be used to temporarily store data that has been output or is to be output.

[0105] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0106] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0107] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0108] In the embodiments provided in the present application, it should be understood that the disclosed devices / computer equipment and methods can be implemented in other ways. For example, the device / computer equipment embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and 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.

[0109] 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.

[0110] 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.

[0111] If the integrated module / 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 present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electric carrier signals and telecommunication signals.

[0112] The present application implements all or part of the processes in the above-mentioned embodiment method, and may also be completed through a computer program product. When the computer program product runs on a computer device, the computer device can implement the steps in the above-mentioned method embodiments when executing.

[0113] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application is described in detail with reference to the above embodiments, a person skilled in the art should understand that the technical solutions described in the above embodiments can still be modified, or some of the technical features can be replaced by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application.

Claims

1. A device detection method, characterized in that: The method is applied to a test device, wherein the test device is configured with a plurality of serial ports, and the method comprises: Obtaining connection states corresponding to the plurality of serial ports, respectively, wherein the i-th serial port has established a communication connection with the aerosol generating device, and i is a positive integer; When the i-th serial port is in a connection success state, obtaining test data uploaded by the i-th serial port, wherein the connection success state is used to indicate that the i-th serial port is successfully connected to the aerosol generating device, and the test data is used to indicate a heating condition corresponding to the aerosol generating device during the n-th heating process, where n is a positive integer; Determining whether the aerosol generating device performs an (n+1)th heating process based on the test data.

2. The method according to claim 1, characterized in that The step of determining whether the aerosol generating device performs an (n+1)th heating process based on the test data comprises: When the number of heating times corresponding to the test data reaches a preset number threshold, determining that the aerosol generating device ends the heating process; or, When the number of heating times corresponding to the test data does not reach the preset number threshold, it is determined that the aerosol generating device performs the (n+1)th heating process.

3. The method according to claim 2, characterized in that After determining that the aerosol generating device ends the heating process, the method further includes: A first character is sent to the i-th serial port, where the first character is used to indicate the end of a heating process corresponding to the aerosol generating device.

4. The method according to claim 2, characterized in that: After determining that the aerosol generating device performs the n+1th heating process, the method further includes: A second character is sent to the ith serial port, where the second character is used to instruct to perform the (n+1)th heating process on the aerosol generating device.

5. The method according to any one of claims 1 to 4, characterized in that: The test device includes a first display area and a second display area, the first display area is used to display the number of heating cycles corresponding to the aerosol generating device connected to the serial port, and the second display area is used to display the heating progress corresponding to the aerosol generating device connected to the serial port during the current heating process.

6. The method according to claim 5, characterized in that The plurality of serial ports include a first serial port and a second serial port, wherein the first serial port is connected to a first device, and the second serial port is connected to a second device; The method further comprises: When the heating progress corresponding to the first device and the second device are the same, the first progress values ​​corresponding to the first device and the second device are displayed in the second display area, and the first serial port identifier and the second serial port identifier are marked at the designated positions of the first progress values, wherein the first serial port identifier corresponds to the first serial port, and the second serial port identifier corresponds to the second serial port.

7. A device detection device, characterized in that: The device comprises: An acquisition module, used for acquiring connection states corresponding to a plurality of serial ports, wherein the i-th serial port has established a communication connection with the aerosol generating device, and i is a positive integer; The acquisition module is further used to acquire the test data uploaded by the i-th serial port when the i-th serial port is in a connection success state, wherein the connection success state is used to indicate that the i-th serial port is successfully connected to the aerosol generating device, and the test data is used to indicate the heating condition corresponding to the aerosol generating device in the n-th heating process, where n is a positive integer; A determination module is used to determine whether the aerosol generating device performs an (n+1)th heating process based on the test data.

8. A computer device, characterized in that: The computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the device detection method according to any one of claims 1 to 6 is implemented.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the device detection method according to any one of claims 1 to 6 is implemented.

10. A computer program product, characterized in that The invention comprises a computer program, and when the computer program is executed, the device detection method according to any one of claims 1 to 6 is executed.