Disclosure of Invention
The present invention aims to solve the problems of the prior art, and provide a transmission method, an apparatus, an electronic device and a readable storage medium for monitoring data, in which a continuous frame sequence number is allocated to each monitoring data frame, and a piece of partially overlapping data in monitoring data is added to each monitoring data frame, so as to solve the problem of erroneous frame transmission in monitoring data transmission and improve the accuracy of data transmission.
In order to achieve the above object, a first aspect of the embodiments of the present invention provides a method for transmitting monitored data, where the method includes:
a data sending end acquires real-time monitoring data;
the data sending end distributes a corresponding frame serial number for the real-time monitoring data;
when the frame serial number is an initial frame, the data sending end assembles the frame serial number and the real-time monitoring data into an initial monitoring data frame; sending the initial monitoring data frame to a data receiving end, and acquiring a data receiving state sent back from the data receiving end; when the data receiving state is successful, taking the real-time monitoring data as the last monitoring data;
when the frame sequence number is not the initial frame, the data sending end extracts data with the length being an overlap length threshold value from the tail end of the last piece of monitored data to generate overlap data; splicing the frame sequence number, the overlapping data and the real-time monitoring data into a process monitoring data frame; sending the process monitoring data frame to the data receiving end, and acquiring a data receiving state sent back from the data receiving end; and when the data receiving state is that the receiving is successful, taking the real-time monitoring data as the last monitoring data.
Preferably, after the data sending end sends and processes the initial monitored data frame to a data receiving end, the method further includes:
the data receiving end acquires the initial monitoring data frame sent by the data sending end;
the data receiving end extracts the frame serial number from the initial monitoring data frame;
the data receiving end extracts the real-time monitoring data from the initial monitoring data frame to generate initial frame monitoring data, and stores and processes the initial frame monitoring data;
the data receiving end sends the data receiving state to the data sending end, wherein the data receiving state is specifically the successful receiving;
and the data receiving end takes the frame serial number as the last frame serial number and the initial frame monitoring data as the last frame data.
Preferably, after the data sending end sends and processes the process monitoring data frame to the data receiving end, the method further includes:
the data receiving end acquires the process monitoring data frame sent by the data sending end;
the data receiving end extracts the frame serial number from the process monitoring data frame;
the data receiving end judges the sequence of the serial numbers according to the serial number of the last frame and the serial number of the frame;
when the sequence of the serial numbers is successfully judged, the data receiving end extracts the overlapped data from the process monitoring data frame;
the data receiving end judges the overlapped data according to the overlapped data and the previous frame data;
when the judgment of the overlapped data is successful, the data receiving end extracts the real-time monitoring data from the process monitoring data frame to generate process frame monitoring data; taking the frame serial number as a sequence index, and sequentially storing the process frame monitoring data after the initial frame monitoring data;
the data receiving end sends the data receiving state to the data sending end, wherein the data receiving state is specifically the successful receiving;
and the data receiving end takes the frame serial number as the last frame serial number and takes the frame monitoring data as the last frame data.
Further, the data receiving end performs sequence number sequence judgment according to the previous frame sequence number and the frame sequence number, and specifically includes: and when the frame sequence number is continuous with the last frame sequence number, the sequence number sequence is judged successfully.
Further, the data receiving end performs overlapped data judgment according to the overlapped data and the previous frame data, and specifically includes: the data receiving end extracts data with the length being the overlap length threshold value from the tail end of the previous frame data to generate comparison overlap data; and when the overlapped data is equal to the compared overlapped data, the overlapped data is judged successfully.
A second aspect of the embodiments of the present invention provides a monitoring data transmission device, including: the device comprises a first processing module and a first transceiver module;
the first transceiver module is used for acquiring real-time monitoring data and sending the real-time monitoring data to the first processing module;
the first processing module is used for distributing a corresponding frame serial number for the real-time monitoring data; when the frame serial number is an initial frame, splicing the frame serial number and the real-time monitoring data into an initial monitoring data frame, and sending the initial monitoring data frame to the first transceiver module; when the frame sequence number is not the initial frame, extracting data with the length being the overlap length threshold value from the tail end of the last monitoring data to generate overlap data, splicing the frame sequence number, the overlap data and the real-time monitoring data into a process monitoring data frame, and sending the process monitoring data frame to the first transceiver module;
the first transceiver module is further configured to send the initial monitored data frame to a second transmission device after acquiring the initial monitored data frame; the first transmission device is further configured to transmit the process monitoring data frame to the second transmission device after the process monitoring data frame is acquired;
the first transceiver module is further configured to acquire a data receiving status from the second transmission device, and send the data receiving status to the first processing module;
the first processing module is further configured to use the real-time monitoring data as the last monitoring data when the data receiving status is that the receiving is successful.
A third aspect of the embodiments of the present invention provides a monitoring data transmission device, including: the second processing module and the second transceiver module;
the second transceiver module is used for acquiring an initial monitoring data frame from the first transmission device and sending the initial monitoring data frame to the second processing module; the first processing module is further configured to acquire a process monitoring data frame from the first transmission device and send the process monitoring data frame to the second processing module;
the second processing module is used for extracting a frame serial number from the initial monitoring data frame; extracting real-time monitoring data from the initial monitoring data frame to generate initial frame monitoring data, and storing and processing the initial frame monitoring data; sending a data receiving state to the second transceiver module, wherein the data receiving state is specifically successful in receiving; taking the frame serial number as a last frame serial number, and taking the initial frame monitoring data as last frame data;
the second processing module is further configured to extract the frame sequence number from the process monitoring data frame; judging the sequence of the sequence number according to the sequence number of the previous frame and the sequence number of the frame; when the sequence judgment of the sequence numbers is successful, extracting the overlapped data from the process monitoring data frame; judging overlapped data according to the overlapped data and the previous frame data; when the judgment of the overlapped data is successful, extracting the real-time monitoring data from the process monitoring data frame to generate process frame monitoring data; taking the frame serial number as a sequence index, and sequentially storing the process frame monitoring data after the initial frame monitoring data; sending the data receiving state to the second transceiver module, wherein the data receiving state is specifically the successful receiving; taking the frame serial number as the last frame serial number, and taking the frame monitoring data as the last frame data;
the second transceiver module is further configured to send the data receiving status to the first transmission device.
A fourth aspect of an embodiment of the present invention provides an electronic device, including: a memory, a processor, and a transceiver;
the processor is configured to be coupled to the memory, read and execute instructions in the memory, so as to implement the method steps of the first aspect;
the transceiver is coupled to the processor, and the processor controls the transceiver to transmit and receive messages.
A fifth aspect of embodiments of the present invention provides a computer program product, which includes computer program code, when executed by a computer, causes the computer to perform the method of the first aspect.
A sixth aspect of embodiments of the present invention provides a computer-readable storage medium storing computer instructions which, when executed by a computer, cause the computer to perform the method of the first aspect.
The monitoring data transmission method, the monitoring data transmission device, the electronic equipment and the readable storage medium provided by the embodiment of the invention allocate a continuous frame serial number for each frame of monitoring data frame, and add a part of overlapping data in the monitoring data in each frame of monitoring data frame, so that the problem of error frame transmission in monitoring data transmission is solved, and the accuracy of data transmission is improved.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
According to the transmission method of the monitoring data, after the data sending end obtains the real-time monitoring data sent from the data acquisition end, the frame serial number and/or the overlapping data in the previous monitoring data are packed together with the real-time monitoring data, so that the problem of sending error frames in monitoring data transmission is solved, and the accuracy of data sending is improved.
As shown in fig. 1, which is a schematic diagram of a transmission method of monitored data according to an embodiment of the present invention, the method mainly includes the following steps:
step 1, a data sending end acquires real-time monitoring data.
Here, the data sending end obtains real-time monitoring data from the data acquisition end, and the data acquisition end is specifically a device with a physiological parameter acquisition function (such as an electrocardiogram machine, a bedside electrocardiogram monitor, a dynamic electrocardiogram recorder, a respiration monitor, a blood pressure monitor, a blood oxygen monitor, and the like); the real-time monitoring data is specifically continuously acquired physiological data (such as electrocardiogram data, respiration data, body temperature data, blood pressure data, blood oxygen saturation data and the like) of the patient; the data sending end is specifically a computer program, an apparatus, a terminal device or a server having the function of the data sending end in the embodiment of the method.
For example, real-time monitoring data is specifically Electrocardiogram (ECG) data, and a data sending end acquires 3 pieces of ECG data: the 1 st piece of ECG data is a 10 second piece of ECG data, the 2 nd piece of ECG data is a 6 second piece of ECG data, and the 3 rd piece of ECG data is a 6 second piece of ECG data.
And 2, the data sending end distributes a corresponding frame serial number for the real-time monitoring data.
Here, the frame sequence number is a unique non-repeating sequence number allocated to the real-time monitoring data, and is used for identifying the sequence of the transmission data to prevent missing transmission or retransmission errors; the frame sequence number is ensured to be unique by adding 1 once.
For example, the data sender acquires a total of 3 pieces of ECG data: the 1 st ECG data is a 10 second ECG data, the 2 nd ECG data is a 6 second ECG data, and the 3 rd ECG data is a 6 second ECG data, then the frame serial number assigned to the 1 st ECG data is 1 (start frame), the frame serial number of the 2 nd ECG data is 2 (process frame), and the frame serial number of the 3 rd ECG data is 3 (process frame).
And 3, judging whether the frame serial number is an initial frame, if the frame serial number is the initial frame, turning to the step 4, and if the frame serial number is not the initial frame, turning to the step 5.
Here, the frame sequence number is 1, and the frame sequence number is an initial frame, and the others are process frames; for the start frame and the process frame, the data transmitting end has different processes when assembling and transmitting data.
Step 4, the data sending end assembles the frame serial number and the real-time monitoring data into an initial monitoring data frame; sending the initial monitoring data frame to a data receiving end, and acquiring a data receiving state sent back from the data receiving end; when the data receiving state is successful, taking the real-time monitoring data as the last monitoring data; go to step 1.
Here, for the start frame, since no previous monitored data needs to consider continuity, the start monitored data frame includes only the frame sequence number and the real-time monitored data; after the data is successfully transmitted and the receiving end is also successfully received, the data transmitting end continues to step 1 to acquire the next piece of real-time monitoring data, wherein the current real-time monitoring data needs to be designated as the previous piece of monitoring data before the data transmitting end is transferred to step 1; the data receiving end is specifically a computer program, an apparatus, a terminal device, or a server having the functions of the second or third data receiving end in the embodiments.
For example, if the starting frame is the 1 st piece of ECG data, then the starting monitored data frame would be: 1 (frame sequence number) +1 st ECG data; when the data reception status is reception success, the last piece of monitored data is designated as the 1 st piece of ECG data.
Step 5, the data sending end extracts data with the length being the overlap length threshold value from the tail end of the last piece of monitoring data to generate overlap data; splicing the frame serial number, the overlapping data and the real-time monitoring data into a process monitoring data frame; sending the process monitoring data frame to a data receiving end, and acquiring a data receiving state sent back from the data receiving end; when the data receiving state is successful, taking the real-time monitoring data as the last monitoring data; go to step 1.
Here, for the process frame, in order to embody data continuity with the previous monitored data, the sending end not only uses the continuous frame sequence number, but also extracts the overlapping data from the previous monitored data and packs the overlapping data with the real-time monitored data, where the overlapping data is used to avoid missing or retransmission errors on specific sending contents; after the data is successfully transmitted and the receiving end is confirmed to successfully receive, the data transmitting end goes to step 1 to continue to acquire the next piece of real-time monitoring data and perform data transmission processing, where the current piece of real-time monitoring data needs to be designated as the previous piece of monitoring data before going to step 1.
For example, the procedural frames are the 2 nd and 3 rd ECG data, the overlap length threshold is 4 seconds, then,
when the frame sequence number is 2, the process monitoring data frame should be: 2 (frame sequence number) +4 seconds of overlapping data (last 4 seconds of 1 st ECG data) + 2 nd ECG data; when the data receiving state is that the receiving is successful, the last piece of monitored data is designated as 2 nd ECG data;
when the frame sequence number is 3, the process monitoring data frame should be: 3 (frame sequence number) +4 seconds of overlapping data (last 4 seconds of 2 nd ECG data) + 3 rd ECG data; when the data reception status is reception success, the last piece of monitored data is designated as the 3 rd piece of ECG data.
In addition, in step 5, if the currently transmitted frame sequence number is not in a continuous relationship with the frame sequence number of the previous monitored data, or the overlapped data is not extracted from the previous monitored data, the data receiving end will consider that the data transmitting end has an error of missing transmission or retransmission, and the data receiving end will customize the data receiving state according to the corresponding error information and request the data transmitting end to transmit the corresponding process monitored data frame again according to the correct sequence. When receiving error information that the data receiving state sent from the data receiving end is non-receiving success, the data sending end executes a corresponding retransmission processing flow according to the specific error information, but if the retransmission fails and the continuous retransmission times exceed a specified threshold, the data sending end prompts the upper computer program, equipment or server to monitor data transmission error information and terminates the current real-time monitoring data transmission processing process.
In the second transmission method for monitoring data according to the embodiment of the present invention, after the data receiving end acquires the initial monitoring data frame sent from the data sending end, the real-time monitoring data is extracted from the initial monitoring data frame and stored, and two parameters (the previous frame serial number and the previous frame data) used by the receiving end to identify the subsequent process frame are initialized to prepare for the overlapped data verification of the subsequent process monitoring data frame. The data receiving end is specifically a computer program, an apparatus, a terminal device, or a server having the functions of the data receiving end in the embodiment of the present invention, and the data sending end is specifically a computer program, an apparatus, a terminal device, or a server having the functions of the data sending end in the embodiment.
As shown in fig. 2, which is a schematic diagram of a monitored data transmission method according to a second embodiment of the present invention, the method mainly includes the following steps:
step 101, a data receiving end acquires an initial monitoring data frame sent from a data sending end.
Here, in step 4 corresponding to the first embodiment, after the data sending end sends the initial monitored data frame to the data receiving end, the data receiving end receives the initial monitored data frame sent from the data sending end.
For example, the data sender acquires a total of 3 pieces of ECG data: the 1 st ECG data is a section of 10 second ECG data, the 2 nd ECG data is a section of 6 second ECG data, the 3 rd ECG data is a section of 6 second ECG data, the data sending end sends the data receiving end three times in sequence, and then, correspondingly, the initial monitoring data frame obtained by the data receiving end is: 1 (frame sequence number) +1 st ECG data (real-time monitoring data).
Step 102, the data receiving end extracts the frame sequence number from the initial monitoring data frame.
For example, the initial monitored data frame is: 1 (frame sequence number) +1 st ECG data (real-time monitoring data), the frame sequence number is 1.
Step 103, the data receiving end extracts real-time monitoring data from the initial monitoring data frame to generate initial frame monitoring data, and stores the initial frame monitoring data.
For example, the initial monitored data frame is: 1 (frame sequence number) +1 st ECG data (real-time monitoring data), the starting frame monitoring data is the 1 st ECG data.
And 104, the data receiving end sends a data receiving state to the data sending end, wherein the data receiving state is the successful receiving.
Step 105, the data receiving end uses the frame serial number as the last frame serial number and uses the initial frame monitoring data as the last frame data.
Here, the sequence number of the previous frame is a basis for the data receiving end to perform the sequence number judgment when processing the monitoring data frame, the previous frame data is a basis for the data receiving end to perform the overlapping data judgment when processing the monitoring data frame, and both of these parameters are initialized when the data receiving end processes the initial monitoring data frame.
For example, the initial monitored data frame is: 1 (frame serial number) +1 st ECG data (real-time monitoring data), the frame serial number is 1, the initial frame monitoring data is the 1 st ECG data, then the last frame serial number is 1, and the last frame data is the 1 st ECG data.
In the transmission method of the guardian data according to the third embodiment of the present invention, after the data receiving end acquires the process guardian data frame sent from the data sending end, the data receiving end identifies the frame sequence number and the overlapped data, thereby solving the problem of receiving an error frame in the transmission of the guardian data and improving the accuracy of data reception. The data receiving end is specifically a computer program, an apparatus, a terminal device, or a server having the functions of the data receiving end in the embodiment of the present invention, and the data sending end is specifically a computer program, an apparatus, a terminal device, or a server having the functions of the data sending end in the embodiment.
As shown in fig. 3, which is a schematic diagram of a transmission method of monitored data according to a third embodiment of the present invention, the method mainly includes the following steps:
instep 201, the data receiving end obtains the process monitoring data frame sent from the data sending end.
Here, in step 5 corresponding to the first embodiment, after the data sending end sends the process monitoring data frame to the data receiving end, the data receiving end receives the process monitoring data frame sent from the data sending end.
For example, the data sender acquires a total of 3 pieces of ECG data: the 1 st ECG data is a section of 10 seconds ECG data, the 2 nd ECG data is a section of 6 seconds ECG data, the 3 rd ECG data is a section of 6 seconds ECG data, the data sending end sends to the data receiving end three times in sequence, correspondingly, the process monitoring data frame that the data receiving end acquireed has two: a process monitored data frame 1 and a process monitored data frame 2, wherein,
the process monitoring data frame 1 is: 2 (frame sequence number) +4 seconds of overlapping data (last 4 seconds of 1 st ECG data) + 2 nd ECG data;
the process monitoring data frame 2 is: 3 (frame sequence number) +4 seconds of overlapping data (last 4 seconds of 2 nd ECG data) + 3 rd ECG data.
Step 202, the data receiving end extracts the frame sequence number from the process monitoring data frame.
For example, there are two frames of procedure monitoring data: a process monitoring data frame 1 and a process monitoring data frame 2, wherein the process monitoring data frame 1 is: 2 (frame sequence number) +4 seconds of overlapping data (last 4 seconds of 1 st ECG data) + 2 nd ECG data, frame 2 of the procedural monitoring data is: 3 (frame sequence number) +4 seconds of overlapping data (last 4 seconds of 2 nd ECG data) + 3 rd ECG data,
then the process of the first step is carried out,
when the process monitoring data frame is specifically the process monitoring data frame 1, the frame sequence number is 2;
when the process monitoring data frame is specifically the process monitoring data frame 2, the frame sequence number is 3.
Step 203, the data receiving end judges the sequence number according to the previous frame sequence number and the frame sequence number;
the method specifically comprises the following steps: when the frame sequence number is continuous with the last frame sequence number, the sequence number sequence is successfully judged.
Here, for the process monitoring data frame, because continuity with the previous frame data is considered, the process monitoring data frame includes a frame sequence number, overlap data and real-time monitoring data, wherein the frame sequence number and the overlap data are used for checking whether a missed transmission or a retransmission error occurs; here, as shown in the first embodiment, the data transmitting end is a frame sequence number generated by adding 1, and correspondingly, the data receiving end considers that the sequence number order determination is successful when the frame sequence number is equal to the previous frame sequence number + 1.
For example, there are two frames of procedure monitoring data: a process monitoring data frame 1 and a process monitoring data frame 2, wherein the process monitoring data frame 1 is: 2 (frame sequence number) +4 seconds of overlapping data (last 4 seconds of 1 st ECG data) + 2 nd ECG data, frame 2 of the procedural monitoring data is: 3 (frame sequence number) +4 seconds of overlapping data (last 4 seconds of 2 nd ECG data) + 3 rd ECG data,
then the process of the first step is carried out,
when the process monitoring data frame is specifically the process monitoring data frame 1, the sequence number of the previous frame is 1, and if the frame sequence number obtained in thestep 202 is 2, the sequence number is successfully judged;
when the process monitoring data frame is specifically the process monitoring data frame 2, the sequence number of the previous frame is 2, and if the frame sequence number obtained instep 202 is 3, the sequence number sequence is successfully determined.
Step 204, when the sequence of the serial numbers is successfully judged, the data receiving end extracts the overlapped data from the process monitoring data frame.
For example, there are two frames of procedure monitoring data: a process monitoring data frame 1 and a process monitoring data frame 2, wherein the process monitoring data frame 1 is: 2 (frame sequence number) +4 seconds of overlapping data (last 4 seconds of 1 st ECG data) + 2 nd ECG data, frame 2 of the procedural monitoring data is: 3 (frame sequence number) +4 seconds of overlapping data (last 4 seconds of 2 nd ECG data) + 3 rd ECG data,
then the process of the first step is carried out,
when the process monitoring data frame is specifically the process monitoring data frame 1, the overlapped data is the last 4 seconds data of the 1 st ECG data;
when the frame of procedural monitoring data is specifically frame 2 of procedural monitoring data, the overlay data is the last 4 seconds of the 2 nd ECG data.
Step 205, the data receiving end judges the overlapped data according to the overlapped data and the previous frame data;
the method specifically comprises the following steps: step 2051, the data receiving end extracts data with the length of the overlap length threshold from the end of the last frame data to generate comparison overlap data;
for example, there are two frames of procedure monitoring data: a process monitoring data frame 1 and a process monitoring data frame 2, wherein the process monitoring data frame 1 is: 2 (frame sequence number) +4 seconds of overlapping data (last 4 seconds of 1 st ECG data) + 2 nd ECG data, frame 2 of the procedural monitoring data is: 3 (frame sequence number) +4 seconds of overlapping data (last 4 seconds of 2 nd ECG data) + 3 rd ECG data, and the overlap length threshold is 4 seconds, then:
when the process monitoring data frame is specifically the process monitoring data frame 1, the previous frame data is the 1 st ECG data, and then the last 4 seconds of data of which the overlapped data is the 1 st ECG data are compared;
when the process monitoring data frame is specifically the process monitoring data frame 2, and the previous frame data is the 2 nd ECG data, comparing the overlapped data with the last 4 seconds data of the 2 nd ECG data;
and step 2052, when the overlapped data is equal to the comparison overlapped data, the overlapped data is judged successfully.
Here, for the process monitoring data frame, because continuity with the previous frame data is considered, the process monitoring data frame includes a frame sequence number, overlap data and real-time monitoring data, wherein the frame sequence number and the overlap data are used for checking whether a missed transmission or a retransmission error occurs; here, the data receiving end considers that the overlapping data obtained instep 204 matches the matching overlapping data obtained in step 2051, and the overlapping data is determined to be successful.
Step 206, when the judgment of the overlapped data is successful, the data receiving end extracts real-time monitoring data from the process monitoring data frame to generate process frame monitoring data; and the frame sequence number is used as a sequence index, and the process frame monitoring data is sequentially stored after the initial frame monitoring data.
After the data receiving end judges the sequence of the serial number and the overlapped data, the continuity and the correctness of the process monitoring data frame are confirmed, and the frame monitoring data in the monitoring data frame is stored as correctly received data.
For example, there are two frames of procedure monitoring data: a process monitoring data frame 1 and a process monitoring data frame 2, wherein the process monitoring data frame 1 is: 2 (frame sequence number) +4 seconds of overlapping data (last 4 seconds of 1 st ECG data) + 2 nd ECG data, frame 2 of the procedural monitoring data is: 3 (frame number) +4 seconds of overlapping data (last 4 seconds of 2 nd ECG data) + 3 rd ECG data, the overlap length threshold is 4 seconds, then,
when the process monitoring data frame is specifically the process monitoring data frame 1, the process frame monitoring data is the 2 nd ECG data, and the whole data after the storage is completed is as follows: 1 st ECG data + 2 nd ECG data;
when the process monitoring data frame is specifically the process monitoring data frame 2, the process frame monitoring data is the 3 rd ECG data, and the whole data after the storage is completed should be: ECG data 1 + ECG data 2 + ECG data 3.
Step 207, the data receiving end sends a data receiving status to the data sending end, where the data receiving status is specifically a successful receiving status.
Instep 208, the data receiving end uses the frame serial number as the previous frame serial number, and uses the frame monitoring data as the previous frame data.
Here, the previous frame sequence number is a basis for the data receiving end to perform sequence number order judgment when processing the process monitoring data frame, the previous frame data is a basis for the data receiving end to perform overlapping data judgment when processing the process monitoring data frame, and both of these parameters are updated by using the current frame sequence number and the frame monitoring data after the data receiving end has processed the process monitoring data frame each time.
For example, there are two frames of procedure monitoring data: a process monitoring data frame 1 and a process monitoring data frame 2, wherein the process monitoring data frame 1 is: 2 (frame sequence number) +4 seconds of overlapping data (last 4 seconds of 1 st ECG data) + 2 nd ECG data, frame 2 of the procedural monitoring data is: 3 (frame number) +4 seconds of overlapping data (last 4 seconds of 2 nd ECG data) + 3 rd ECG data, the overlap length threshold is 4 seconds, then,
when the process monitoring data frame is specifically a process monitoring data frame 1, the sequence number of the previous frame is changed from 1 to 2, and the data of the previous frame is changed from the 1 st ECG data to the 2 nd ECG data;
when the frame of the monitored data is specifically the frame 2 of the monitored data, the sequence number of the previous frame is changed from 2 to 3, and the data of the previous frame is changed from the 2 nd ECG data to the 3 rd ECG data.
Fig. 4 is a block diagram of a transmission device for monitoring data according to a fourth embodiment of the present invention, where the transmission device has a function of a data sending end according to the first embodiment. As shown in fig. 4, the apparatus includes: afirst transceiver module 401 and afirst processing module 402.
Thefirst transceiver module 401 is configured to acquire real-time monitoring data and send the real-time monitoring data to thefirst processing module 402.
Thefirst processing module 402 is configured to allocate a corresponding frame sequence number to real-time monitoring data; when the frame serial number is an initial frame, splicing the frame serial number and the real-time monitoring data into an initial monitoring data frame, and sending the initial monitoring data frame to thefirst transceiver module 401; when the frame sequence number is not the start frame, data with the length of the overlap length threshold is extracted from the end of the previous monitoring data to generate overlap data, the frame sequence number, the overlap data and the real-time monitoring data are assembled into a process monitoring data frame, and the process monitoring data frame is sent to thefirst transceiver module 401.
Thefirst transceiver module 401 is further configured to send the initial monitored data frame to the second transmission device after acquiring the initial monitored data frame; and is further configured to send the process monitoring data frame to the second transmitting device after the process monitoring data frame is acquired.
Thefirst transceiver module 401 is further configured to obtain a data receiving status from the second transmission device, and send the data receiving status to thefirst processing module 402.
Thefirst processing module 402 is further configured to use the real-time monitored data as the last monitored data when the data receiving status is that the receiving is successful.
The transmission device for monitoring data provided by the embodiment of the invention can execute the method steps of the data sending end in the first embodiment, and the implementation principle and the technical effect are similar, and are not described again; the second transmission device in the embodiment of the present invention is specifically the transmission device of monitoring data in the fifth embodiment.
Fig. 5 is a block diagram of a monitored data transmission device according to a fifth embodiment of the present invention, which is a device having functions of a data receiving end according to a second embodiment and a third embodiment. As shown in fig. 5, the apparatus includes: asecond transceiver module 501 and asecond processing module 502.
Thesecond transceiver module 501 is configured to obtain an initial monitoring data frame from the first transmission device, and send the initial monitoring data frame to thesecond processing module 502; and is further configured to obtain a frame of process monitoring data from the first transmission device and send the frame of process monitoring data to thesecond processing module 502.
Thesecond processing module 502 is configured to extract a frame sequence number from the initial monitored data frame; extracting real-time monitoring data from the initial monitoring data frame to generate initial frame monitoring data, and storing the initial frame monitoring data; sending a data receiving status to thesecond transceiver module 501, where the data receiving status is specifically a successful receiving status; the frame serial number is taken as the last frame serial number, and the monitoring data of the initial frame is taken as the last frame data.
Thesecond processing module 502 is further configured to extract a frame sequence number from the process monitoring data frame; judging the sequence of the frame according to the sequence number of the previous frame and the sequence number of the frame; when the sequence judgment of the serial numbers is successful, extracting overlapped data from the process monitoring data frame; judging the overlapped data according to the overlapped data and the previous frame data; when the judgment of the overlapped data is successful, extracting real-time monitoring data from the process monitoring data frame to generate process frame monitoring data; taking the frame serial number as a sequence index, and sequentially storing the process frame monitoring data after the initial frame monitoring data; sending a data receiving status to thesecond transceiver module 501, where the data receiving status is specifically a successful receiving status; and taking the frame serial number as the last frame serial number and the frame monitoring data as the last frame data.
Thesecond transceiver module 501 is further configured to send the data receiving status to the first transmission apparatus.
In a specific implementation manner provided in this embodiment, thesecond processing module 501 is specifically configured to: and when the frame sequence number is continuous with the last frame sequence number, determining that the sequence number sequence judgment is successful.
In another specific implementation manner provided in this embodiment, thesecond processing module 501 is specifically configured to: extracting data with the length being an overlap length threshold value from the tail end of the last frame data to generate comparison overlap data; and when the overlapped data is equal to the compared overlapped data, determining that the overlapped data is judged successfully.
The transmission device for monitoring data provided by the embodiment of the invention can execute the method steps in the method embodiment, the implementation principle and the technical effect are similar, and the details are not repeated herein; the first transmission device in the embodiment of the present invention is specifically the transmission device of the monitored data in the fourth embodiment.
It should be noted that the division of the modules of the above two monitoring data transmission devices is only a logical division, and the actual implementation may be wholly or partially integrated into one physical entity, or may be physically separated. And these modules can be realized in the form of software called by processing element; or may be implemented entirely in hardware; and part of the modules can be realized in the form of calling software by the processing element, and part of the modules can be realized in the form of hardware. For example, the determining module may be a processing element separately set up, or may be implemented by being integrated in a chip of the apparatus, or may be stored in a memory of the apparatus in the form of program code, and the function of the determining module is called and executed by a processing element of the apparatus. Other modules are implemented similarly. In addition, all or part of the modules can be integrated together or can be independently realized. The processing element described herein may be an integrated circuit having signal processing capabilities. In implementation, each step of the above method or each module above may be implemented by an integrated logic circuit of hardware in a processor element or an instruction in the form of software.
For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), or one or more Digital Signal Processors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), etc. For another example, when some of the above modules are implemented in the form of a Processing element scheduler code, the Processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor that can invoke the program code. As another example, these modules may be integrated together and implemented in the form of a System-on-a-chip (SOC).
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website, computer, server, or data center to another website, computer, server, or data center via wire (e.g., coaxial cable, fiber optics, Digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, bluetooth, microwave, etc.). DVD), or semiconductor media (e.g., Solid State Disk (SSD)), etc.
Fig. 6 is a schematic structural diagram of an electronic device according to a sixth embodiment of the present invention. As shown in fig. 6, theelectronic device 600 may include: a processor 61 (e.g., CPU),memory 62,transceiver 63; thetransceiver 63 is coupled to theprocessor 61, and theprocessor 61 controls the transceiving action of thetransceiver 63. Various instructions may be stored inmemory 62 for performing various processing functions and implementing the methods and processes provided in the above-described embodiments of the present invention. Preferably, the electronic device according to an embodiment of the present invention may further include: apower supply 64, asystem bus 65, and acommunication port 66. Thesystem bus 65 is used to implement communication connections between the elements. Thecommunication port 66 is used for connection communication between the electronic device and other peripheral devices.
The system bus mentioned in fig. 6 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus or the like. The system bus may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus. The communication interface is used for realizing communication between the database access device and other equipment (such as a client, a read-write library and a read-only library). The Memory may include a Random Access Memory (RAM) and may also include a Non-Volatile Memory (Non-Volatile Memory), such as at least one disk Memory.
The Processor may be a general-purpose Processor, including a central processing unit CPU, a Network Processor (NP), and the like; but also a digital signal processor DSP, an application specific integrated circuit ASIC, a field programmable gate array FPGA or other programmable logic device, discrete gate or transistor logic, discrete hardware components.
It should be noted that the embodiment of the present invention also provides a computer-readable storage medium, which stores instructions that, when executed on a computer, cause the computer to execute the method and the processing procedure provided in the above-mentioned embodiment.
The embodiment of the invention also provides a chip for running the instructions, and the chip is used for executing the method and the processing process provided by the embodiment.
Embodiments of the present invention also provide a program product, which includes a computer program stored in a storage medium, from which the computer program can be read by at least one processor, and the at least one processor executes the methods and processes provided in the embodiments.
The monitoring data transmission method, the monitoring data transmission device, the electronic equipment and the readable storage medium provided by the embodiment of the invention allocate a continuous frame serial number for each frame of monitoring data frame, and add a part of overlapping data in the monitoring data in each frame of monitoring data frame, so that the problem of error frame transmission in monitoring data transmission is solved, and the accuracy of data transmission is improved.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. 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.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied in hardware, a software module executed by a processor, or a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are merely exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.