Lung function test system, lung function test method and fault detection method

By adopting the distributed architecture of the upper and lower computer control systems in the lung function test system, processing the control logic of data packets and functional units, the complexity and stability of the control logic in the existing technology is solved, and the stability of the system is improved Sex and user experience.

CN119232720APending Publication Date: 2024-12-31SHENZHEN MEIHAO CHUANGYI MEDICAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310785114.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-29
Publication Date
2024-12-31

AI Technical Summary

Technical Problem

The control logic of existing lung function testing equipment is complex, which leads to instability of the system and poor user experience. Especially when multi-device modules are linked to control, complex interface interaction and device control tasks need to be handled.

Method used

Design a lung function test system, adopting upper computer and lower computer control systems, and process data packets sent by upper computer and functional units through the main core unit, reducing the control logic complexity of upper computers, and adopting a distributed architecture to combine upper computers and functions. Unit connection, the main core unit processes the control logic of some functional units, and generates data packet headers through preset rules to improve anti-interference ability.

Benefits of technology

It improves system stability and user experience, reduces the complexity of the control logic development of the host computer, and achieves a more stable system operation and a better user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119232720A_ABST
    Figure CN119232720A_ABST
Patent Text Reader

Abstract

The invention discloses a lung function test system, a lung function test method and a fault detection method, and relates to the field of medical instruments, the lung function test system comprises an upper computer and a lower computer control system; the lower computer control system comprises a main core unit and a functional unit, and the functional unit comprises a power management unit, a reversing valve control unit, an environment measurement unit, and one or more of a flow measurement unit, a gas concentration measurement unit, an aerial fog excitation unit, a volume tracing unit and a pulse oscillation unit; the upper computer is electrically connected with the main core unit; the main core unit is electrically connected with each functional unit; and the main core unit is used for processing a data packet sent by the upper computer or the functional unit. Compared with the prior art, the lung function test system has the advantages that the main core unit is introduced into the lower computer control system, and the main core unit is used for processing the data packets sent by the upper computer and the functional units, so that the stability and the use experience of the system are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of medical devices, and in particular to a pulmonary function testing system, a pulmonary function testing method, and a fault detection method. Background Art

[0002] Pulmonary function tests are becoming increasingly common in clinical medical testing and are an important medical examination tool for respiratory diseases. Currently, mainstream pulmonary function tests include lung ventilation testing, lung diffusion testing, impulse oscillation (IOS) testing, plethysmography, and aerosol provocation system (APS) testing. Each test requires a specific device module.

[0003] When conducting tests on existing pulmonary function testing equipment, depending on the specific examination item, the device modules required for each examination item must be connected to a host computer system, which then controls and completes the subsequent test. Because pulmonary function testing involves complex interface interactions, and some examination items often require the coordinated control of multiple device modules, the host computer's control logic is very complex, requiring both interaction tasks and control tasks for each device module. This ultimately leads to complex control logic development on the host computer, resulting in overall system instability and a poor user experience. Summary of the Invention

[0004] The present application aims to solve at least one of the technical problems existing in the prior art. To this end, the present application proposes a pulmonary function test system, a pulmonary function test method and a fault detection method, wherein the pulmonary function test system includes a host computer and a slave control system, and by utilizing the main core unit in the slave system to process data packets sent by the host computer and various functional units, the control logic that needs to be processed by the host computer is reduced, the development complexity of the control logic on the host computer is alleviated, thereby improving the system stability and user experience.

[0005] In order to solve the above technical problems, the present application provides a pulmonary function testing system, comprising: Upper and lower computer control systems; The lower computer control system may include a main core unit and a functional unit, wherein the functional unit may include a power management unit, a reversing valve control unit and an environmental measurement unit, as well as one or more of a flow measurement unit, a gas concentration measurement unit, an aerosol excitation unit, a plethysmography unit and a pulse oscillation unit; The host computer is electrically connected to the main core unit; The main core unit is electrically connected to each of the functional units; The main core unit is used to process data packets sent by the host computer and the functional unit.

[0006] In some possible implementations, the main core unit may include a first control chip and a second control chip, wherein the first control chip is used to process drive control, communication interaction and power logic control tasks, and the second control chip is used to process sensor data acquisition tasks and data preprocessing tasks.

[0007] In some possible implementations, the header of the data packet is generated using a preset rule, and the main core unit determines whether to parse and process the received data packet based on the preset rule.

[0008] In some possible implementations, the data packet may include identification information, where the identification information is used to indicate the data packet type and unit identification, and the main core unit is specifically used to process the data packet according to the identification information.

[0009] In a second aspect, in order to solve the above technical problems, the present application provides a pulmonary function testing method, which is applied to the pulmonary function testing system as described in the first aspect and any possible implementation of the first aspect, and the pulmonary function testing method includes: Determine a current running item, where the current running item is used to indicate a function to be implemented; Creating a program execution queue corresponding to the currently running item, wherein the program execution queue includes a plurality of programs to be executed sorted in an execution order, and the programs to be executed are used to instruct the host computer or functional unit to perform related operations; The programs to be executed are run in the order of priority in the program execution queue.

[0010] In some possible implementations, before running the to-be-executed programs according to the priority order in the program execution queue, the pulmonary function testing method may further include: Obtain the gas path status information sent by the host computer; The on / off status of each gas circuit switch is controlled according to the gas circuit status information.

[0011] In some possible implementations, the step of running the programs to be executed according to the priority order in the program execution queue includes: Determine the current program to be executed according to the priority order in the program execution queue; Determine the on / off status of each gas circuit switch according to the currently executed program or the currently running item, and perform control; Run the currently executed program.

[0012] In some possible implementations, after the step of running the to-be-executed programs according to the priority order in the program execution queue, the pulmonary function testing method may further include: The currently executed program is set to a locked state for a preset time length, and the next program to be executed is executed until all the programs to be executed in the program execution queue are completed. The executed program in the locked state cannot be executed.

[0013] In some possible implementations, the currently running item may include a standby item, an online upgrade item, a lung ventilation measurement item, a lung diffusion measurement item, a pulse oscillation measurement item, a plethysmography measurement item, or an aerosol stimulation measurement item.

[0014] In a third aspect, in order to solve the above technical problems, the present application provides a fault detection method, which is applied to the pulmonary function test system as described in the first aspect and any possible implementation of the first aspect, and the fault detection method includes: Monitoring fault information, where the fault information may include operating status information, power supply system information, and gas circuit system information. A detection sensor is provided on the gas circuit of the functional unit, and the gas circuit system information may include detection information reported by the detection sensor; Determine whether the equipment is operating normally based on the fault information; When the operating status is determined to be abnormal, an abnormal information record is generated and reported to the host computer.

[0015] A pulmonary function testing system according to an embodiment of the present application has at least the following beneficial effects: The pulmonary function test system in the present application includes a host computer and a slave computer control system, and the slave computer control system may include a main core unit and multiple functional units. The host computer is electrically connected to the main core unit, and the main core unit is electrically connected to each of the functional units. The main core unit can process data packets sent by the host computer and the functional units. That is, in the pulmonary function test system, the host computer and each functional unit are connected through the main core unit to form a distributed architecture, thereby realizing the relevant pulmonary function test requirements. Since the main core unit can process the control logic of a part of the functional units, the control logic that needs to be processed by the host computer is reduced, and the development complexity of the control logic on the host computer is reduced, thereby improving the system stability and user experience.

[0016] Other features and advantages of the present application will be set forth in the following description, and in part will be apparent from the description, or may be learned by practicing the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which: Figure 1 1 is a schematic diagram of an embodiment of a pulmonary function testing system provided in an embodiment of the present application; Figure 2 1 is a schematic diagram of an embodiment of a lung function testing method provided in an embodiment of the present application; Figure 3 This is a schematic diagram of an embodiment of a fault detection method provided in an embodiment of the present application. Implementation Method

[0018] The following describes in detail embodiments of the present application. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and are not to be construed as limiting the present application.

[0019] In the description of this application, if there is a description of first, second, etc., it is only for the purpose of distinguishing technical features, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.

[0020] In the description of this application, it should be understood that descriptions involving orientation, such as the orientation or positional relationship indicated by up, down, etc., are based on the orientation or positional relationship shown in the accompanying drawings, and are only for the convenience of describing this application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on this application.

[0021] In the description of this application, it should be noted that, unless otherwise clearly defined, terms such as setting, installing, and connecting should be understood in a broad sense, and technical personnel in the relevant technical field can reasonably determine the specific meaning of the above terms in this application based on the specific content of the technical solution.

[0022] The technical solution of the present application will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the embodiments described below are only part of the embodiments of the present application, not all of the embodiments.

[0023] See also Figure 1 , an embodiment of the present application provides a pulmonary function testing system, comprising: Host computer 110 and slave computer control system 120; The lower computer control system 120 may include a main core unit 121 and a functional unit 122. The functional unit 122 may include a power management unit, a reversing valve control unit, and an environmental measurement unit, as well as one or more of a flow measurement unit, a gas concentration measurement unit, an aerosol excitation unit, a plethysmography unit, and a pulse oscillation unit. The host computer 110 is electrically connected to the main core unit 121; The main core unit 121 is electrically connected to each of the functional units 122; The main core unit 121 is used to process data packets sent by the host computer 110 and the functional unit 122 .

[0024] In this embodiment, the host computer 110 can be a general-purpose computer, which can be connected to the slave control system 120 via a data cable. The host computer 110 can run an interactive interface related to the test system, and the user can issue instructions, view and print test results, etc. through the host computer 110.

[0025] The lower computer control system 120 may include multiple functional units 122 and a main core unit 121. The functional units 122 may include a power management unit, a reversing valve control unit and an environmental measurement unit, as well as one or more of a flow measurement unit, a gas concentration measurement unit, an aerosol excitation unit, a volume treadmill unit and a pulse oscillation unit. The multiple functional units 122 and the main core unit 121 may be assembled in a splicing manner to facilitate maintenance, replacement and free matching to achieve corresponding test functions.

[0026] The main core unit 121 and each functional unit 122 each have a corresponding control module, which can be a microcontroller unit (MCU), a field programmable gate array (FPGA) chip, or other types of control modules or control chips. The control module on the main core unit 121 can be referred to as a master control module. This master control module can directly communicate and interact with the host computer 110 or the control modules on each functional unit 122, processing data packets sent by the host computer 110 or the functional unit 122, such as sending corresponding control instructions to the functional unit 122 based on instructions issued by the host computer 110, and obtaining data uploaded by the functional unit 122 and sending it to the host computer 110. To achieve specific functions, each functional unit 122 also has multiple peripheral devices, such as a power management unit that can include a power box, a power board, and a power switch, and a flow measurement unit that can include a flow sensor, an air circuit, and a ventilation handle.

[0027] A pulmonary function testing system according to an embodiment of the present application has at least the following beneficial effects: The pulmonary function test system in the present application includes a host computer 110 and a slave computer control system 120, and the slave computer control system 120 may include a main core unit 121 and multiple functional units 122. The host computer 110 is electrically connected to the main core unit 121, and the main core unit 121 is electrically connected to each of the functional units 122. The main core unit 121 can process data packets sent by the host computer 110 and the functional units 122. That is, in the pulmonary function test system, the host computer 110 and each functional unit 122 are connected through the main core unit 121 to form a distributed architecture, thereby realizing the relevant pulmonary function test requirements. Since the main core unit 121 can process the control logic of a part of the functional unit 122, the control logic that needs to be processed by the host computer 110 is reduced, and the development complexity of the control logic on the host computer 110 is reduced, thereby improving the system stability and user experience.

[0028] In some possible implementations, the main core unit 121 may include a first control chip and a second control chip, wherein the first control chip is used to process drive control, communication interaction and power logic control tasks, and the second control chip is used to process sensor data acquisition tasks and data preprocessing tasks.

[0029] In this embodiment, in view of the large number of functional tasks that the main control module needs to handle, and for the sake of the stability of the entire system operation and the processing capacity of a single module, the control module of the main core unit 121 can adopt a combination design of a main chip and an auxiliary chip to implement the corresponding functions. Among them, the main core unit 121 can include a first control chip and a second control chip. The first control chip is the main chip, which can be used to handle the drive control under the functional instructions of the host computer 110, the communication interaction between the host computer 110 and each functional unit 122, and the power logic control tasks of the entire test system. The second control chip is the auxiliary chip, which can be used to handle sensor data acquisition tasks and data preprocessing tasks. The second control chip can also handle the related control of the air pump in the slave computer.

[0030] In some possible implementations, the power management unit is used to directly supply power to the aerosol excitation unit and the plethysmography unit, and to indirectly supply power to the reversing valve control unit, the environmental measurement unit, the flow measurement unit, the gas concentration measurement unit, and the pulse oscillation unit through the main core unit 121.

[0031] In this embodiment, in actual applications, the aerosol excitation unit and the plethysmography unit can realize relatively independent functions, and in order to adapt to the market demand for combined sales, the aerosol excitation unit and the plethysmography unit can be designed as independent power supplies with built-in AC / DC modules, which are directly powered by the power management unit, while the reversing valve control unit, the environmental measurement unit, the flow measurement unit, the gas concentration measurement unit and the pulse oscillation unit are indirectly powered by the power management unit via the main core unit 121.

[0032] In some possible implementations, the header of the data packet is generated using a preset rule, and the main core unit 121 determines whether to parse and process the received data packet based on the preset rule.

[0033] In this embodiment, a data packet may include a header and a body. To improve the anti-interference capability of a data packet, the header of the data packet may be generated using a preset rule. For example, the header may be divided into two parts, wherein the first and second parts may each contain multiple high- and low-level interleaved signals, and the first and second parts may use the same design or a reverse design, thereby increasing the complexity of the header and improving the anti-interference capability. For example, taking a 2-byte header as an example, it may be designed as 0101 010110101010, where the first 8 bits of the header are low-level first and high-level before, and the last 8 bits are high-level first and low-level after. This interleaved design can improve the anti-interference capability of the data packet. When the main core unit 121 receives a new data packet, it may parse the header of the new data packet to determine whether it is consistent with a preset legal header or complies with the preset rule. If it is consistent or complies with the preset rule, the new data packet is parsed and subsequently processed; otherwise, no subsequent operations are performed. If there is an interference signal, which is generally messy and irregular, this design can greatly reduce the probability of generating false packet header data after it is superimposed on the original signal.

[0034] In some possible implementations, the data packet may include identification information, where the identification information is used to indicate the data packet type and unit identification. The main core unit 121 is specifically used to process the data packet according to the identification information.

[0035] In this embodiment, the data packet may also include identification information, which may indicate the data packet type and unit identification. Data packet types may be divided into two categories: online upgrade type and functional type. Data packets of the online upgrade type are used in the online upgrade program, while data packets of the functional type indicate data interaction with the functional unit 122. The unit identification is an identity identifier uniquely corresponding to each functional unit 122 and the main core unit 121. When parsing a data packet, the main core unit 121 may process the data carried in the data packet body in accordance with the data packet type and unit identification. For example, if the data packet type is an online upgrade type and the unit identification is a reversing valve control unit, the main core unit 121 may distribute the online upgrade data carried in the packet body to the reversing valve unit after completing the parsing of the data packet to perform an online software upgrade on the reversing valve unit.

[0036] In addition, it should be noted that in the above design, all data packets for online upgrades of the functional units 122 and the main core unit 121 belong to the data packet type of the online upgrade class and have the same data packet type. Through this design, all functional units 122 can use the same online upgrade program, reducing development and subsequent maintenance costs.

[0037] Refer to the following Figure 2 In order to solve the above technical problems, the present application also provides a pulmonary function test method, which is applied to Figure 1 In the pulmonary function testing system described in the illustrated embodiment and any possible implementation, the pulmonary function testing method includes: S210: Determine a current running item, where the current running item is used to indicate a function to be implemented.

[0038] In this embodiment, the pulmonary function testing method can be specifically executed on the main core unit 121. The currently executed item can be a function option provided to the user in the interactive interface of the host computer 110, which can be categorized into three types: standby, online upgrade, and function test. After the user selects the corresponding function on the host computer 110, the host computer 110 issues the corresponding execution item instruction to the main core unit 121. The main core unit 121 can receive and determine the currently executed item and execute subsequent operations.

[0039] S220: Create a program execution queue corresponding to the currently running item. The program execution queue includes a plurality of programs to be executed sorted in execution order. The programs to be executed are used to instruct a host computer or a functional unit to execute related operations.

[0040] In this embodiment, the programs to be executed may include a communication program, a flow measurement unit program, a pulse oscillation unit program, a power management unit program, an environmental measurement unit program, a fault monitoring program, an online upgrade program, a reversing valve management unit program, and a gas concentration measurement unit program. Each of the programs to be executed is a program module that can implement a certain logical function and is used to instruct the host computer 110 or the functional unit 122 to perform related operations. For example, the communication program can be used to implement data forwarding and interaction between the host computer 110 and each functional unit 122, the environmental measurement unit program is used to instruct the environmental sensor to detect and report the detected environmental data, and the reversing valve management unit program is used to control the operating status of the reversing valve.

[0041] To implement a corresponding function or test item, one or more pending programs often need to be called, and the execution order of the pending programs in different running items may vary. To ensure stable operation of the running items, this embodiment can pre-set a correspondence between each running item and a program execution queue. This program execution queue is used to indicate the execution order of multiple pending programs. Priority identifiers can be used to mark the order in which each pending program is called. Therefore, after determining the current running item, the program execution queue corresponding to the current running item can be determined from this correspondence.

[0042] For example, in a specific case, the program execution queue for the pulse oscillation measurement item can be set as follows: priority 0 - communication program, priority 1 - flow measurement unit program, priority 2 - pulse oscillation unit program, priority 3 - power management unit program, priority 4 - environmental measurement unit program, and priority 5 - fault monitoring program. In this program execution queue, each program to be executed has its own priority, and the priority determines the execution order of the programs to be executed. The smaller the value, the higher the priority, and the program with the higher priority is executed first.

[0043] S230: Run the program to be executed according to the priority order in the program execution queue.

[0044] In this embodiment, after determining the program execution queue corresponding to the currently running item, the pending programs indicated in the program execution queue can be called and executed in sequence until all pending programs in the queue are executed. It should also be noted that during the execution of the program execution queue corresponding to the currently running item, if the host computer 110 receives an instruction to switch the running item, the execution of the program execution queue will also be terminated.

[0045] A lung function test method according to an embodiment of the present application has at least the following beneficial effects: The pulmonary function testing method in the present application can specifically run on the main core unit 121. The main core unit 121 processes the control logic of a portion of the functional unit 122, reducing the control logic that needs to be processed by the host computer 110, and alleviating the development complexity of the control logic on the host computer 110, thereby improving system stability and user experience.

[0046] In some possible implementations, before running the program to be executed according to the priority order in the program execution queue, the pulmonary function testing method may also include: obtaining the gas path status information sent by the host computer 110; and controlling the opening and closing status of each gas path switch according to the gas path status information.

[0047] In this embodiment, the pulmonary function testing system includes multiple air circuits. Different operating items correspond to different air circuit states and their changes. Air circuit states can be categorized as pulmonary ventilation state, pulmonary diffusion state, volumetric state, excitation state, and pulse oscillation state. Before executing the pending program for the current operating item in the program execution queue, air circuit state information sent by the host computer 110 can be obtained. This air circuit state information can indicate the open state of each air circuit. The main core unit 121 can then determine the open and closed states of the air circuit switches on each air circuit, generate control parameters, and send them to the control board of the air circuit switches to control the air circuit switches.

[0048] In some possible implementations, the step of running the program to be executed according to the priority order in the program execution queue includes: determining the current program to be executed according to the priority order in the program execution queue; determining the opening and closing status of each gas circuit switch according to the current program to be executed or the current running item, and controlling it; and running the current program to be executed.

[0049] In this embodiment, different operating items can be pre-set, or the corresponding relationship between different programs to be executed and the status of each gas circuit switch can be pre-set. During the execution of the current operating item, the current open and closed status of each gas circuit switch can be determined based on the current operating item or program to be executed, thereby performing gas circuit control. The specific control of the gas circuit switches is referred to the above content and will not be repeated here.

[0050] In some possible implementations, after the step of running the programs to be executed in the order of priority in the program execution queue, the pulmonary function testing method may further include: setting the currently executed program to a locked state for a preset time length, and executing the next program to be executed until all the programs to be executed in the program execution queue are completed, wherein the execution program in the locked state is in an unexecutable state.

[0051] In this embodiment, to stabilize the execution process of the program execution queue, after each pending program is completed, the executed pending program can be set to a locked state for a preset period of time, and the next pending program can be executed until all pending programs in the program execution queue have completed running. The program in the locked state will not be executed repeatedly, and the locked program will be automatically unlocked after the preset period of time expires. The preset period of time can be set by the user, for example, 100ms.

[0052] In some possible implementations, the currently running item may include a standby item, an online upgrade item, a lung ventilation measurement item, a lung diffusion measurement item, a pulse oscillation measurement item, a plethysmography measurement item, or an aerosol stimulation measurement item.

[0053] In this embodiment, the currently running items may include a standby item, an online upgrade item, a lung ventilation measurement item, a lung diffusion measurement item, a pulse oscillation measurement item, a plethysmography measurement item, or an aerosol stimulation measurement item.

[0054] Refer to the following Figure 3 In order to solve the above technical problems, the present application also provides a fault detection method, which is applied to Figure 1 In the pulmonary function test system described in the illustrated embodiment and any possible implementation, the fault detection method includes: S310, monitoring fault information, the fault information including operation status information, power supply system information and gas path system information, wherein a detection sensor is provided on the gas path of the functional unit, and the gas path system information may include detection information reported by the detection sensor.

[0055] In this embodiment, the fault detection method can be specifically executed on the main core unit 121. The main core unit 121 can monitor fault information in real time during the operation of the pulmonary function test system. This fault information can include operating status information, power supply system information, and gas circuit system information of each functional unit 122. Specifically, monitoring can include real-time acquisition and updating of the operating status value of each functional unit 122, real-time scanning of the analog signal of the status feedback of each power supply circuit, and real-time scanning of the current gas circuit status. The gas circuit of each functional unit 122 is provided with a detection sensor, and the gas circuit system information can include detection information reported by the detection sensor.

[0056] S320: Determine whether the device is operating normally based on the fault information.

[0057] In this embodiment, judging whether the operating status of the device is normal according to the fault information mainly includes judging whether the operating status of the device is normal according to the operating status information, the power supply system information and the gas system information respectively.

[0058] Specifically, after obtaining the operating status value of each functional unit 122, the operating status value can be input into the fault monitoring program, and the operating status value can be used to determine whether each functional unit 122 is normal. The operating status value can be designed to take two values, representing normal and abnormal states respectively. It can also be designed in a more complex form, where each value can refer to a different abnormality type. For example, the values ​​0x00 and 0x01 can be used to represent normal and abnormal states respectively, while 0x0001 can be used to indicate a communication abnormality of the functional unit 122.

[0059] After obtaining the analog signal of each power supply circuit's status feedback, it is possible to determine whether there is a power supply failure based on the level status. Specifically, an abnormality is a high level, and a normal level is a low level. For example, each functional unit 122 has an independent power supply circuit, and the hardware provides an analog signal of the feedback status. By monitoring this signal, it can be determined whether the power supply of the functional unit 122 is normal.

[0060] The pulmonary function test system has sensors installed on each branch of the airway. When the corresponding airway is open, the sensor will output a feedback signal. The airway status can be determined based on this feedback signal. By comparing the feedback signal with the airway status set for the current state, it can be confirmed whether there is an abnormality. For example, during the stage of inhaling standard gas in the diffusion test, the program sets the airway between the ventilation handle and the gas analysis module to be blocked. If the flow sensor on this airway detects a gas flow value, it can be determined that there is an airway failure.

[0061] S330: When it is determined that the operating state is abnormal, an abnormal information record is generated and reported to a host computer.

[0062] In this embodiment, when it is determined that the operating state of the device is abnormal, the detected fault information can be packaged and processed to generate an abnormal information record, and reported to the upper computer 110.

[0063] A fault detection method according to an embodiment of the present application has at least the following beneficial effects: During the operation of the pulmonary function test system, fault information can be monitored in real time, and the operating status of the equipment can be monitored based on the fault information. When the operating status is abnormal, an abnormal information record is generated and reported to the upper computer 110, avoiding inaccurate detection due to faults.

[0064] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better embodiment. Based on this understanding, the technical solution of this application, or the part that contributes to the existing technology, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of this application.

[0065] Obviously, the embodiments described above are only some of the embodiments of the present application, rather than all of the embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application has been described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions described in the aforementioned specific embodiments, or to make equivalent replacements for some of the technical features therein. Any equivalent structure made using the contents of the present application specification and the accompanying drawings, directly or indirectly used in other related technical fields, is also within the scope of patent protection of the present application.

Claims

1. A pulmonary function testing system, characterized in that: include: Upper and lower computer control systems; The lower computer control system includes a main core unit and a functional unit, wherein the functional unit includes a power management unit, a reversing valve control unit and an environmental measurement unit, and one or more of a flow measurement unit, a gas concentration measurement unit, an aerosol excitation unit, a plethysmography unit and a pulse oscillation unit; The host computer is electrically connected to the main core unit; The main core unit is electrically connected to each of the functional units; The main core unit is used to process data packets sent by the host computer and the functional units.

2. The pulmonary function testing system according to claim 1, characterized in that: The main core unit includes a first control chip and a second control chip. The first control chip is used to process drive control, communication interaction and power logic control tasks, and the second control chip is used to process sensor data acquisition tasks and data preprocessing tasks.

3. The pulmonary function testing system according to claim 1, characterized in that: The packet header of the data packet is generated using a preset rule, and the main core unit determines whether to parse and process the received data packet based on the preset rule.

4. The pulmonary function testing system according to any one of claims 1 to 3, characterized in that: The data packet includes identification information, and the identification information is used to indicate the data packet type and unit identification. The main core unit is specifically used to process the data packet according to the identification information.

5. A lung function test method, characterized in that: The pulmonary function test method is applied to the pulmonary function test system according to any one of claims 1 to 4, and the pulmonary function test method comprises: Determine a current running item, where the current running item is used to indicate a function to be implemented; Creating a program execution queue corresponding to the currently running item, wherein the program execution queue includes a plurality of programs to be executed sorted in an execution order, and the programs to be executed are used to instruct the host computer or the functional unit to perform related operations; The programs to be executed are run according to the priority order in the program execution queue.

6. The lung function test method according to claim 5, characterized in that: Before running the to-be-executed programs according to the priority order in the program execution queue, the pulmonary function test method further includes: Obtaining gas path status information sent by the host computer; The on / off status of each gas circuit switch is controlled according to the gas circuit status information.

7. The lung function test method according to claim 5, characterized in that: The step of running the programs to be executed according to the priority order in the program execution queue includes: Determine the current program to be executed according to the priority order in the program execution queue; Determine the on / off state of each gas circuit switch according to the currently executed program or the currently running item, and perform control; Run the currently executed program.

8. The lung function test method according to claim 5 or 6, characterized in that: After the step of running the programs to be executed according to the priority order in the program execution queue, the pulmonary function test method further includes: The current executing program is set to a locked state for a preset time, and the next program to be executed is executed until all the programs to be executed in the program execution queue are completed, wherein the executing program in the locked state is in an unexecutable state.

9. The lung function test method according to any one of claims 5 to 7, characterized in that: The currently running items include a standby item, an online upgrade item, a lung ventilation measurement item, a lung diffusion measurement item, a pulse oscillation measurement item, a plethysmography measurement item or an aerosol stimulation measurement item.

10. A fault detection method, characterized in that: The fault detection method is applied to the pulmonary function test system according to any one of claims 1 to 4, and the fault detection method comprises: Monitoring fault information, wherein the fault information includes operation status information, power supply system information and gas circuit system information, wherein a detection sensor is provided on the gas circuit of the functional unit, and the gas circuit system information includes detection information reported by the detection sensor; Determine whether the equipment is operating normally according to the fault information; When it is determined that the operating state is abnormal, an abnormal information record is generated and reported to the host computer.