Data transmission compression method and system for water affair Internet of Things equipment
By using preset rules to determine the amount of packaged data in the data transmission of water IoT devices and using RLE algorithms for compression, the problems of channel congestion, high traffic charges and fast equipment aging caused by uncompressed transmission data are solved, and bandwidth consumption and transmission costs are reduced, as well as the improvement of latency and energy efficiency are achieved.
Patent Information
- Application Number
- CN202411770482.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-04
- Publication Date
- 2025-03-25
AI Technical Summary
Water IoT devices do not compress when transmitting data, resulting in problems such as channel congestion, high traffic charges, and fast equipment aging.
A water IoT device data transmission and compression method is adopted to determine the amount of packaged data through preset rules, receive the device data in real time and perform compression processing when the packaged data is reached. Specific steps include adjusting the key-value pair mode of the data, specifying only the start time and time interval, and compressing using the RLE algorithm during transmission.
Through data compression, bandwidth consumption and transmission costs are reduced, latency is reduced, energy efficiency is improved, and equipment life is extended.
Smart Images

Figure CN119697269A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of smart water technology, and in particular to a method and system for compressing data transmission of water Internet of Things equipment. Background Art
[0002] Data communication and transmission of IoT devices is a very important part of the water IoT system. The network used for IoT data transmission is mainly the 4G network provided by mobile operators. Due to the large amount of data in the wireless remote water meters used in the water field, each remote water meter needs to use the operator's network traffic, and the operator needs to be paid according to the traffic every year. Although the concentrator gateway and other methods are used to aggregate the data of multiple water meters before uploading, the data is not compressed during the transmission process. Direct transmission of uncompressed data is prone to problems such as channel congestion, high traffic fees, and rapid equipment aging.
[0003] At present, most water IoT sensing devices use wireless transmission mode. Data is transmitted to the operator's base station and then transmitted to the corresponding IoT data receiving platform through the Internet. When some devices transmit, edge gateways will collect data before sending it. The transmission mode is as follows: Figure 1 shown.
[0004] In this mode, there are the following main disadvantages: 1. Increased bandwidth consumption: Uncompressed data is large in size, and more network bandwidth resources are required to transmit the same amount of information. In an environment with limited network resources, this may cause network congestion and affect the normal operation of other services.
[0005] 2. Rising transmission costs: For remote monitoring points that use mobile networks (such as 4G / 5G) to transmit data, the increase in data volume is directly related to higher data transmission fees, which will significantly increase operating costs in the long run.
[0006] 3. Increased delay: It takes more time to transmit large amounts of data, especially when the network conditions are poor. This will increase the transmission delay of data from the collection point to the data center, affecting the ability of real-time monitoring and rapid response. It is particularly unfavorable for water events that require immediate processing (such as abnormal water levels and water pollution warnings).
[0007] 4. Reduced energy efficiency: In remote sensors and devices that rely on battery power, data compression can effectively reduce the energy required for data transmission. Uncompressed data transmission will cause the battery to drain faster, increase maintenance workload and environmental footprint.
[0008] How to improve the data transmission efficiency of water Internet of Things equipment is a technical problem that needs to be solved at present. Summary of the invention
[0009] In this regard, the present invention provides a water Internet of Things device data transmission compression method, system, electronic device, computer storage medium and computer program product to solve the above-mentioned technical problems.
[0010] The present invention discloses a water affairs Internet of Things equipment data transmission compression method, the method comprising the following steps: Determine the amount of packaged data based on preset rules, receive water Internet of Things device data in real time, and when the water Internet of Things device data reaches the amount of packaged data, determine the received water Internet of Things device data as data to be transmitted; The data to be transmitted is compressed and transmitted, specifically: The original data key-value pair mode of the data to be transmitted is adjusted, and only the start time and time interval of the data are specified. During the data transmission process, the RLE algorithm is used to compress the data to be transmitted.
[0011] Optionally, determining the amount of packaged data based on a preset rule includes: Evaluate the importance of water IoT devices to obtain importance evaluation values, and determine the amount of preliminary packaged data based on the importance evaluation values; Determine the data transmission method between the water IoT device data and the IoT platform, and determine the data volume coefficient based on the data transmission method; The data volume coefficient is multiplied by the preliminary packaged data volume to obtain the final packaged data volume.
[0012] Optionally, the determining of a data transmission mode between the water Internet of Things device data and the Internet of Things platform, and determining a data volume coefficient according to the data transmission mode, includes: Determine whether the data transmission method between the water IoT device data and the IoT platform is direct transmission or centralized transmission via an edge gateway; If the data transmission mode is a direct transmission mode, the data volume coefficient is set to a first coefficient value; if the data transmission mode is a centralized transmission mode via an edge gateway, the data volume coefficient is set to a second coefficient value; The first coefficient value is greater than the second coefficient value.
[0013] Optionally, the evaluating the importance of the water Internet of Things device to obtain the importance evaluation value includes: Importing the device importance level, emergency information sending rate, and fault information sending rate of each water IoT device in the water system into the device importance evaluation model to obtain the importance evaluation value; Among them, the equipment importance level is set manually, and the equipment importance evaluation model is built based on a large model and trained using small sample level training data.
[0014] Optionally, determining the preliminary packaged data amount according to the importance evaluation value includes: Retrieving a pre-built comparison table, wherein the comparison table contains comparison data of multiple sets of importance assessment values and preliminary packaged data volumes; The initial packaged data volume is obtained by matching and comparing the importance evaluation value with the comparison table.
[0015] Optionally, the small sample level training data used for training the large model includes importance evaluation rule information, which is artificially set and used to constrain and guide the training of the large model.
[0016] The present invention also discloses a water Internet of Things equipment data transmission compression system, the system comprising a processor and a memory, the processor calls and executes a computer code in the memory to implement the following steps: Determine the amount of packaged data based on preset rules, receive water Internet of Things device data in real time, and when the water Internet of Things device data reaches the amount of packaged data, determine the received water Internet of Things device data as data to be transmitted; The data to be transmitted is compressed and transmitted, specifically: The original data key-value pair mode of the data to be transmitted is adjusted, and only the start time and time interval of the data are specified. During the data transmission process, the RLE algorithm is used to compress the data to be transmitted.
[0017] The present invention also discloses an electronic device, comprising: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, wherein the processor executes the computer program to implement any of the methods described above.
[0018] The present invention also discloses a computer storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement any of the above methods.
[0019] The present invention also discloses a computer program product, wherein the computer program product includes a computer program, and the computer program is executed by a processor of an electronic device to implement any of the above methods.
[0020] The beneficial effects of the present invention are at least: 1. Reduced bandwidth consumption: The compressed data volume is small, and less network bandwidth resources are required to transmit the same amount of information. In an environment with limited network resources, more devices can report data.
[0021] 2. Reduced transmission costs: For remote monitoring points that use mobile networks (such as 4G / 5G) to transmit data, the reduction in data volume directly reduces the operator's traffic, which will reduce operating costs in the long run.
[0022] 3. Reduced delay: The compressed data packets are short and reported quickly, are not easily affected by network fluctuations, do not require frequent network retries, and have less data delay.
[0023] 4. Improved energy efficiency: In remote sensors and devices that rely on battery power, data compression can effectively reduce the energy required for data transmission, reduce the time the device is online, and significantly extend the life of the device. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0025] Figure 1 It is a schematic diagram of the wireless transmission mode adopted by the existing water affairs IoT sensing equipment; Figure 2 It is a flow chart of a data transmission compression method for water affairs Internet of Things equipment disclosed in an embodiment of the present invention; Figure 3 It is a schematic diagram of a data compression method for a water affairs Internet of Things device disclosed in an embodiment of the present invention; Figure 4 It is a schematic diagram of the flow of interaction between the water affairs Internet of Things device and the Internet of Things platform disclosed in an embodiment of the present invention; Figure 5 It is a structural schematic diagram of a water Internet of Things equipment data transmission compression system disclosed in an embodiment of the present invention. DETAILED DESCRIPTION
[0026] The following is a description of the implementation of the present application by specific specific embodiments. People familiar with the technology can easily understand other advantages and effects of the present application from the contents disclosed in this specification. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0027] In addition, the technical features involved in the different embodiments of the present application described below can be combined with each other as long as they do not conflict with each other.
[0028] like Figure 2 As shown, an embodiment of the present invention discloses a method for compressing data transmission of water Internet of Things equipment, the method comprising the following steps: Determine the amount of packaged data based on preset rules, receive water Internet of Things device data in real time, and when the water Internet of Things device data reaches the amount of packaged data, determine the received water Internet of Things device data as data to be transmitted; The data to be transmitted is compressed and transmitted, specifically: The original data key-value pair mode of the data to be transmitted is adjusted, and only the start time and time interval of the data are specified. During the data transmission process, the RLE algorithm is used to compress the data to be transmitted.
[0029] Compared with the prior art, the present invention processes the water IoT device data in the following two ways before transmitting it: 1) Since the data transmitted by IoT sensing devices are mostly time series related, and the remote water meter data in the water industry is mostly sent in multiple groups of data. Figure 3 As shown, when sending data, the original data key-value pair mode can be adjusted to only specify the start time and time interval of the data, and then the data can be sent directly.
[0030] 2) During data transmission, binary data can be compressed. Considering that the data of water IoT devices is continuous and has a small change range, it is suitable to use the RLE algorithm for further compression. In order to ensure that the platform can parse the compressed data normally, it is necessary to determine in advance with the device manufacturer whether to enable compression on the device. The overall interaction process is as follows: Figure 4 shown.
[0031] At the same time, the present invention also determines the amount of packaged data based on preset rules. When the real-time received water conservancy Internet of Things device data reaches the packaged data amount, the received water conservancy Internet of Things device data is determined as data to be transmitted, that is, the above-mentioned compression and transmission processing is performed on it.
[0032] Therefore, the solution of the present invention can achieve efficient transmission of water Internet of Things equipment data, reduce bandwidth consumption, reduce transmission costs, reduce delays, and also reduce the energy required for transmission.
[0033] Optionally, determining the amount of packaged data based on a preset rule includes: Evaluate the importance of water IoT devices to obtain importance evaluation values, and determine the amount of preliminary packaged data based on the importance evaluation values; Determine the data transmission method between the water IoT device data and the IoT platform, and determine the data volume coefficient based on the data transmission method; The data volume coefficient is multiplied by the preliminary packaged data volume to obtain the final packaged data volume.
[0034] In this embodiment, after the water Internet of Things device generates the water Internet of Things device data, it is necessary to package the water Internet of Things device data before transmitting it, but the amount of data packaged at a single time should be within a reasonable range. In this regard, the present invention is set to pre-evaluate the importance of the water Internet of Things device, obtain the importance evaluation value, and determine the initial packaged data amount according to the importance evaluation value. Among them, the higher the importance evaluation value, the higher the importance of the water Internet of Things device in the entire water system. At this time, the initial packaged data amount is set to be smaller, that is, the generated water Internet of Things device data is compressed and transmitted as soon as possible at a higher frequency, so as to ensure that the Internet of Things platform obtains important water information in a timely manner; the lower the importance evaluation value, the lower the importance of the water Internet of Things device in the entire water system. At this time, the initial packaged data amount is set to be larger, that is, the generated water Internet of Things device data is compressed and transmitted at a lower frequency, so that the transmission bandwidth can be appropriately given to other more important water Internet of Things devices.
[0035] At the same time, the present invention also determines the data transmission method between the water Internet of Things equipment data and the Internet of Things platform, and determines the data volume coefficient based on the data transmission method, and uses the determined data volume coefficient to appropriately adjust the preliminary packaged data volume obtained above, so as to obtain the final packaged data volume.
[0036] Therefore, the present invention can realize the reasonable optimization of the transmission timing and strategy of the water Internet of Things equipment data through the above-mentioned dynamic determination method of the packaged data volume, thereby improving the data transmission efficiency of the entire water system.
[0037] Optionally, the determining of a data transmission mode between the water Internet of Things device data and the Internet of Things platform, and determining a data volume coefficient according to the data transmission mode, includes: Determine whether the data transmission method between the water IoT device data and the IoT platform is direct transmission or centralized transmission via an edge gateway; If the data transmission mode is a direct transmission mode, the data volume coefficient is set to a first coefficient value; if the data transmission mode is a centralized transmission mode via an edge gateway, the data volume coefficient is set to a second coefficient value; The first coefficient value is greater than the second coefficient value.
[0038] In this embodiment, the data transmission mode between the water Internet of Things device data and the Internet of Things platform includes a direct transmission mode or a centralized transmission mode through an edge gateway, wherein the direct transmission mode refers to the water Internet of Things device transmitting the water Internet of Things device data generated by itself directly to the Internet of Things platform through a wireless base station; the centralized transmission mode through an edge gateway refers to the water Internet of Things device transmitting the water Internet of Things device data generated by itself to the edge gateway first, and the edge gateway aggregates the data transmitted by multiple water Internet of Things devices, and then compresses and transmits it to the Internet of Things platform through a wireless base station. Compared with the latter, in the former mode, the water Internet of Things device can transmit the water Internet of Things device data to the Internet of Things platform more timely. Correspondingly, when the data transmission mode of the present invention is set to the direct transmission mode, the corresponding data volume coefficient is a larger first coefficient value (for example, 1.3, 1.5), that is, the packaged data volume is larger; and when the data transmission mode is a centralized transmission mode through an edge gateway, the data volume coefficient is set to a smaller second coefficient value (for example, 0.9, 1.1), that is, the packaged data volume is smaller.
[0039] An improved solution is also proposed: If the data transmission mode is a centralized transmission mode through an edge gateway, setting the data volume coefficient to a second coefficient value includes: If the data transmission mode is a centralized transmission mode via an edge gateway, the data volume coefficient is set to a third coefficient value; Determine the number of water Internet of Things devices connected to the edge gateway, calculate a fourth coefficient value based on the number, and use the fourth coefficient value to multiply the third coefficient value to obtain the second coefficient value.
[0040] When the data transmission method is a centralized transmission method through an edge gateway, the number of water IoT devices connected to the edge gateway is further analyzed. When the number of connected water IoT devices is greater, the transmission bandwidth at the edge gateway is relatively tighter. Correspondingly, the second coefficient value is obtained based on a smaller fourth coefficient value (for example, 0.9); conversely, when the number of connected water IoT devices is smaller, the transmission bandwidth at the edge gateway is relatively looser. Correspondingly, the second coefficient value is obtained based on a larger fourth coefficient value (for example, 1.1). Of course, in order to avoid the packaged data volume of a water IoT device being too small, that is, the upload frequency is too high, it is necessary to limit the second coefficient value within a reasonable range.
[0041] Optionally, the evaluating the importance of the water Internet of Things device to obtain the importance evaluation value includes: Importing the device importance level, emergency information sending rate, and fault information sending rate of each water IoT device in the water system into the device importance evaluation model to obtain the importance evaluation value; Among them, the equipment importance level is set manually, and the equipment importance evaluation model is built based on a large model and trained using small sample level training data.
[0042] In this embodiment, in order to evaluate the importance of each water Internet of Things device in the water system, the present invention constructs an equipment importance evaluation model based on the big model. The equipment importance evaluation model comprehensively processes the equipment importance level, emergency information sending rate, and fault information sending rate of each water Internet of Things device in the entire water system that needs to upload data to the Internet of Things platform, thereby deriving the above-mentioned importance evaluation value.
[0043] Among them, the importance level of equipment can be divided into 1-10 levels from low to high, and level 10 represents the highest importance level of the equipment recognized by the staff. The emergency information transmission rate refers to the proportion of emergency type information transmitted to the IoT platform by the corresponding water IoT device within the statistical period (for example, half a year) to all types of information. Emergency type information can be identified based on emergency tags; the fault information transmission rate refers to the proportion of fault type information transmitted to the IoT platform by the corresponding water IoT device within the statistical period (for example, half a year) to all types of information. Fault type information can be identified based on fault tags.
[0044] In addition, priority weights can also be set for the equipment importance level, emergency information sending rate, and fault information sending rate. For example, the priority weight of the equipment importance level is set to the highest (for example, 0.6), and the priority weights of the emergency information sending rate and the fault information sending rate are the same (for example, both are 0.2). The priority weights are used to guide the evaluation of the equipment importance assessment model.
[0045] Optionally, determining the preliminary packaged data amount according to the importance evaluation value includes: Retrieving a pre-built comparison table, wherein the comparison table contains comparison data of multiple sets of importance assessment values and preliminary packaged data volumes; The initial packaged data volume is obtained by matching and comparing the importance evaluation value with the comparison table.
[0046] In this embodiment, multiple sets of comparison data of importance evaluation values and preliminary packaged data volumes can be determined in advance by artificial setting, and a comparison table can be constructed accordingly. The importance evaluation values and preliminary packaged data volumes conform to the aforementioned corresponding relationship, which will not be repeated here. By matching and comparing the importance evaluation values obtained by actual evaluation with the comparison table, the preliminary packaged data volume can be quickly obtained.
[0047] Optionally, the small sample level training data used for training the large model includes importance evaluation rule information, which is artificially set and used to constrain and guide the training of the large model.
[0048] In this embodiment, in addition to using conventional small sample level training data (including label data) to train the large model, the present invention also artificially sets importance assessment rule information, which can be unstructured text information. The large model can understand the importance assessment rule information based on its own semantic analysis capabilities, and then constrain and guide its own fine-tuning training, and finally obtain the ability to evaluate the importance of the device in the present invention.
[0049] like Figure 5 As shown, an embodiment of the present invention further discloses a water Internet of Things device data transmission compression system, the system comprising a processor and a memory, the processor calls and executes a computer code in the memory to implement the following steps: Determine the amount of packaged data based on preset rules, receive water Internet of Things device data in real time, and when the water Internet of Things device data reaches the amount of packaged data, determine the received water Internet of Things device data as data to be transmitted; The data to be transmitted is compressed and transmitted, specifically: The original data key-value pair mode of the data to be transmitted is adjusted, and only the start time and time interval of the data are specified. During the data transmission process, the RLE algorithm is used to compress the data to be transmitted.
[0050] An embodiment of the present invention further discloses an electronic device, comprising: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, wherein the processor executes the computer program to implement the method described in the above embodiment.
[0051] An embodiment of the present invention further discloses a computer storage medium, wherein the computer storage medium stores a computer program, and the computer program is executed by a processor to implement the method described in the above embodiment.
[0052] An embodiment of the present invention further discloses a computer program product, wherein the computer program product includes a computer program, and the computer program is executed by a processor of an electronic device to implement any of the above methods.
[0053] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0054] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0055] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, or can be electrical, mechanical or other forms of connection.
[0056] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of the present invention.
[0057] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0058] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0059] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A method for compressing data transmission of water Internet of Things equipment, characterized by: The method comprises the following steps: Determine the amount of packaged data based on preset rules, receive water Internet of Things device data in real time, and when the water Internet of Things device data reaches the amount of packaged data, determine the received water Internet of Things device data as data to be transmitted; The data to be transmitted is compressed and transmitted, specifically: The original data key-value pair mode of the data to be transmitted is adjusted, and only the start time and time interval of the data are specified. During the data transmission process, the RLE algorithm is used to compress the data to be transmitted.
2. A water affairs Internet of Things device data transmission compression method according to claim 1, characterized in that: Determine the amount of data to be packaged based on preset rules, including: Evaluate the importance of water IoT devices to obtain importance evaluation values, and determine the amount of preliminary packaged data based on the importance evaluation values; Determine the data transmission method between the water IoT device data and the IoT platform, and determine the data volume coefficient based on the data transmission method; The data volume coefficient is multiplied by the preliminary packaged data volume to obtain the final packaged data volume.
3. A water affairs Internet of Things device data transmission compression method according to claim 2, characterized in that: Determine the data transmission method between the water IoT device data and the IoT platform, and determine the data volume coefficient based on the data transmission method, including: Determine whether the data transmission method between the water IoT device data and the IoT platform is direct transmission or centralized transmission via an edge gateway; If the data transmission mode is a direct transmission mode, the data volume coefficient is set to a first coefficient value; if the data transmission mode is a centralized transmission mode via an edge gateway, the data volume coefficient is set to a second coefficient value; The first coefficient value is greater than the second coefficient value.
4. A water affairs Internet of Things device data transmission compression method according to claim 3, characterized in that: Assess the importance of water IoT devices and obtain importance assessment values, including: Importing the device importance level, emergency information sending rate, and fault information sending rate of each water IoT device in the water system into the device importance evaluation model to obtain the importance evaluation value; Among them, the equipment importance level is set manually, and the equipment importance evaluation model is built based on a large model and trained using small sample level training data.
5. A water affairs Internet of Things device data transmission compression method according to claim 4, characterized in that: The amount of preliminary packaged data is determined based on the importance evaluation value, including: Retrieving a pre-built comparison table, wherein the comparison table contains comparison data of multiple sets of importance assessment values and preliminary packaged data volumes; The initial packaged data volume is obtained by matching and comparing the importance evaluation value with the comparison table.
6. A water affairs Internet of Things device data transmission compression method according to claim 5, characterized in that: The small sample-level training data used to train the large model includes importance evaluation rule information, which is artificially set and used to constrain and guide the training of the large model.
7. A water Internet of Things equipment data transmission compression system, the system comprising a processor and a memory, characterized in that: The processor calls and executes the computer code in the memory to implement the following steps: Determine the amount of packaged data based on preset rules, receive water Internet of Things device data in real time, and when the water Internet of Things device data reaches the amount of packaged data, determine the received water Internet of Things device data as data to be transmitted; The data to be transmitted is compressed and transmitted, specifically: The original data key-value pair mode of the data to be transmitted is adjusted, and only the start time and time interval of the data are specified. During the data transmission process, the RLE algorithm is used to compress the data to be transmitted.
8. An electronic device comprising: At least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, wherein the processor executes the computer program to implement the method according to any one of claims 1 to 6.
9. A computer storage medium storing a computer program, characterized in that: The computer program is executed by a processor to implement the method according to any one of claims 1 to 6.
10. A computer program product, comprising a computer program, characterized in that: The computer program is executed by a processor of an electronic device to implement the method according to any one of claims 1 to 6.