Data transmission method and device, storage medium and electronic equipment
By using an intelligent dual-buffer module and multi-path TCP technology, combined with RAM and Flash caching mechanisms, the instability and security issues of data transmission in vital sign monitoring devices have been resolved, achieving efficient and secure data transmission.
Patent Information
- Application Number
- CN202511180052.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-21
- Publication Date
- 2026-01-02
AI Technical Summary
Existing vital sign monitoring devices suffer from network instability, latency, and data loss during data transmission, especially due to the latency and loss caused by a single wireless transmission method, which also poses security threats.
An intelligent dual-buffer module is adopted, which uses a combination of RAM and Flash to dynamically adjust the data storage location according to the data transmission mode. It also achieves flexible data transmission through multi-path TCP and determines the transmission mode by combining network parameters of different communication methods to ensure data stability and security.
It improves the stability and real-time performance of data transmission, reduces the risk of data loss, enhances the security and flexibility of data transmission, adapts to network changes, and ensures the integrity and timing accuracy of key physiological parameters.
Smart Images

Figure CN121262228A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the technical field of computer, in particular, to a data transmission method and device, a storage medium and an electronic device. BACKGROUND
[0002] At present, there are many problems in data transmission of data acquisition devices related to vital sign monitoring devices. For example, the data acquisition devices mainly rely on a single wireless transmission mode, which may cause delay and loss of data transmission. Therefore, how to better transmit the vital sign data collected by the vital sign monitoring device is a technical problem to be solved. SUMMARY
[0003] In order to overcome the problems in the related art, the present disclosure provides a data transmission method, device, storage medium and electronic device to ensure that vital sign data can be safely and efficiently transmitted.
[0004] According to a first aspect of an embodiment of the present disclosure, a data transmission method is provided, applied to a client, and the method comprises: collecting vital sign data and obtaining a communication mode of the client; determining a data transmission mode corresponding to the communication mode, the data transmission mode comprising a high-speed mode, a low-speed mode and a cache mode; writing the vital sign data into a target cache area according to the data transmission mode, the target cache area comprising a random access memory (RAM) and / or a Flash; sending the vital sign data on the RAM and / or the Flash to a server based on the data transmission mode.
[0005] Optionally, the writing of the vital sign data into the RAM and / or the Flash according to the data transmission mode comprises: when the data transmission mode is the high-speed mode, writing the vital sign data into the RAM; the sending of the vital sign data on the RAM and / or the Flash to the server based on the data transmission mode comprises: taking the vital sign data from the RAM and sending the vital sign data to the server according to a first data packet size.
[0006] Optionally, the writing of the vital sign data into the RAM and / or the Flash according to the data transmission mode comprises: when the data transmission mode is the low-speed mode, writing the vital sign data into the RAM; In the case that the RAM reaches the maximum capacity, the data in the RAM is transferred to the Flash according to the first-in-first-out rule; The sending of the vital sign data on the RAM and / or Flash to the server based on the data transmission mode comprises: The vital sign data is taken out from the RAM and / or Flash, and the vital sign data is sent to the server according to a second data packet size, which is smaller than a first data packet size.
[0007] Optionally, the writing of the vital sign data into the RAM and / or Flash according to the data transmission mode comprises: When the data transmission mode is the cache mode, the vital sign data is written into the RAM, and in the case that the RAM reaches the maximum capacity, the data in the RAM is transferred to the Flash according to the first-in-first-out rule; The sending of the vital sign data on the RAM and / or Flash to the server based on the data transmission mode comprises: The sending of the vital sign data on the RAM and / or Flash to the server based on the data transmission mode comprises:
[0008] Optionally, the determination of the data transmission mode corresponding to the communication mode comprises: The network parameters corresponding to the communication mode are determined, and the data transmission mode is determined based on the network parameters.
[0009] Optionally, the determination of the network parameters corresponding to the communication mode comprises: When the communication mode is a wired communication mode, the network parameters comprise a round-trip time RTT and a packet loss rate; or When the communication mode is a wireless communication mode, the network parameters comprise a round-trip time RTT, a packet loss rate and a received signal strength indication RSSI; or When the communication mode is a 5G communication mode, the network parameters comprise a round-trip time RTT, a packet loss rate and a reference signal received power RSRP.
[0010] Optionally, the method further comprises: The receipt information sent by the server is received; When it is determined based on the receipt information that the sending of the vital sign data is successful, the vital sign data is cleared from the target cache area; or When the receipt information includes packet loss information, a retransmission operation is performed, the packet loss information including an identification of a lost data packet, and the retransmission operation being used to retransmit the lost data packet based on the identification.
[0011] According to a second aspect of the embodiments of the present disclosure, a data transmission apparatus is provided, and the apparatus comprises: An acquisition module is configured to collect vital sign data and acquire a communication mode of a client; A determination module is configured to determine a data transmission mode corresponding to the communication mode, the data transmission mode including a high-speed mode, a low-speed mode, and a cache mode; A storage module is configured to write the vital sign data into a target cache area according to the data transmission mode, the target cache area including a random access memory (RAM) and / or a Flash; A sending module is configured to send the vital sign data on the RAM and / or the Flash to a server based on the data transmission mode.
[0012] According to a third aspect of the embodiments of the present disclosure, a non-transitory computer-readable storage medium is provided, and the medium stores a computer program, which, when executed by a processor, implements the steps of the data transmission method provided in the first aspect.
[0013] According to a fourth aspect of the embodiments of the present disclosure, an electronic device is provided, and the electronic device comprises: A memory, which stores a computer program; A processor, which is used to execute the computer program in the memory to implement the steps of the data transmission method provided in the first aspect.
[0014] According to a fifth aspect of the embodiments of the present disclosure, a computer program product is provided, and the computer program, when executed by a processor, implements the steps of the data transmission method provided in the first aspect.
[0015] The present disclosure can store the collected vital sign data according to the data transmission mode, that is, write the vital sign data into the RAM and / or Flash based on the data transmission mode, so as to optimize the storage occupation and transmission efficiency to a certain extent, and the vital sign data written into the target cache area can be sent to the server based on the data transmission mode. Specifically, the vital sign data is collected, and the communication mode of the client is obtained, and the data transmission mode corresponding to the communication mode is determined, wherein the data transmission mode includes a high-speed mode, a low-speed mode and a cache mode. On this basis, the vital sign data is written into the target cache area according to the data transmission mode, and the target cache area includes a random access memory RAM and / or a Flash. Then, the vital sign data on the RAM and / or the Flash is sent to the server based on the data transmission mode. Since the vital sign data is stored and transmitted based on the data transmission mode, the stability and real-time performance of data transmission can be significantly improved.
[0016] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF DRAWINGS
[0017] The accompanying drawings are included to provide a further understanding of the present disclosure, and constitute a part of the specification, and are used to explain the present disclosure together with the following detailed description, but do not constitute a limitation of the present disclosure. In the drawings: Figure 1 FIG. 1 is a flowchart of a data transmission method according to an exemplary embodiment.
[0018] Figure 2 FIG. 2 is a block diagram of a client in a data transmission method according to an exemplary embodiment.
[0019] Figure 3 FIG. 3 is a hardware structure and communication configuration of a client in a data transmission method according to an exemplary embodiment.
[0020] Figure 4 FIG. 4 is a principle example diagram of an intelligent double cache module in a data transmission method according to an exemplary embodiment.
[0021] Figure 5 FIG. 5 is a switching example diagram of a communication mode in a data transmission method according to an exemplary embodiment.
[0022] Figure 6 FIG. 6 is an example diagram of a receipt receiving module in a data transmission method according to an exemplary embodiment.
[0023] Figure 7 FIG. 7 is a block diagram of a server in a data transmission method according to an exemplary embodiment.
[0024] Figure 8 is an example diagram of interaction between a client and a server in a data transmission method according to an example embodiment.
[0025] Figure 9 is a block diagram of a data transmission method device according to an example embodiment.
[0026] Figure 10 is a block diagram of an electronic device according to an example embodiment.
[0027] Figure 11 is a block diagram of an electronic device according to an example embodiment. DETAILED DESCRIPTION
[0028] The specific embodiments described herein will be better understood with the help of the following detailed description taken in connection with the accompanying drawings. It should be understood that the specific embodiments described herein are merely illustrative and explanatory in nature and are not intended to limit the disclosure.
[0029] It should be noted that all actions of obtaining signals, information or data in the disclosure are carried out in accordance with the corresponding data protection regulations and policies of the country where the device is located, and with the authorization given by the corresponding device owner.
[0030] In the description of the disclosure, the terms such as "first", "second", etc. are used to distinguish similar objects, and do not necessarily mean a specific order or sequence. In addition, in the description with reference to the drawings, the same reference signs in different drawings represent the same elements, unless otherwise stated.
[0031] In the embodiments of the disclosure, although the operations or steps are described in a specific order in the accompanying drawings, it should not be understood as requiring the operations or steps to be performed in the specific order or serial order shown, or requiring all the operations or steps to be performed to obtain the desired results. In the embodiments of the disclosure, the operations or steps can be performed in series; the operations or steps can be performed in parallel; or a part of the operations or steps can be performed.
[0032] In the related art, the vital sign detection device has problems such as network instability or interruption in the data transmission process. Due to the lack of effective local cache and intelligent retransmission mechanism, there is a risk of loss of the collected key vital sign data. Although TCP (Transmission Control Protocol) single-path transmission can realize the transmission of vital sign data, due to the influence of network dynamic changes and congestion, it cannot guarantee the data transmission efficiency and integrity.
[0033] In addition, the transmission architecture based on fixed network connection will cause significant delay when network switching, resulting in data transmission interruption. Moreover, sensitive medical data such as electrocardiogram has security threats of malicious attacks and data leakage in the standard protocol transmission process.
[0034] To solve the above problems, the embodiment of the present disclosure proposes a data transmission method, which can write the vital sign data collected by the data collection device into the corresponding target cache area according to the different data transmission modes, that is, the present disclosure can dynamically adjust the data storage location according to the actual state, so as to optimize the storage occupation and transmission efficiency to a certain extent. Wherein, the target cache area can include RAM (Random Access Memory) and / or Flash. In addition, the embodiment of the present disclosure can also send the vital sign data stored in the target cache area to the server according to the different data transmission modes, so as to ensure the flexibility and stability of vital sign data transmission. Moreover, the interaction between the server can ensure the security of data transmission.
[0035] Figure 1 is a flow chart of a data transmission method according to an exemplary embodiment, as Figure 1 shown, the method can include the following steps.
[0036] In step S110, vital sign data is collected, and the communication mode of the client is obtained.
[0037] As an optional way, the client can be a vital sign data intelligent collection terminal (Client), which can be deployed with data intelligent collection and transmission software. Wherein, the transmission software can have the functions of data real-time collection, data analysis and packaging, data intelligent transmission and lost packet retransmission.
[0038] It can be seen that based on the vital sign data intelligent collection terminal, real-time and complete collection, analysis and intelligent transmission of medical device generated data can be realized, and lost data packets can be retransmitted according to the server (Sever) return content.
[0039] In the embodiment of the present disclosure, the structure of the client can be as Figure 2 shown, based on Figure 2 It can be seen that the client 20 can include a data collection module 21, a data analysis module 22, an intelligent double cache module 23 and the like. Wherein, the data collection module 21 can obtain vital sign data from vital sign monitoring device in real time, and push the collected data into the analysis module.
[0040] For example, the vital sign monitoring device can include device A and device B. During the process of collecting vital sign data, the data collection module 21 can passively receive data transmitted by device A or actively request device B to send data. In other words, device A can periodically send the vital sign data collected by it to the data collection module 21; and device B can send the vital sign data collected by it to the data collection module 21 when receiving the data request instruction sent by the data collection module.
[0041] Optionally, the data analysis module 22 can receive the vital sign data transmitted by the data collection module 21 and perform edge analysis on the vital sign data, that is, perform data cleaning, filtering, and aggregation on the collected data to convert heterogeneous data into a unified data format.
[0042] On this basis, the data analysis module 22 can package the parsed data according to a private protocol and input the packaged data into the intelligent double buffer module 23. Here, the intelligent double buffer module 23 can be a RAM+Flash double buffer module.
[0043] Optionally, the intelligent double buffer module 23 can dynamically adjust the data storage location according to the actual state to optimize the storage occupation and transmission efficiency. In other words, after collecting the vital sign data, the embodiment of the present disclosure can dynamically adjust the storage location of the data according to the actual state of the client. For example, the embodiment of the present disclosure can write the vital sign data into a target buffer area according to the data transmission mode, and the target buffer area can include RAM and / or Flash.
[0044] In step S120, the data transmission mode corresponding to the communication mode is determined, and the data transmission mode includes a high-speed mode, a low-speed mode, and a cache mode.
[0045] As an optional way, after obtaining the communication mode of the client, the embodiment of the present disclosure can determine the data transmission mode corresponding to the communication mode. The data transmission mode can include a high-speed mode, a low-speed mode, and a cache mode.
[0046] When in the high-speed mode, the client can increase the data packet as much as possible according to the current bandwidth condition to reduce the communication handshake, thereby improving the throughput.
[0047] When in the low-speed mode, the client can transmit data in small data packets to ensure that the data packet can be effectively transmitted to reduce the impact of single packet loss on data transmission.
[0048] When in the cache mode, the client can pause the data transmission and can write the collected data to a target cache, which can be in a RAM+Flash dual cache mode. After the network is recovered, the client can preferentially transmit the latest data in real time and can retransmit the cached data through MPTCP (Multipath Transmission Control Protocol) at a specific port.
[0049] After the vital sign data is stored to the target cache, the embodiment of the present disclosure can send the data in the target cache to the server according to the data transmission mode. Before this, the embodiment of the present disclosure can first acquire the communication mode of the client. The main reason is that the communication modes are different, the modes corresponding to the determination of the data transmission mode are also different, that is, the corresponding data transmission modes are different, and the mode of sending the vital sign data can also be different.
[0050] It can be understood that the communication mode of the client can include a wired communication mode, a wireless communication mode, and a 5G (5th Generation Mobile Communication Technology) communication mode.
[0051] It can be understood that the communication mode of the client can include a wired communication mode, a wireless communication mode, and a 5G (5th Generation Mobile Communication Technology) communication mode.
[0052] In some embodiments, when the communication mode is a wired communication mode, the network parameters determined include a round trip time RTT (Round Trip Time) and a packet loss rate, that is, the network parameters corresponding to the wired communication mode include the RTT and the packet loss rate. That is, in the case where the communication mode of the client is determined to be a wired communication mode, the embodiment of the present disclosure can determine the data transmission mode of the client based on the RTT and the packet loss rate.
[0053] As an example, when the RTT is determined to be less than a first preset time and the packet loss rate is determined to be less than a first percentage, the data transmission mode of the client is determined to be a high-speed mode / high-speed transmission mode. For example, the first preset time can be 50 ms, and the first percentage can be 1%.
[0054] As another example, when the RTT is greater than a first preset time and less than a second preset time, and the packet loss rate is greater than a first percentage and less than a second percentage, it is determined that the data transmission mode of the client is a low-speed mode / low-speed transmission mode. For example, the second preset time can be 200 ms, and the second percentage can be 5%.
[0055] As another example, when the RTT is greater than a second preset time, or the packet loss rate is greater than a second percentage, it is determined that the data transmission mode of the client is a cache mode.
[0056] In some embodiments, when the communication mode is a wireless communication (WiFi) mode, the network parameters include the round trip time RTT, the packet loss rate, and the RSSI (Received Signal Strength Indicator), i.e., the network parameters corresponding to the wireless communication mode are the RTT, the packet loss rate, and the RSSI. That is, in the case where it is determined that the communication mode of the client is the wireless communication mode, the data transmission mode of the client can be determined based on the RTT, the packet loss rate, and the RSSI.
[0057] As an example, when the RTT is less than a first preset time, the packet loss rate is less than a first percentage, and the RSSI is greater than a first specified signal strength, it is determined that the data transmission mode of the client is a high-speed mode / high-speed transmission mode. For example, the first preset time can be 50 ms, the first percentage can be 1%, and the first specified signal strength can be -65 dBm.
[0058] As another example, when the RTT is greater than a first preset time and less than a second preset time, the packet loss rate is greater than a first percentage and less than a second percentage, and the RSSI is greater than a first specified signal strength, it is determined that the data transmission mode of the client is a low-speed mode / low-speed transmission mode. For example, the second preset time can be 200 ms, and the second percentage can be 5%.
[0059] As another example, when the RTT is greater than a second preset time, or the packet loss rate is greater than a second percentage, or the RSSI is less than a first specified signal strength, it is determined that the data transmission mode of the client is a cache mode.
[0060] In some embodiments, when the communication manner is a 5G communication manner, the network parameters include a round trip time (RTT), a packet loss rate, and a reference signal received power (RSRP), i.e., the network parameters corresponding to the 5G communication manner include the RTT, the packet loss rate, and the RSRP. That is, when it is determined that the communication manner of the client is the 5G communication manner, the data transmission mode of the client can be determined based on the RTT, the packet loss rate, and the RSRP.
[0061] As an example, when it is determined that the RTT is less than a first preset time, the packet loss rate is less than a first percentage, and the RSRP is greater than a second specified signal strength, the data transmission mode of the client is determined to be a high-speed mode / high-speed transmission mode. For example, the first preset time can be 50 ms, the first percentage can be 1%, and the first specified signal strength can be -80 dBm.
[0062] As another example, when it is determined that the RTT is greater than a first preset time and less than a second preset time, the packet loss rate is greater than a first percentage and less than a second percentage, and the RSSI is greater than a second specified signal strength, the data transmission mode of the client is determined to be a low-speed mode / low-speed transmission mode. For example, the second preset time can be 200 ms, and the second percentage can be 5%.
[0063] As another example, when it is determined that the RTT is greater than the second preset time, or the packet loss rate is greater than the second percentage, or the RSSI is less than the second specified signal strength, the data transmission mode of the client is determined to be a cache mode.
[0064] It should be noted that in order to avoid traffic waste in 5G communication, the high-speed mode can be disabled by modifying the configuration, only the low-speed mode is allowed, and the high-speed mode restriction can be removed by modifying the configuration in necessary scenarios.
[0065] That is, when it is determined that the RTT is less than a first preset time, the packet loss rate is less than a first percentage, and the RSRP is greater than a second specified signal strength, the high-speed mode can be determined as the data transmission mode if the high-speed mode is not disabled. Conversely, if it is determined that the high-speed mode is disabled, the low-speed mode can be determined as the data transmission mode, i.e., the data transmission mode of the client is the low-speed mode at this time.
[0066] In order to better illustrate the triggering conditions of different data transmission modes (transmission modes) under different communication manners, the present disclosure provides the following Table 1.
[0067] Table 1
[0068] The low-speed mode (*) in Table 1 can be the transmission mode used when the high-speed mode is disabled. Transmitting data through this low-speed mode can ensure normal data transmission on the one hand, and avoid wasting bandwidth on the other hand.
[0069] Based on at least one of the above network parameters, embodiments of this disclosure can determine the network status of the client under different communication methods, and based on the network status, the corresponding data transmission mode can be obtained.
[0070] For example, in this embodiment of the disclosure, the network parameters of the client's current network (wired / Wi-Fi / 5G) can be monitored at specified intervals. The specified interval can be 200ms, which can be flexibly set according to the interval of client data transmission. The network parameters may include round-trip time (RTT), packet loss rate, and real-time bandwidth, etc.
[0071] Based on this, embodiments of this disclosure can calculate the sliding window average of the last n detection values to avoid short-term fluctuations affecting decision-making, such as calculating the sliding window average of the last 5 detection values. Continuing the above examples, for WiFi communication, embodiments of this disclosure can combine Wi-Fi signal strength (RSSI) to determine stability (e.g., greater than -65dBm is considered stable); for 5G communication, embodiments of this disclosure can combine 5G signal strength (RSRP) to determine stability (e.g., greater than > -80dBm is considered good signal).
[0072] Based on network quality, the embodiments of this disclosure can adaptively adjust the data transmission strategy, that is, different transmission methods can be adopted under different network conditions, so as to ensure data integrity, low latency and high reliability.
[0073] In this embodiment, the client (intelligent vital sign data acquisition terminal) can be configured with three communication infrastructures: Ethernet (wired), WiFi (wireless), and 5G. After configuration, all three communication methods have the ability to transmit data to the platform server. Their hardware structure and communication configuration can be as follows: Figure 3 As shown. Based on Figure 3 As can be seen, the embodiments of this disclosure can access the terminal (client) through a wired interface and configure wired, WiFi and 5G communication methods, and then interact with the data receiving platform server through these communication methods.
[0074] In step S130, vital sign data is written to the target buffer according to the data transmission mode.
[0075] As an optional mode, after obtaining the data transmission mode corresponding to the communication mode, the embodiment of the disclosure can write the collected vital sign data to the target cache area based on the data transmission mode. Wherein, the target cache area can include random access memory (RAM) and / or Flash.
[0076] Wherein, the writing operation of vital sign data can be realized by the intelligent double cache module 23, that is, the packaged data can be written to the RAM cache area, and the RAM access can adopt a ring buffer mechanism, such as FIFO (First In First Out) queue.
[0077] For example, the storage times of the ring buffer mechanism can be less than the preset number, such as at most 8 times of data packets, wherein the preset number can be configured by the actual situation such as the concurrency, and the embodiment of the disclosure is not limited.
[0078] As an example, if it is determined that the network of the client is stable in the high-speed mode, the collected vital sign data can be directly accessed from the RAM cache and sent to the server through TCP, without being retained; if it is determined that the network fluctuation of the client is in the low-speed mode, the vital sign data collected by the client can be temporarily stored in the RAM cache, at this time the length of the data packet for transmission is smaller, and after the network is restored, the embodiment of the disclosure can send the vital sign data to the server in batches; if the network of the client is extremely unstable so that the data cannot be successfully sent within the timeout threshold, the collected vital sign data can be stored in the Flash to prevent data loss.
[0079] Wherein, the Flash can store data in chronological order in the log file format and mark the data packet timestamp and identification number.
[0080] Here, the principle of the intelligent double cache module 23 can be as shown in Figure 4 As can be seen from Figure 4 Based on the analysis of the data analysis module 22 on the collected vital sign data, the vital sign data obtained by the analysis can be written into the RAM, such as writing the analyzed packet A into position 0, writing the analyzed packet B into position 1, writing the analyzed packet C into position 2, and writing the analyzed packet D into position 3. The client is in different data transmission modes, and the positions of the stored vital sign data can also be different.
[0081] For example, when the data transmission mode is the high-speed mode, the vital sign data can be taken and put immediately, and real-time transmission can be realized due to the fast data transmission rate. For another example, when the data transmission mode is the low-speed mode, the RAM can perform short-term caching, and the vital sign data can be transmitted to the server in sequence after the network is restored. In addition, after the RAM is full, the data can be transferred to the Flash, and the Flash can include a timestamp, an identification number, and cached data.
[0082] After the network is restored, the data in the RAM can be transmitted preferentially to ensure real-time data transmission, and the data in the Flash can be retransmitted in time sequence to prevent out-of-order. After the server confirms the reception, the data in the Flash can be automatically deleted to prevent occupying storage space. In addition, the maximum storage threshold (such as 100 MB) can be configured for the Flash, and when the threshold is exceeded, the earliest data can be deleted in the FIFO mode.
[0083] In summary, when the data transmission mode is determined to be the high-speed mode, the vital sign data can be written into the RAM cache in the process of storing the vital sign data based on the data transmission mode.
[0084] The RAM can process real-time data transmission by using the ring buffer, and when the network quality deteriorates to the threshold condition, the data can be automatically transferred to the Flash memory. When the network is restored, the cached data can be retransmitted, and the RAM and the Flash can perform data transmission simultaneously. In this way, the integrity and time sequence accuracy of the waveform and other key physiological parameters can be ensured in the case of network interruption.
[0085] Optionally, when the data transmission mode is determined to be the low-speed mode, the collected vital sign data can be written into the RAM, that is, the data is temporarily stored in the RAM cache. If it is detected that the RAM reaches the maximum capacity, the data packets in the RAM can be transferred to the Flash according to the first-in first-out rule.
[0086] Optionally, when the data transmission mode is the caching mode, the collected vital sign data can be written into the RAM cache, and when the RAM cache reaches the maximum capacity, the data in the RAM cache can be transferred to the Flash according to the first-in first-out rule. The caching mode is similar to the low-speed mode in terms of data storage, but in the low-speed mode, the client is still in the state of transmitting data, so less data is transferred to the Flash, and in the caching mode, the client stops transmitting data, so more data is cached to the Flash.
[0087] In step S140, the vital sign data on the RAM and / or Flash is sent to the server based on the data transmission mode.
[0088] As can be known from the above description, after the data transmission mode is acquired, on the one hand, the embodiment of the present disclosure can write the collected vital sign data to the target buffer based on the data transmission mode, and on the other hand, the embodiment of the present disclosure can also send the vital sign data stored in the buffer area to the server based on the data transmission mode. The server can also be referred to as a platform server, a data receiving platform server, or a server, etc.
[0089] As an example, when the data transmission mode is the high-speed mode, the embodiment of the present disclosure can take the vital sign data from the RAM and send the vital sign data to the server according to the first data packet size.
[0090] As another example, when the data transmission mode is the low-speed mode, the embodiment of the present disclosure can take the vital sign data from the RAM and / or Flash and send the vital sign data to the server according to the second data packet size, wherein the second data packet size is smaller than the first data packet size.
[0091] As another example, when the data transmission mode is the buffer mode, the embodiment of the present disclosure can stop data transmission and send the vital sign data in the RAM and / or Flash to the server after the network of the client is restored.
[0092] As another optional way, during the data transmission process, the client can detect the data transmission mode, and when it is determined that the data transmission mode meets the network switching rule corresponding to the current communication mode of the client, the network switching operation is performed. It can be understood that the current communication mode used by the client is not the same, and the corresponding network switching rule is also not the same.
[0093] The embodiment of the present disclosure can respectively perform communication configuration on the Ethernet, WiFi and 5G of the client, so as to ensure that when the communication condition allows, the client can transmit data to the server through any of the above ways, so that the client has a dynamic network transmission mode of wired priority, Wi-Fi backup and 5G bottom.
[0094] As an example, the communication mode used by the client by default is wired communication, and when the client transmits data to the server through the wired communication mode, the first network switching rule corresponding thereto is: if the client is currently in a high-speed transmission mode (high-speed mode), wired communication is used; if the client is currently in a low-speed transmission mode (low-speed mode) and the WiFi communication satisfies the high-speed transmission condition, WiFi transmission is switched, that is, the communication mode of the client is switched from the wired communication mode to the WiFi communication mode, otherwise wired communication is used.
[0095] In addition, when the client is currently in the cache mode, the embodiments of the present disclosure can determine whether to switch the communication mode and to which communication mode according to the network parameters of WiFi or 5G. In this process, if it is determined that the WiFi communication satisfies the transmission condition, the communication mode of the client is switched from wired communication to WiFi communication, that is, WiFi transmission is switched, wherein the transmission condition can be that the client satisfies the high-speed mode or the low-speed mode under the WiFi communication mode; if it is determined that the WiFi communication reaches the cache condition and the 5G communication satisfies the transmission condition, the communication mode of the client is switched from wired communication to the 5G communication mode, that is, 5G transmission is switched; if both WiFi and 5G reach the cache condition, the cache mode is entered.
[0096] As another example, the standby communication mode of the client is WiFi communication, and when the client transmits data to the server through the WiFi communication mode, the second network switching rule corresponding thereto is: if the client is currently in a high-speed transmission mode (high-speed mode), WiFi communication is used; if the client is currently in a low-speed transmission mode (low-speed mode) and the wired communication satisfies the high-speed transmission condition, wired transmission is switched, that is, the communication mode of the client is switched from the WiFi communication mode to the wired communication mode, otherwise WiFi communication is used.
[0097] In addition, when the client is currently in the cache mode, the embodiments of the present disclosure can determine whether to switch the communication mode and to which communication mode according to the network parameters of wired or 5G. In this process, if it is determined that the wired communication satisfies the transmission condition, the communication mode of the client is switched from WiFi communication to wired communication, that is, wired transmission is switched, wherein the transmission condition can be that the client satisfies the high-speed mode or the low-speed mode under the wired communication mode; if it is determined that the wired communication reaches the cache condition and the 5G communication satisfies the transmission condition, the communication mode of the client is switched from the WiFi communication mode to the 5G communication mode, that is, 5G transmission is switched; if both WiFi and 5G reach the cache condition, the cache mode is entered.
[0098] As another example, the client-side guaranteed communication method is 5G communication. When the client transmits data to the server via 5G communication, the corresponding third network switching rule is as follows: If the client is currently in low-speed transmission mode, it can determine the network status of wired and WiFi in real time and switch preferentially. If wired communication meets the high-speed transmission conditions, the communication method can be switched from 5G to wired transmission. Additionally, if the client is currently in caching mode, this embodiment of the disclosure can enter caching mode.
[0099] Since 5G communication is a guaranteed communication method, in order to save data traffic, this embodiment of the disclosure can be set to only perform low-speed transmission mode under this communication method. However, this setting can be modified according to the user's needs. For example, if the high-speed mode is not disabled, the high-speed transmission mode can also be performed under the 5G communication method.
[0100] To better illustrate the rules for switching communication methods, embodiments of this disclosure provide, as follows: Figure 5 The example diagram shown is based on Figure 5 It is known that, in addition to the data acquisition module, data parsing module and intelligent dual-buffering module, the client may also include an adaptive transmission optimization module 24, which can detect network status, switch transmission modes and dynamically switch networks, and can be connected to the intelligent dual-buffering module 23.
[0101] Among these features, network status detection can collect network parameters based on the client's current communication method. These parameters may include round-trip time (RTT), packet loss rate, real-time bandwidth, RSSI (Wi-Fi signal strength), and RSRP (5G signal strength). Additionally, transmission mode switching and network dynamics can comprehensively determine whether to perform a network switching operation based on the conditions of wired, Wi-Fi, and 5G communication methods.
[0102] Figure 5 The first process dynamically adjusts the data packet size under different transmission modes based on the detected real-time bandwidth to ensure efficient bandwidth utilization. The second process, in addition, dynamically switches the client's network to the optimal network based on the aforementioned switching rules, taking into account the client's current communication method (Ethernet / WiFi / 5G) and the achievable transmission modes (high-speed / low-speed / caching) under each method.
[0103] It is understood that, regardless of which communication method enters the buffer mode, if any one or more of the other two communication methods meet the transmission conditions, the embodiments of this disclosure can preferentially switch to the communication quality optimal method for transmission.
[0104] In summary, in any network communication mode (wired / WiFi / 5G), the embodiments of the present disclosure can switch the corresponding data packet transmission mode according to the real-time network state. Based on the real-time network state, the embodiments of the present disclosure can monitor and intelligently adjust the high-speed, low-speed or cache mode and the data packet size in different modes, and can realize seamless and non-sensing switching of multiple networks according to the actual environment.
[0105] As another optional mode, after the client sends the vital sign data to the server, it can receive the receipt information sent by the server, and based on the receipt information, it can manage the vital sign data in the target cache area.
[0106] Specifically, when it is determined based on the receipt information that the vital sign data is sent successfully, the embodiments of the present disclosure can clear the vital sign data from the target cache area. Alternatively, when the receipt information includes packet loss information, the client can perform a retransmission operation, wherein the packet loss information can include the identification of the lost data packet, and the retransmission operation can be used to retransmit the lost data packet based on the identification.
[0107] In the embodiments of the present disclosure, the client can also include a receipt receiving module as shown in Figure 6 The receipt content is not the same, and the operation of the intelligent double cache module (double cache module) is also not the same.
[0108] For example, as shown in Figure 6 The client can receive the receipt content / receipt packet sent by the server (data receiving platform) through the receipt receiving module 25, and determine whether the data packet is sent successfully according to the receipt content. If the receipt content includes an ACK (Acknowledgement, confirmation) signal and no additional content, it indicates that the data packet is sent successfully, at which time the client can clear the cache of the corresponding data packet in the RAM. For example, the client sends packet A to the server, and receives an ACK signal from the server, at which time the packet A data stored in the RAM can be deleted.
[0109] After determining that the data is sent successfully, the embodiments of the present disclosure can maintain efficient low-latency cache management by clearing the data sent successfully in the RAM. In addition, if the RAM is full and still cannot be sent, the Flash storage can be triggered, that is, the data is transferred to the Flash to prevent data overflow and loss. It should be noted that after the data is transferred to the Flash, the embodiments of the present disclosure can clear the information related to the data in the RAM cache.
[0110] Additionally, if the receipt includes the lost packet ID (Identifier) information, the client can resend the corresponding data packet via MPTCP on a specific port. For example, if the client sends packet B to the server and the receipt received from the server includes the lost packet ID, which is the ID of packet B, the client can then resend / retransmit packet B.
[0111] By introducing the MPTCP retransmission mechanism, the embodiments of this disclosure can ensure the integrity and reliability of data transmission. When a data packet is detected as lost, it can be retransmitted, which can improve the efficiency of data transmission to a certain extent.
[0112] Optionally, if no receipt information is received from the server within the timeout period, the embodiments of this disclosure can cache the data packets according to a caching mechanism, which can be a FIFO mechanism.
[0113] In this embodiment of the disclosure, the server can support concurrent access of data acquisition terminals (clients) and can complete functions such as terminal verification, fast data packet reception, data integrity verification, and receipt of reception results.
[0114] For example, such as Figure 7 The server 10 shown may include a terminal authentication and data packet receiving module 11, a packet parsing and integrity verification module 12, and a receipt packet generation and sending module 13. The terminal authentication and data packet receiving module 11 is used to authenticate the connected terminal (client 20). After successful authentication, this module can listen to the TCP ports accessed by multiple terminals using a specific communication port, enabling multi-channel data packet reception to ensure fast data packet reception. Based on this, the terminal authentication and data packet receiving module can pass the received data packets to the packet parsing and integrity verification module.
[0115] The packet parsing and integrity verification module 12 can split and parse data packets according to the terminal and platform's proprietary protocols to obtain the original data, and confirm the data integrity by using data integrity verification (such as CRC check). Then, the integrity verification result information is transmitted to the receipt packet generation and sending module.
[0116] The receipt packet generation and sending module 13 can be used to create receipt packets and send them to the corresponding acquisition terminal. If the data is determined to be complete based on the verification result, the receipt information sent to the client can include ACK and has no attachment information; if the data is determined to be lost based on the verification result, the lost data packet ID can be further parsed according to the private protocol. In this case, the receipt information sent to the client can include the data packet ID information to request the user to resend.
[0117] By employing a proprietary protocol, this disclosed embodiment can effectively prevent security threats and optimize transmission costs through intelligent traffic configuration strategies. In complex scenarios such as cross-ward transfers and multi-device concurrency, this disclosed embodiment can significantly improve data integrity and significantly reduce data transmission latency. In other words, this disclosed embodiment can meet real-time transmission requirements such as seamless network switching, intelligent terminal recovery, and end-to-end data protection.
[0118] To better illustrate the interaction process between the client and the server, embodiments of this disclosure provide, as follows: Figure 8 The example diagram shown is based on Figure 8 It is understood that when the client 20 starts and the server 10 starts, the present embodiment can perform initialization operations. The client 20 (intelligent acquisition terminal for vital signs data) can collect data and parse and transmit the data. During this process, the client 20 can not only perform adaptive optimization transmission, but also perform data resending and cache clearing operations.
[0119] The embodiments disclosed herein are based on an RPC (Remote Procedure Call) architecture built on a client 20 and a server 10. Through a multi-network dynamic switching transmission mechanism, it can ensure that vital sign data can be collected stably, efficiently, and completely and transmitted to the platform server in real time.
[0120] This embodiment of the disclosure can store the collected vital sign data in a targeted manner according to the data transmission mode. Specifically, the vital sign data is written into RAM and / or Flash based on the data transmission mode, which can optimize storage usage and transmission efficiency to a certain extent. Furthermore, the vital sign data written into the target cache can be flexibly sent to the server based on the data transmission mode. Specifically, when collecting vital sign data and obtaining the client's communication method, the data transmission mode corresponding to the communication method is determined. The data transmission mode includes high-speed mode, low-speed mode, and cache mode. Based on this, the vital sign data is written into the target cache, which includes random access memory (RAM) and / or Flash, according to the data transmission mode. Then, the vital sign data in RAM and / or Flash is sent to the server based on the data transmission mode. Since the vital sign data is stored and transmitted based on the data transmission mode, the stability and real-time performance of data transmission can be significantly improved.
[0121] In another example embodiment, a data transmission system is also provided, which can include a client and a server, wherein the client can involve a plurality of collection terminals, the client can implement intelligent caching and multi-network dynamic switching, and can improve the stability and real-time performance of data transmission to a certain extent. In addition, by using the check feedback mechanism and the private protocol encryption technology, the embodiment of the disclosure can guarantee the integrity and transmission security of medical data.
[0122] Figure 9 is a block diagram of a data transmission device 300 according to an example embodiment. Referring to Figure 9 The data transmission device 300 includes an acquisition module 310, a determination module 320, and a sending module 340.
[0123] The acquisition module 310 is configured to collect vital sign data and acquire a communication mode of the client. The determination module 310 is configured to determine a data transmission mode corresponding to the communication mode, the data transmission mode including a high-speed mode, a low-speed mode, and a caching mode. The storage module 330 is configured to write the vital sign data into the RAM and / or the Flash according to the data transmission mode.
[0124] The sending module 340 is configured to send the vital sign data on the RAM and / or the Flash to the server based on the data transmission mode.
[0125] In some embodiments, the storage module 330 can also be configured to write the vital sign data into the RAM when the data transmission mode is the high-speed mode. The sending module 340 can also be configured to take the vital sign data from the RAM and send the vital sign data to the server according to a first data packet size.
[0126] In some embodiments, the storage module 330 can also be configured to write the vital sign data into the RAM when the data transmission mode is the low-speed mode. When the RAM reaches a maximum capacity, the data in the RAM is transferred to the Flash according to a first-in-first-out rule. The sending module 340 can also be configured to take the vital sign data from the RAM and / or the Flash and send the vital sign data to the server according to a second data packet size, which is smaller than the first data packet size.
[0127] In some embodiments, the storage module 330 can be further configured to write the vital sign data into the RAM when the data transmission mode is the cache mode, and when the RAM reaches the maximum capacity, transfer the data in the RAM to the Flash according to the first-in first-out rule. The sending module 340 can be further configured to stop data transmission, and send the vital sign data in the RAM and / or the Flash to the server after the network of the client is restored.
[0128] In some embodiments, the determining module 310 can be further configured to determine a network parameter corresponding to the communication mode, and determine the data transmission mode based on the network parameter.
[0129] In some embodiments, when the communication mode is a wired communication mode, the determining module 310 can be further configured to determine that the network parameter includes a round-trip time RTT and a packet loss rate; or, when the communication mode is a wireless communication mode, determine that the network parameter includes a round-trip time RTT, a packet loss rate, and a received signal strength indication RSSI; or, when the communication mode is a 5G communication mode, determine that the network parameter includes a round-trip time RTT, a packet loss rate, and a reference signal received power RSRP.
[0130] In some embodiments, the data transmission apparatus 300 can further include: a management module configured to receive the receipt information sent by the server, clear the vital sign data from the target cache area when it is determined that the vital sign data is successfully sent based on the receipt information, or perform a reissue operation when the receipt information includes packet loss information, the packet loss information including an identifier of a missing data packet, and the reissue operation being used to reissue the missing data packet based on the identifier.
[0131] The embodiments of the present disclosure can store the collected vital sign data according to the data transmission mode, that is, write the vital sign data into the RAM and / or the Flash based on the data transmission mode, so as to optimize the storage occupation and transmission efficiency to a certain extent, and the vital sign data written into the target cache area can be sent to the server based on the data transmission mode. Specifically, the vital sign data is collected, and the communication mode of the client is obtained, and then the data transmission mode corresponding to the communication mode is determined, wherein the data transmission mode includes a high-speed mode, a low-speed mode and a cache mode. On this basis, the vital sign data is written into the target cache area according to the data transmission mode, and the target cache area includes the RAM and / or the Flash. Then, the vital sign data on the RAM and / or the Flash is sent to the server based on the data transmission mode. Since the vital sign data is stored and transmitted based on the data transmission mode, the stability and real-time performance of data transmission can be improved.
[0132] As to the apparatus in the above embodiments, the specific manner in which each module performs operations has been described in detail in the embodiments of the method, and will not be described in detail here.
[0133] Figure 10 is a block diagram of an electronic device 700 according to an example embodiment. The electronic device 700 can be the client described above, that is, can be a vital sign data intelligent collection terminal. As shown in Figure 10 the electronic device 700 can include a processor 701 and a memory 702. The electronic device 700 can also include one or more of a multimedia component 703, an input / output (I / O) interface 704, and a communication component 705.
[0134] The processor 701 is configured to control overall operations of the electronic device 700 to complete all or part of the steps of the above-described data transmission method. The memory 702 is configured to store various types of data to support operations of the electronic device 700, which can include, for example, instructions of any application or method operating on the electronic device 700, and application-related data, such as contact data, transmitted and received messages, pictures, audio, video, and the like. The memory 702 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as a static random access memory (SRAM), an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic storage, a flash memory, a magnetic disk, or an optical disk. The multimedia component 703 can include a screen and an audio component. The screen can be, for example, a touch screen, and the audio component is configured to output and / or input audio signals. For example, the audio component can include a microphone configured to receive external audio signals. The received audio signals can be further stored in the memory 702 or transmitted through the communication component 705. The audio component further includes at least one speaker configured to output audio signals. The I / O interface 704 provides an interface between the processor 701 and other interface modules, which can be a keyboard, a mouse, a button, and the like. The buttons can be virtual buttons or physical buttons. The communication component 705 is configured to perform wired or wireless communication between the electronic device 700 and other devices. The wireless communication, such as Wi-Fi, Bluetooth, near field communication (NFC), 2G, 3G, or 4G, or a combination of one or more of them, so the corresponding communication component 705 can include a Wi-Fi module, a Bluetooth module, an NFC module.
[0135] In an exemplary embodiment, the electronic device 700 can be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors, or other electronic elements for performing the above-described data transmission method.
[0136] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided, which, when executed by a processor, implement the steps of the above-described data transmission method. For example, the computer-readable storage medium can be the above-described memory 702 including program instructions, which can be executed by the processor 701 of the electronic device 700 to complete the above-described data transmission method.
[0137] In another exemplary embodiment, a computer program product is also provided, which contains a computer program executable by a processor, which, when executed by the processor, implements the steps of the above-described data transmission method.
[0138] Figure 11 is a block diagram of an electronic device 1900 according to an exemplary embodiment. For example, the electronic device 1900 can be provided as a server, or can be the above-described server. Referring to Figure 11 , the electronic device 1900 includes a processor 1922, the number of which can be one or more, and a memory 1932 for storing a computer program executable by the processor 1922. The computer program stored in the memory 1932 can include one or more modules each corresponding to a set of instructions. In addition, the processor 1922 can be configured to execute the computer program to perform the above-described data transmission method.
[0139] In addition, the electronic device 1900 can further include a power component 1926, which can be configured to perform power management of the electronic device 1900, and a communication component 1950, which can be configured to implement communication of the electronic device 1900, e.g., wired or wireless communication. In addition, the electronic device 1900 can further include an input / output (I / O) interface 1958. The electronic device 1900 can operate based on an operating system stored in the memory 1932, e.g., Windows Server TM , Mac OS X TM , Unix TM , Linux TM , etc.
[0140] In another exemplary embodiment, a computer readable storage medium including program instructions that, when executed by a processor, implement the steps of the data transmission method described above is also provided. For example, the computer readable storage medium can be the memory 1932 described above including program instructions that can be executed by the processor 1922 of the electronic device 1900 to complete the data transmission method described above.
[0141] In another exemplary embodiment, a computer program product containing a computer program executable by a processor is also provided, which, when executed by the processor, implements the steps of the data transmission method described above.
[0142] The preferred embodiments of the present disclosure are described in detail above with reference to the accompanying drawings, but the present disclosure is not limited to the specific details in the above-described embodiments. Within the technical concept scope of the present disclosure, various simple modifications can be made to the technical solutions of the present disclosure, and these simple modifications all belong to the protection scope of the present disclosure.
[0143] In addition, it should be noted that each specific technical feature described in the above specific embodiments can be combined in any appropriate manner without contradiction, and in order to avoid unnecessary repetition, the present disclosure will not further describe various possible combinations.
[0144] In addition, various different embodiments of the present disclosure can also be combined in any appropriate manner, as long as it does not deviate from the idea of the present disclosure, it should also be considered as disclosed by the present disclosure.
Claims
1. A data transmission method, characterized in that, Applied to a client, the method includes: Collect vital sign data and obtain the communication method of the client; Determine the data transmission mode corresponding to the communication method, wherein the data transmission mode includes high-speed mode, low-speed mode and buffer mode; The vital signs data are written into a target cache area according to the data transmission mode, the target cache area including random access memory (RAM) and / or Flash. Based on the data transmission mode, the vital signs data on the RAM and / or Flash are sent to the server.
2. The data transmission method according to claim 1, characterized in that, The step of writing the vital signs data into the RAM and / or Flash according to the data transmission mode includes: When the data transmission mode is the high-speed mode, the vital signs data are written into the RAM; Sending the vital signs data from the RAM and / or Flash to the server based on the data transmission mode includes: The vital signs data are retrieved from the RAM and sent to the server according to the first data packet size.
3. The data transmission method according to claim 1, characterized in that, The step of writing the vital signs data into the RAM and / or Flash according to the data transmission mode includes: When the data transmission mode is the low-speed mode, the vital signs data are written into the RAM; When the RAM reaches its maximum capacity, the data in the RAM is transferred to the Flash according to the first-in, first-out rule; Sending the vital signs data from the RAM and / or Flash to the server based on the data transmission mode includes: The vital signs data are retrieved from the RAM and / or Flash, and sent to the server according to the second data packet size, wherein the second data packet size is smaller than the first data packet size.
4. The data transmission method according to claim 1, characterized in that, The step of writing the vital signs data into the RAM and / or Flash according to the data transmission mode includes: When the data transmission mode is the cache mode, the vital signs data are written into the RAM, and when the RAM reaches its maximum capacity, the data in the RAM is transferred to the Flash according to the first-in-first-out rule; Sending the vital signs data from the RAM and / or Flash to the server based on the data transmission mode includes: Stop data transmission and, after the client's network is restored, send the vital signs data in the RAM and / or Flash to the server.
5. The data transmission method according to claim 1, characterized in that, Determining the data transmission mode corresponding to the communication method includes: Determine the network parameters corresponding to the communication method, and determine the data transmission mode based on the network parameters.
6. The data transmission method according to claim 5, characterized in that, Determining the network parameters corresponding to the communication method includes: When the communication method is wired communication, the network parameters are determined to include round-trip time (RTT) and packet loss rate; or, When the communication method is wireless communication, the network parameters include round-trip time (RTT), packet loss rate, and received signal strength index (RSSI); or, When the communication method is 5G, the network parameters are determined to include round-trip time (RTT), packet loss rate, and reference signal received power (RSRP).
7. The data transmission method according to any one of claims 1 to 6, characterized in that, The method further includes: Receive the receipt information sent by the server; When it is determined based on the receipt information that the vital signs data was successfully sent, the vital signs data is cleared from the target cache. When the receipt information includes packet loss information, a resend operation is performed. The packet loss information includes an identifier of the lost data packet, and the resend operation is used to resend the lost data packet based on the identifier.
8. A data transmission device, characterized in that, The device includes: The acquisition module is configured to collect vital sign data and obtain the client's communication method; The determining module is configured to determine the data transmission mode corresponding to the communication method, wherein the data transmission mode includes a high-speed mode, a low-speed mode, and a buffer mode; A storage module is configured to write the vital signs data into a target cache area according to the data transmission mode, the target cache area including random access memory (RAM) and / or Flash. The sending module is configured to send the vital signs data on the RAM and / or Flash to the server based on the data transmission mode.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the program implements the steps of the method described in any one of claims 1-7.
10. An electronic device, characterized in that, include: A memory on which computer programs are stored; A processor for executing the computer program in the memory to implement the steps of the method according to any one of claims 1-7.
