CN107766168B - Data archiving method and device and terminal - Google Patents
Data archiving method and device and terminal Download PDFInfo
- Publication number
- CN107766168B CN107766168B CN201711008777.2A CN201711008777A CN107766168B CN 107766168 B CN107766168 B CN 107766168B CN 201711008777 A CN201711008777 A CN 201711008777A CN 107766168 B CN107766168 B CN 107766168B
- Authority
- CN
- China
- Prior art keywords
- data
- archived
- archiving
- failure
- target terminal
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0706—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
- G06F11/0727—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in a storage system, e.g. in a DASD or network based storage system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0751—Error or fault detection not based on redundancy
- G06F11/0754—Error or fault detection not based on redundancy by exceeding limits
- G06F11/076—Error or fault detection not based on redundancy by exceeding limits by exceeding a count or rate limit, e.g. word- or bit count limit
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0766—Error or fault reporting or storing
- G06F11/0778—Dumping, i.e. gathering error/state information after a fault for later diagnosis
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/079—Root cause analysis, i.e. error or fault diagnosis
Abstract
The embodiment of the invention provides a data archiving method, a data archiving device and a terminal, and relates to the technical field of medical treatment. In one aspect, a method provided by an embodiment of the present invention includes: firstly, sending data to be archived to an archived target terminal so that the target terminal receives the data to be archived; then, judging whether the data to be archived is successfully archived; if the archiving failure is judged, acquiring the reason of the archiving failure; therefore, whether the reason of the archiving failure meets the specified condition is judged; and when the reason of the archiving failure meets a specified condition, retransmitting the data to be archived to the target terminal. Therefore, the technical scheme provided by the embodiment of the invention can reduce the frequency of sending the prompt of the filing failure to a certain extent, reduce the user operation and improve the efficiency of data filing.
Description
[ technical field ] A method for producing a semiconductor device
The invention relates to the technical field of medical treatment, in particular to a data archiving method, a data archiving device and a terminal.
[ background of the invention ]
Due to the fact that the storage resource of the terminal is limited, in order to save the storage resource of the terminal, the data collected by the terminal is filed on another device (such as a server and a network disk), and when some data needed by the terminal or other terminals are obtained through interaction with the device, the storage space of the terminal can be saved.
When the collected data is archived, the communication network between the two devices for archiving may be unstable; alternatively, the archiving fails because the device receiving the archived data cannot recognize the format of the data, and so on. In the prior art, when the archive fails, the terminal only sends out the prompt information of the archive failure, and after the user knows that the archive fails, the user may trigger the terminal to perform the data archive again.
In the process of implementing the invention, the inventor finds that the prior art has at least the following technical problems:
only sending out prompt information, and continuously and blindly triggering the terminal to execute data archiving again to ensure that the data archiving is successful after the user fails to acquire the archiving, so that the frequency of the terminal sending out the archiving failure prompt is high, the data archiving efficiency is low, and the user experience is poor.
[ summary of the invention ]
In view of this, embodiments of the present invention provide a data archiving method, apparatus and terminal, which can reduce the number of times of sending a prompt for an archiving failure to a certain extent, reduce user operations, and improve the efficiency of data archiving.
In one aspect, an embodiment of the present invention provides a data archiving method, which is applied to a medical apparatus, and the method includes:
sending data to be archived to an archived target terminal so that the target terminal receives the data to be archived;
judging whether the data to be archived is successful in archiving;
if the archiving failure is judged, acquiring the reason of the archiving failure;
judging whether the reason of the archiving failure meets a specified condition or not;
and when the reason of the archiving failure meets a specified condition, retransmitting the data to be archived to the target terminal.
The above-described aspect and any possible implementation manner further provide an implementation manner, where the obtaining of the reason for the archiving failure includes:
receiving information of filing failure sent by the target terminal;
and analyzing the archiving failure information to obtain the reason of the archiving failure.
The above-described aspect and any possible implementation manner further provide an implementation manner, where the obtaining of the reason for the archiving failure further includes:
and acquiring the reason of the archiving failure from the self detection window.
The above-described aspect and any possible implementation manner further provide an implementation manner, where the specified condition includes a network reason or occupation of the target terminal by other processes.
The above-described aspect and any possible implementation manner further provide an implementation manner, before the resending of the data to be archived to the target terminal, the method further includes:
acquiring the retransmission times of the data to be archived;
judging whether the times exceed a preset retransmission time;
if the number of times of retransmission does not exceed the preset number of times of retransmission, the retransmitting the data to be archived to the target terminal includes: and retransmitting the data to be archived to the target terminal and recording the number of times of transmitting the data to be archived.
The above-described aspect and any possible implementation manner further provide an implementation manner, before the sending, to an archived target terminal, data to be archived, so that the target terminal receives the data to be archived, the method further includes:
creating an archiving task;
saving the filing task information at a designated position;
and acquiring the archiving task information from the specified position.
Wherein the archiving task information includes: and a plurality of target terminals for archiving data.
The foregoing aspect and any possible implementation manner further provide an implementation manner, where when the archiving task includes a plurality of data to be archived and the plurality of data to be archived are archived according to a specified order, resending the data to be archived to the target terminal further includes:
recording data to be archived, which fails to be archived;
judging whether the number of times of sending the data to be archived is the same as the number of the data to be archived needing to be sent or not;
if the number of times of sending the data to be archived is judged to be the same as the number of the data to be archived needing to be sent, all recorded data to be archived which are failed to be archived are sent to the target terminal again;
and if the number of times of sending the data to be archived is judged to be different from the number of the data to be archived, carrying out data archiving on the other data to be archived, which is adjacent to the data to be archived, in the specified archiving task.
In another aspect, an embodiment of the present invention provides a data archiving apparatus, where the apparatus includes:
the device comprises a sending unit, a receiving unit and a sending unit, wherein the sending unit is used for sending data to be archived to an archived target terminal so that the target terminal receives the data to be archived;
the judging unit is used for judging whether the data to be archived is successfully archived;
the acquisition unit is used for acquiring the reason of the filing failure if the filing failure is judged;
the judging unit is further configured to judge whether the reason for the archiving failure meets a specified condition;
the sending unit is further configured to resend the data to be archived to the target terminal when the reason for the archiving failure satisfies a specified condition.
The foregoing aspect and any possible implementation manner further provide an implementation manner, where the obtaining, by the obtaining unit, a reason for the failure to obtain the archive includes:
receiving the information that the target terminal fails to send the archiving,
analyzing the archiving failure information to obtain the reason of the archiving failure;
alternatively, the first and second electrodes may be,
acquiring the reason of the filing failure from a self detection window;
wherein the specified condition comprises a network reason or occupation of the target terminal by other processes.
On the other hand, the embodiment of the invention also provides a data archiving terminal, wherein the terminal comprises a processor, a memory and an input/output device, and the processor, the memory and the input/output interface are communicated through a bus; the memory is configured with computer instructions that the processor can call to control the input-output interface;
the computer instructions, when executed by the processor, enable the electronic terminal to implement any one of the above data archiving methods.
The embodiment of the invention provides a data archiving method, a data archiving device and a terminal, and the data archiving terminal is triggered to resend the data to be archived to the target terminal by utilizing the reason for acquiring the archiving failure. Compared with the prior art, the technical scheme provided by the invention can selectively trigger the data archiving terminal to automatically execute the operation of re-archiving according to the reason of the archiving failure when the archiving failure occurs, thereby effectively reducing the frequency of sending the prompt of the archiving failure, reducing the user operation and improving the efficiency of data archiving.
[ description of the drawings ]
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described 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 to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a data archiving method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of another data archiving method according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart of another data archiving method according to an embodiment of the present invention;
FIG. 4 is a schematic flow chart of another data archiving method according to an embodiment of the present invention;
FIG. 5 is a schematic flow chart of another data archiving method according to an embodiment of the present invention;
FIG. 6 is a flowchart illustrating an implementation method of step 105 according to an embodiment of the present invention;
FIG. 7 is a block diagram of a data archive device according to an embodiment of the present invention;
FIG. 8 is a block diagram of another data archive device according to an embodiment of the present invention;
fig. 9 is a block diagram of a data archiving terminal according to an embodiment of the present invention.
[ detailed description ] embodiments
For better understanding of the technical solutions of the present invention, the following detailed descriptions of the embodiments of the present invention are provided with reference to the accompanying drawings.
It should be understood that the described embodiments are only some embodiments of the invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be understood that the term "and/or" as used herein is merely one type of association that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
An embodiment of the present invention provides a data archiving method, which is applied to a medical apparatus, and a flow chart of the method is shown in fig. 1, and the method includes the following steps:
the medical apparatus includes, but is not limited to, devices used in the medical technical field, such as an X-ray imaging device, a CT scanner, a magnetic resonance device, a PET-CT scanner, and an electrocardiograph
101. And sending data to be archived to an archived target terminal so that the target terminal receives the data to be archived.
102. And judging whether the data to be archived is successfully archived.
The execution subject can determine whether the data to be archived is successfully archived in the following two ways: in one mode, after an execution main body sends data to be archived to a target terminal, the target terminal sends a feedback message to a data archiving terminal where the execution main body is located, so that the target terminal can determine the data archiving condition and carry the data archiving result in the feedback message, and therefore the data archiving terminal judges whether the data to be archived is successful by analyzing the data archiving result in the feedback message. In another mode, the data archiving terminal can also be provided with a detection window to monitor the condition of the data to be archived so as to judge whether the data to be archived is archived. For example, after sending data to be archived to a target terminal, the data archiving terminal starts to periodically detect whether a message sent by the target terminal is received, and if the message sent by the target terminal is not received within a specified time, the archiving failure is judged; if the message sent by the target terminal is received within the specified time, the execution main body can directly judge that the data archiving is successful, or further judge.
It should be noted that the two implementation manners of the two execution entities determining whether the data to be archived is successful are only two specific examples, which are not limiting to the present invention, for example, the present invention may also combine the two implementation manners to implement step 102.
103. And if the archiving failure is judged, acquiring the reason of the archiving failure.
The reason for the failure of the archiving may be divided into two categories, one is a subjective reason, that is, the reason for the failure of the archiving is caused by the configuration of the terminal sending the data to be archived and/or the target terminal receiving the data to be archived, for example, the format of the data to be archived is not the format of the data to be archived that the target terminal can receive, and the like. The other is an objective reason, namely, the archiving fails due to some external factors, for example, the data archiving terminal and the target terminal are unstable in network or network is interrupted, the target terminal is occupied by other processes, and the like.
It should be noted that each of the reasons for the archiving failure has a corresponding error flag, and the execution subject identifies the reason for the archiving failure by identifying the error flag. For example, the error identifier is an error code, that is, each reason of the archiving failure has a unique corresponding error code, the execution subject identifies the error code corresponding to the reason of the archiving failure, and determines the reason of the archiving failure.
It is supplementary to say that, if the execution main body determines that the data to be archived is successfully archived, the execution main body deletes the corresponding archived data.
104. And judging whether the reason of the archiving failure meets a specified condition or not.
The objective reason of the filing failure can be set as a specified condition, namely the specified condition comprises a network reason or the target terminal is occupied by other processes.
105. And when the reason of the archiving failure meets a specified condition, retransmitting the data to be archived to the target terminal.
When the reason of the filing failure meets the specified condition, triggering the data filing terminal to automatically send the data of the filing failure to the target terminal again, for example, when the executive body determines that the reason of the filing failure is the network reason, the data filing terminal automatically sends the data to be filed to the target terminal again, and the method that the user triggers the data filing terminal to send the data to be filed to the target terminal again after the filing failure in the prior art is replaced.
It is supplementary to explain that, for the data to be archived, which has failed to be archived due to subjective reasons, the data to be archived will not be successfully archived even if the data to be archived is re-archived. Therefore, for this situation, when it is determined that the reason for the filing failure does not satisfy the specified condition, that is, the reason for the filing failure does not belong to the network reason or the target terminal is occupied by another process, the indication information of the filing failure is sent out, so that the user can know that the filing failure is caused by the reason that the data format of the data to be filed is not the format recognizable by the target terminal or the reason that the sending of the data to be filed does not satisfy the subjective reasons such as the communication protocol between the data filing terminal and the target terminal, and therefore, the user can re-file the data by changing the format and the communication protocol of the filed data or selecting another target terminal, and further, the data can be filed.
The embodiment of the invention provides a data archiving method, which triggers a data archiving terminal to resend the data to be archived to a target terminal by utilizing the reason for acquiring the archiving failure. Compared with the prior art, the technical scheme provided by the invention can selectively trigger the data archiving terminal to automatically execute the operation of re-archiving according to the reason of the archiving failure when the archiving failure occurs, thereby effectively reducing the frequency of sending the prompt of the archiving failure, reducing the user operation and improving the efficiency of data archiving.
Further, for the implementation of obtaining the reason for the archiving failure in step 103, the embodiment of the present invention provides two implementation manners,
in a first manner, as shown in fig. 2, step 103 specifically includes:
1031a, receiving the information that the target terminal fails to send the filing.
1032a, analyzing the archiving failure information to acquire the reason of the archiving failure.
In a second manner, as shown in fig. 3, step 103 specifically includes:
1031b, obtaining the reason of filing failure from the self detection window.
Wherein the detection window is used for monitoring the condition that the execution subject executes data archiving.
Further, in order to avoid that the data archiving terminal repeatedly performs the data archiving operation, and occupies the data archiving terminal system for a long time, and affects the data archiving terminal system to perform other operations, as shown in fig. 4, in step 105, when the reason for the failed archiving satisfies the specified condition, before the data to be archived is retransmitted to the target terminal, the method further includes:
106. and acquiring the retransmission times of the data to be archived.
107. And judging whether the times exceed a preset retransmission time.
The preset retransmission times can be set according to a specified archiving failure reason, for example, the archiving failure reason is a communication network reason, and the retransmission times of the archived data is set to 10 times; the reason of filing failure is subjective, and the retransmission times of the filed data are set to be 0; or, the reason of the filing failure is that the target terminal is occupied by other processes, and the number of times of retransmitting the filed data is set to be countless.
It should be noted that the method for setting the preset retransmission times is only a specific form provided by the embodiment of the present invention, and the preset retransmission times can also be set according to the user requirement.
If it is determined that the number of retransmissions does not exceed the predetermined number of retransmissions, step 105 specifically includes:
1051. and retransmitting the data to be archived to the target terminal and recording the number of times of transmitting the data to be archived.
And retransmitting the archived data to the target terminal, and adding 1 to the number of times of retransmitting the archived data so as to record the number of times of retransmitting the archived data.
It should be noted that, if it is determined that the number of times of retransmission exceeds the preset number of times of retransmission, step 106 is executed to send a prompt message indicating that the archiving is failed.
Further, if the execution main body includes a plurality of different types of data to be archived and the data to be archived needs to be sent to different target terminals, as shown in fig. 5, an embodiment of the present invention provides another implementation manner for such a situation, before sending the data to be archived to an archived target terminal in step 101, so that the target terminal receives the data to be archived, the method further includes:
108. an archiving task is created.
By creating the archiving task, the data to be archived can be classified and divided, and corresponding target terminals can be allocated to the different types of data by creating the archiving task.
109. And saving the filing task information at a designated position.
110. And acquiring the archiving task information from the specified position.
Wherein the archiving task information includes: and a plurality of target terminals for archiving data.
Further, when the specified archiving task includes a plurality of data to be archived and the plurality of data to be archived are archived according to the specified order, based on this situation, an embodiment of the present invention provides another implementation manner, as shown in fig. 6, when the reason for the failure of archiving satisfies the specified condition, the step 105 of resending the data to be archived to the target terminal further includes:
201. and recording the data to be archived which fails to be archived.
202. And judging whether the current times of sending the data to be archived is the same as the number of the data to be archived needing to be sent or not.
203. And if the number of times of sending the data to be archived is judged to be the same as the number of the data to be archived needing to be sent, sending all recorded data to be archived, which are failed to be archived, to the target terminal again.
204. And if the number of times of sending the data to be archived is judged to be different from the number of the data to be archived, carrying out data archiving on the other data to be archived, which is adjacent to the data to be archived, in the specified archiving task.
Specifically, for example, the designated filing task includes 5 pieces of data A, B, C, D and E to be filed, and the data are filed sequentially from left to right in the above arrangement. Assuming that the currently archived data is data C, when the execution main body judges that the archiving of the data C fails and the reason of the archiving failure is an objective reason, the execution main body records the identifier C of the data C; then, because the data C is the data that is designated to be archived in the third archiving task, it is determined that the execution subject currently performs 3 times of operations of sending the data to be archived, and the number of the data to be archived that needs to be actually sent is 5 times, and therefore, it is determined that the number of times of currently sending the data to be archived is different from the number of the data to be archived that needs to be sent, so that the execution subject performs data archiving on the data D according to the archiving method provided by the present invention, and after 5 data in the designated task are subjected to data archiving processing, corresponding data are resent according to the recorded data identifier that fails in archiving, and thus the data are archived again.
It should be added that, after determining that the reason for the failure of the archiving is the objective reason, the above steps 202 to 204 may not be executed, and the data may be directly re-sent to the target terminal again until the data is successfully archived, and then the next data to be archived is sent.
Based on the foregoing data archiving method, an embodiment of the present invention further provides a data archiving apparatus, configured to implement the steps of the foregoing data archiving method, where a functional block diagram of the apparatus is shown in fig. 7, and the apparatus includes:
a sending unit 31, configured to send data to be archived to an archived target terminal, so that the target terminal receives the data to be archived.
The judging unit 32 is configured to judge whether the data to be archived is successfully archived.
The obtaining unit 33 is configured to obtain a reason for the filing failure if the filing failure is determined.
Specifically, the obtaining unit 33 is specifically configured to receive information that the target terminal fails to send the archive and analyze the information that the archive fails, so as to obtain a reason for the failure; alternatively, the obtaining unit 33 is further specifically configured to obtain the reason for the archiving failure from the self-detection window.
The judging unit 32 is further configured to judge whether the reason for the filing failure satisfies a specified condition.
The sending unit 31 is further configured to resend the data to be archived to the target terminal when the reason for the archiving failure satisfies a specified condition.
It should be noted that the sending unit 31 is further configured to send a prompt message indicating that the archiving fails when the reason for the archiving failure does not satisfy the specified condition.
Optionally, before the sending unit 31 sends the data to be archived again to the target terminal, the units of the data archiving apparatus are further configured to:
the obtaining unit 33 is further configured to obtain the number of retransmissions of the data to be archived.
The judging unit 32 is further configured to judge whether the number of times exceeds a preset number of times of retransmission.
The sending unit 31 is further configured to, if it is determined that the number of times of retransmission does not exceed a preset number of times of retransmission, resend the data to be archived to the target terminal and record the number of times of sending the data to be archived; or sending a prompt message of filing failure if the number of times of retransmission exceeds the preset number of times of retransmission.
Optionally, as shown in fig. 8, the data archiving apparatus further includes:
a creating unit 34 for creating an archiving task.
And a storage unit 35 for storing the filing task information at a specified position.
The acquiring unit 33 is further configured to acquire the filing task information from the specified location.
Wherein the archiving task information includes: and a plurality of target terminals for archiving data.
Optionally, when the designated archiving task includes a plurality of data to be archived and the plurality of data to be archived are archived according to the designated order, the sending unit 31 is specifically configured to, when resending the data to be archived to the target terminal:
and recording the data to be archived which fails to be archived.
And judging whether the number of times of sending the data to be archived is the same as the number of the data to be archived needing to be sent or not.
And if the number of times of sending the data to be archived is judged to be the same as the number of the data to be archived needing to be sent, sending all recorded data to be archived, which are failed to be archived, to the target terminal again.
And if the number of times of sending the data to be archived is judged to be different from the number of the data to be archived, carrying out data archiving on the other data to be archived, which is adjacent to the data to be archived, in the specified archiving task.
The embodiment of the present invention further provides a data archiving terminal, a flowchart of which is shown in fig. 9, the terminal includes a processor 41, a memory 42 and an input/output device 43, the processor 41, the memory 42 and the input/output device 43 communicate with each other through a bus; the memory 42 is configured with computer instructions that the processor 41 can call to control the input/output interface;
the computer instructions, when executed by the processor 41, cause the data archiving terminal to implement any of the data archiving methods set forth by embodiments of the present invention.
And the processor 41 is configured to send data to be archived to an archived target terminal, so that the target terminal receives the data to be archived.
And the processor 41 is configured to determine whether the data to be archived is successful in archiving.
And the processor 41 is configured to, if it is determined that the archiving fails, obtain a reason for the archiving failure.
A processor 41 for determining whether the reason for the archiving failure satisfies a specified condition
And the processor 41 is configured to, when the reason for the archiving failure satisfies a specified condition, resend the data to be archived to the target terminal.
It should be noted that, when the reason for the failure in archiving does not satisfy the specified condition, the processor 41 is further configured to issue a prompt message indicating that archiving fails.
Optionally, the processor 41 is configured to obtain the reason for the archiving failure specifically includes:
and receiving the information that the target terminal fails to send the archiving.
And analyzing the archiving failure information to acquire the failure reason.
Optionally, the processor 41 is configured to obtain the reason for the archiving failure, specifically including:
and acquiring the reason of the archiving failure from the self detection window.
Optionally, the preset condition includes a network reason or that the target terminal is occupied by another process.
Optionally, before said resending of the data to be archived to the target terminal,
the processor 41 is further configured to obtain a number of retransmissions of the data to be archived.
The processor 41 is further configured to determine whether the number of times exceeds a preset number of retransmissions;
the processor 41 is further configured to resend the data to be archived to the target terminal and record the number of times the data to be archived is sent if it is determined that the preset number of times of resending is not exceeded.
The processor 41 is further configured to send a prompt message indicating that the archiving fails if the number of times of retransmission is determined to exceed the preset number of times of retransmission.
Optionally, before the sending of the data to be archived to the archived target terminal so that the target terminal receives the data to be archived, the processor 41 is further configured to create an archiving task; acquiring the created filing task information; and saving the filing task information at a specified position.
Wherein the archiving task information includes: and a plurality of target terminals for archiving data.
Optionally, when the designated archiving task includes a plurality of data to be archived and the plurality of data to be archived are archived according to the designated order, the sending, by the processor 41, the data to be archived to the target terminal again specifically includes:
and recording the data to be archived which fails to be archived.
And judging whether the number of times of sending the data to be archived is the same as the number of the data to be archived needing to be sent or not.
And if the number of times of sending the data to be archived is judged to be the same as the number of the data to be archived needing to be sent, sending all recorded data to be archived, which are failed to be archived, to the target terminal again.
And if the number of times of sending the data to be archived is judged to be different from the number of the data to be archived, carrying out data archiving on the other data to be archived, which is adjacent to the data to be archived, in the specified archiving task.
The embodiment of the invention provides a technical scheme, and the data archiving terminal is triggered to resend the data to be archived to the target terminal by utilizing the reason for acquiring the archiving failure. Compared with the prior art, the technical scheme provided by the invention can selectively trigger the data archiving terminal to automatically execute the operation of re-archiving according to the reason of the archiving failure when the archiving failure occurs, thereby effectively reducing the frequency of sending the prompt of the archiving failure, reducing the user operation and improving the efficiency of data archiving.
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 invention, it should be understood that the disclosed system, 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 there may be other divisions in actual implementation, 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 integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a Processor (Processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.
Claims (8)
1. A data archiving method, adapted for use in a medical device, the method comprising:
sending data to be archived to an archived target terminal so that the target terminal receives the data to be archived;
judging whether the data to be archived is successful in archiving;
if the archiving failure is judged, acquiring the reason of the archiving failure;
judging whether the reason of the archiving failure meets a specified condition or not;
when the reason of the archiving failure meets a specified condition, retransmitting the data to be archived to the target terminal;
before the sending of the data to be archived to the archived target terminal so that the target terminal receives the data to be archived, the method further includes:
creating an archiving task;
saving the filing task information at a designated position;
acquiring archiving task information from the designated position;
wherein the archiving task information includes: a plurality of target terminals for archiving data;
when the archiving task includes a plurality of data to be archived and the plurality of data to be archived are archived according to a specified order, the resending the data to be archived to the target terminal further includes:
recording data to be archived, which fails to be archived;
judging whether the number of times of sending the data to be archived is the same as the number of the data to be archived needing to be sent or not;
if the number of times of sending the data to be archived is judged to be the same as the number of the data to be archived needing to be sent, all recorded data to be archived which are failed to be archived are sent to the target terminal again;
and if the number of times of sending the data to be archived is judged to be different from the number of the data to be archived, carrying out data archiving on the other data to be archived, which is adjacent to the data to be archived, in the appointed archiving task.
2. The method of claim 1, wherein the obtaining the reason for the archiving failure comprises:
receiving information of filing failure sent by the target terminal;
and analyzing the archiving failure information to obtain the reason of the archiving failure.
3. The method of claim 1, wherein obtaining the reason for the archive failure further comprises:
and acquiring the reason of the archiving failure from the self detection window.
4. The method of claim 1, wherein the specified condition comprises a network reason or a target terminal being occupied by another process.
5. The method of claim 1, wherein prior to said resending of said data to be archived to said target terminal, said method further comprises:
acquiring the retransmission times of the data to be archived;
judging whether the times exceed a preset retransmission time;
if the number of times of retransmission does not exceed the preset number of times of retransmission, the retransmitting the data to be archived to the target terminal includes: and retransmitting the data to be archived to the target terminal and recording the number of times of transmitting the data to be archived.
6. A data archiving apparatus, the apparatus comprising:
the device comprises a sending unit, a receiving unit and a sending unit, wherein the sending unit is used for sending data to be archived to an archived target terminal so that the target terminal receives the data to be archived;
the judging unit is used for judging whether the data to be archived is successfully archived;
the acquisition unit is used for acquiring the reason of the filing failure if the filing failure is judged;
the judging unit is further configured to judge whether the reason for the archiving failure meets a specified condition;
the sending unit is further configured to resend the data to be archived to the target terminal when the reason for the archiving failure satisfies a specified condition;
the device further comprises:
a creating unit for creating an archiving task;
the storage unit is used for saving the filing task information at a specified position;
the acquisition unit is further used for acquiring filing task information from the specified position;
wherein the archiving task information includes: a plurality of target terminals for archiving data;
when the filing task includes a plurality of data to be filed and the plurality of data to be filed are filed in a designated order, the sending unit is specifically configured to, when the sending unit resends the data to be filed to the target terminal:
recording data to be archived, which fails to be archived;
judging whether the number of times of sending the data to be archived is the same as the number of the data to be archived needing to be sent or not;
if the number of times of sending the data to be archived is judged to be the same as the number of the data to be archived needing to be sent, all recorded data to be archived which are failed to be archived are sent to the target terminal again;
and if the number of times of sending the data to be archived is judged to be different from the number of the data to be archived, carrying out data archiving on the other data to be archived, which is adjacent to the data to be archived, in the appointed archiving task.
7. The apparatus of claim 6, wherein the obtaining unit obtains the reason for the failure to archive comprises:
receiving the information that the target terminal fails to send the archiving,
analyzing the archiving failure information to obtain the reason of the archiving failure;
alternatively, the first and second electrodes may be,
acquiring the reason of the filing failure from a self detection window;
wherein the specified condition comprises a network reason or occupation of the target terminal by other processes.
8. A data archiving terminal is characterized in that the terminal comprises a processor, a memory and an input and output device, wherein the processor, the memory and an input and output interface are communicated through a bus; the memory is configured with computer instructions that the processor can call to control the input-output interface;
the computer instructions, when executed by the processor, cause the data archiving terminal to implement the method of any one of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711008777.2A CN107766168B (en) | 2017-10-25 | 2017-10-25 | Data archiving method and device and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711008777.2A CN107766168B (en) | 2017-10-25 | 2017-10-25 | Data archiving method and device and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107766168A CN107766168A (en) | 2018-03-06 |
CN107766168B true CN107766168B (en) | 2021-02-02 |
Family
ID=61271694
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711008777.2A Active CN107766168B (en) | 2017-10-25 | 2017-10-25 | Data archiving method and device and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107766168B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109995879A (en) * | 2019-04-15 | 2019-07-09 | 深圳壹账通智能科技有限公司 | Device, method and the storage medium of message push |
CN113035326A (en) * | 2021-02-26 | 2021-06-25 | 上海联影智能医疗科技有限公司 | Information processing method of PACS (Picture archiving and communication System), medical image processing method and electronic equipment |
CN114205348A (en) * | 2021-12-21 | 2022-03-18 | 安徽蓝盾光电子股份有限公司 | System and method for file breakpoint continuous transmission |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101459694A (en) * | 2008-12-31 | 2009-06-17 | 中国科学院计算技术研究所 | Highly available message transmission frame and method oriented to distributed file system |
CN102467520A (en) * | 2010-11-10 | 2012-05-23 | 金蝶软件(中国)有限公司 | Data storage method and device |
CN102667728A (en) * | 2009-10-09 | 2012-09-12 | 阿玛得斯两合公司 | Delivery with reconciliation on client side |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002207621A (en) * | 2001-01-12 | 2002-07-26 | Minolta Co Ltd | Data communication terminal, camera, and recording medium |
-
2017
- 2017-10-25 CN CN201711008777.2A patent/CN107766168B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101459694A (en) * | 2008-12-31 | 2009-06-17 | 中国科学院计算技术研究所 | Highly available message transmission frame and method oriented to distributed file system |
CN102667728A (en) * | 2009-10-09 | 2012-09-12 | 阿玛得斯两合公司 | Delivery with reconciliation on client side |
CN102467520A (en) * | 2010-11-10 | 2012-05-23 | 金蝶软件(中国)有限公司 | Data storage method and device |
Also Published As
Publication number | Publication date |
---|---|
CN107766168A (en) | 2018-03-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107766168B (en) | Data archiving method and device and terminal | |
US20210176143A1 (en) | Monitoring wireless access point events | |
EP3013086A1 (en) | Method, apparatus and electronic device for connection management | |
CN100365994C (en) | Method and system for regulating ethernet | |
CN109002424B (en) | File format conversion method and device, computer equipment and storage medium | |
CN110471749B (en) | Task processing method, device, computer readable storage medium and computer equipment | |
KR20150007411A (en) | method and apparatus for transmitting and receiving data and medium thereof | |
CN109302445B (en) | Host node state determination method and device, host node and storage medium | |
CN115190047B (en) | Method, system and computing device for monitoring server health | |
CN107645531B (en) | Data synchronization method and system | |
CN112769652A (en) | Node service monitoring method, device, equipment and medium | |
CN113382056A (en) | Data reporting method, device, equipment, storage medium and system | |
CN111611057A (en) | Distributed retry method, device, electronic equipment and storage medium | |
CN110942583B (en) | Method, device and terminal for reporting smoke alarm | |
US10009151B2 (en) | Packet storage method, information processing apparatus, and non-transitory computer-readable storage medium | |
KR101945426B1 (en) | Diagnosis method of can communication | |
CN110554929A (en) | Data verification method and device, computer equipment and storage medium | |
CN112367146A (en) | Method and device for delivering edge side message and electronic equipment | |
CN110247886B (en) | Efficient time series data communication | |
CN107704201B (en) | Data storage processing method and device | |
CN111857579A (en) | SSD (solid State disk) controller resetting method, system and device and readable storage medium | |
CN113645103B (en) | Method and device for detecting communication link abnormity between video monitoring platform and front-end equipment | |
CN115562246A (en) | Remote diagnosis method and related equipment | |
CN114466321B (en) | Message sending method and device, electronic equipment and storage medium | |
EP2988476A1 (en) | Method and apparatus for processing operation on endpoint peripheral |
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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 201807 Shanghai city Jiading District Industrial Zone Jiading Road No. 2258 Applicant after: Shanghai Lianying Medical Technology Co., Ltd Address before: 201807 Shanghai city Jiading District Industrial Zone Jiading Road No. 2258 Applicant before: SHANGHAI UNITED IMAGING HEALTHCARE Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |