CN114979192A - Method for operating an instrument and device for operating an instrument - Google Patents

Method for operating an instrument and device for operating an instrument Download PDF

Info

Publication number
CN114979192A
CN114979192A CN202110206527.XA CN202110206527A CN114979192A CN 114979192 A CN114979192 A CN 114979192A CN 202110206527 A CN202110206527 A CN 202110206527A CN 114979192 A CN114979192 A CN 114979192A
Authority
CN
China
Prior art keywords
control system
test
superior
communication
equipment
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.)
Pending
Application number
CN202110206527.XA
Other languages
Chinese (zh)
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.)
Chemclin Diagnostics Corp
Original Assignee
Chemclin Diagnostics Corp
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 Chemclin Diagnostics Corp filed Critical Chemclin Diagnostics Corp
Priority to CN202110206527.XA priority Critical patent/CN114979192A/en
Publication of CN114979192A publication Critical patent/CN114979192A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H10/00ICT specially adapted for the handling or processing of patient-related medical or healthcare data
    • G16H10/40ICT specially adapted for the handling or processing of patient-related medical or healthcare data for data related to laboratory analysis, e.g. patient specimen analysis
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H40/00ICT specially adapted for the management or administration of healthcare resources or facilities; ICT specially adapted for the management or operation of medical equipment or devices
    • G16H40/60ICT specially adapted for the management or administration of healthcare resources or facilities; ICT specially adapted for the management or operation of medical equipment or devices for the operation of medical equipment or devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Medical Informatics (AREA)
  • Primary Health Care (AREA)
  • Epidemiology (AREA)
  • Public Health (AREA)
  • Computing Systems (AREA)
  • Biomedical Technology (AREA)
  • General Business, Economics & Management (AREA)
  • Business, Economics & Management (AREA)
  • Environmental & Geological Engineering (AREA)
  • Cardiology (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

The invention provides an instrument operation method and a device for instrument operation, and relates to the technical field of equipment control. The method comprises the following steps: under the condition that a communication fault exists between the control equipment and the superior control system, sending heartbeat packets to the superior control system at intervals of a first time interval, wherein the first time interval is smaller than a second time interval, and the second time interval is a heartbeat packet sending period when the communication between the control equipment and the superior control system is normal; and storing the test data acquired by the test equipment to a memory of the control equipment under the condition that the heartbeat packet response message sent by the superior control system is not received within the first preset time. The problem of test interruption or test time extension caused by communication faults between the control equipment and the superior control system in the related art is solved.

Description

Method for operating an instrument and device for operating an instrument
Technical Field
The invention relates to the technical field of equipment control, in particular to an instrument operation method and a device for instrument operation.
Background
The conventional immunoassay analyzer is generally provided with a plurality of communication nodes, for example, nodes for bus connection between a test device (test instrument) and a control device, communication between the control device and a higher-level control system, communication between the test device and the higher-level control system, and communication between the test device and a hospital information system LIS system. When any node is disconnected, the existing immunoassay analyzer stops running and waits for the communication to be reestablished. However, such communication interruption during the operation will cause the test time to be prolonged, which is not in accordance with the current trend of expecting a shorter test time.
In order to solve the above problems, no effective technical means has been proposed.
Disclosure of Invention
The embodiment of the invention provides an instrument operation method and an instrument operation device, which are used for solving the problem that in the related art, due to communication faults between control equipment and a superior control system, test interruption or test time is prolonged.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides an instrument operation method, where an instrument includes a test device for performing a medical test, a control device for controlling the test device, and a superior control system in communication connection with the control device, and sends a heartbeat packet to the superior control system at a first time interval when there is a communication fault between the control device and the superior control system, where the first time interval is smaller than a second time interval, and the second time interval is a heartbeat packet sending period when the communication between the control device and the superior control system is normal; and storing the test data collected by the test equipment to a memory of the control equipment under the condition that the heartbeat packet response message sent by the superior control system is not received within a first preset time.
In the present invention, the instrument may be, for example, a sample analyzer for analyzing a collected sample of patient blood. The sample analyzer may be, for example, a sample analyzer for immunoassay. In this instrument, the test device and the control device are usually integrated in the main housing of the instrument. The superordinate control system can be provided as a separate device which is in communication connection with the control device. For example, the upper control system may be a computer with an input and output device or a personal mobile terminal, such as a tablet computer.
The connection between the superordinate control system and the control unit can be a wired connection or a wireless connection. In the case of a wired connection, the superordinate control system is connected to the control device by means of a cable and can be connected to the public local area network of the hospital at this time or can also be operated off-line. In the case of wireless connection, the upper control system and the control device may be connected through a public wireless lan of a hospital, or may be connected through a communication technology, such as a mobile internet, a cloud platform, a short-distance communication technology between other devices, and the like.
Further, under the condition that the heartbeat packet response message sent by the superior control system is not received within the first preset time, after the test data collected by the test equipment is stored in the memory of the control equipment, the method further includes: and under the condition of receiving the heartbeat packet response message of the superior control system, sending the test data stored in the memory to the superior control system.
Further, in a case that a communication failure exists between the control device and the upper control system, before sending the heartbeat packet to the upper control system at a first time interval, the method further includes: sending a heartbeat packet to the superior control system using the second time interval;
under the condition that a heartbeat packet response message sent by the superior control system is not received within second preset time, determining that a communication fault exists between the control equipment and the superior control system; enabling the first time interval to send heartbeat packets to the superior control system.
Further, after sending the heartbeat packet to the upper control system at every first time interval, the method further includes: and under the condition that a communication fault exists between the control equipment and the superior control system or the heartbeat packet response message is not received within a third preset time, controlling the test equipment to keep executing a test task according to the stored test information and storing the test data into the memory.
Further, after sending the heartbeat packet to the upper control system at every first time interval, the method further includes: and when the control equipment receives the reply of the superior control system, determining that the communication between the control equipment and the superior control system is recovered to be normal, receiving test information sent by the superior control system, and executing a test according to the test information.
Further, before receiving the test information sent by the superior control system, the method further includes: when the superior control system does not receive the heartbeat packet sent by the control equipment within the fourth preset time, determining that the communication fault exists between the control equipment and the superior control system; outputting warning information through the superior control system; and receiving and storing the test information input by the user through the superior control system.
Further, the method also comprises the following steps: under the condition that a superior control system is normally communicated with a preset database, test data are uploaded to the preset database one by one through the superior control system, and preset marks are added to the test data; under the condition that a superior control system and the preset database are in communication failure, caching the test data through the superior control system; and uploading the cached specified test data to the preset database through the superior control system under the condition that the superior control system and the preset database are communicated and recovered normally.
In a second aspect, an embodiment of the present invention further provides an apparatus for operating an instrument, where the apparatus is applied to an instrument, the instrument includes a test device, a control device for controlling the test device, and a superior control system communicatively connected to the control device, and the apparatus includes: the communication unit comprises a control module, a determination module and a communication module, wherein the determination module is used for determining whether a communication fault exists between the control equipment and a superior control system; the communication module is used for sending heartbeat packets to the superior control system at intervals of a first time interval under the condition that communication faults exist between the control equipment and the superior control system; the determining module is configured to determine the first time interval according to a preset beat function, where the first time interval is smaller than a second time interval, and the second time interval is a heartbeat packet sending period when the control device and the superior control system are in normal communication; and the storage unit is used for storing the test data acquired by the test equipment to the memory of the control equipment under the condition that the heartbeat packet response message sent by the superior control system is not received within a first preset time.
In a third aspect, an embodiment of the present invention additionally provides an electronic device, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the instrument operation method according to the first aspect.
In a fourth aspect, the embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the method for operating an apparatus according to the first aspect.
In a fifth aspect, embodiments of the present invention additionally provide a sample analyzer having an apparatus for instrument operation as described in the second aspect or an electronic device as described in the third aspect, or a computer-readable storage medium as described in the fourth aspect.
In the embodiment of the invention, under the condition that a communication fault exists between a control device and a superior control system, heartbeat packets are sent to the superior control system at intervals of a first time interval, wherein the first time interval is smaller than a second time interval, and the second time interval is a heartbeat packet sending period when the communication between the control device and the superior control system is normal; and storing the test data acquired by the test equipment to a memory of the control equipment under the condition that the heartbeat packet response message of the superior control system is not received within the first preset time. Under the condition that the control equipment has communication faults in a superior control system, the time interval of sending heartbeat packets to the superior control system is shortened, and under the condition that a heartbeat packet response message sent by the superior control system is not received within a first preset time, test data collected by the test equipment is stored in a memory of the control equipment, the test task of the test equipment is not stopped, and the previously issued test task can still be completed under the communication faults, so that the system initialization process after the connection is carried out again is saved, and the problem that the test is interrupted or the test time is prolonged due to the communication faults between the control equipment and the superior control system in the related technology is solved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without inventive labor.
FIG. 1 is a schematic diagram of a hardware environment in an embodiment of the invention;
FIG. 2 is a schematic flow chart of a method of operating an instrument in an embodiment of the invention;
FIG. 3 is a schematic illustration of yet another method of operating an apparatus in an embodiment of the invention;
fig. 4 is a schematic structural diagram of an apparatus for instrument operation in an embodiment of the present invention.
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 some, but not all, embodiments of the present invention. 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.
Example one
Before describing the instrument operation method in this embodiment, an application scenario of the instrument operation method in this embodiment is first described. Fig. 1 is a schematic diagram of a hardware application scenario of an optional instrument operation method in this embodiment. The system comprises a superior control system 10, a control device 20 and a test device 30, wherein the superior control system 10 is connected with the control device 20, and the superior control system and the control device can realize data transmission; the control device 20 is connected to the test device 30, between which data transmission can be effected.
It should be noted that, the superior control system 10 includes, but is not limited to, a wired connection and a wireless connection with the control device 20, and the control device 20 includes, but is not limited to, a wired connection and a wireless connection with the test device 30.
In a specific application scenario, the superior control system 10 transmits the test task to the control device 20, the control device 20 issues the test instruction corresponding to the test task to the test device 30, and the test device 30 executes the test task based on the test instruction to collect test data. The test device 30 sends the acquired test data to the control device 20, the control device 20 sends the test data to the superior control system 10 at regular intervals, and the superior control system 10 uploads the test data to a preset database after receiving the test data. The upper control system 10 and the control device 20 send heartbeat packets to each other at a second time interval, so as to determine the device status and the communication status of the peer device. Under the condition that a communication fault exists between the control device 20 and the superior control system 10, sending heartbeat packets to the superior control system 10 at intervals of a first time interval, wherein the first time interval is smaller than a second time interval, and the second time interval is a heartbeat packet sending period when the communication between the control device 20 and the superior control system 10 is normal; in the case that the heartbeat packet response message sent by the upper control system 10 is not received within the first preset time, the test data collected by the test equipment 30 is stored in the memory of the control equipment 20.
Under the condition that a communication fault exists between the control equipment and the superior control system, the time interval of sending the heartbeat packet to the superior control system is shortened, and under the condition that a heartbeat packet response message sent by the superior control system is not received within a first preset time, the test data collected by the test equipment is stored in a memory of the control equipment, the test task of the test equipment is not stopped, and the previously issued test task can still be completed under the condition of the communication fault, so that the system initialization process after the connection is carried out again is saved, and the problem that the test is interrupted or the test time is prolonged due to the communication fault between the control equipment and the superior control system in the related technology is solved.
In an embodiment of the present invention, an apparatus operating method is provided, where the apparatus includes a testing device for performing a medical test, a control device for controlling the testing device, and a superior control system in communication connection with the control device, as shown in fig. 2, the method may specifically include the following steps:
s202, under the condition that a communication fault exists between the control equipment and the superior control system, sending heartbeat packets to the superior control system at intervals of a first time interval, wherein the first time interval is smaller than a second time interval, and the second time interval is a heartbeat packet sending period when the communication between the control equipment and the superior control system is normal;
and S204, storing the test data acquired by the test equipment into a memory of the control equipment under the condition that the heartbeat packet response message sent by the superior control system is not received within the first preset time.
In this embodiment, the upper control system includes, but is not limited to, a PC, a microcomputer, and the like, the user controls the upper control system to issue the test task to the control device by creating the test task in the upper control system, then the control device generates the test instruction according to the test task, issues the test instruction to the test device, and the test device completes the test task by executing the test instruction. The control device includes, but is not limited to, an industrial control host, and is configured to convert a test task sent by a superior control system into a test instruction that can be recognized and executed by the test device. The testing device comprises component modules for performing medical tests, such as a biochemical reaction module, an immunoassay module, etc., for performing test tasks based on test instructions.
In this embodiment, the control device and the upper control system send a heartbeat packet to the peer end every second time interval to determine the device status and the communication status of the peer end device. And if the control equipment receives the heartbeat packet sent by the superior control system in the preset time, confirming that the communication between the control equipment and the superior control system is normal, and determining the equipment state of the superior control system based on the parameters in the heartbeat packet.
Next, the control device is connected to the upper control system by wire, including but not limited to, a preset interface, and the control device generally sends periodic test data to the upper control system through a test period of the test device. When the control device and the upper control system operate normally, the upper control system and the control device send bidirectional heartbeat packets at a predetermined second time interval (for example, 10 seconds) to ensure that the communication is normal. And if the control equipment does not receive the heartbeat packet response message sent by the superior control system within the second preset time, the communication fault is considered. The second preset time is a preset time at which the heartbeat packet of the upper control system should be received, for example, 15 seconds.
Under the condition that communication faults exist between the control equipment and the superior control system, the time interval of sending the heartbeat packet to the superior control system by the control equipment is shortened, and the heartbeat packet is sent to the superior control system by taking the first time interval as a period. Specifically, in the case where there is a communication failure between the control device and the upper control system, the control device attempts to come back on line, switch the current communication mode, for example, switch the current communication mode of the control device to the request response mode, and change the time interval at which the control device sends the heartbeat packet from the second time interval of the original heartbeat packet to a shorter first time interval, for example, from 10 seconds to 3 seconds. Optionally, the control device status information is added to the heartbeat packet.
Meanwhile, under the condition that a communication fault exists between the control equipment and the superior control system, if the heartbeat packet response message sent by the superior control system is not received within the first preset time, the test task of the test equipment is not interrupted, meanwhile, the test data is stopped from being sent to the superior control system, and the test data is stored in a memory of the control equipment. In an actual application scene, the test data is cached through the control equipment, and the test task of the test equipment is not interrupted.
Here, the first preset time is greater than the first time interval and the second time interval, and may correspond to a test period. For example, the first preset time is 20 seconds, which is greater than the first time interval of 3 seconds and the second time interval of 10 seconds and corresponds to the main test period of 20 seconds.
It should be noted that, in this embodiment, if there is a communication fault between the control device and the upper control system, a heartbeat packet is sent to the upper control system at a first time interval, where the first time interval is smaller than a second time interval, and the second time interval is a heartbeat packet sending period when the communication between the control device and the upper control system is normal; and storing the test data acquired by the test equipment to a memory of the control equipment under the condition that the heartbeat packet response message of the superior control system is not received within the first preset time. Under the condition that a communication fault exists between the control equipment and the superior control system, the time interval of sending the heartbeat packet to the superior control system is shortened, and under the condition that a response message of the heartbeat packet of the superior control system is not received within the first preset time, the test data collected by the test equipment is stored in a memory of the control equipment, the test task of the test equipment is not stopped, and the previously issued test task can still be completed under the communication fault, so that the system initialization process after the connection is carried out again is saved, and the problem that the test is interrupted or the test time is prolonged due to the communication fault between the control equipment and the superior control system in the related technology is solved.
Optionally, in this embodiment, in a case that a heartbeat packet response message sent by the upper control system is not received within a first preset time, after storing test data collected by the test equipment in a memory of the control equipment, the method further includes, but is not limited to: and under the condition of receiving the heartbeat packet response message, sending the test data stored in the memory to the upper-level control system.
Specifically, in this embodiment, in the case of receiving a heartbeat packet response message sent by the upper control system, the test data stored in the memory is sent to the upper control system, and in one example, after the communication between the control device and the upper control system is recovered to normal, the test data cached by the control device is sent to the upper control system, during which the test task of the test device is not interrupted.
In a specific application scenario, after the control device reestablishes the connection with the upper control system, the control device receives a heartbeat response message of the upper control system, and then sends the test data stored in the memory to the upper control system. The superordinate control system can restore the last stored test data for the user. Meanwhile, the test task before the communication failure (communication disconnection) is recovered in the upper-level control system, and the test progress of the test task in the upper-level control system is updated according to the test progress in the current test equipment.
Through the embodiment, under the condition that the communication fault exists between the control equipment and the superior control system, the test data acquired by the test equipment is stored in the memory of the control equipment, the test of the test equipment is not stopped, and after the communication between the control equipment and the superior control system is recovered to be normal, the test data stored in the period is uploaded to the superior control system, so that the uploading of the data is completed, and the condition that the test is interrupted or the test time is prolonged due to the communication fault between the control equipment and the superior control system is avoided.
Optionally, in this embodiment, in a case that there is a communication failure between the control device and the upper control system, before sending the heartbeat packet to the upper control system at every first time interval, the method further includes, but is not limited to: sending a heartbeat packet to a superior control system by using a second time interval; under the condition that a heartbeat packet response message sent by a superior control system is not received within a second preset time, determining that a communication fault exists between the control equipment and the superior control system; the first time interval is enabled for sending heartbeat packets to the upper level control system.
Specifically, in this embodiment, in a case where the control device and the upper control system are communicating normally, the control device transmits the heartbeat packet to the upper control system using the second time interval. And if the control equipment does not receive the heartbeat packet response message of the superior control system within the second preset time, the communication fault is considered. In a specific application scenario, a receiving time point and an error time are preset by a control device and a superior control system, if a heartbeat packet response message sent by the superior control system is not received within a time range of the receiving time point plus or minus the error time, a communication fault is considered to exist, then a first time interval is started, a heartbeat packet is sent to the superior control system according to the first time interval, and the connection with the superior control system is tried to be re-established to recover the communication.
Thus, if the communication connection is restored during the re-connection, i.e. between the first time interval and the first predetermined time (e.g. from the 3 rd second to the 20 th second), the apparatus according to the invention will not have any stop of operation due to the communication failure, so that the communication failure will not affect the subsequent tests.
Optionally, in this embodiment, after sending the heartbeat packet to the upper control system at every first time interval, the method further includes, but is not limited to: and under the condition that a communication fault exists between the control equipment and the superior control system or a heartbeat packet response message is not received within third preset time, controlling the test equipment to keep executing a test task according to the stored test information and storing the test data into the memory.
In this embodiment, if the communication connection is restored before the test task established based on the stored test information is executed, the apparatus according to the present invention will not have any operation stop due to the communication failure, so that the communication failure will not affect the subsequent test.
Specifically, in a case that the control device continuously sends the heartbeat packet to the upper control system according to the first time interval, and does not receive the heartbeat packet response message within a third preset time, it is determined that the control device and the upper control system are failed to be reconnected, where the third preset time may be an integral multiple of the first time interval, for example, 5 times, that is, 5 reconnection requests are sent.
Then, under the condition that a communication fault exists between the control device and the upper control system, during the period that the control device and the upper control system are connected again (communication is recovered) or after the connection is failed again, the control device caches the test data which are completed by the test device into a memory of the control device, and controls the test device to keep executing the test instruction corresponding to the test task according to the stored completed test information, wherein the data stored into the memory of the control device are the test data which are not sent to the upper control system by the control device, and if the test data are uploaded into the upper control system, the test data are discarded.
By the embodiment, under the condition that the communication fault exists between the control equipment and the superior control system, the test data acquired by the test equipment is stored in the memory of the control equipment, the test of the test equipment is not stopped, and the previously issued test task can still be completed under the communication fault, so that the system initialization process after the re-connection is saved.
Optionally, in this embodiment, after sending the heartbeat packet to the upper control system at every first time interval, the method further includes, but is not limited to: when the control equipment receives the reply of the superior control system, the communication between the control equipment and the superior control system is determined to be recovered to be normal; and receiving test information sent by the superior control system and executing the test according to the test information.
In addition, during the period of communication failure between the control device and the upper control system, the upper control system may receive test information input by a user, the test information may be manually input by the user or imported into the upper control system through a file, the test information includes a test task and test data in the test task, and the test information is saved in a memory of the upper control system. When the control equipment receives the reply of the superior control system, the communication between the control equipment and the superior control system is determined to be recovered to be normal, after the communication between the control equipment and the superior control system is recovered to be normal, the superior control system sends test information to the control equipment, the test information stored in the memory of the control equipment is matched according to the received test information sent by the superior control system, so that target test data matched with the test information in the memory of the control equipment is obtained, at the moment, the superior control system already stores the target test data, the control equipment is not required to upload the target test data, and therefore the target test data is deleted from the memory of the control equipment.
As an optional technical scheme, test information sent by a superior control system is received, test data in a memory of the control device is matched according to matching data of the test information, if test tasks with the same test task but different test data exist, an alarm prompt is sent to the superior control system to prompt that the test data of the test tasks are different, a user is reminded to perform manual investigation, and errors caused by manual input of the test data by the user are avoided.
Through the embodiment, after the communication between the control equipment and the superior control system is recovered to be normal, the superior control system sends the test information to the control equipment, and deletes the target test data matched with the test information in the memory, so that the repeated transmission of the control equipment on the target test data is avoided, the repeated operation is reduced, and the system initialization process after the connection is performed again is saved.
Optionally, in this embodiment, before receiving the test information sent by the upper control system, the method further includes, but is not limited to: when the user equipment does not receive the heartbeat packet sent by the control equipment within the fourth preset time, determining that a communication fault exists between the control equipment and a superior control system; outputting warning information through a superior control system; and receiving and storing the test information input by the user through the superior control system.
Specifically, in this embodiment, when the user equipment does not receive the heartbeat packet sent by the control equipment within the fourth preset time, it is determined that a communication fault exists between the control equipment and the upper control system, and when the communication fault exists between the control equipment and the upper control system, the upper control system outputs warning information, where the warning information is used to prompt that communication between the control equipment and the upper control system is disconnected, for example, a data line is disconnected, and a non-power-off fault exists. After the predetermined time, test information manually input or imported by a user to the upper-level control system can be cached, and the test information comprises but is not limited to a test task and test data corresponding to the test task. And after the superior control system receives the test information input by the user and the test information is confirmed and submitted by the user, the test information is uploaded to a preset database, and a test task work form corresponding to the test information is not sent to the test equipment. Meanwhile, after the communication between the control equipment and the superior control system is recovered to be normal, the test information input by the user is sent to the control equipment.
Optionally, in this embodiment, the method further includes, but is not limited to: under the condition that the communication between the superior control system and the preset database is normal, the superior control system uploads the test data to the preset database one by one, and adds a preset mark to the test data; under the condition that the communication fault exists between the upper-level control system and the preset database, the test data is cached through the upper-level control system; and uploading the cached specified test data to the preset database through the superior control system under the condition that the superior control system and the preset database are communicated and recovered normally, wherein the specified test data are the test data without the preset mark.
In a specific application scenario, the superior control system is also connected to the preset data through a local area network or a wide area network, for example, the superior control system is connected to a hospital information system (LIS) and displays a connection status of the LIS. During normal operation, the upper control system sends test data to the LIS one by one. And the superior control system adds a preset mark to the successfully uploaded test data. When the superior control system is disconnected with the preset database, the superior control system outputs the warning information. When the connection between the upper control system and the preset database is reestablished, the upper control system sends the previously stored and unsent (without the preset mark) specified test data to the LIS system. Through the embodiment, repeated transmission of the test data of the superior control system is avoided, redundant operation is reduced, and the system initialization process after the connection is performed again is saved.
According to the embodiment, under the condition that a communication fault exists between the control equipment and the superior control system, heartbeat packets are sent to the superior control system at intervals of a first time interval, wherein the first time interval is smaller than a second time interval, and the second time interval is a heartbeat packet sending period when the communication between the control equipment and the superior control system is normal; and storing the test data acquired by the test equipment to a memory of the control equipment under the condition that the heartbeat packet response message of the superior control system is not received within the first preset time. Under the condition that a communication fault exists between the control equipment and the superior control system, the time interval of sending the heartbeat packet to the superior control system is shortened, and under the condition that a response message of the heartbeat packet of the superior control system is not received within the first preset time, the test data collected by the test equipment is stored in a memory of the control equipment, the test task of the test equipment is not stopped, and the previously issued test task can still be completed under the communication fault, so that the system initialization process after the connection is carried out again is saved, and the problem that the test is interrupted or the test time is prolonged due to the communication fault between the control equipment and the superior control system in the related technology is solved.
Example two
Referring to fig. 3, a flow chart of a method for operating an instrument according to an embodiment of the present invention is shown. Taking an upper-level control system as an upper computer and a control device as a middle computer as an example, the method can specifically comprise the following steps:
s31, detecting a communication fault between the upper computer and the middle computer;
specifically, during normal operation, the upper computer and the middle computer send bidirectional heartbeat packets at a predetermined time interval (for example, 10 seconds) to ensure that communication is normal. And if the central computer does not receive the heartbeat packet of the upper computer within the preset time, the communication fault is considered.
S32, judging whether the connection is successfully reconnected;
specifically, in the case of a failure between the middle computer and the upper computer, the middle computer attempts to reconnect, i.e., switches to the second communication mode, i.e., the request response mode, i.e., the heartbeat packet is sent at a certain time interval. At this time, the following steps can be carried out: changing the preset time for sending the heartbeat packet by the middle position machine from the original preset time for sending the heartbeat packet to a shorter preset time, for example, changing from 10 seconds to 3 seconds; adding the middle bit machine state into the data packet.
If the upper computer response is not received all the time, the connection is considered to be failed again, and the step is switched to S33; if the upper computer response is received, the process goes to S34.
S33, buffering the test data in the middle bit machine;
specifically, during the reconnection and after the reconnection failure, the bit machine buffers the test data that is completed but not transmitted, continues to run the received test task, and jumps to execute S32.
S34, sending the test data cached in the middle computer to the upper computer;
specifically, after the connection is reestablished, the middle computer receives a reply from the upper computer, and sends the test data cached previously to the upper computer. .
S35, uploading the test data to a preset database one by the upper computer;
specifically, the upper computer sends the test data to the preset database one by one according to the test tasks.
By the embodiment, the test task of the test equipment is not stopped, and the previously issued test task can still be completed under the communication fault, so that the system initialization process after the connection is performed again is saved, and the problem of test interruption or test time extension caused by the communication fault between the control equipment and the superior control system in the related technology is solved.
EXAMPLE III
Detailed description an apparatus for operation of an instrument according to an embodiment of the present invention is described.
Referring to fig. 4, there is shown a schematic diagram of an apparatus for operation of an instrument in an embodiment of the present invention.
The application program loading device of the embodiment of the invention is applied to an instrument, the instrument comprises a test device, a control device for controlling the test device and a superior control system in communication connection with the control device, and the device comprises: communication unit 40, storage unit 42.
The functions of the modules and the interaction relationship between the modules are described in detail below.
The communication unit 40 comprises a control module, a determination module and a communication module, wherein the determination module is used for determining whether a communication fault exists between the control equipment and a superior control system;
the communication module is used for sending heartbeat packets to the superior control system at intervals of a first time interval under the condition that communication faults exist between the control equipment and the superior control system;
the determining module is configured to determine the first time interval according to a preset beat function, where the first time interval is smaller than a second time interval, and the second time interval is a heartbeat packet sending period when the control device and the superior control system are in normal communication;
and the storage unit 42 is configured to store the test data acquired by the test equipment into the memory of the control equipment when the heartbeat packet response message sent by the superior control system is not received within a first preset time.
Optionally, in this embodiment, the method further includes:
the transmission unit is used for storing test data acquired by the test equipment to a memory of the control equipment under the condition that a heartbeat packet response message sent by the superior control system is not received within a first preset time, and sending the test data stored in the memory to the superior control system under the condition that the heartbeat packet response message sent by the superior control system is received.
Moreover, in the embodiment of the present invention, when there is a communication failure between the control device and the upper control system, a heartbeat packet is sent to the upper control system at a first time interval, where the first time interval is smaller than a second time interval, and the second time interval is a heartbeat packet sending period when the communication between the control device and the upper control system is normal; and storing the test data acquired by the test equipment to a memory of the control equipment under the condition that the heartbeat packet response message of the superior control system is not received within the first preset time. Under the condition that a communication fault exists between the control equipment and the superior control system, the time interval of sending the heartbeat packet to the superior control system is shortened, and under the condition that a response message of the heartbeat packet of the superior control system is not received within the first preset time, the test data collected by the test equipment is stored in a memory of the control equipment, the test task of the test equipment is not stopped, and the previously issued test task can still be completed under the communication fault, so that the system initialization process after the connection is carried out again is saved, and the problem that the test is interrupted or the test time is prolonged due to the communication fault between the control equipment and the superior control system in the related technology is solved.
Example four
Additionally, an embodiment of the present invention further provides an electronic device, including: the processor, the memory, and the computer program stored in the memory and capable of running on the processor, when being executed by the processor, implement each process of the above-mentioned instrument operation method embodiment, and can achieve the same technical effect, and are not described herein again to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the embodiment of the instrument operation method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention or portions thereof contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the methods according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (11)

1. A method for operating an instrument, wherein the instrument comprises a test device for performing a medical test, a control device for controlling the test device, and a superordinate control system which is in communication connection with the control device, the method comprising:
under the condition that a communication fault exists between control equipment and a superior control system, heartbeat packets are sent to the superior control system at intervals of a first time interval, wherein the first time interval is smaller than a second time interval, and the second time interval is a heartbeat packet sending period when the communication between the control equipment and the superior control system is normal;
and storing the test data collected by the test equipment to a memory of the control equipment under the condition that the heartbeat packet response message sent by the superior control system is not received within a first preset time.
2. The method according to claim 1, wherein after storing the test data collected by the test equipment into the memory of the control equipment, if the heartbeat packet response message sent by the superior control system is not received within a first preset time, the method further comprises:
and under the condition of receiving a heartbeat packet response message sent by the superior control system, sending the test data stored in the memory to the superior control system.
3. The method of claim 2, wherein before sending the heartbeat packet to the upper control system at a first time interval in case of a communication failure between the control device and the upper control system, further comprising:
sending a heartbeat packet to the superior control system using the second time interval;
under the condition that a heartbeat packet response message sent by the superior control system is not received within second preset time, determining that a communication fault exists between the control equipment and the superior control system;
enabling the first time interval to send heartbeat packets to the superior control system.
4. The method of claim 3, further comprising, after sending heartbeat packets to the superordinate control system at first time intervals:
and under the condition that a communication fault exists between the control equipment and the superior control system or the heartbeat packet response message is not received within a third preset time, controlling the test equipment to keep executing a test task according to the stored test information and storing the test data into the memory.
5. The method of claim 1, further comprising, after sending heartbeat packets to the superordinate control system at first time intervals:
when the control equipment receives the reply of the superior control system, determining that the communication between the control equipment and the superior control system is recovered to be normal;
and receiving test information sent by the superior control system and executing a test according to the test information.
6. The method of claim 5, wherein before receiving the test information sent by the superordinate control system, the method further comprises:
when the superior control system does not receive the heartbeat packet sent by the control equipment within the fourth preset time, determining that the communication fault exists between the control equipment and the superior control system;
outputting warning information through the superior control system;
and receiving and storing the test information input by the user through the superior control system.
7. The method of claim 5, further comprising:
under the condition that a superior control system is normally communicated with a preset database, test data are uploaded to the preset database one by one through the superior control system, and preset marks are added to the test data;
under the condition that a superior control system and the preset database are in communication failure, caching the test data through the superior control system;
and uploading the cached specified test data to the preset database through the superior control system under the condition that the superior control system and the preset database are communicated and recovered to be normal.
8. An apparatus for operation of an instrument, the apparatus being adapted for use with an instrument, the instrument including a test device, a control device for controlling the test device, and a superordinate control system in communication with the control device, the apparatus comprising:
a communication unit comprising a control module and a communication module, wherein,
the judging module is used for judging whether a communication fault exists between the control equipment and the superior control system;
the communication module is used for sending heartbeat packets to a superior control system at intervals of a first time interval under the condition that communication faults exist between the control equipment and the superior control system;
the determining module is configured to determine the first time interval according to a preset beat function, where the first time interval is smaller than a second time interval, and the second time interval is a heartbeat packet sending period when the control device and the superior control system are in normal communication;
and the storage unit is used for storing the test data acquired by the test equipment to the memory of the control equipment under the condition that the heartbeat packet response message sent by the superior control system is not received within a first preset time.
9. An electronic device, comprising: memory, processor and computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the instrument operation method according to any one of claims 1 to 7.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method of operating an instrument according to any one of claims 1 to 7.
11. A sample analyzer, characterized in that it has a device for instrument operation according to claim 8 or an electronic device according to claim 9 or a computer-readable storage medium according to claim 10.
CN202110206527.XA 2021-02-24 2021-02-24 Method for operating an instrument and device for operating an instrument Pending CN114979192A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110206527.XA CN114979192A (en) 2021-02-24 2021-02-24 Method for operating an instrument and device for operating an instrument

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110206527.XA CN114979192A (en) 2021-02-24 2021-02-24 Method for operating an instrument and device for operating an instrument

Publications (1)

Publication Number Publication Date
CN114979192A true CN114979192A (en) 2022-08-30

Family

ID=82972545

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110206527.XA Pending CN114979192A (en) 2021-02-24 2021-02-24 Method for operating an instrument and device for operating an instrument

Country Status (1)

Country Link
CN (1) CN114979192A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117827522A (en) * 2024-03-04 2024-04-05 四川零点自动化***有限公司 Fault protection method, equipment and medium for output module

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117827522A (en) * 2024-03-04 2024-04-05 四川零点自动化***有限公司 Fault protection method, equipment and medium for output module
CN117827522B (en) * 2024-03-04 2024-05-14 四川零点自动化***有限公司 Fault protection method, equipment and medium for output module

Similar Documents

Publication Publication Date Title
JP4509545B2 (en) Reliable messaging system with configurable settings
CN103795580A (en) Data monitoring method, system and related equipment
CN103259699B (en) Method of testing, system and client and service end
CN109962827B (en) Equipment link detection method, device, equipment and readable storage medium
WO2018047398A1 (en) Log transmission device and log collection system
CN114979192A (en) Method for operating an instrument and device for operating an instrument
CN110912805B (en) Message reading state synchronization method, terminal, server and system
JP2008052315A (en) Field bus communication diagnostic apparatus and field bus communication diagnostic method
CN103001822B (en) The processing method of Network Abnormal and device
CN110198230B (en) Application monitoring method and device, storage medium and electronic device
CN108092829B (en) Cluster splitting processing method, SDN controller and storage medium
CN112600703B (en) Network equipment remote access fault positioning method and device
CN114244686B (en) Communication fault detection method, device and system
CN109698774A (en) Method and device for monitoring device working condition
JP4317065B2 (en) Equipment management system, setting information management device, controller, and program
CN110554935B (en) Facility monitoring system and communication method in facility monitoring system
CN117400301B (en) Robot detection method, device and nonvolatile storage medium
JP7361508B2 (en) Information storage device, information output method, and redundancy system
CN110659174A (en) Monitoring alarm method, device and system
KR102513610B1 (en) Apparatus and method for checking disconnetcted sector of ethernet network
JP2004213412A (en) Duplex controller
CN110955210B (en) AGV scheduling method, device and system
CN108319511B (en) Method and system for realizing self-defined transparent transmission command in instant messaging
CN111918414A (en) Wireless multiple redundant communication method based on android system
JP2013021493A (en) Network system, apparatus, and relay device

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