Electrocardiogram data transmission method, terminal and server

By establishing a multi-protocol communication connection between the terminal and the ECG recorder and parallel shard transmission, the problem of delay in ECG data transmission is solved, and fast and stable data transmission and timely data acquisition are achieved.

CN119135673APending Publication Date: 2024-12-13WUHAN UNITED IMAGING HEALTHCARE SURGICAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310706221.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-13
Publication Date
2024-12-13

AI Technical Summary

Technical Problem

The current ECG data transmission method is low in time. The subjects need to go to the hospital to hand over the ECG recorder to the doctor to manually transmit data, resulting in delayed data transmission.

Method used

The first and second communication connections are established between the terminal and the electrocardiogram recorder, and the rapid acquisition and transmission of electrocardiogram data is realized through sharding processing and multi-protocol parallel transmission, and the data is sent to the server in real time.

Benefits of technology

It improves the timeliness and stability of electrocardiogram data transmission, reduces the need for the subject to go to the hospital, ensures that doctors obtain electrocardiogram data in a timely manner, and improves transmission efficiency and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119135673A_ABST
    Figure CN119135673A_ABST
Patent Text Reader

Abstract

The invention relates to an electrocardiogram data transmission method, a terminal and a server. The method comprises the steps that first communication connection is established between a terminal and an electrocardiogram recorder based on a first communication protocol, second communication connection is established based on a second communication protocol, and the terminal conducts data transmission through the first communication connection and the second communication connection and obtains a target electrocardiogram file in the electrocardiogram recorder; and sending the target electrocardio file to a server. By adopting the method, the data transmission timeliness of acquiring the electrocardiogram data in the electrocardiogram recorder by a doctor can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of medical technology, and in particular to an electrocardiogram data transmission method, terminal and server. Background Art

[0002] A dynamic electrocardiogram recorder (hereinafter referred to as an electrocardiogram recorder) can continuously record the electrocardiogram data of a human body, for example, record the continuous electrocardiogram data of a human body within 24 hours, and therefore is widely used in the medical field.

[0003] Currently, after the subject uses the ECG recorder to obtain ECG data within a preset time period, he or she needs to go to the hospital to hand the ECG recorder to the doctor, who will manually transmit the ECG data in the ECG recorder to the server.

[0004] Therefore, the current transmission method of ECG data has the problem of low timeliness. Summary of the invention

[0005] Based on this, it is necessary to provide an ECG data transmission method, terminal and server that can improve the timeliness of data transmission in response to the above technical problems.

[0006] In a first aspect, the present application provides a method for transmitting electrocardiogram data. The method comprises:

[0007] A first communication connection is established between the terminal and the electrocardiograph based on a first communication protocol, and a second communication connection is established based on a second communication protocol, and the terminal transmits data through the first communication connection and the second communication connection and obtains a target electrocardiograph file in the electrocardiograph;

[0008] Send the target ECG file to the server.

[0009] In one embodiment, obtaining the target ECG file in the ECG recorder includes:

[0010] According to the sizes of the multiple initial ECG files in the ECG recorder, sorting the initial ECG files to obtain a sorting result;

[0011] Slice the initial ECG files whose data volume is greater than or equal to a preset threshold in the sorting result to generate an ECG file block queue in the ECG recorder;

[0012] Obtain the ECG file block queue in the ECG recorder;

[0013] According to the ECG file block queue, a target ECG file in the ECG recorder is obtained.

[0014] In one embodiment, obtaining the ECG file block queue in the ECG recorder includes:

[0015] The ECG file block queue includes a first end and a second end;

[0016] Acquire a first electrocardiogram file transmitted by the electrocardiogram recorder from a first end of the electrocardiogram file block queue based on the first communication protocol;

[0017] Acquire a second ECG file transmitted by the ECG recorder from a second end of the ECG file block queue based on the second communication protocol;

[0018] The first ECG file and the second ECG file are both ECG file blocks whose status is marked as not transmitted in the ECG file block queue.

[0019] In one embodiment, the first end is the end where the ECG file corresponding to the initial ECG file with the largest data volume in the sorting result is located; and the transmission speed of the first communication protocol is greater than the transmission speed of the second communication protocol.

[0020] In one embodiment, the method further comprises:

[0021] Determine the acquisition progress according to the number of ECG file blocks acquired by the terminal and the total number of ECG file blocks in the ECG file block queue;

[0022] Determine the upload progress according to the number of ECG file blocks sent to the server and the total number;

[0023] Display the acquisition progress and the upload progress.

[0024] In one embodiment, the method further comprises:

[0025] The ECG file blocks in the ECG file block queue are sent to the server, so that the server merges the ECG file blocks in the ECG file block queue corresponding to the same initial ECG file to obtain a complete ECG file, and the target ECG file includes the complete ECG file.

[0026] In one embodiment, obtaining the target ECG file in the ECG recorder includes:

[0027] Acquire a first initial ECG file transmitted by the ECG recorder based on the first communication protocol, and acquire a second initial ECG file transmitted by the ECG recorder based on the second communication protocol;

[0028] Among them, the target ECG file includes an initial ECG file, the initial ECG file includes the first initial ECG file and the second initial ECG file, the transmission speed of the first communication protocol is greater than the transmission speed of the second communication protocol, and the data volume of the first initial ECG file is greater than the data volume of the second initial ECG file.

[0029] In one embodiment, sending the target ECG file to the server includes:

[0030] The first initial ECG file and the second initial ECG file are sent to a server.

[0031] In one embodiment, the first communication protocol is a universal serial bus protocol, the second communication protocol is a short distance communication protocol, and the method further comprises:

[0032] When the first communication connection and the second communication connection are established between the terminal and the electrocardiograph recorder, a control instruction is sent to the electrocardiograph recorder based on the second communication connection; the control instruction is used to instruct the electrocardiograph recorder to grant the terminal permission to access the file, and the terminal identifies the initial electrocardiograph file based on the first communication connection.

[0033] In a second aspect, the present application also provides a method for transmitting electrocardiogram data. The method comprises:

[0034] The server receives a target ECG file sent by a terminal; the target ECG file is a file in the ECG recorder obtained by the terminal through data transmission via the first communication connection and the second communication connection, by establishing a first communication connection between the terminal and the ECG recorder based on a first communication protocol and a second communication connection based on a second communication protocol.

[0035] In one embodiment, the target ECG file includes an ECG file block queue generated after the terminal performs segmentation processing on the initial ECG file in the ECG recorder; the method further includes:

[0036] The ECG file blocks corresponding to the same initial ECG file in the ECG file block queue are merged to obtain a complete ECG file.

[0037] In one embodiment, the target ECG file includes an initial ECG file in the ECG recorder, and the initial ECG file includes a first initial ECG file and a second initial ECG file; the data volume of the first initial ECG file is greater than the data volume of the second initial ECG file.

[0038] In a third aspect, the present application further provides a terminal. The terminal includes:

[0039] An acquisition module, used to establish a first communication connection between the terminal and the electrocardiograph based on a first communication protocol, and to establish a second communication connection based on a second communication protocol, wherein the terminal transmits data through the first communication connection and the second communication connection and acquires a target electrocardiograph file in the electrocardiograph;

[0040] The first sending module is used to send the target ECG file to the server.

[0041] In a fourth aspect, the present application further provides a server. The server includes:

[0042] A receiving module is used for the server to receive a target ECG file sent by a terminal; the target ECG file is a file in the ECG recorder that is acquired by the terminal through data transmission via the first communication connection and the second communication connection, by establishing a first communication connection between the terminal and the ECG recorder based on a first communication protocol and a second communication connection based on a second communication protocol.

[0043] In a fifth aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any of the above methods when executing the computer program.

[0044] In a sixth aspect, the present application further provides a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of any of the above methods are implemented.

[0045] In a seventh aspect, the present application further provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of any of the above methods are implemented.

[0046] In the above-mentioned ECG data transmission method, terminal and server, since a first communication connection is established between the terminal and the ECG recorder based on a first communication protocol, and a second communication connection is established based on a second communication protocol, the terminal transmits data and obtains the target ECG file in the ECG recorder through the first communication connection and the second communication connection, and sends the target ECG file to the server. In this process, the subject does not need to go to the hospital to hand over the ECG recorder to the doctor, and the doctor manually transmits the target ECG file in the ECG recorder to the server. Instead, the first communication connection, the second communication connection and the terminal are used to transmit the target ECG file to the server. Therefore, the doctor can obtain the target ECG file in a timely manner, which improves the timeliness of ECG data transmission. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 This is a diagram showing the application environment of the ECG data transmission method in the embodiment of the present application;

[0048] Figure 2 This is a flow chart of the ECG data transmission method according to an embodiment of the present application;

[0049] Figure 3 A schematic diagram of an electrocardiogram data transmission process in an embodiment of the present application;

[0050] Figure 4This is a schematic diagram of a process for obtaining a target ECG file in an embodiment of the present application;

[0051] Figure 5 This is another flowchart of obtaining an ECG file block queue in an embodiment of the present application;

[0052] Figure 6 A schematic diagram of a transmission process in an embodiment of the present application;

[0053] Figure 7 A schematic diagram of a transmission process in an embodiment of the present application;

[0054] Figure 8 This is a flowchart showing progress in an embodiment of the present application;

[0055] Fig. 9 This is a schematic diagram of the overall process of an ECG data transmission method in an embodiment of the present application;

[0056] Fig.10 This is a structural block diagram of a terminal in an embodiment of the present application;

[0057] Fig.11 This is a structural block diagram of the server in the embodiment of the present application;

[0058] Fig.12 Schematic diagram of the internal structure of a computer device in an embodiment of the present application. DETAILED DESCRIPTION

[0059] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0060] Figure 1 The application environment diagram of the ECG data transmission method in the embodiment of the present application. Among them, the ECG recorder 101 is connected to the terminal 102 in communication, and the terminal 102 is connected to the server 103 in communication. The ECG recorder 101 sends the recorded ECG data to the server 103 through the terminal 102, so that the doctor can obtain the ECG data in the ECG recorder in time through the server 103. Among them, the terminal 102 can be but not limited to various personal computers, laptops, smart phones, tablet computers and portable wearable devices. The portable wearable device can be a smart watch, a smart bracelet, a head-mounted device, etc. The server 104 can be implemented with an independent server or a server cluster composed of multiple servers.

[0061] Figure 2 This is a flow chart of the ECG data transmission method in the embodiment of the present application. The method can be applied to Figure 1In the terminal shown, in one embodiment, as Figure 2 As shown, the following steps are included:

[0062] S201, a first communication connection is established between a terminal and an ECG recorder based on a first communication protocol, and a second communication connection is established based on a second communication protocol. The terminal transmits data through the first communication connection and the second communication connection and obtains a target ECG file in the ECG recorder.

[0063] In this embodiment, in order to obtain the target ECG file in the ECG recorder, the terminal first needs to establish a first communication connection between the terminal and the ECG recorder based on the first communication protocol, and establish a second communication connection based on the second communication protocol.

[0064] The target ECG file is used to indicate the ECG data recorded by the ECG recorder, which may include but is not limited to the initial ECG file generated in the ECG recorder, and the file after post-processing such as merging and compressing the initial ECG file. The first communication protocol and the second communication protocol may be the same or different, and may be a wireless communication protocol or a wired communication protocol. The first communication protocol and the second communication protocol include but are not limited to at least one of Bluetooth (BlueTooth), wireless communication technology (WIFI), ZigBee protocol (ZigBee), Long Range Radio (Long Range Radio, LoRA), active radio frequency identification (RFID) or ultra wide band (Ultra Wide Band, UWB), and Universal Serial Bus (USB) protocols.

[0065] Furthermore, the terminal can perform data transmission through the first communication connection and the second communication connection and obtain the target ECG file in the ECG recorder.

[0066] Optionally, the terminal may acquire the target ECG file in the ECG recorder in parallel through the first communication connection and the second communication connection. In some embodiments, the terminal may also acquire the target ECG file in the ECG recorder alternately through the first communication connection and the second communication connection.

[0067] Further optionally, the terminal may respond to the second operation instruction of the user, and then transmit data through the first communication connection and the second communication connection and obtain the target ECG file in the ECG recorder.

[0068] S202, sending the target ECG file to the server.

[0069] After the terminal obtains the target ECG file, it can send the target ECG file to the server. The terminal and the server generally communicate via wireless communication methods such as the Internet.

[0070] After acquiring the target ECG file, the terminal can automatically send the target ECG file to the server. The terminal can wait for the second operation instruction of the user, and send the target ECG file to the server when receiving the operation instruction.

[0071] Optionally, the terminal can process the target ECG file in segments to send the corresponding segments of the target ECG file to the server. Further, the terminal can support breakpoint-resume transmission of segments, that is, if a segment fails to be transmitted during transmission from the terminal to the server, it can be resent to the server until the server receives it successfully.

[0072] Figure 3 FIG. 1 is a schematic diagram of an ECG data transmission process in an embodiment of the present application, taking the first communication protocol as the Bluetooth protocol and the second communication protocol as the serial port protocol as an example. Figure 3 As shown, when the ECG recorder obtains the ECG data of the human body, a target ECG file is generated in the ECG recorder. Then, the terminal and the ECG recorder establish a first communication connection based on the Bluetooth protocol and a second communication connection based on the serial port protocol. In this way, the terminal can transmit data through the first communication connection and the second communication connection, thereby obtaining the target ECG file in the ECG recorder. After that, the terminal can upload the target ECG file to the server.

[0073] In the ECG data transmission method provided in this embodiment, since a first communication connection is established between the terminal and the ECG recorder based on a first communication protocol, and a second communication connection is established based on a second communication protocol, the terminal transmits data and obtains the target ECG file in the ECG recorder through the first communication connection and the second communication connection, and sends the target ECG file to the server. In this process, the subject does not need to go to the hospital to hand over the ECG recorder to the doctor, and the doctor manually transmits the target ECG file in the ECG recorder to the server. Instead, the first communication connection, the second communication connection and the terminal are used to transmit the target ECG file to the server. Therefore, the doctor can obtain the target ECG file in a timely manner, thereby improving the timeliness of ECG data transmission.

[0074] Furthermore, using the first communication connection and the second communication connection can also improve the stability and efficiency of ECG data transmission.

[0075] Figure 4 This is a schematic diagram of a process for obtaining a target ECG file in an embodiment of the present application, referring to Figure 4 This embodiment relates to an optional implementation method of how to obtain a target ECG file in an ECG recorder. Based on the above embodiment, the "obtaining a target ECG file in an ECG recorder" in S201 above includes the following steps:

[0076] S401, sorting the initial ECG files in the ECG recorder according to their sizes to obtain a sorting result.

[0077] In this embodiment, since there is a first communication connection and a second communication connection between the terminal and the electrocardiograph recorder, the terminal can determine a plurality of initial electrocardiograph files in the electrocardiograph recorder through at least one of the connections.

[0078] The initial ECG file includes multiple files generated by the ECG recorder during the recording process. In addition to the main ECG data file, it can also include other data files such as configuration files, patient information, event records, log files, etc. Among them, there is generally only one main ECG data file, and the data volume is relatively large, for example, usually more than 100M, and the data volume of other data files is relatively small, usually between 1K and 10M.

[0079] Furthermore, the terminal will sort the initial ECG files according to the sizes of the multiple initial ECG files in the ECG recorder to obtain a sorting result, wherein the sorting result can be in a descending order or in a descending order.

[0080] Exemplarily, assuming that the initial ECG file includes a main ECG data file A, and other ECG files B, C, and D, and according to the file size A>D>B>C, the terminal can obtain the sorting results A, D, B, C.

[0081] S402, performing segmentation processing on the initial ECG files whose data volume is greater than or equal to a preset threshold in the sorting result, so as to generate an ECG file block queue in the ECG recorder.

[0082] In this embodiment, the preset threshold is the maximum file size of each block in the sharding process. The preset threshold is set according to the requirements, generally between 1M and 10M. This embodiment takes the preset threshold of 2M as an example.

[0083] Furthermore, the terminal will perform sharding on the initial ECG files whose data volume is greater than or equal to the preset threshold in the sorting results. That is, after obtaining the sorting results of the initial ECG files, the terminal will perform sharding on all the initial ECG files in the ECG recorder that are larger than 2M in the order of the sorting results to obtain individual ECG file blocks that do not exceed 2M. In this way, the terminal can generate an ECG file block queue in the ECG recorder.

[0084] It is understandable that the initial ECG files smaller than the preset threshold value do not participate in the slicing process, and some initial ECG files cannot be divided evenly by the preset threshold value, so ECG file blocks smaller than the preset threshold value are obtained.

[0085] Continuing with the example of S401, assuming that the size of the main ECG data file A is 100M, and the sizes of the other ECG files B, C, and D are 5M, 10K, and 10M, respectively, then according to the sorting result, the main ECG data file A is firstly sliced ​​to obtain 50 ECG file blocks A1 to A50, and the sizes of A1 to A50 are all 2M. Then the other ECG file D is sliced ​​to obtain 5 ECG file blocks D1 to D5, and the sizes of D1 to D5 are all 2M. Further, the terminal slices the other ECG file B to obtain 3 ECG file blocks B1 to B3, and the sizes of B1 and B2 are both 2M, and the size of B3 is 1M. Finally, since the other ECG file C is not larger than 2M, the other ECG files are not sliced. That is, the ECG file block queues in the ECG recorder are A1 to A50, D1 to D5, B1 to B3, and C, respectively.

[0086] In some embodiments, in order to prevent the terminal from destroying the initial ECG file, the terminal may copy the initial ECG file, and then perform segmentation processing based on the copied initial ECG file.

[0087] S403, obtaining an ECG file block queue in the ECG recorder.

[0088] In this embodiment, continuing the above step S402, the terminal will continue to obtain the ECG file block queue in the ECG recorder.

[0089] Optionally, the terminal may obtain the ECG file block queue in the ECG recorder in parallel through the first communication connection and the second communication connection. Continuing with the above example of S402, the terminal may obtain the ECG file blocks A1, A3, etc. arranged at the odd positions of the ECG file block queue through the first communication connection, and at the same time, the terminal may obtain the ECG file blocks A2, A4, etc. arranged at the even positions of the ECG file block queue through the second communication connection.

[0090] Of course, the terminal may also obtain the ECG file block queue in the ECG recorder in other ways, which is not limited in this embodiment.

[0091] S404, acquiring the target ECG file in the ECG recorder according to the ECG file block queue.

[0092] In this embodiment, the terminal may optionally use the original initial ECG file in the ECG record as the target ECG file, and then, after obtaining the ECG file block queue, the terminal may merge the ECG file blocks corresponding to the same initial ECG file, for example, merging A1 to A50 to obtain the main ECG data file A, and merging D1 to D5 to obtain other ECG files D. In this way, the terminal can obtain the target ECG file in the ECG recorder according to the ECG file block queue.

[0093] In some embodiments, optionally, the terminal may also use the ECG file block as the target ECG file, so that obtaining the ECG file block queue means obtaining the target ECG file in the ECG recorder.

[0094] Further optionally, the above ECG data transmission method may further include the following steps:

[0095] The ECG file blocks in the ECG file block queue are sent to the server, so that the server merges the ECG file blocks in the ECG file block queue corresponding to the same initial ECG file to obtain a complete ECG file.

[0096] That is, in this embodiment, if the target ECG file includes each ECG file block in the ECG file block queue, the terminal will send the ECG file blocks in the ECG file block queue to the server when acquiring the ECG file blocks in the ECG file block queue.

[0097] Optionally, the terminal may send the ECG file blocks in the ECG file block queue to the server after receiving all the ECG file blocks. The terminal may also synchronously send the ECG file blocks in the ECG file block queue to the server during the process of receiving the ECG file blocks.

[0098] Furthermore, the server will merge the ECG file blocks corresponding to the same initial ECG file in the ECG file block queue to obtain a complete ECG file.

[0099] Exemplarily, after receiving ECG file blocks A1, A2, ..., A50, D1, D2, ..., D5, B1, B2, B3, C, the server will merge A1 to A50 to obtain the main ECG file A, merge D1 to D5 to obtain other ECG files D, and merge B1 to B3 to obtain other ECG files B. In this way, the server determines the complete ECG file. Then, the doctor can perform analysis based on the complete ECG file. In addition, since the server receives the ECG file blocks in the ECG file block queue, the data throughput between the terminal and the server is reduced, and the efficiency of the ECG file transmission process is improved.

[0100] This embodiment sorts each initial ECG file according to the size of multiple initial ECG files in the ECG recorder to obtain a sorting result, and performs slicing processing on the initial ECG files whose data volume is greater than or equal to a preset threshold in the sorting result, so as to generate an ECG file block queue in the ECG recorder, thereby obtaining the ECG file block queue in the ECG recorder. Since the ECG file block queue obtained after the slicing processing is obtained, the target ECG file in the ECG recorder is obtained according to the ECG file block queue. Therefore, the efficiency and speed of the acquisition are improved.

[0101] Figure 5 This is another flowchart of obtaining an ECG file block queue in an embodiment of the present application, referring to Figure 5 This embodiment relates to an optional implementation method of how to obtain a target ECG file. Based on the above embodiment, the ECG file block queue includes a first end and a second end; the above S403, obtaining the ECG file block queue in the ECG recorder, also includes the following steps:

[0102] S501, acquiring a first ECG file transmitted by an ECG recorder from a first end of an ECG file block queue based on a first communication protocol.

[0103] S502: Acquire a second ECG file transmitted by the ECG recorder from a second end of the ECG file block queue based on a second communication protocol.

[0104] The first ECG file and the second ECG file are both ECG file blocks in the ECG file block queue whose status is marked as not being transmitted.

[0105] Figure 6 is a schematic diagram of a transmission process in an embodiment of the present application, such as Figure 6 As shown in FIG. 1 , in this embodiment, the ECG file block queue includes a first end and a second end. Figure 6 For example, assume that the terminal sorts the initial ECG files to obtain sorting results A1 to An, slices A1 to obtain A1_1 to A1_m, slices A2 to obtain A2_1 to A2_p, slices A3 to obtain A3_1 to A3_q, slices A4 to obtain A2_1 to A2_k, and so on, slices An to obtain An_1 to An_j. Where n, m, p, qk, j are all integers greater than or equal to 1.

[0106] When the terminal needs to obtain an ECG file block in the ECG file block queue, it will obtain the first ECG file transmitted by the ECG recorder from the first end of the ECG file block queue based on the first communication protocol, and obtain the second ECG file transmitted by the ECG recorder from the second end of the ECG file block queue based on the second communication protocol. The first ECG file and the second ECG file are both ECG file blocks in the ECG file block queue whose status is marked as not transmitted. The status mark is used to identify whether the ECG file block has started to be transmitted.

[0107] Exemplarily, the status identifier may include True and False, where True indicates a terminal transmission success state, and False indicates a state other than a transmission success state, that is, a non-transmission state. Taking the first end starting transmission as an example, the terminal checks the status identifier of the ECG file block A1_1, and if the status identifier of the ECG file block A1_1 is True, the terminal continues to determine the status identifier of the next ECG file block A1_2; if the status identifier of the ECG file block A1_2 is False, the terminal obtains the ECG file block A1_2 in the ECG recorder through the first communication connection using the first communication protocol, and after obtaining the ECG file block A1_2, sets the status identifier of the ECG file block A1_2 to True.

[0108] Similarly, taking the second end starting transmission as an example, the terminal checks the status identifier of the ECG file block An_j. If the status identifier of the ECG file block C is True, the terminal continues to determine the status identifier of the previous ECG file block An_(j-1); if the status identifier of the ECG file block An_(j-1) is False, the terminal obtains the ECG file block An_(j-1) in the ECG recorder through the second communication connection and the second communication protocol, and after obtaining the ECG file block An_(j-1), sets the status identifier of the ECG file block An_(j-1) to True. It can be understood that the above is an example of the case where j is greater than 1. If j is not greater than 1, the previous ECG file block is the last block of An-1.

[0109] In some embodiments, the first end and the second end of the ECG file block queue are transmitted in parallel. In other words, the terminal obtains the ECG file blocks from both ends of the ECG file block queue in parallel based on the first communication protocol and the second communication protocol. Of course, in some extreme cases, such as when the first communication connection is suddenly disconnected, the terminal may also obtain the ECG file block queue only based on the second communication protocol.

[0110] Figure 7 FIG. 1 is a flow chart of a transmission process in an embodiment of the present application. Figure 7 As shown, the terminal first sorts all the initial ECG files in the ECG recorder according to the file size to obtain the sorting result, and according to the sorting result, segments the initial ECG files whose file size exceeds a preset threshold to obtain an ECG file block queue, and then uses the first communication protocol to start transmission from the first end of the ECG file block queue, and uses the second communication protocol to start transmission from the second end of the ECG file block queue, and the first communication protocol and the second communication protocol are parallel.

[0111] It should be noted that, in order to prevent an ECG file block from being repeatedly obtained by two communication connections, once an ECG file block is transmitted using the first communication protocol or the second communication protocol, the ECG file block will be marked by the terminal so that it can no longer be repeatedly transmitted based on the other communication protocol. Figure 6 In the process of the terminal using the first communication protocol and the second communication protocol to obtain from both ends of the ECG file block queue in parallel, the ECG file block A4_k is first marked by the second communication protocol, then the terminal will use the second communication connection corresponding to the second communication protocol to obtain the ECG file block A4_k, and the first communication protocol can no longer obtain the ECG file block A4_k.

[0112] In this embodiment, the first ECG file transmitted by the ECG recorder is obtained from the first end of the ECG file block queue based on the first communication protocol, and the second ECG file transmitted by the ECG recorder is obtained from the second end of the ECG file block queue based on the second communication protocol, thereby improving the transmission efficiency. In addition, since the first ECG file and the second ECG file are both ECG file blocks in the ECG file block queue with a status mark of not being transmitted, the transmission reliability is improved.

[0113] In one embodiment, optionally, the first end is the end where the ECG file corresponding to the initial ECG file with the largest data volume in the sorting result is located; and the transmission speed of the first communication protocol is greater than the transmission speed of the second communication protocol.

[0114] That is, in this embodiment, the terminal uses the first communication protocol with a faster transmission speed to start acquiring files with a large amount of data, and uses the first communication protocol with a slower transmission speed to start acquiring files with a small amount of data. In this way, the transmission efficiency can be improved, and the transmission of the main ECG file can be prioritized.

[0115] Figure 8 This is a flow chart showing the progress of an embodiment of the present application, refer to Figure 8 This embodiment relates to an optional implementation method of how to display the acquisition progress and upload progress. Based on the above embodiment, the above ECG data transmission also includes the following steps:

[0116] S801, determining an acquisition progress according to the number of ECG file blocks acquired by the terminal and the total number of ECG file blocks in an ECG file block queue.

[0117] S802, determining the upload progress according to the number of ECG file blocks sent to the server and the total number.

[0118] S803, displaying the acquisition progress and upload progress.

[0119] In this embodiment, in order to allow the user to know the current transmission progress in time, the terminal determines the acquisition progress according to the number of ECG file blocks that the terminal has acquired and the total number of ECG file blocks in the ECG file block queue. For example, assuming that there are 60 ECG file blocks in the ECG file block queue, and the terminal has acquired 30 ECG file blocks, the current acquisition progress is 50%.

[0120] Furthermore, the terminal can also determine the upload progress according to the number of ECG file blocks sent to the server and the total number. For example, assuming that there are 60 ECG file blocks in the ECG file block queue, and the terminal has successfully sent 30 ECG file blocks to the server, the current upload progress is 50%.

[0121] Furthermore, the terminal can display the acquisition progress and upload progress in the form of a progress bar, a digital reminder, or a voice announcement.

[0122] This embodiment can determine the acquisition progress according to the number of ECG file blocks acquired by the terminal and the total number of ECG file blocks in the ECG file block queue, and determine the upload progress according to the number of ECG file blocks sent to the server and the total number, and then display the acquisition progress and upload progress. Therefore, the user can know the transmission progress in time.

[0123] The above description is based on the terminal obtaining the target ECG file by slicing. In some application scenarios, the terminal may not need to perform slicing. Therefore, in one embodiment, optionally, the "obtaining the target ECG file in the ECG recorder" in S201 above can also be implemented in the following manner:

[0124] A first initial ECG file transmitted by an ECG recorder is obtained based on a first communication protocol, and a second initial ECG file transmitted by an ECG recorder is obtained based on a second communication protocol, wherein the target ECG file includes an initial ECG file, the initial ECG file includes a first initial ECG file and a second initial ECG file, the transmission speed of the first communication protocol is greater than the transmission speed of the second communication protocol, and the data volume of the first initial ECG file is greater than the data volume of the second initial ECG file.

[0125] In this embodiment, after the terminal determines a plurality of initial ECG files in the ECG recorder through at least one of the connections, it may determine a corresponding transmission mode according to the category of the initial ECG files.

[0126] Since there is generally only one main ECG data file with a large data volume, and other data files have a small data volume, the initial ECG file can be divided into a first initial ECG file and a second initial ECG file according to the data volume of the initial ECG file.

[0127] Furthermore, the terminal uses a first communication protocol with a faster transmission speed to obtain a first initial ECG file with a larger data volume, and uses a second communication protocol with a slower transmission speed to obtain a second initial ECG file with a smaller data volume.

[0128] Exemplarily, the terminal may obtain the main ECG data file A through the first communication protocol, and obtain other ECG files B, C, and D through the second communication protocol.

[0129] Likewise, in some embodiments, optionally, the terminal may acquire the first initial ECG file and the second initial ECG file in the ECG recorder in parallel through the first communication connection and the second communication connection.

[0130] In this way, by acquiring the first initial ECG file transmitted by the ECG recorder based on the first communication protocol and acquiring the second initial ECG file transmitted by the ECG recorder based on the second communication protocol, the acquisition rate of the terminal can be improved, thereby improving the timeliness of data transmission.

[0131] Further optionally, the above ECG data transmission method may further include the following steps:

[0132] The first initial ECG file and the second initial ECG file are sent to the server.

[0133] In this embodiment, the target ECG file includes the first initial ECG file and the second initial ECG file. In other words, after the terminal obtains the first initial ECG file and the second initial ECG file, it will directly send the first initial ECG file and the second initial ECG file to the server. In this way, the first initial ECG file and the second initial ECG file are equivalent to forming a complete ECG file, and the doctor can perform subsequent work based on the first initial ECG file and the second initial ECG file.

[0134] In one embodiment, optionally, the first communication protocol is a universal serial bus protocol, and the second communication protocol is a short distance communication protocol.

[0135] In this embodiment, the short-range communication protocol includes but is not limited to at least one of WIFI, Bluetooth, and ZigBee. The following will take the Bluetooth protocol as an example of the short-range communication protocol. That is, the terminal needs to establish a serial bus connection and a Bluetooth connection with the ECG recorder respectively. For example, the user connects the terminal to the ECG recorder via a USB data cable, and then searches for the Bluetooth of the ECG recorder based on the terminal to connect the ECG recorder via Bluetooth.

[0136] In this embodiment, since the first communication protocol is a universal serial bus protocol and the second communication protocol is a short distance communication protocol, the development is simple and easy to implement without requiring high costs.

[0137] In some embodiments, the terminal can also power the ECG recorder through a universal serial bus protocol. For example, after the user connects the terminal and the ECG recorder through a USB data cable, the ECG recorder will be powered on.

[0138] In one embodiment, optionally, the above ECG data transmission further includes the following steps:

[0139] When a first communication connection and a second communication connection are established between the terminal and the ECG recorder, a control instruction is sent to the ECG recorder based on the second communication connection; the control instruction is used to instruct the ECG recorder to grant the terminal permission to access the file, and the terminal identifies the initial ECG file based on the first communication connection.

[0140] In this embodiment, taking the first communication connection as a universal serial bus connection and the second communication connection as a Bluetooth connection as an example, when the terminal establishes the first communication connection and the second communication connection with the electrocardiograph recorder respectively, the terminal will send a control instruction to the electrocardiograph recorder via the Bluetooth connection, and the control instruction is used to access the storage of the electrocardiograph recorder. Furthermore, after the electrocardiograph recorder receives the control instruction, it can grant the terminal permission to access the file. After granting the terminal permission to access the file, the electrocardiograph recorder can be considered as a USB flash drive external to the terminal. In this way, the terminal can identify the initial electrocardiograph file based on the first communication connection. For example, the terminal identifies the main electrocardiograph data file A and other electrocardiograph files B, C and D in the electrocardiograph recorder.

[0141] In this embodiment, a first communication connection and a second communication connection are established between the terminal and the electrocardiograph recorder, and a control instruction is sent to the electrocardiograph recorder based on the second communication connection, so that the electrocardiograph recorder can grant the terminal access to the file, and the terminal identifies the initial electrocardiograph file based on the first communication connection. In this way, the security of the electrocardiograph data transmission process is improved.

[0142] The above description is based on the implementation of the ECG data transmission method on the terminal side. The following description will introduce the implementation of the ECG data transmission method on the server side. In one embodiment, the method can be applied to Figure 1 In the server shown, the following steps are included:

[0143] The server receives the target ECG file sent by the terminal; the target ECG file is a file in the ECG recorder obtained by the terminal through data transmission via the first communication connection and the second communication connection, by establishing a first communication connection between the terminal and the ECG recorder based on the first communication protocol and a second communication connection based on the second communication protocol.

[0144] In this embodiment, in order to obtain the target ECG file in the ECG recorder, it is first necessary to establish a first communication connection between the terminal and the ECG recorder based on the first communication protocol, and to establish a second communication connection based on the second communication protocol. Furthermore, the terminal transmits data through the first communication connection and the second communication connection and obtains the target ECG file in the ECG recorder. Furthermore, after the terminal obtains the target ECG file, it can send the target ECG file to the server. The above process can refer to S201 to S202, which will not be repeated here.

[0145] The ECG data transmission method provided in the present embodiment has a target ECG file between the terminal and the ECG recorder. A first communication connection is established based on a first communication protocol, and a second communication connection is established based on a second communication protocol. The terminal transmits data and obtains the file in the ECG recorder through the first communication connection and the second communication connection. In this process, the subject does not need to go to the hospital to hand over the ECG recorder to the doctor, who then manually transmits the target ECG file in the ECG recorder to the server. Instead, the subject uses the first communication connection, the second communication connection and the terminal to transmit the target ECG file to the server. Therefore, the doctor can obtain the target ECG file in a timely manner, thereby improving the timeliness of ECG data transmission.

[0146] In one embodiment, optionally, the target ECG file includes a first initial ECG file and a second initial ECG file; the data volume of the first initial ECG file is greater than the data volume of the second initial ECG file.

[0147] That is to say, in this embodiment, the terminal does not need to perform slicing processing, but uses a first communication protocol with a faster transmission speed to obtain a first initial ECG file with a larger data volume, and uses a second communication protocol with a slower transmission speed to obtain a second initial ECG file with a smaller data volume. Further, the terminal sends the first initial ECG file and the second initial ECG file to the server. In this way, after the server obtains the first initial ECG file and the second initial ECG file, the doctor can use the first initial ECG file and the second initial ECG file for analysis.

[0148] In one embodiment, optionally, the target ECG file includes an ECG file block queue generated after the terminal performs segmentation processing on the initial ECG file in the ECG recorder; the ECG data transmission method includes the following steps:

[0149] Each ECG file block in the ECG file block queue corresponding to the same initial ECG file is merged to obtain a complete ECG file.

[0150] Referring to S402 and S403, in this embodiment, after the terminal obtains the ECG file block queue in the ECG recorder, it sends the ECG file block queue to the server, so that the server obtains each ECG file block in the ECG file block queue. Further, the server merges each ECG file of the same initial ECG file to obtain a complete ECG file.

[0151] Exemplarily, the server receives ECG file blocks A1, A2, ..., A50, D1, D2, ..., D5, B1, B2, B3, C, then the server merges A1 to A50 to obtain the main ECG file A, merges D1 to D5 to obtain other ECG file D, and merges B1 to B3 to obtain other ECG file B. In this way, the server determines the complete ECG file including A, B, C and D.

[0152] Optionally, each ECG file block in the ECG file block queue has a unique block identifier, so that the terminal can support breakpoint resumption when sending the ECG file block queue to the server. For example, if the terminal fails to send A1 to the server, the terminal will resend A1 to the server after a certain period until A1 is successfully sent to the server.

[0153] In this embodiment, after the terminal segments the initial ECG file in the ECG recorder, an ECG file block queue is generated. After the terminal sends the ECG file block queue to the server, the server merges the ECG file blocks in the ECG file block queue to obtain a complete ECG file. This reduces the data throughput between the terminal and the server and improves the efficiency of the ECG file transmission process.

[0154] In order to more clearly introduce the ECG data transmission method in this application, Fig. 9 Provide explanation. Fig. 9 FIG. 1 is a schematic diagram of the overall process of an ECG data transmission method in an embodiment of the present application. Fig. 9 As shown, the first communication protocol is the Universal Serial Bus protocol and the second communication protocol is the Bluetooth protocol.

[0155] After the ECG recorder has finished recording the ECG data, the user can connect the ECG recorder to the terminal via a data cable. The data cable includes a USB data cable, which establishes a first communication connection between the terminal and the ECG recorder based on the universal serial bus protocol. After the terminal and the ECG recorder are connected via the data cable, the ECG recorder is powered on.

[0156] Furthermore, the terminal may provide an interactive interface, where the user initiates an operation of whether to upload the ECG data, and the terminal then confirms whether the ECG data needs to be uploaded.

[0157] When the ECG data needs to be uploaded, a second communication connection is established between the terminal and the ECG recorder via Bluetooth. Then, the terminal sends a control instruction to the ECG recorder via the second communication connection, and after the ECG recorder receives the control instruction, it grants the terminal access to the file, so that the terminal can identify multiple initial ECG files in the ECG recorder.

[0158] Furthermore, the terminal sorts each initial ECG file according to the size of multiple initial ECG files in the ECG recorder to obtain a sorting result, and fragments the initial ECG files in the sorting result whose data volume is greater than or equal to a preset threshold to generate an ECG file block queue in the ECG recorder.

[0159] In this way, the terminal can concurrently obtain the first ECG file transmitted by the ECG recorder from the first end of the ECG file block queue based on the first communication protocol, and obtain the second ECG file transmitted by the ECG recorder from the second end of the ECG file block queue based on the second communication protocol. In other words, the terminal concurrently uses the USB and Bluetooth transmission methods to synchronously obtain each ECG file block in the ECG file queue.

[0160] After the terminal obtains the ECG file block queue, it will send the ECG file block queue to the server. Then, after the server receives the ECG file block queue, it can merge the ECG file blocks in the ECG file block queue to obtain a complete ECG file.

[0161] It should be noted that each ECG file block in the ECG file block queue has a unique block identifier, so that breakpoint resume can be achieved in the process of the terminal obtaining each ECG file block from the ECG recorder and the terminal sending each ECG file block to the server.

[0162] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0163] Based on the same inventive concept, the embodiment of the present application also provides a terminal and a server for implementing the above-mentioned ECG data transmission method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above-mentioned method, so the specific limitations in the one or more terminal and server embodiments provided below can refer to the above-mentioned limitations on the ECG data transmission method, and will not be repeated here.

[0164] Fig.10 is a structural block diagram of a terminal in an embodiment of the present application, such as Fig.10 As shown, in an embodiment of the present application, a terminal 1000 is provided, including: an acquisition module 1001 and a first sending module 1002, wherein:

[0165] The acquisition module 1001 is used to establish a first communication connection between the terminal and the ECG recorder based on the first communication protocol, and to establish a second communication connection based on the second communication protocol. The terminal transmits data through the first communication connection and the second communication connection and acquires the target ECG file in the ECG recorder.

[0166] The first sending module 1002 is used to send the target ECG file to the server.

[0167] The ECG data transmission device provided in this embodiment establishes a first communication connection between the terminal and the ECG recorder based on the first communication protocol, and establishes a second communication connection based on the second communication protocol. Therefore, the terminal transmits data and obtains the target ECG file in the ECG recorder through the first communication connection and the second communication connection, and sends the target ECG file to the server. In this process, the subject does not need to go to the hospital to hand over the ECG recorder to the doctor, and the doctor manually transmits the target ECG file in the ECG recorder to the server. Instead, the first communication connection, the second communication connection and the terminal are used to transmit the target ECG file to the server. Therefore, the doctor can obtain the target ECG file in a timely manner, which improves the timeliness of ECG data transmission.

[0168] Optionally, the acquisition module 1001 includes:

[0169] The sorting unit is used to sort the initial ECG files in the ECG recorder according to their sizes to obtain a sorting result.

[0170] The sharding unit is used to perform sharding processing on the initial ECG files whose data volume is greater than or equal to a preset threshold in the sorting results, so as to generate an ECG file block queue in the ECG recorder.

[0171] The first acquisition unit is used to acquire the ECG file block queue in the ECG recorder.

[0172] The second acquisition unit is used to acquire the target ECG file in the ECG recorder according to the ECG file block queue.

[0173] Optionally, the ECG file block queue includes a first end and a second end; and the first acquisition unit includes:

[0174] The first acquisition subunit is configured to acquire a first ECG file transmitted by the ECG recorder from a first end of the ECG file block queue based on a first communication protocol.

[0175] The second acquisition subunit is used to acquire a second ECG file transmitted by the ECG recorder from the second end of the ECG file block queue based on a second communication protocol; wherein the first ECG file and the second ECG file are both ECG file blocks in the ECG file block queue whose status is marked as not transmitted.

[0176] Optionally, the first end is the end at which the ECG file corresponding to the initial ECG file with the largest data volume in the sorting result is located; and the transmission speed of the first communication protocol is greater than the transmission speed of the second communication protocol.

[0177] Optionally, the terminal 1000 further includes:

[0178] The first determining module is used to determine the acquisition progress according to the number of ECG file blocks acquired by the terminal and the total number of ECG file blocks in the ECG file block queue.

[0179] The second determination module is used to determine the upload progress according to the number and total number of ECG file blocks that have been sent to the server.

[0180] Display module, used to display the acquisition progress and upload progress.

[0181] Optionally, the target ECG file includes the ECG file block queue; the first sending module 1002 is also used to send the ECG file blocks in the ECG file block queue to the server, so that the server can merge the ECG file blocks in the ECG file block queue corresponding to the same initial ECG file to obtain a complete ECG file.

[0182] Optionally, the acquisition module 1001 is further used to acquire a first initial ECG file transmitted by the ECG recorder based on the first communication protocol, and to acquire a second initial ECG file transmitted by the ECG recorder based on the second communication protocol;

[0183] Among them, the target ECG file includes an initial ECG file, the initial ECG file includes the first initial ECG file and the second initial ECG file, the transmission speed of the first communication protocol is greater than the transmission speed of the second communication protocol, and the data volume of the first initial ECG file is greater than the data volume of the second initial ECG file.

[0184] Optionally, the first sending module 1002 is further configured to send the first initial ECG file and the second initial ECG file to the server.

[0185] Optionally, the first communication protocol is a universal serial bus protocol, and the second communication protocol is a short distance communication protocol.

[0186] Optionally, the terminal 1000 further includes:

[0187] The second sending module is used to send a control instruction to the electrocardiograph based on the second communication connection when a first communication connection and a second communication connection are established between the terminal and the electrocardiograph; the control instruction is used to instruct the electrocardiograph to grant the terminal permission to access the file, and the terminal identifies the initial electrocardiograph file based on the first communication connection.

[0188] Fig.11 is a structural block diagram of the server in the embodiment of the present application, such as Fig.11 As shown, in an embodiment of the present application, a server 1100 is provided, including:

[0189] Receiving module 1101 is used for the server to receive the target ECG file sent by the terminal; the target ECG file is a file in the ECG recorder that the terminal transmits data and obtains through the first communication connection and the second communication connection, by establishing a first communication connection between the terminal and the ECG recorder based on a first communication protocol and a second communication connection based on a second communication protocol.

[0190] The ECG data transmission device provided in the present embodiment establishes a first communication connection based on a first communication protocol and a second communication connection based on a second communication protocol between the terminal and the ECG recorder, and the terminal transmits data and obtains the file in the ECG recorder through the first communication connection and the second communication connection. In this process, the subject does not need to go to the hospital to hand over the ECG recorder to the doctor, who manually transmits the target ECG file in the ECG recorder to the server. Instead, the subject uses the first communication connection, the second communication connection and the terminal to transmit the target ECG file to the server. Therefore, the doctor can obtain the target ECG file in a timely manner, thereby improving the timeliness of ECG data transmission.

[0191] Optionally, the target ECG file includes an ECG file block queue generated after the terminal performs segmentation processing on the initial ECG file in the ECG recorder; the server 1100 also includes:

[0192] The processing module is used to merge the ECG file blocks corresponding to the same initial ECG file in the ECG file block queue to obtain a complete ECG file.

[0193] Optionally, the target ECG file includes an initial ECG file in the ECG recorder, and the initial ECG file includes a first initial ECG file and a second initial ECG file; the data volume of the first initial ECG file is greater than the data volume of the second initial ECG file.

[0194] Each module in the above-mentioned terminal and server can be implemented in whole or in part by software, hardware and their combination. Each module can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to each module above.

[0195] Fig.12 Figure 1 is an internal structure diagram of a computer device in an embodiment of the present application. In an embodiment of the present application, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in Figure Y. The computer device includes a processor, a memory, and a network interface connected via a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store relevant data. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a method for transmitting electrocardiogram data is implemented.

[0196] Those skilled in the art will understand that Fig.12 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0197] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0198] A first communication connection is established between the terminal and the electrocardiograph based on a first communication protocol, and a second communication connection is established based on a second communication protocol, and the terminal transmits data through the first communication connection and the second communication connection and obtains a target electrocardiograph file in the electrocardiograph;

[0199] The target ECG file is sent to the server.

[0200] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0201] According to the sizes of multiple initial ECG files in the ECG recorder, each of the initial ECG files is sorted to obtain a sorting result; the initial ECG files with a data volume greater than or equal to a preset threshold in the sorting result are fragmented to generate an ECG file block queue in the ECG recorder; the ECG file block queue in the ECG recorder is obtained; and according to the ECG file block queue, a target ECG file in the ECG recorder is obtained.

[0202] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0203] Based on the first communication protocol, the first ECG file transmitted by the ECG recorder is obtained from the first end of the ECG file block queue; based on the second communication protocol, the second ECG file transmitted by the ECG recorder is obtained from the second end of the ECG file block queue; wherein the ECG file block queue includes a first end and a second end; the first ECG file and the second ECG file are both ECG file blocks in the ECG file block queue whose status is marked as not transmitted.

[0204] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0205] Determine the acquisition progress according to the number of ECG file blocks acquired by the terminal and the total number of ECG file blocks in the ECG file block queue; determine the upload progress according to the number of ECG file blocks sent to the server and the total number; and display the acquisition progress and the upload progress.

[0206] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0207] The ECG file blocks in the ECG file block queue are sent to a server, so that the server merges the ECG file blocks in the ECG file block queue corresponding to the same initial ECG file to obtain a complete ECG file.

[0208] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0209] A first initial ECG file transmitted by the ECG recorder is obtained based on the first communication protocol, and a second initial ECG file transmitted by the ECG recorder is obtained based on the second communication protocol; wherein the target ECG file includes an initial ECG file, the initial ECG file includes the first initial ECG file and the second initial ECG file, the transmission speed of the first communication protocol is greater than the transmission speed of the second communication protocol, and the data volume of the first initial ECG file is greater than the data volume of the second initial ECG file.

[0210] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0211] The first initial ECG file and the second initial ECG file are sent to a server.

[0212] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0213] When the first communication connection and the second communication connection are established between the terminal and the electrocardiograph recorder, a control instruction is sent to the electrocardiograph recorder based on the second communication connection; the control instruction is used to instruct the electrocardiograph recorder to grant the terminal permission to access the file, and the terminal identifies the initial electrocardiograph file based on the first communication connection.

[0214] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0215] The server receives a target ECG file sent by a terminal; the target ECG file is a file in the ECG recorder acquired by the terminal through data transmission via the first communication connection and the second communication connection, by establishing a first communication connection between the terminal and the ECG recorder based on a first communication protocol and a second communication connection based on a second communication protocol.

[0216] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0217] The ECG file blocks in the ECG file block queue corresponding to the same initial ECG file are merged to obtain a complete ECG file.

[0218] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0219] A first communication connection is established between the terminal and the electrocardiograph based on a first communication protocol, and a second communication connection is established based on a second communication protocol, and the terminal transmits data through the first communication connection and the second communication connection and obtains a target electrocardiograph file in the electrocardiograph;

[0220] The target ECG file is sent to the server.

[0221] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0222] According to the sizes of multiple initial ECG files in the ECG recorder, each of the initial ECG files is sorted to obtain a sorting result; the initial ECG files with a data volume greater than or equal to a preset threshold in the sorting result are fragmented to generate an ECG file block queue in the ECG recorder; the ECG file block queue in the ECG recorder is obtained; and according to the ECG file block queue, a target ECG file in the ECG recorder is obtained.

[0223] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0224] Based on the first communication protocol, the first ECG file transmitted by the ECG recorder is obtained from the first end of the ECG file block queue; based on the second communication protocol, the second ECG file transmitted by the ECG recorder is obtained from the second end of the ECG file block queue; wherein the ECG file block queue includes a first end and a second end; the first ECG file and the second ECG file are both ECG file blocks in the ECG file block queue whose status is marked as not transmitted.

[0225] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0226] Determine the acquisition progress according to the number of ECG file blocks acquired by the terminal and the total number of ECG file blocks in the ECG file block queue; determine the upload progress according to the number of ECG file blocks sent to the server and the total number; and display the acquisition progress and the upload progress.

[0227] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0228] The ECG file blocks in the ECG file block queue are sent to a server, so that the server merges the ECG file blocks in the ECG file block queue corresponding to the same initial ECG file to obtain a complete ECG file.

[0229] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0230] A first initial ECG file transmitted by the ECG recorder is obtained based on the first communication protocol, and a second initial ECG file transmitted by the ECG recorder is obtained based on the second communication protocol; wherein the target ECG file includes an initial ECG file, the initial ECG file includes the first initial ECG file and the second initial ECG file, the transmission speed of the first communication protocol is greater than the transmission speed of the second communication protocol, and the data volume of the first initial ECG file is greater than the data volume of the second initial ECG file.

[0231] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0232] The first initial ECG file and the second initial ECG file are sent to a server.

[0233] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0234] When the first communication connection and the second communication connection are established between the terminal and the electrocardiograph recorder, a control instruction is sent to the electrocardiograph recorder based on the second communication connection; the control instruction is used to instruct the electrocardiograph recorder to grant the terminal permission to access the file, and the terminal identifies the initial electrocardiograph file based on the first communication connection.

[0235] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0236] The server receives a target ECG file sent by a terminal; the target ECG file is a file in the ECG recorder acquired by the terminal through data transmission via the first communication connection and the second communication connection, by establishing a first communication connection between the terminal and the ECG recorder based on a first communication protocol and a second communication connection based on a second communication protocol.

[0237] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0238] The ECG file blocks in the ECG file block queue corresponding to the same initial ECG file are merged to obtain a complete ECG file.

[0239] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0240] A first communication connection is established between the terminal and the electrocardiograph based on a first communication protocol, and a second communication connection is established based on a second communication protocol, and the terminal transmits data through the first communication connection and the second communication connection and obtains a target electrocardiograph file in the electrocardiograph;

[0241] The target ECG file is sent to the server.

[0242] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0243] According to the sizes of multiple initial ECG files in the ECG recorder, each of the initial ECG files is sorted to obtain a sorting result; the initial ECG files with a data volume greater than or equal to a preset threshold in the sorting result are fragmented to generate an ECG file block queue in the ECG recorder; the ECG file block queue in the ECG recorder is obtained; and according to the ECG file block queue, a target ECG file in the ECG recorder is obtained.

[0244] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0245] Based on the first communication protocol, the first ECG file transmitted by the ECG recorder is obtained from the first end of the ECG file block queue; based on the second communication protocol, the second ECG file transmitted by the ECG recorder is obtained from the second end of the ECG file block queue; wherein the ECG file block queue includes a first end and a second end; the first ECG file and the second ECG file are both ECG file blocks in the ECG file block queue whose status is marked as not transmitted.

[0246] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0247] Determine the acquisition progress according to the number of ECG file blocks acquired by the terminal and the total number of ECG file blocks in the ECG file block queue; determine the upload progress according to the number of ECG file blocks sent to the server and the total number; and display the acquisition progress and the upload progress.

[0248] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0249] The ECG file blocks in the ECG file block queue are sent to a server, so that the server merges the ECG file blocks in the ECG file block queue corresponding to the same initial ECG file to obtain a complete ECG file.

[0250] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0251] A first initial ECG file transmitted by the ECG recorder is obtained based on the first communication protocol, and a second initial ECG file transmitted by the ECG recorder is obtained based on the second communication protocol; wherein the target ECG file includes an initial ECG file, the initial ECG file includes the first initial ECG file and the second initial ECG file, the transmission speed of the first communication protocol is greater than the transmission speed of the second communication protocol, and the data volume of the first initial ECG file is greater than the data volume of the second initial ECG file.

[0252] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0253] The first initial ECG file and the second initial ECG file are sent to a server.

[0254] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0255] When the first communication connection and the second communication connection are established between the terminal and the electrocardiograph recorder, a control instruction is sent to the electrocardiograph recorder based on the second communication connection; the control instruction is used to instruct the electrocardiograph recorder to grant the terminal permission to access the file, and the terminal identifies the initial electrocardiograph file based on the first communication connection.

[0256] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0257] The server receives a target ECG file sent by a terminal; the target ECG file is a file in the ECG recorder acquired by the terminal through data transmission via the first communication connection and the second communication connection, by establishing a first communication connection between the terminal and the ECG recorder based on a first communication protocol and a second communication connection based on a second communication protocol.

[0258] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0259] The ECG file blocks in the ECG file block queue corresponding to the same initial ECG file are merged to obtain a complete ECG file.

[0260] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0261] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0262] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0263] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for transmitting electrocardiogram data, characterized in that: The method comprises: A first communication connection is established between the terminal and the electrocardiograph based on a first communication protocol, and a second communication connection is established based on a second communication protocol, and the terminal transmits data through the first communication connection and the second communication connection and obtains a target electrocardiograph file in the electrocardiograph; The target ECG file is sent to the server.

2. The method according to claim 1, characterized in that The step of obtaining the target ECG file in the ECG recorder includes: According to the sizes of the multiple initial ECG files in the ECG recorder, sorting the initial ECG files to obtain a sorting result; Slicing the initial ECG files whose data volume is greater than or equal to a preset threshold in the sorting results to generate an ECG file block queue in the ECG recorder; Obtaining the ECG file block queue in the ECG recorder; According to the ECG file block queue, a target ECG file in the ECG recorder is acquired.

3. The method according to claim 2, characterized in that The obtaining of the ECG file block queue in the ECG recorder comprises: The ECG file block queue includes a first end and a second end; Acquire a first ECG file transmitted by the ECG recorder from a first end of the ECG file block queue based on the first communication protocol; Acquire a second ECG file transmitted by the ECG recorder from a second end of the ECG file block queue based on the second communication protocol; The first ECG file and the second ECG file are both ECG file blocks whose status is marked as not transmitted in the ECG file block queue.

4. The method according to claim 3, characterized in that The first end is the end where the ECG file corresponding to the initial ECG file with the largest data volume in the sorting result is located; the transmission speed of the first communication protocol is greater than the transmission speed of the second communication protocol.

5. The method according to claim 3 or 4, characterized in that: The method further comprises: Determining the acquisition progress according to the number of ECG file blocks acquired by the terminal and the total number of ECG file blocks in the ECG file block queue; Determining the upload progress according to the number of ECG file blocks sent to the server and the total number; The acquisition progress and the upload progress are displayed.

6. The method according to any one of claims 2 to 4, characterized in that: The target ECG file includes the ECG file block queue; The sending the target ECG file to the server includes: The ECG file blocks in the ECG file block queue are sent to a server, so that the server merges the ECG file blocks in the ECG file block queue corresponding to the same initial ECG file to obtain a complete ECG file.

7. The method according to claim 1, characterized in that The step of obtaining the target ECG file in the ECG recorder includes: Acquire a first initial ECG file transmitted by the ECG recorder based on the first communication protocol, and acquire a second initial ECG file transmitted by the ECG recorder based on the second communication protocol; Among them, the target ECG file includes an initial ECG file, the initial ECG file includes the first initial ECG file and the second initial ECG file, the transmission speed of the first communication protocol is greater than the transmission speed of the second communication protocol, and the data volume of the first initial ECG file is greater than the data volume of the second initial ECG file.

8. The method according to any one of claims 1 to 4 and 7, characterized in that: The first communication protocol is a universal serial bus protocol, and the second communication protocol is a short distance communication protocol; The method further comprises: When the first communication connection and the second communication connection are established between the terminal and the electrocardiograph recorder, a control instruction is sent to the electrocardiograph recorder based on the second communication connection; the control instruction is used to instruct the electrocardiograph recorder to grant the terminal permission to access the file, and the terminal identifies the initial electrocardiograph file based on the first communication connection.

9. A method for transmitting electrocardiogram data, characterized in that: The method comprises: The server receives a target ECG file sent by a terminal; the target ECG file is a file in the ECG recorder acquired by the terminal through data transmission via the first communication connection and the second communication connection, by establishing a first communication connection between the terminal and the ECG recorder based on a first communication protocol and a second communication connection based on a second communication protocol.

10. A terminal, characterized in that: The terminal comprises: An acquisition module, used to establish a first communication connection between the terminal and the electrocardiograph based on a first communication protocol, and to establish a second communication connection based on a second communication protocol, wherein the terminal transmits data through the first communication connection and the second communication connection and acquires a target electrocardiograph file in the electrocardiograph; The first sending module is used to send the target ECG file to the server.

11. A server, characterized in that: The server comprises: A receiving module is used for the server to receive a target ECG file sent by a terminal; the target ECG file is a file in the ECG recorder that is acquired by the terminal through data transmission via the first communication connection and the second communication connection, by establishing a first communication connection between the terminal and the ECG recorder based on a first communication protocol and a second communication connection based on a second communication protocol.