CN113010750B - 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
CN113010750B
CN113010750B CN201911330741.5A CN201911330741A CN113010750B CN 113010750 B CN113010750 B CN 113010750B CN 201911330741 A CN201911330741 A CN 201911330741A CN 113010750 B CN113010750 B CN 113010750B
Authority
CN
China
Prior art keywords
accessory
query
host
data
status
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.)
Active
Application number
CN201911330741.5A
Other languages
Chinese (zh)
Other versions
CN113010750A (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 accessory, and comprises the following steps: a receiver accessory status query instruction, the accessory status query instruction including identification information of at least one accessory to be queried; searching target state data corresponding to the identification information of the at least one accessory to be inquired in a preset accessory state database; wherein the accessory status database includes identification information and corresponding status data of at least one accessory of the sample analyzer. In addition, the embodiment of the invention also discloses a query device, a device and a computer readable medium for the sample analyzer. By adopting the invention, the query efficiency of the state data of the accessory can be improved.

Description

Query method and device for sample analyzer, sample analyzer and medium
Technical Field
The present invention relates to the field of computer technology and the field of medical equipment technology, and in particular, to a query method and apparatus for a sample analyzer, and a computer readable medium.
Background
The blood cell analyzer is an instrument with wide clinical examination application 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 the instrument end. In the blood cell analyzer, the IPU may need to query the status of each accessory of the host module in the case of data processing or other application scenarios. In general, the implementation process is as follows: under the condition that state data of one or more accessories are required to be inquired, each service module in the IPU sends an inquiry command to an MCU (Micro-controller Unit) in the host module through communication connection between the IPU and the host, then the MCU requests the state data to be returned to each accessory, and the host returns the state data obtained by inquiry to the IPU, so that the inquiry process is completed.
However, in the process of inquiring the state data of the accessory, the data is required to pass through a plurality of instructions or data forwarding, and the inquiring path is too long. In addition, when a plurality of service modules need to inquire the state data of the accessories at the same time or in similar time, each service module needs to inquire once respectively, that is, in the process, an MCU is required to initiate one inquiry to the corresponding accessories in each inquiry, and redundancy exists in data inquiry.
It can be seen that, in the prior art, the query of the state data of the accessory in the sample analyzer is insufficient in query efficiency due to redundancy in the query path process and multiple queries, and it is difficult to satisfy the high-frequency query.
Disclosure of Invention
Based on the above, in order to solve the technical problems that in the prior art, the query method of the state data of the device accessory of the sample analyzer is insufficient in query efficiency and cannot meet the high-frequency query due to redundancy in the query path process and multiple queries, the invention provides a query method, a device, computer equipment and a computer readable medium for the sample analyzer.
A query method for a sample analyzer, the method being based on a host of a sample analyzer comprising at least one accessory, comprising:
a receiver accessory status query instruction, the accessory status query instruction including identification information of at least one accessory to be queried;
searching target state data corresponding to the identification information of the at least one accessory to be inquired in a preset accessory state database;
wherein the accessory status database includes identification information and corresponding status data of at least one accessory of the sample analyzer.
Wherein the method further comprises:
creating a query thread, acquiring state data of at least one accessory included in the sample analyzer through a micro-processing module of the host based on the query thread, and updating the accessory state database according to the queried state data.
The number of the query threads is multiple, and different query threads correspond to different ware accessories respectively;
the query thread-based obtaining, by a microprocessor module of the host, status data of at least one accessory included in the sample analyzer, further includes:
based on each inquiry thread respectively, periodically acquiring state data of an accessory corresponding to the inquiry thread through a micro-processing module of the host.
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 in the same device accessory category correspond to the same query thread and correspond to the same query period;
the method comprises the steps of periodically acquiring state data of accessories corresponding to each inquiry thread through a micro-processing module of the host based on each inquiry thread, and further comprising:
for each query thread, periodically acquiring, by a microprocessor module of the host, state data of one or more accessory devices in the accessory device category corresponding to the query thread according to a query period corresponding to the query thread.
Wherein the method further comprises:
creating a persistence thread, and persisting the accessory status database to a hard disk storage area in the host based on the persistence thread.
Wherein the accessory status database is stored in a memory area of the host;
the method further comprises the steps of:
and in the case that the accessory state database stored in the memory area fails, deserializing the data corresponding to the accessory state database stored in the hard disk storage area into the memory area.
Wherein the analyzer further comprises an information processing device in communication with the host;
before the receiver accessory status query instruction, the method further comprises:
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.
A query device for a sample analyzer, the device being based on a host of the sample analyzer comprising at least one accessory, comprising:
the query instruction receiving module is used for receiving a query instruction of the state of the accessory of the receiver, wherein the query instruction of the state of the accessory of the receiver comprises identification information of at least one accessory of the receiver to be queried;
the data searching module is used for searching target state data corresponding to the identification information of the at least to-be-inquired accessory in a preset accessory state database;
wherein the accessory status database includes identification information and corresponding status data of at least one accessory of the analyzer.
A computer device comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of:
a receiver accessory status query instruction, the accessory status query instruction including identification information of at least one accessory to be queried;
searching target state data corresponding to the identification information of at least the accessory to be inquired in an 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:
a receiver accessory status query instruction, the accessory status query instruction including identification information of at least one accessory to be queried;
searching target state data corresponding to the identification information of at least the accessory to be inquired in an accessory state database stored in a preset storage area.
The embodiment of the invention has the following beneficial effects:
after the query method and device for the sample analyzer, the sample analyzer and the computer readable medium are adopted, a device fitting state database for storing state data of all or part devices needing to be queried is created; under the condition that a query instruction of the state of the accessory is received, according to the identification information of the accessory to be queried contained in the instruction, the state data of the matched accessory is searched in an accessory state database and returned, so that the query of the state of the accessory is realized. That is, in the above-mentioned query method and apparatus for a sample analyzer, a sample analyzer and a computer readable medium, by constructing a device accessory status database corresponding to all or a part of the device accessories to be queried in a host, it is realized that data can be directly queried in the device accessory status database under the condition of querying the device accessory status, no complicated query process is required, the query efficiency of the device accessory status query is improved, and the query of the device accessory status data can be adapted to the query requirement of higher frequency.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Wherein:
FIG. 1 is a flow diagram of a query method for a sample analyzer in one embodiment;
FIG. 2 is a schematic diagram of a sample analyzer in one embodiment;
FIG. 3 is a schematic diagram of data storage in one embodiment;
FIG. 4 is a block diagram of an interrogation device for a sample analyzer in one embodiment;
FIG. 5 is a block diagram of an interrogation device for a sample analyzer in one embodiment;
fig. 6 is a block diagram of a computer device for running the above-described query method for a sample analyzer in one embodiment.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In order to solve the technical problems that in the prior art, the query method of the state data of the instrument accessory in the sample analyzer is insufficient in query efficiency and cannot meet the high-frequency query due to redundancy in the query path process and multiple queries, in the embodiment, a query method for the sample analyzer is particularly provided.
It should be noted that, in an embodiment, the implementation of the query method for a sample analyzer is based on a host computer of the sample analyzer including at least one 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. A host is included on the sample analyzer, which is a computer device, such as a single chip or other computer device or system, integrated on the sample analyzer. The sample analyzer also comprises at least one controller accessory which is connected with the host machine and controlled by the host machine, wherein the controller accessory is a component with each function in the sample analyzer and is used for realizing a specific function; the above-mentioned device fittings may be, for example, optocouplers, motors or valves.
In the case where it is necessary to complete a test sample analysis service by the sample analyzer or in the case where status data of a sensor accessory is required, it is necessary to determine the status of the sensor accessory included in the sample analyzer, for example, whether an optocoupler is blocked or whether a motor is in an operating state or the current number of steps of the motor, or the like. In this case, it is necessary to query the state data of the accessory.
In a specific embodiment, as shown in fig. 1, a query method for a sample analyzer is presented.
Referring to fig. 1, the above-described query method for a sample analyzer includes steps S102 to S104 as shown in fig. 1:
step S102: and receiving a receiver accessory state query instruction, wherein the receiver accessory state query instruction comprises identification information of at least one accessory to be queried.
When the state of the accessory is required to be queried, the host receives a state query instruction of the accessory. The device accessory status query instruction may be an instruction sent by another device connected to the host, or generated by a service in the host when the device accessory status query is required.
For example, the device that sends the instruction to the host may be an information processing device connected to 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 the corresponding inspection analysis task is 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 a communication module and can carry out communication between the information processing equipment and the host. Under the condition that the information processing equipment controls the accessory in the host to work or needs to know the running state of the accessory in the host, the corresponding accessory state query instruction is automatically generated according to the accessory to be queried or generated according to the input of a user and sent to the host. In a specific 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 device 30.
The device accessory status 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 specifically, and for example, the identification information may be a number, a name, an address, etc. of the device accessory.
Step S104: searching target state data corresponding to the identification information of at least the accessory to be inquired in a preset accessory state database.
In general, if the status of a device is to be queried, status data needs to be requested from the corresponding device through a Micro-controller Unit (MCU) of the host. In this embodiment, in order to improve the query efficiency of the accessory status data, the identification information of part or all of the accessories included in the analyzer and the status data of the corresponding accessories are obtained in advance/in real time/according to a certain period/according to instructions, and a corresponding accessory status database is constructed and the obtained status data is stored in the accessory status database so as to be searched at any time. That is, in this embodiment, the query of the state data of the accessory can be directly completed through the state data of the accessory in the reader accessory state database, and the query is not required to be performed through the micro-processing module under the condition that the query is required each time, so that the query efficiency of the state data of the accessory is greatly improved.
In particular, in one embodiment, the accessory status database may be a memory area stored in the host, for example, a memory area in the host or a hard disk memory area; alternatively, in other embodiments, the accessory status database may be stored in other external storage devices connected to the host or in a data server connected to the host.
The description is given with the accessory status 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 accessory status database corresponding to the status data of each device accessory. After receiving the device accessory state query instruction, according to the identification information of the to-be-queried device accessory included in the device accessory state query instruction, searching the state data of the to-be-queried device accessory corresponding to the identification information as target state data, and completing query of the device accessory state.
Because the data read-write speed of the memory area is faster than that of other memory areas or storage devices, the state of the accessory is queried by reading the state data of the accessory already stored in the memory, and the data can be acquired faster than that of the other memory areas. Especially, compared with the technical proposal that the state data is required to be requested to the accessory through the micro-processing module in the related technical proposal, the quick inquiry of the state data of the accessory is realized.
And because the host and the information processing equipment are in communication connection, the state query instruction of the accessory of the micro-processing equipment is responded through the communication connection, and after the query instruction is received, the process of query can be completed by directly reading the state data of the accessory of each accessory, which is stored in the memory area of the host, so that the query efficiency is greatly improved. In addition, under the condition that the information processing equipment, the host or other equipment needs to inquire the state data of the accessories contained in the analyzer, the state data is not required to be repeatedly requested to the accessories through the micro-processing module, repeated inquiry is avoided, the inquiry efficiency is further improved, the higher-frequency inquiry requirement can be further supported, and more application scenes are applicable.
In a specific embodiment, a description is given of a construction process of the accessory status database and a data update process.
And constructing a data structure of the virtual host in a memory space of the host or in a storage area of other accessory state databases, wherein the data structure is used for storing and representing the running states of all accessories of the host, namely constructing a virtual state machine corresponding to the host, and constructing the accessory state databases on the basis of the virtual state machine.
The real-time requirement of the state data query of the accessory is higher, so that the state data of the accessory in the accessory state database needs to be updated in time, for example, the state data in the accessory state database is updated once every 1ms, so that the timeliness and the accuracy of the data are ensured.
Specifically, in the process of updating the state data in the accessory state database, the state data of the accessory can be queried and collected by creating an independent query thread. Specifically, the query method for a sample analyzer further includes: creating a query thread, acquiring the state data of the at least one accessory through a micro-processing module of the host based on the query thread, and updating the accessory state database according to the queried state data.
Specifically, by creating a query thread dedicated to querying status data of individual appliance accessories, the query thread is based on host-based query tasks dedicated to the status data of the appliance accessories. In addition, because the state data of the connector accessory needs to be updated in time, the query thread can be called according to the requirement; and the query of the accessory status data can be realized through the query thread, so that the execution efficiency of the query task can be improved.
In the host, a query thread dedicated to querying the state of the accessory is created, the state data of the accessory is queried according to the specified time period requirement, and the accessory state database is updated according to the query result. Where the specified time period requirement refers to a query period determined based on real-time requirements of the accessory status, for example, updating the status data of the accessory according to a query period of 1ms, 1s, or other duration. The specific query period may be set according to specific requirements.
The sample analyzer includes a plurality of fittings, and the requirements of different fittings on real-time performance are different, for example, the real-time performance requirement on motor state data is higher than the real-time performance requirement on valve state data. In this embodiment, different interrogation cycles may also be provided for different accessories. Specifically, all the device accessories are classified according to the real-time requirement on the state data of different device accessories, one or more device accessories in the same device accessory category correspond to the same query period, and when the state data is updated, the device accessories in the same device accessory category wake up the query thread to acquire and update the device accessory state data according to the same query period.
In the case of categorizing the parts according to the real-time requirements, the correspondence may construct a plurality of query threads, each corresponding to one of the parts categories, 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 accessory through the micro-processing module of the host based on the query threads, the state data of one or more accessories corresponding to the query threads are respectively and periodically acquired through the micro-processing module of the host based on each query thread, and then the data in the accessory state database is updated according to the acquired state data.
That is, for the device accessories in the same device accessory category with the same real-time requirement, the query of the state data of one or more device accessories in the device accessory category is realized based on the same query thread according to the query period corresponding to the query thread. The device accessories are classified according to real-time requirements, and computer resources are saved to the greatest extent on the premise that the real-time requirements of state data updating are met.
In another embodiment, the updating of the accessory status database may further be performed by monitoring the status of the accessory, and under the condition that the status of the accessory is monitored to change, acquiring the status data of the accessory with the changed status to update the accessory status database, so that the instantaneity and the accuracy of the status data contained in the accessory status database are guaranteed to the highest degree, and the accuracy of the query of the accessory status of the accessory can be improved.
Although the query efficiency of the state query of the device accessory (higher than other storage areas) can be improved by constructing the state database of the device accessory corresponding to the virtual host in the memory area in the host, so that the device accessory state can be quickly queried; however, in the case of a failure or a sudden power failure, the data stored in the memory area may be lost. In order to prevent the loss of accessory status data in the event of a failure, in this embodiment, the data contained in the accessory status database in the memory area is mapped or backed up in real time into the hard disk storage area of the host.
Specifically, the query method for a sample analyzer further includes: creating a persistence thread, and persisting the ware accessory status database to a hard disk storage area in the host based on the persistence thread.
Persistence refers to the transition of data between an instantaneous state and a persistent state, i.e., the instantaneous data (e.g., data in a memory area that cannot be permanently saved) is persisted into persistent data (e.g., persisted into a hard disk storage area or a designated database that can be permanently saved).
The state data stored in the 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 fails, such as a power failure, the state data stored in the memory area in the accessory state database will be lost. In this embodiment, by creating a persistent thread in the host, the data in the accessory status database in the memory area may be backed up and updated in the hard disk storage area in the host in real time, so as to prevent that the query of the accessory status data cannot be continued in response to the situation that the data in the memory area is lost.
The hard disk storage area is a permanent storage area, and compared with the memory area, the data cannot be lost under the condition of power failure; by persisting the data into the hard disk storage area, the data loss of the data under the conditions of power failure and the like is avoided, and the stability of the state data query of the accessory is improved.
In the case of backing up and updating data in the accessory status database in the memory area by a persistent thread in a hard disk storage area in the host, if the 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 in the event that a subsequent query of the status data of the accessory is required, a continued query of the accessory status data can be continued by the data in the memory area.
Specifically, the query method for a sample analyzer further includes: and under the condition that the accessory state database stored in the memory area fails, performing deserialization processing on the data corresponding to the accessory state database stored in the hard disk storage area to a preset storage area in the memory area.
Deserialization refers to extracting data from data stored in a storage area, and then reconstructing an object according to the state, description information, structure information, and the like of the data. That is, the data object may be reconstructed by deserialization. In this embodiment, the device accessory status data in the memory area is stored in the hard disk storage area through persistent processing, and then, if necessary, the data corresponding to the device accessory status data stored in the hard disk storage area is subjected to deserialization processing to reconstruct the database in the memory area, so that the device accessory status database can be reconstructed in the memory area.
The backup and reconstruction of the device accessory state database between the memory area and the hard disk storage space are realized through the persistence processing and the inverse serialization processing, so that the loss of the device accessory state data under the condition of data loss in the memory area is avoided, and the searching efficiency of the device accessory state data under the condition of the memory data loss is improved.
As shown in fig. 3, a schematic representation of the storage of the accessory status database in the sample analyzer is given.
In one embodiment, as shown in fig. 4, there is also provided a query device 200 for a sample analyzer, based on a host of the analyzer including at least one accessory, comprising:
a query instruction receiving module 202, configured to receive a query instruction for a status of a connector accessory, where the query instruction for the status of the connector accessory includes identification information of at least one connector accessory to be queried;
the data searching module 204 is configured to search a preset accessory status database for target status data corresponding to the identification information of the at least to-be-queried accessory;
wherein the accessory status database includes identification information and corresponding status data of at least one accessory of the analyzer.
In an alternative embodiment, as shown in fig. 5, the query device 200 for a sample analyzer further includes a status data update module 206, creating a query thread, acquiring, by the micro-processing module of the host, status data of at least one accessory included in the sample analyzer based on the query thread, and updating the accessory status database according to the queried status data.
In an alternative embodiment, the number of the query threads is a plurality, and different query threads respectively correspond to different ware accessories; the status data updating module 206 periodically obtains status data of the accessory corresponding to each query thread through the micro-processing module of the host computer based on the query thread.
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 analyzer, where a device accessory category corresponds to one or more device accessories, and one or more device accessories in the same device accessory category corresponds to the same query thread and corresponds to the same query cycle; the status data update module 206 periodically obtains, for each query thread, status data of one or more accessory devices in the accessory device category corresponding to the query thread by the microprocessor module of the host according to a 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 includes a data persistence module 210 that creates a persistence thread based on which the accessory status database is persisted to a hard disk storage area in the host.
In an alternative embodiment, as shown in FIG. 5, the 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 that deserializes data stored in the hard disk storage area corresponding to the accessory status database into the memory area in the event of a failure of the accessory status database stored in the memory area.
In an alternative embodiment, the analyzer further comprises an information processing device in communicative connection with the host computer; the query instruction receiving module 202 receives a device accessory status query instruction sent by the information processing device through a communication connection between the host and the information processing device, wherein the device accessory status query instruction is generated by the information processing device.
FIG. 6 illustrates an internal block diagram of a computer device in one embodiment. The computer device may specifically be a terminal or a server. As shown in fig. 6, the computer device includes a processor, a memory, and a network interface connected by a system bus. The memory includes a nonvolatile 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 which, when executed by a processor, causes the processor to implement a query method for a sample analyzer. The internal memory may also have stored therein a computer program which, when executed by the processor, causes the processor to perform the age identification method. It will be appreciated by those skilled in the art that the structure shown in fig. 6 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than 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, the sample analyzer comprising at least one accessory and a host, wherein the host comprises a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of:
a receiver accessory status query instruction, the accessory status query instruction including identification information of at least one accessory to be queried;
searching target state data corresponding to the identification information of the at least one accessory to be inquired in a preset accessory state database;
wherein the accessory status database includes identification information and corresponding status data of at least one accessory of the sample analyzer.
In one embodiment, a computer-readable storage medium is provided, storing a computer program which, when executed by a processor, causes the processor to perform the steps of:
a receiver accessory status query instruction, the accessory status query instruction including identification information of at least one accessory to be queried;
searching target state data corresponding to the identification information of the at least one accessory to be inquired in a preset accessory state database;
wherein the accessory status database includes identification information and corresponding status data of at least one accessory of the sample analyzer.
The embodiment of the invention has the following beneficial effects:
after the query method and device for the sample analyzer, the sample analyzer and the computer readable medium are adopted, a device fitting state database for storing state data of all or part devices needing to be queried is created; under the condition that a query instruction of the state of the accessory is received, according to the identification information of the accessory to be queried contained in the instruction, the state data of the matched accessory is searched in an accessory state database and returned, so that the query of the state of the accessory is realized. That is, in the above-mentioned query method and apparatus for a sample analyzer, a sample analyzer and a computer readable medium, by constructing a device accessory status database corresponding to all or a part of the device accessories to be queried in a host, it is realized that data can be directly queried in the device accessory status database under the condition of querying the device accessory status, no complicated query process is required, the query efficiency of the device accessory status query is improved, and the query of the device accessory status data can be adapted to the query requirement of higher frequency.
Those skilled in the art will appreciate that all or part of the processes in the methods of the above embodiments may be implemented by a computer program for instructing relevant hardware, where the program may be stored in a non-volatile computer readable storage medium, and where the program, when executed, may include processes in the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile 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), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples only represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.

Claims (8)

1. A query method for a sample analyzer, the method being based on a host of a sample analyzer comprising at least one accessory, comprising:
a receiver accessory status query instruction, the accessory status query instruction including identification information of at least one accessory to be queried;
searching target state data corresponding to the identification information of the at least one accessory to be inquired in a preset accessory state database;
wherein the accessory status database comprises identification information and corresponding status data of at least one accessory of the sample analyzer;
wherein the method further comprises:
creating a query thread, acquiring state data of at least one accessory included in the sample analyzer through a micro-processing module of the host based on the query thread, and updating the accessory state database according to the queried state data;
the number of the query threads is multiple, and different query threads correspond to different ware accessories respectively;
the query thread-based obtaining, by a microprocessor module of the host, status data of at least one accessory included in the sample analyzer, further includes:
based on each inquiry thread respectively, periodically acquiring state data of an accessory corresponding to the inquiry thread through a micro-processing module of the host.
2. The method according to claim 1, 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 in the same device accessory category correspond to the same query thread and correspond to the same query period;
the method comprises the steps of periodically acquiring state data of accessories corresponding to each inquiry thread through a micro-processing module of the host based on each inquiry thread, and further comprising:
for each query thread, periodically acquiring, by a microprocessor module of the host, state data of one or more accessory devices in the accessory device category corresponding to the query thread according to a query period corresponding to the query thread.
3. The method according to claim 1, wherein the method further comprises:
creating a persistence thread, and persisting the accessory status database to a hard disk storage area in the host based on the persistence thread.
4. A method according to claim 3, wherein the accessory status database is stored in a memory area of the host;
the method further comprises the steps of:
and in the case that the accessory state database stored in the memory area fails, deserializing the data corresponding to the accessory state database stored in the hard disk storage area into the memory area.
5. The method of claim 1, wherein the analyzer further comprises an information processing device communicatively coupled to the host computer;
before the receiver accessory status query instruction, the method further comprises:
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.
6. A query device for a sample analyzer, the device being based on a host of the sample analyzer comprising at least one accessory, comprising:
the query instruction receiving module is used for receiving a query instruction of the state of the accessory of the receiver, wherein the query instruction of the state of the accessory of the receiver comprises identification information of at least one accessory of the receiver to be queried;
the data searching module is used for searching target state data corresponding to the identification information of the at least to-be-inquired accessory in a preset accessory state database;
wherein the accessory status database comprises identification information and corresponding status data of at least one accessory of the analyzer;
wherein the device is further for: creating a query thread, acquiring state data of at least one accessory included in the sample analyzer through a micro-processing module of the host based on the query thread, and updating the accessory state database according to the queried state data;
the number of the query threads is multiple, and different query threads correspond to different ware accessories respectively; the query thread-based obtaining, by a microprocessor module of the host, status data of at least one accessory included in the sample analyzer, further includes: based on each inquiry thread respectively, periodically acquiring state data of an accessory corresponding to the inquiry thread through a micro-processing module of the host.
7. A computer readable medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of the method of any one of claims 1 to 5.
8. 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 which, when executed by the processor, causes the processor to perform the steps of the method of any of claims 1 to 5.
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 CN113010750A (en) 2021-06-22
CN113010750B true 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 (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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
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

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7810127B2 (en) * 2005-08-31 2010-10-05 Time Warner Cable, Inc. System and method for evaluating the operational status of a STB in a cable network
US20130226966A1 (en) * 2012-02-27 2013-08-29 Technion Research & Development Foundation Limited Processing a hierarchical structure to respond to a query
CN103064889A (en) * 2012-12-11 2013-04-24 泉州豪杰信息科技发展有限公司 Method for fast responding to global position system (GPS) inquiry
CN107943828B (en) * 2017-10-18 2020-06-30 深圳市牛鼎丰科技有限公司 Service state query method and device, computer equipment and storage medium
CN108459901B (en) * 2018-01-24 2019-04-23 深圳市普威技术有限公司 A kind of processing method of process lock, apparatus and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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
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
污染源在线监测监控***的设计与实现;徐赛华;《绵阳师范学院学报》;20090215(第02期);114-118 *

Also Published As

Publication number Publication date
CN113010750A (en) 2021-06-22

Similar Documents

Publication Publication Date Title
CN111177178B (en) Data processing method and related equipment
CN105426234B (en) Database deadlocks detection method and device
US20130218354A1 (en) Power distribution network event correlation and analysis
CN112131126B (en) Switching method and device of test environment
CN109871368B (en) Database detection method, database detection device, computer device and storage medium
CN108768790A (en) Distributed search cluster monitoring method and device, computing device, storage medium
CN109308305A (en) Querying method, device and the computer equipment of monitoring data
CA3148489A1 (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
CN109344046A (en) A kind of data processing method, device, medium and electronic equipment
CN110457401B (en) Data storage method and device, computer equipment and storage medium
CN113010750B (en) Query method and device for sample analyzer, sample analyzer and medium
CN113779328B (en) Power supply monitoring data integration processing method, system, terminal and storage medium
CN112035346B (en) Automatic test method, system and medium based on embedded DSP operating system
CN106201810A (en) A kind of method of testing, device
CN112416648A (en) Data verification method and device
CN110881030A (en) Logstack-based method and device for recording operation logs of web service administrator
CN115525392A (en) Container monitoring method and device, electronic equipment and storage medium
CN113238901B (en) Multi-device automatic testing method and device, storage medium and computer device
CN114357001A (en) Multi-cluster data query method and device, monitoring platform and storage medium
CN111124820B (en) Method for realizing off-line monitoring and analysis of operating system and process resources
CN110059071B (en) Data comparison monitoring method, system, equipment and medium based on storage process
CN106557030B (en) Method of instructing operation and device based on entity
CN112579705A (en) Metadata acquisition method and device, computer equipment and storage medium
CN113572628A (en) Data association method and device, computing equipment and computer 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