CN113010750A - Query method and device for sample analyzer, sample analyzer and medium - Google Patents

Query method and device for sample analyzer, sample analyzer and medium Download PDF

Info

Publication number
CN113010750A
CN113010750A CN201911330741.5A CN201911330741A CN113010750A CN 113010750 A CN113010750 A CN 113010750A CN 201911330741 A CN201911330741 A CN 201911330741A CN 113010750 A CN113010750 A CN 113010750A
Authority
CN
China
Prior art keywords
accessory
query
state
host
device accessory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911330741.5A
Other languages
Chinese (zh)
Other versions
CN113010750B (en
Inventor
杨文传
皮暑利
尹剀
汪开一
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Dymind Biotechnology Co Ltd
Original Assignee
Shenzhen Dymind Biotechnology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Dymind Biotechnology Co Ltd filed Critical Shenzhen Dymind Biotechnology Co Ltd
Priority to CN201911330741.5A priority Critical patent/CN113010750B/en
Publication of CN113010750A publication Critical patent/CN113010750A/en
Application granted granted Critical
Publication of CN113010750B publication Critical patent/CN113010750B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/9038Presentation of query results
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Automatic Analysis And Handling Materials Therefor (AREA)

Abstract

The embodiment of the invention discloses a query method for a sample analyzer, which is based on a host computer of the sample analyzer comprising at least one device accessory, and comprises the following steps: receiving an accessory state query instruction, wherein the accessory state query instruction comprises identification information of at least one accessory to be queried; searching target state data corresponding to the identification information of the at least one device accessory to be inquired in a preset device accessory state database; wherein the device accessory status database includes identification information and corresponding status data for at least one device accessory of the sample analyzer. In addition, the embodiment of the invention also discloses a query device, equipment and a computer readable medium for the sample analyzer. By adopting the invention, the query efficiency of the state data of the equipment accessories can be improved.

Description

Query method and device for sample analyzer, sample analyzer and medium
Technical Field
The invention relates to the technical field of computers and medical equipment, in particular to a query method and a query device for a sample analyzer, the sample analyzer and a computer readable medium.
Background
The blood cell analyzer is an instrument widely applied to clinical examination in hospitals, and a sample analysis system and a data processing system of the blood cell analyzer are respectively a host module and an IPU information processing system at an instrument end. In a blood cell analyzer, an IPU may need to query the status of each device component of a host module during data processing or other application scenarios. In general, the implementation process is as follows: under the condition that each service module in the IPU needs to inquire the state data of one or more device accessories, an inquiry instruction is sent to an MCU (Micro-processor Unit) in the host module through the communication connection between the IPU and the host, then the MCU requests the return of the state data to each device accessory, and the host returns the inquired state data to the IPU, thereby finishing the inquiry process.
However, in the above-mentioned query of status data of the equipment and accessories, a plurality of commands or data forwarding operations are required in the data query process, and the query path is too long. Moreover, under the condition that a plurality of service modules need to inquire the state data of the equipment accessories at the same time or in the similar time, each service module needs to inquire once, that is, in the process, each inquiry needs the MCU to initiate one inquiry to the corresponding equipment accessories, and the inquiry of the data has redundancy.
Therefore, in the prior art, the query efficiency of the state data of the device accessory in the sample analyzer is insufficient due to the redundancy existing in the query path process and the multiple queries, and the high-frequency query is difficult to satisfy.
Disclosure of Invention
Based on the above, in order to solve the technical problems that in the conventional query method for the state data of the sample analyzer accessories, the query efficiency is insufficient due to the fact that the query path process and redundancy exists among multiple queries, and the high-frequency query cannot be met, the invention provides a query method, a query device, computer equipment and a computer readable medium for the sample analyzer.
A query method for a sample analyzer, the method based on a host computer of the sample analyzer including at least one device accessory, comprising:
receiving an accessory state query instruction, wherein the accessory state query instruction comprises identification information of at least one accessory to be queried;
searching target state data corresponding to the identification information of the at least one device accessory to be inquired in a preset device accessory state database;
wherein the device accessory status database includes identification information and corresponding status data for at least one device accessory of the sample analyzer.
Wherein the method further comprises:
creating a query thread, acquiring state data of at least one device accessory included in the sample analyzer through a microprocessor module of the host based on the query thread, and updating the device accessory state database according to the queried state data.
The number of the query threads is multiple, and different query threads correspond to different device accessories respectively;
the obtaining, by a microprocessor module of the host, status data of at least one device accessory included in the sample analyzer based on the query thread, further comprising:
and periodically acquiring the state data of the device accessory corresponding to each inquiry thread through the micro-processing module of the host on the basis of each inquiry thread.
Wherein the method further comprises:
classifying at least one device accessory included in the analyzer, wherein one device accessory category corresponds to one or more device accessories, and one or more device accessories under the same device accessory category correspond to the same query thread and the same query cycle;
the periodically obtaining, by the microprocessor module of the host, status data of the device accessory corresponding to each query thread based on each query thread, further includes:
and aiming at each inquiry thread, periodically acquiring the state data of one or more equipment accessories under the equipment accessory category corresponding to the inquiry thread through a micro-processing module of the host according to the inquiry period corresponding to the inquiry thread.
Wherein the method further comprises:
creating a persistence thread, and performing persistence processing on the device accessory state database to a hard disk storage area in the host based on the persistence thread.
Wherein the device accessory status database is stored in a memory area of the host;
the method further comprises the following steps:
and when the equipment and accessory state database stored in the memory area fails, deserializing data corresponding to the equipment and accessory state database stored in the hard disk storage area into the memory area.
The analyzer further comprises an information processing device in communication connection with the host;
before the receiver accessory state inquiry instruction, the method further comprises the following steps:
and receiving a device accessory state query instruction sent by the information processing equipment through communication connection between the host and the information processing equipment, wherein the device accessory state query instruction is generated by the information processing equipment.
An interrogation apparatus for a sample analyzer, the apparatus being based on a host computer of the sample analyzer including at least one instrument accessory, comprising:
the inquiry instruction receiving module is used for receiving an inquiry instruction of the accessory state, wherein the inquiry instruction of the accessory state comprises identification information of at least one accessory of a device to be inquired;
the data searching module is used for searching target state data corresponding to the identification information of at least the device accessory to be inquired in a preset device accessory state database;
wherein the device accessory status database includes identification information and corresponding status data for at least one device accessory of the analyzer.
A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of:
receiving an accessory state query instruction, wherein the accessory state query instruction comprises identification information of at least one accessory to be queried;
and searching target state data corresponding to the identification information of at least the device accessory to be inquired in a device accessory state database stored in a preset storage area.
A computer-readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of:
receiving an accessory state query instruction, wherein the accessory state query instruction comprises identification information of at least one accessory to be queried;
and searching target state data corresponding to the identification information of at least the device accessory to be inquired in a device accessory state database stored in a preset storage area.
The embodiment of the invention has the following beneficial effects:
after the query method and the query device for the sample analyzer, the sample analyzer and the computer readable medium are adopted, a device accessory state database for storing state data of all or part of device accessories needing to be queried is created; under the condition of receiving the state inquiry command of the equipment and accessory, according to the identification information of the equipment and accessory to be inquired contained in the command, searching the state data of the matched equipment and accessory in the equipment and accessory state database and returning, thereby realizing the inquiry of the state of the equipment and accessory. That is to say, in the query method and apparatus for a sample analyzer, the sample analyzer, and the computer readable medium, by constructing the device accessory state database corresponding to all or part of the device accessories in the host computer that need to be queried, data can be directly queried in the device accessory state database under the condition of querying the device accessory state, a complicated query process is not required, query efficiency of device accessory state query is improved, and query of device accessory state data can be adapted to a query requirement of a higher frequency.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Wherein:
FIG. 1 is a schematic flow diagram of a query method for a sample analyzer, under an embodiment;
FIG. 2 is a schematic diagram of the sample analyzer in one embodiment;
FIG. 3 is a schematic diagram of a data store in one embodiment;
FIG. 4 is a block diagram of an interrogation device for a sample analyzer, according to one embodiment;
FIG. 5 is a block diagram of an interrogation device for a sample analyzer, according to one embodiment;
FIG. 6 is a block diagram of a computer device that executes the above-described query method for a sample analyzer in one embodiment.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to solve the technical problems that in the conventional query method for state data of accessories in a sample analyzer, the query efficiency is insufficient due to redundancy existing in a query path process and multiple queries, and the high-frequency query cannot be satisfied, in the embodiment, a query method for the sample analyzer is particularly provided.
It should be noted that, in an embodiment, the above-described query method for a sample analyzer is implemented based on a host computer of the sample analyzer including at least one device accessory. The sample analyzer may be a medical test device such as a blood analyzer, for example, a sample analyzer device such as an immunoassay analyzer, a biochemical analyzer, a blood cell analyzer, or a blood coagulation analyzer. The sample analyzer includes a host computer, which is a computer device integrated on the sample analyzer, such as a single chip microcomputer or other computer device or system. The sample analyzer also comprises at least one device accessory which is connected with the host and is controlled by the host, wherein the device accessory is a component with each function in the sample analyzer and is used for realizing a specific function; illustratively, the device fitting may be an optical coupler, a motor, or a valve.
When a certain inspection sample analysis service needs to be completed by a sample analyzer or state data of an analyzer accessory is needed, the state of the analyzer accessory included in the sample analyzer needs to be determined, for example, whether an optical coupler is blocked, whether a motor is in a working state, the current number of steps of the motor, and the like are determined. In this case, the status data of the device accessory needs to be queried.
In one particular embodiment, as shown in FIG. 1, a method of interrogation for a sample analyzer is presented.
Referring to fig. 1, the above-described query method for a sample analyzer includes steps S102 to S104 shown in fig. 1:
step S102: and receiving an accessory state inquiry instruction, wherein the accessory state inquiry instruction comprises identification information of at least one accessory to be inquired.
When the state of the accessory needs to be queried, the host receives a query command of the state of the accessory. The device accessory status query command may be a command sent by another device connected to the host, or a command generated by a service in the host in a case where the device accessory status query is required.
For example, the device that sends the instruction to the host may be a device that connects the information processing device with the host. The information processing equipment is a part of a system corresponding to the analyzer and is used for receiving corresponding inspection analysis data sent by the host after corresponding inspection analysis tasks are completed, then carrying out data processing and displaying on the inspection analysis data, and the information processing equipment is in communication connection with the host through the communication module and can be communicated with the host. Under the condition that the equipment and accessories in the host machine are controlled to work in the information processing equipment or the running state of the equipment and accessories in the host machine needs to be known, a corresponding equipment and accessory state query instruction is automatically generated according to the equipment and accessories needing to be queried or generated according to user input, and is sent to the host machine. In a particular embodiment, the information processing device may be an IPU device.
As shown in fig. 2, a schematic diagram of the constitution of the sample analyzer 10 is given, in which the sample analyzer 10 includes a host 20 and an information processing apparatus 30.
The device accessory state query instruction includes identification information of at least one device accessory to be queried, where the identification information is used to indicate which device accessory the device accessory to be queried is specific, and for example, the identification information may be a number, a name, or an address of the device accessory.
Step S104: and searching target state data corresponding to the identification information of at least the device accessory to be inquired in a preset device accessory state database.
Generally, if the status of a device accessory needs to be queried, a Micro-controller Unit (MCU) module of a host needs to request status data from the corresponding device accessory. In this embodiment, in order to improve the query efficiency of the device accessory state data, the identification information of some or all device accessories included in the analyzer and the corresponding device accessory state data are obtained in advance/in real time/according to a certain period/according to an instruction, and a corresponding device accessory state database is constructed and the obtained state data is stored in the device accessory state database so as to be searched at any time. That is to say, in this embodiment, the query of the device accessory state data can be directly completed by reading the device accessory state data in the device accessory state database, and the device accessory state data does not need to be searched by the microprocessor module under the condition that the query is needed each time, so that the query efficiency of the device accessory state data is greatly improved.
Specifically, in one embodiment, the device accessory status database may be stored in a storage area in the host, for example, a memory area or a hard disk storage area in the host; alternatively, in other embodiments, the device accessory status database can also be stored in other external storage devices connected to the host or in a data server connected to the host.
The following description is made with the device accessory state database stored in the memory area of the host:
in the memory area of the host, a storage area is preset for storing a device component state database corresponding to the state data of each device component. After the device and accessory state query instruction is received, according to the identification information of the device and accessory to be queried included in the device and accessory state query instruction, state data of the device and accessory corresponding to the identification information is searched to serve as target state data, and the query of the device and accessory state is completed.
The data read-write speed of the memory area is faster than that of other storage areas or storage equipment, and the inquiry of the state of the equipment and accessories is realized by reading the state data of the equipment and accessories which are stored in the memory, so that the data can be acquired from other storage areas more quickly. Particularly, compared with the technical scheme that the micro-processing module is required to request the state data from the accessory in the related technical scheme, the method and the device for rapidly inquiring the state data of the accessory are realized.
And because the host computer and the information processing equipment are in communication connection, the state query instruction of the micro-processing equipment to the equipment accessories is responded through the communication connection, and after the query instruction is received, the state data of each equipment accessory and stored in the memory area of the host computer are directly read, so that the query process can be completed, and the query efficiency is greatly improved. Moreover, under the condition that the information processing equipment, the host computer or other equipment needs to inquire the state data of the equipment accessories contained in the analyzer, the state data does not need to be repeatedly requested to the equipment accessories through the micro-processing module for many times, repeated inquiry is avoided, the inquiry efficiency is further improved, the inquiry requirement of higher frequency can be further supported, and the method is suitable for more application scenes.
In a specific embodiment, a process of building a component part status database and a data updating process are described.
In the memory space of the host or the storage area of the state database of other device accessories, a data structure of the virtual host is constructed, which is used for storing and representing the running states of all the device accessories of the host, namely constructing a virtual state machine corresponding to the host, and establishing the state database of the device accessories on the basis of the virtual state machine.
The real-time requirement of data for the state data query of the equipment and accessories is high, so that the state data of the equipment and accessories in the equipment and accessory state database needs to be updated in time, for example, the state data in the equipment and accessory state database is updated once every 1ms, so as to ensure the timeliness and the accuracy of the data.
Specifically, in the process of updating the state data in the device accessory state database, the state data of the device accessory can be queried and collected by creating an independent query thread. Specifically, the query method for the sample analyzer further includes: creating a query thread, acquiring the state data of the at least one equipment accessory through a microprocessor module of the host based on the query thread, and updating the equipment accessory state database according to the queried state data.
Specifically, a query thread which is specially used for querying the state data of each device accessory is created, and the query thread is specially used for a task of querying the state data of the actuator accessory on the basis of a host. Moreover, because the state data of the device accessories needs to be updated in time, the query thread can be called according to the requirements; and the query of the state data of the accessory is realized through the query thread, so that the execution efficiency of the query task can be improved.
In the host, creating a query thread specially used for querying the state of the equipment accessory, querying the state data of the equipment accessory according to the specified time period requirement, and updating the state database of the equipment accessory according to the query result. The specified time period requirement refers to a query period determined according to the real-time requirement of the state of the equipment, for example, the state data of the equipment is updated according to the query period of 1ms, 1s or other duration. The specific query period can be set according to specific requirements.
The sample analyzer includes a plurality of sample analyzer assemblies that have different real-time requirements, such as a higher real-time requirement for motor status data than valve status data. In this embodiment, different polling periods may also be set for different appliance accessories. Specifically, all the equipment accessories are classified according to the real-time requirements on the state data of different equipment accessories, one or more equipment accessories in the same equipment accessory category correspond to the same query cycle, and when the state data is updated, the equipment accessories in the same equipment accessory category wake up the query thread to acquire and update the state data of the equipment accessories according to the same query cycle.
In the case that the widget is classified according to different real-time requirements, a plurality of query threads may be constructed, each query thread corresponds to a widget class, and the plurality of query threads may be included in the same process, for example, a query process. In the process of acquiring the state data of at least one device accessory through the microprocessor module of the host based on the query threads, the microprocessor module of the host periodically acquires the state data of one or more device accessories corresponding to the query threads respectively based on each query thread, and then updates the data in the device accessory state database according to the acquired state data.
In other words, for the equipment accessories in the same equipment accessory category with the same real-time requirement, the query of the state data of one or more equipment accessories in the equipment accessory category is realized based on the same query thread according to the query cycle corresponding to the query thread. The device accessories are classified according to the real-time requirement, and on the premise that the real-time requirement of updating state data is met, computer resources are saved to the greatest extent.
In another embodiment, the updating of the equipment and accessory state database may also be performed by monitoring the state of the equipment and accessory, and acquiring the state data of the equipment and accessory with the changed state to update the equipment and accessory state database when the state of the equipment and accessory is monitored to be changed, so that the real-time performance and the accuracy of the state data contained in the equipment and accessory state database are ensured to the highest degree, and the accuracy of the inquiry of the state of the equipment and accessory can be improved.
Although the device accessory state database corresponding to the virtual host is constructed in the memory area of the host, the query efficiency of the device accessory state query can be improved (and is higher than that of other storage areas), and the device accessory state can be rapidly queried; however, when a failure occurs or power is suddenly lost, data stored in the memory area is lost. In order to prevent the loss of the device component status data in the case of a failure, in this embodiment, the data contained in the device component status database in the memory area is mapped or backed up to the hard disk storage area of the host in real time.
Specifically, the query method for the sample analyzer further includes: creating a persistence thread, and performing persistence processing on the device accessory state database to a hard disk storage area in the host based on the persistence thread.
Persistence refers to the transition of data between a transient state and a persistent state, i.e., transient data (e.g., data in a memory region that cannot be permanently stored) is persisted as persistent data (e.g., persisted to a hard disk storage region or a designated database that can be permanently stored).
The state data stored in the device accessory state database is only stored in a memory area, belongs to instant data and cannot be permanently stored; if the data in the memory area has faults such as power failure, the state data stored in the state database of the device accessory in the memory area will be lost. In this embodiment, by creating a persistent thread in the host, data in the device accessory status database in the memory area can be backed up and updated in the hard disk storage area in the host in real time, so as to prevent the query of the device accessory status data from being able to continue in case of data loss in the memory area.
The hard disk storage area is a permanent storage area, and compared with a memory area, data cannot be lost under the condition of power failure; by persisting the data in the hard disk storage area, data loss of the data under the conditions of power failure and the like is avoided, and the stability of state data query of the device accessories is improved.
Under the condition that data in the equipment accessory state database in the memory area is backed up and updated in the hard disk storage area of the host computer through the persistence thread, if data in the memory area fails or is lost, the data in the hard disk storage area can be deserialized into the memory area, so that the continuous query of the equipment accessory state data can be continuously realized through the data in the memory area under the condition that the subsequent query of the state data of the equipment accessory is needed.
Specifically, the query method for the sample analyzer further includes: and when the equipment and accessory state database stored in the memory area fails, deserializing data corresponding to the equipment and accessory state database stored in the hard disk storage area to a preset storage area in the memory area.
Deserialization is the extraction of data from the data stored in the storage area and then reconstruction of the object from the state, descriptive information, structural information, etc. of the data. That is, the data object may be reconstructed by deserialization. In this embodiment, the device accessory state data in the memory area is stored in the hard disk storage area through the persistence processing, and then, if necessary, the data corresponding to the device accessory state data stored in the hard disk storage area is deserialized in the memory area to reconstruct the database, so that the device accessory state database can be reconstructed in the memory area.
The backup and reconstruction of the state database of the equipment fittings between the memory area and the hard disk storage space are realized through the persistence processing and the deserialization processing, the loss of the state data of the equipment fittings under the condition of data loss in the memory area is avoided, and the searching efficiency of searching the state data of the equipment fittings under the condition of memory data loss is improved.
As shown in fig. 3, a schematic of the storage of a device accessory status database in a sample analyzer is presented.
In one embodiment, as shown in fig. 4, there is also provided an interrogation apparatus 200 for a sample analyzer, based on a host computer of the analyzer including at least one device accessory, comprising:
the query instruction receiving module 202 is configured to receive an accessory state query instruction, where the accessory state query instruction includes identification information of at least one accessory to be queried;
the data searching module 204 is configured to search, in a preset device accessory state database, target state data corresponding to the identification information of the at least one device accessory to be queried;
wherein the device accessory status database includes identification information and corresponding status data for at least one device accessory of the analyzer.
In an alternative embodiment, as shown in fig. 5, the query apparatus 200 for a sample analyzer further includes a status data update module 206, which creates a query thread, obtains status data of at least one device component included in the sample analyzer through a microprocessor module of the host based on the query thread, and updates the device component status database according to the queried status data.
In an optional embodiment, the number of the query threads is multiple, and different query threads correspond to different device accessories respectively; the status data update module 206 periodically obtains status data of the device accessory corresponding to each query thread through the microprocessor module of the host on a per query thread basis.
In an alternative embodiment, as shown in fig. 5, the query device 200 for a sample analyzer further includes a classification module 208 for classifying at least one device accessory included in the sample analyzer, wherein one device accessory category corresponds to one or more device accessories, and one or more device accessories under the same device accessory category correspond to the same query thread and the same query cycle; the status data updating module 206 periodically obtains, for each query thread, status data of one or more accessories under the class of accessories corresponding to the query thread through the microprocessor module of the host according to the query cycle corresponding to the query thread.
In an alternative embodiment, as shown in fig. 5, the query device 200 for a sample analyzer further comprises a data persistence module 210 that creates a persistence thread based on which the device accessory status database is persisted to a hard disk storage area in the host.
In an alternative embodiment, as shown in fig. 5, the device accessory status database is stored in a memory area of the host; the query device 200 for a sample analyzer further includes a data deserializing module 212, which deserializes data stored in the hard disk storage area corresponding to the component status database into the memory area when the component status database stored in the memory area fails.
In an optional embodiment, the analyzer further comprises an information processing device communicatively coupled to the host; the query instruction receiving module 202 receives a device accessory state query instruction sent by the information processing device through a communication connection between the host and the information processing device, where the device accessory state query instruction is generated by the information processing device.
FIG. 6 is a diagram illustrating an internal structure of a computer device in one embodiment. The computer device may specifically be a terminal, and may also be a server. As shown in fig. 6, the computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program that, when executed by the processor, causes the processor to implement a query method for the sample analyzer. The internal memory may also have a computer program stored therein, which when executed by the processor, causes the processor to perform the age identification method. Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is presented, which may be a sample analyzer comprising at least one device accessory and a host, wherein the host comprises a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of:
receiving an accessory state query instruction, wherein the accessory state query instruction comprises identification information of at least one accessory to be queried;
searching target state data corresponding to the identification information of the at least one device accessory to be inquired in a preset device accessory state database;
wherein the device accessory status database includes identification information and corresponding status data for at least one device accessory of the sample analyzer.
In one embodiment, a computer-readable storage medium is proposed, in which a computer program is stored which, when executed by a processor, causes the processor to carry out the steps of:
receiving an accessory state query instruction, wherein the accessory state query instruction comprises identification information of at least one accessory to be queried;
searching target state data corresponding to the identification information of the at least one device accessory to be inquired in a preset device accessory state database;
wherein the device accessory status database includes identification information and corresponding status data for at least one device accessory of the sample analyzer.
The embodiment of the invention has the following beneficial effects:
after the query method and the query device for the sample analyzer, the sample analyzer and the computer readable medium are adopted, a device accessory state database for storing state data of all or part of device accessories needing to be queried is created; under the condition of receiving the state inquiry command of the equipment and accessory, according to the identification information of the equipment and accessory to be inquired contained in the command, searching the state data of the matched equipment and accessory in the equipment and accessory state database and returning, thereby realizing the inquiry of the state of the equipment and accessory. That is to say, in the query method and apparatus for a sample analyzer, the sample analyzer, and the computer readable medium, by constructing the device accessory state database corresponding to all or part of the device accessories in the host computer that need to be queried, data can be directly queried in the device accessory state database under the condition of querying the device accessory state, a complicated query process is not required, query efficiency of device accessory state query is improved, and query of device accessory state data can be adapted to a query requirement of a higher frequency.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. An interrogation method for a sample analyzer, the method being based on a host computer of the sample analyzer including at least one device accessory, comprising:
receiving an accessory state query instruction, wherein the accessory state query instruction comprises identification information of at least one accessory to be queried;
searching target state data corresponding to the identification information of the at least one device accessory to be inquired in a preset device accessory state database;
wherein the device accessory status database includes identification information and corresponding status data for at least one device accessory of the sample analyzer.
2. The method of claim 1, further comprising:
creating a query thread, acquiring state data of at least one device accessory included in the sample analyzer through a microprocessor module of the host based on the query thread, and updating the device accessory state database according to the queried state data.
3. The method according to claim 2, wherein the number of the query threads is multiple, and different query threads correspond to different device accessories respectively;
the obtaining, by a microprocessor module of the host, status data of at least one device accessory included in the sample analyzer based on the query thread, further comprising:
and periodically acquiring the state data of the device accessory corresponding to each inquiry thread through the micro-processing module of the host on the basis of each inquiry thread.
4. The method of claim 3, further comprising:
classifying at least one device accessory included in the analyzer, wherein one device accessory category corresponds to one or more device accessories, and one or more device accessories under the same device accessory category correspond to the same query thread and the same query cycle;
the periodically obtaining, by the microprocessor module of the host, status data of the device accessory corresponding to each query thread based on each query thread, further includes:
and aiming at each inquiry thread, periodically acquiring the state data of one or more equipment accessories under the equipment accessory category corresponding to the inquiry thread through a micro-processing module of the host according to the inquiry period corresponding to the inquiry thread.
5. The method of claim 1, further comprising:
creating a persistence thread, and performing persistence processing on the device accessory state database to a hard disk storage area in the host based on the persistence thread.
6. The method of claim 5, wherein the device accessory status database is stored in a memory area of the host;
the method further comprises the following steps:
and when the equipment and accessory state database stored in the memory area fails, deserializing data corresponding to the equipment and accessory state database stored in the hard disk storage area into the memory area.
7. The method of claim 1, wherein the analyzer further comprises an information processing device communicatively coupled to the host;
before the receiver accessory state inquiry instruction, the method further comprises the following steps:
and receiving a device accessory state query instruction sent by the information processing equipment through communication connection between the host and the information processing equipment, wherein the device accessory state query instruction is generated by the information processing equipment.
8. An interrogation apparatus for a sample analyzer, the apparatus being based on a host computer of the sample analyzer including at least one device accessory, comprising:
the inquiry instruction receiving module is used for receiving an inquiry instruction of the accessory state, wherein the inquiry instruction of the accessory state comprises identification information of at least one accessory of a device to be inquired;
the data searching module is used for searching target state data corresponding to the identification information of at least the device accessory to be inquired in a preset device accessory state database;
wherein the device accessory status database includes identification information and corresponding status data for at least one device accessory of the analyzer.
9. A computer-readable medium, in which a computer program is stored which, when being executed by a processor, causes the processor to carry out the steps of the method according to any one of claims 1 to 7.
10. A sample analyzer comprising at least one device accessory and a host connected to the device accessory, the host comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the method of any one of claims 1 to 7.
CN201911330741.5A 2019-12-20 2019-12-20 Query method and device for sample analyzer, sample analyzer and medium Active CN113010750B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911330741.5A CN113010750B (en) 2019-12-20 2019-12-20 Query method and device for sample analyzer, sample analyzer and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911330741.5A CN113010750B (en) 2019-12-20 2019-12-20 Query method and device for sample analyzer, sample analyzer and medium

Publications (2)

Publication Number Publication Date
CN113010750A true CN113010750A (en) 2021-06-22
CN113010750B CN113010750B (en) 2023-04-28

Family

ID=76382596

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911330741.5A Active CN113010750B (en) 2019-12-20 2019-12-20 Query method and device for sample analyzer, sample analyzer and medium

Country Status (1)

Country Link
CN (1) CN113010750B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070050836A1 (en) * 2005-08-31 2007-03-01 Stanek Matthew P System and method for evaluating the operational status of a STB in a cable network
CN101667147A (en) * 2009-07-27 2010-03-10 浪潮电子信息产业股份有限公司 Multitasking controllable automatic snapshot method
CN102044912A (en) * 2010-11-25 2011-05-04 深圳市科陆电子科技股份有限公司 Method for concurrently surveying terminal time in batch
CN103064889A (en) * 2012-12-11 2013-04-24 泉州豪杰信息科技发展有限公司 Method for fast responding to global position system (GPS) inquiry
US20130226966A1 (en) * 2012-02-27 2013-08-29 Technion Research & Development Foundation Limited Processing a hierarchical structure to respond to a query
WO2013179453A1 (en) * 2012-05-31 2013-12-05 株式会社日立製作所 Analysis system, computer system and analysis method
CN106294546A (en) * 2016-07-22 2017-01-04 北京英诺威尔科技股份有限公司 A kind of method of memory storage particular device port status data
CN107800589A (en) * 2017-10-31 2018-03-13 普天东方通信集团有限公司 To the monitoring method of cloud platform access device, device and its cloud platform used
CN107943828A (en) * 2017-10-18 2018-04-20 深圳市牛鼎丰科技有限公司 Service condition querying method, device, computer equipment and storage medium
CN108415956A (en) * 2018-02-06 2018-08-17 北京中兴高达通信技术有限公司 A kind of state information processing method and equipment
CN108446341A (en) * 2018-03-02 2018-08-24 平安普惠企业管理有限公司 Service condition querying method, device, computer equipment and storage medium
CN108459901A (en) * 2018-01-24 2018-08-28 深圳市普威技术有限公司 A kind of processing method of process lock, apparatus and system

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070050836A1 (en) * 2005-08-31 2007-03-01 Stanek Matthew P System and method for evaluating the operational status of a STB in a cable network
CN101667147A (en) * 2009-07-27 2010-03-10 浪潮电子信息产业股份有限公司 Multitasking controllable automatic snapshot method
CN102044912A (en) * 2010-11-25 2011-05-04 深圳市科陆电子科技股份有限公司 Method for concurrently surveying terminal time in batch
US20130226966A1 (en) * 2012-02-27 2013-08-29 Technion Research & Development Foundation Limited Processing a hierarchical structure to respond to a query
WO2013179453A1 (en) * 2012-05-31 2013-12-05 株式会社日立製作所 Analysis system, computer system and analysis method
CN103064889A (en) * 2012-12-11 2013-04-24 泉州豪杰信息科技发展有限公司 Method for fast responding to global position system (GPS) inquiry
CN106294546A (en) * 2016-07-22 2017-01-04 北京英诺威尔科技股份有限公司 A kind of method of memory storage particular device port status data
CN107943828A (en) * 2017-10-18 2018-04-20 深圳市牛鼎丰科技有限公司 Service condition querying method, device, computer equipment and storage medium
CN107800589A (en) * 2017-10-31 2018-03-13 普天东方通信集团有限公司 To the monitoring method of cloud platform access device, device and its cloud platform used
CN108459901A (en) * 2018-01-24 2018-08-28 深圳市普威技术有限公司 A kind of processing method of process lock, apparatus and system
CN108415956A (en) * 2018-02-06 2018-08-17 北京中兴高达通信技术有限公司 A kind of state information processing method and equipment
CN108446341A (en) * 2018-03-02 2018-08-24 平安普惠企业管理有限公司 Service condition querying method, device, computer equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
徐赛华: "污染源在线监测监控***的设计与实现", 《绵阳师范学院学报》 *

Also Published As

Publication number Publication date
CN113010750B (en) 2023-04-28

Similar Documents

Publication Publication Date Title
CN110781143B (en) Method and device for querying and extracting server logs
CN111177178B (en) Data processing method and related equipment
CN105426234B (en) Database deadlocks detection method and device
CN111309785B (en) Database access method and device based on Spring framework, computer equipment and medium
CN107153643B (en) Data table connection method and device
CN107016019B (en) Database index creation method and device
CN105335472A (en) Method and device for updating configuration list of data query engine
CN107480260B (en) Big data real-time analysis method and device, computing equipment and computer storage medium
WO2012044214A1 (en) Method and arrangement for processing data
CA3148489C (en) Method of and device for assessing data query time consumption, computer equipment and storage medium
CN110737585A (en) UI (user interface) automatic test case and system and page element loading waiting method and system
CN108255735B (en) Associated environment testing method, electronic device and computer readable storage medium
CN115048188A (en) Network isolation control system and method for container, electronic device and storage medium
CN112035346B (en) Automatic test method, system and medium based on embedded DSP operating system
CN109241103A (en) Data expansion querying method, electronic device and computer readable storage medium
CN107247784B (en) Distributed transaction control method and transaction manager
CN113010750B (en) Query method and device for sample analyzer, sample analyzer and medium
CN110865919B (en) Monitoring method and device based on java process and computer equipment
CN113238901B (en) Multi-device automatic testing method and device, storage medium and computer device
CN106547531B (en) PHP-based application performance management method and module thereof
CN110299180B (en) Debugging information output method and device based on solid state disk and computer equipment
CN110059071B (en) Data comparison monitoring method, system, equipment and medium based on storage process
CN112668285A (en) Method and device for generating fund daily report by combining RPA and AI and electronic equipment
CN113886368A (en) Additional data checking method, device, equipment and storage medium
CN114357001A (en) Multi-cluster data query method and device, monitoring platform and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant