Water control data transmission method and device, equipment and storage medium
By streamlining the water control data and selecting the appropriate transmission method according to the data characteristics, the problem of low efficiency of water control data transmission is solved and more efficient data transmission is achieved.
Patent Information
- Application Number
- CN202411552509.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-01
- Publication Date
- 2025-02-28
AI Technical Summary
The current water control data transmission is inefficient due to the complex data and large amount of data. How to improve the transmission efficiency of water control data is a problem that needs to be solved.
By obtaining original water control data related to water quality, water quantity and pollution sources, streamlining the processing to obtain target water control data, and determining the data transmission method based on the data content and transmission distance, and transmitting through serial port or network transmission.
Through streamlined processing and appropriate transmission method selection, the transmission efficiency of water control data is significantly improved and the problem of inefficient transmission efficiency is solved.
Smart Images

Figure CN119537355A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of water conservancy technology, and in particular to a method, device, equipment and storage medium for transmitting water conservancy data. Background Art
[0002] In the process of water management, real-time data transmission and efficient processing are crucial to improving water management efficiency, optimizing resource allocation and ensuring water quality safety. However, the current water management data transmission is inefficient due to the complexity and large amount of data.
[0003] Therefore, how to improve the transmission efficiency of water management data is a problem that still needs to be solved.
[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0005] The main purpose of this application is to provide a method, device, equipment and storage medium for transmitting water management data, aiming to solve the technical problem of how to improve the transmission efficiency of water management data.
[0006] To achieve the above purpose, the present application proposes a method for transmitting water management data, the method comprising: Obtaining original water management data related to water quality, water quantity and pollution sources; Simplifying the original water control data to obtain target water control data; Determine the data transmission mode according to the data content and data transmission distance of the target water management data; The target water management data is transmitted according to the data transmission method.
[0007] In one embodiment, the step of simplifying the original water control data to obtain target water control data includes: Detecting and deleting duplicate data in the original water management data; Acquire historical water control data, compare the original water control data with the historical water control data, delete the data in the original water control data that are the same as the historical water control data, and obtain initial water control data; The missing values of the initial water control data are filled according to the statistical characteristics of the historical water control data, and the initial water control data are standardized to obtain target water control data.
[0008] In one embodiment, the step of determining the data transmission mode according to the data content and data transmission distance of the target water management data includes: Classifying the target water control data according to data content of the target water control data to determine whether the target water control data is first-category water control data or second-category water control data; According to the classification result of the target water management data, determining the judgment index of the data transmission method is data content or transmission distance; The data transmission mode is determined according to the judgment indicator.
[0009] In one embodiment, the step of classifying the target water control data according to the data content of the target water control data and determining whether the target water control data is the first type of water control data or the second type of water control data includes: According to the data content of the target water control data, the requirements of the target water control data on data transmission speed and confidentiality are obtained according to preset standards; Determine the target water control data with the highest requirement for data transmission speed as the first type of water control data; The target water control data having the highest requirement for data confidentiality is determined as the second category of water control data.
[0010] In one embodiment, the step of determining, based on the classification result of the target water management data, whether the judgment index of the data transmission mode is data content or transmission distance comprises: When the target water control data is the first type of water control data, the transmission distance is used as a judgment indicator of the data transmission mode; When the target water management data is the second type of water management data, the data content is used as a judgment indicator for the data transmission method.
[0011] In one embodiment, the step of determining the data transmission mode according to the judgment indicator includes: When the determination index of the data transmission mode is the transmission distance, if the transmission distance is less than the preset distance, the data transmission mode is determined as the serial port transparent transmission mode, otherwise the data transmission mode is determined as the network transparent transmission mode; When the judgment indicator of the data transmission mode is the data content, if the data transmission mode is directly determined as the network transparent transmission mode.
[0012] In one embodiment, before the step of transmitting the target water management data in the data transmission mode, the step further includes: Encrypting the target water management data by using a preset encryption method; Use a hash function to process the encrypted target water management data and generate a hash value; The encrypted target water management data and the hash value are stored in the blockchain.
[0013] In addition, to achieve the above purpose, the present application also proposes a water management data transmission device, the water management data transmission device comprising: The acquisition module is used to obtain the original water management data related to water quality, water quantity and pollution sources; A processing module, used for simplifying the original water control data to obtain target water control data; A determination module, used to determine a data transmission mode according to the data content and data transmission distance of the target water management data; A transmission module is used to transmit the target water management data according to the data transmission method.
[0014] In addition, to achieve the above-mentioned purpose, the present application also proposes a water control data transmission device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program is configured to implement the steps of the water control data transmission method as described above.
[0015] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the water management data transmission method as described above are implemented.
[0016] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the steps of the water management data transmission method as described above.
[0017] The present application provides a method for transmitting water control data. The present application obtains original water control data related to water quality, water quantity and pollution sources; simplifies the original water control data to obtain target water control data; determines a data transmission method based on the data content and data transmission distance of the target water control data; and transmits the target water control data according to the data transmission method.
[0018] In summary, the present application solves the technical problem of how to improve the transmission efficiency of water management data by selecting a transmission method according to the type of water management data. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0020] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0021] Figure 1 A flow chart of the first embodiment of the method for transmitting water management data of the present application; Figure 2 A flow chart of the second embodiment of the water management data transmission method provided in this application; Figure 3 This is a schematic diagram of the module structure of a device for transmitting water management data according to an embodiment of the present application; Figure 4 This is a schematic diagram of the device structure of the hardware operating environment involved in the water management data transmission method in the embodiment of the present application.
[0022] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0023] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0024] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0025] The main solution of the present application is to obtain original water control data related to water quality, water quantity and pollution sources; to streamline the original water control data to obtain target water control data; to determine the data transmission method according to the data content and data transmission distance of the target water control data; and to transmit the target water control data according to the data transmission method.
[0026] At present, in the process of water management, real-time data transmission and efficient processing are crucial to improving water management efficiency, optimizing resource allocation and ensuring water quality safety. However, the current water management data transmission is inefficient due to the complexity and large amount of data. Therefore, how to improve the transmission efficiency of water management data is a problem that still needs to be solved.
[0027] The present application improves the transmission efficiency of water management data by selecting a transmission method according to the type of water management data.
[0028] Based on this, the present application embodiment provides a method for transmitting water management data. Figure 1 , Figure 1 This is a flow chart of the first embodiment of the water management data transmission method of the present application.
[0029] In this embodiment, the water management data transmission method includes steps S10 to S40: Step S10: Acquire original water management data related to water quality, water quantity and pollution sources; It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, the transmission of water control data, etc. The following takes the transmission of water control data as an example to illustrate this embodiment and the following embodiments.
[0030] It should be noted that the original water management data related to water quality, water quantity and pollution sources include water temperature, pH, hardness, types and categories of water pollution sources, water consumption, total water resources and other data.
[0031] Step S20: simplifying the original water control data to obtain target water control data; It should be noted that the original water management data may contain redundant data and need to be streamlined to remove unnecessary data.
[0032] In a feasible manner, the step of simplifying the original water control data to obtain target water control data includes: Detecting and deleting duplicate data in the original water management data; Acquire historical water control data, compare the original water control data with the historical water control data, delete the data in the original water control data that are the same as the historical water control data, and obtain initial water control data; The missing values of the initial water control data are filled according to the statistical characteristics of the historical water control data, and the initial water control data are standardized to obtain target water control data.
[0033] It is understandable that only one copy of the duplicate data in the original water control data needs to be retained; at the same time, the parts of the original water control data that are the same as the historical water control data are also invalid data and do not need to be transmitted. The missing values of the original water control data can be filled by the statistical characteristics of the historical water control data, such as the mean and median. In order to convert the features of different dimensions or orders of magnitude in the original water control data to the same scale, the original water control data needs to be standardized so that the original water control data is converted into the target water control data with a mean of 0 and a standard deviation of 1.
[0034] Step S30: determining a data transmission mode according to the data content and data transmission distance of the target water management data; It is understandable that different transmission methods need to be selected for different water management data. The specific transmission methods include serial port transparent transmission method and network transparent transmission method.
[0035] Step S40: Transmitting the target water management data according to the data transmission method.
[0036] It is understandable that after determining the data transmission method, the target water control data can be transmitted according to the data transmission method, and before transmission, the water control data needs to be encrypted to ensure the integrity of the data.
[0037] In a feasible manner, before the step of transmitting the target water management data in the data transmission manner, the step further includes: Encrypting the target water management data by using a preset encryption method; Use a hash function to process the encrypted target water management data and generate a hash value; The encrypted target water management data and the hash value are stored in the blockchain.
[0038] It should be noted that the preset encryption methods include Advanced Encryption Standard (AES) and RSA (Rivest–Shamir–Adleman), where AES is a symmetric encryption algorithm that uses the same key for encryption and decryption, and RSA is an asymmetric encryption algorithm based on number theory that uses a pair of keys for encryption and decryption. In order to ensure the integrity of water management data, a hash function (such as SHA-256) can be used to create a unique hash value for the encrypted water management data. This hash value will be recorded in the blockchain and used as a basis for verifying whether the data has been tampered with. Blockchain is a decentralized database that organizes data into blocks and links them to form a chain. Each new block contains the hash value of the previous block, which makes it easy to detect tampering by modifying the data in any block. When it is necessary to access the water management data, the corresponding key can be used to decrypt the data, and the integrity of the water management data can be verified by comparing the hash value stored on the blockchain with the hash value recalculated from the decrypted data.
[0039] This embodiment obtains original water control data related to water quality, water quantity and pollution sources; simplifies the original water control data to obtain target water control data; determines the data transmission method according to the data content and data transmission distance of the target water control data; and transmits the target water control data according to the data transmission method.
[0040] In summary, this embodiment solves the technical problem of how to improve the transmission efficiency of water management data by selecting a transmission method according to the type of water management data.
[0041] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 2 , step S30 also includes steps S301 to S303: Step S301: classifying the target water control data according to the data content of the target water control data, and determining whether the target water control data is the first type of water control data or the second type of water control data; It is understandable that the target water control data can be classified according to different target water control data.
[0042] In a feasible manner, the step of classifying the target water control data according to the data content of the target water control data and determining whether the target water control data is the first type of water control data or the second type of water control data includes: According to the data content of the target water control data, the requirements of the target water control data on data transmission speed and confidentiality are obtained according to preset standards; Determine the target water control data with the highest requirement for data transmission speed as the first type of water control data; The target water control data having the highest requirement for data confidentiality is determined as the second category of water control data.
[0043] It is understandable that some target water control data have the highest requirements for data transmission speed, for example, water control data acquired in real time needs to be transmitted as quickly as possible; while some target water control data have the highest requirements for confidentiality.
[0044] Step S302: according to the classification result of the target water management data, determining whether the judgment index of the data transmission mode is data content or transmission distance; Based on the classification results, it can be determined whether the judgment indicator for the target water management data transmission method is the data content or the transmission distance.
[0045] In a feasible manner, the step of determining, based on the classification result of the target water management data, whether the judgment index of the data transmission method is data content or transmission distance comprises: When the target water control data is the first type of water control data, the transmission distance is used as a judgment indicator of the data transmission mode; When the target water management data is the second type of water management data, the data content is used as a judgment indicator for the data transmission method.
[0046] Step S303: Determine the data transmission mode according to the judgment indicator.
[0047] According to the determined judgment index, it can be a data transmission method.
[0048] In a feasible manner, the step of determining the data transmission mode according to the judgment indicator includes: When the determination index of the data transmission mode is the transmission distance, if the transmission distance is less than the preset distance, the data transmission mode is determined as the serial port transparent transmission mode, otherwise the data transmission mode is determined as the network transparent transmission mode; When the judgment indicator of the data transmission mode is the data content, if the data transmission mode is directly determined as the network transparent transmission mode.
[0049] It should be noted that the transmission speed of the serial port transparent transmission mode is relatively low and the transmission distance is short, while the network transparent transmission mode supports a longer transmission distance and a faster transmission speed. Therefore, if the transmission distance is less than the preset distance, the data transmission mode is determined as the serial port transparent transmission mode, otherwise the data transmission mode is determined as the network transparent transmission mode. In addition, the network transparent transmission mode has a higher confidentiality and is suitable for target water management data that is sensitive to confidentiality.
[0050] This embodiment classifies the target water control data according to the data content of the target water control data to determine whether the target water control data is the first category water control data or the second category water control data; according to the classification result of the target water control data, determines that the judgment index of the data transmission method is the data content or the transmission distance; and determines the data transmission method according to the judgment index.
[0051] In summary, this embodiment determines a suitable transmission method for water management data according to the type of water management data, and solves the technical problem of how to improve the transmission efficiency of water management data.
[0052] This application also provides a water management data transmission device, please refer to Figure 3 , the water management data transmission device comprises: An acquisition module 10 is used to acquire original water management data related to water quality, water quantity and pollution sources; A processing module 20 is used to simplify the original water control data to obtain target water control data; A determination module 30, for determining a data transmission mode according to the data content and data transmission distance of the target water management data; The transmission module 40 is used to transmit the target water management data according to the data transmission method.
[0053] This embodiment obtains original water control data related to water quality, water quantity and pollution sources; simplifies the original water control data to obtain target water control data; determines the data transmission method according to the data content and data transmission distance of the target water control data; and transmits the target water control data according to the data transmission method.
[0054] In summary, this embodiment solves the technical problem of how to improve the transmission efficiency of water management data by selecting a transmission method according to the type of water management data.
[0055] In one embodiment, the processing module 20 is also used to detect and delete duplicate data in the original water control data; obtain historical water control data, and compare the original water control data with the historical water control data, delete the data in the original water control data that is identical to the historical water control data, and obtain initial water control data; fill in the missing values of the initial water control data according to the statistical characteristics of the historical water control data, and standardize the initial water control data to obtain target water control data.
[0056] In one embodiment, the determination module 30 is also used to classify the target water control data according to the data content of the target water control data, and determine whether the target water control data is the first category of water control data or the second category of water control data; based on the classification result of the target water control data, determine whether the judgment indicator of the data transmission method is the data content or the transmission distance; and determine the data transmission method based on the judgment indicator.
[0057] In one embodiment, the determination module 30 is also used to obtain the requirements of the target water control data for data transmission speed and confidentiality according to preset standards based on the data content of the target water control data; determine the target water control data with the highest requirement for data transmission speed as the first category of water control data; and determine the target water control data with the highest requirement for data confidentiality as the second category of water control data.
[0058] In one embodiment, the determination module 30 is also used to use the transmission distance as a judgment indicator for the data transmission method when the target water control data is the first type of water control data; when the target water control data is the second type of water control data, use the data content as a judgment indicator for the data transmission method.
[0059] In one embodiment, the determination module 30 is also used for, when the judgment indicator of the data transmission mode is the transmission distance, if the transmission distance is less than the preset distance, the data transmission mode is determined as the serial port transparent transmission mode, otherwise the data transmission mode is determined as the network transparent transmission mode; when the judgment indicator of the data transmission mode is the data content, if the data transmission mode is directly determined as the network transparent transmission mode.
[0060] In one embodiment, the transmission module 40 is also used to encrypt the target water control data using a preset encryption method; use a hash function to process the encrypted target water control data and generate a hash value; and store the encrypted target water control data and the hash value in a blockchain.
[0061] The water control data transmission device provided by the present application adopts the water control data transmission method in the above embodiment, which can solve the technical problem of how to improve the transmission efficiency of water control data. Compared with the prior art, the beneficial effects of the water control data transmission device provided by the present application are the same as the beneficial effects of the water control data transmission method provided by the above embodiment, and the other technical features of the water control data transmission device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0062] The present application provides a water control data transmission device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the water control data transmission method in the above-mentioned embodiment one.
[0063] Reference below Figure 4 , which shows a schematic diagram of the structure of a water management data transmission device suitable for implementing the embodiment of the present application. The water management data transmission device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 4 The water management data transmission device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0064] like Figure 4As shown, the water control data transmission device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM) 1004. In RAM 1004, various programs and data required for the operation of the water control data transmission device are also stored. The processing device 1001, ROM 1002, and RAM 1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the water control data transmission device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a water control data transmission device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0065] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0066] The water control data transmission device provided by the present application adopts the water control data transmission method in the above embodiment, which can solve the technical problem of how to improve the transmission efficiency of water control data. Compared with the prior art, the beneficial effects of the water control data transmission device provided by the present application are the same as the beneficial effects of the water control data transmission method provided by the above embodiment, and the other technical features of the water control data transmission device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0067] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0068] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0069] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the water management data transmission method in the above-mentioned embodiment.
[0070] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.
[0071] The above-mentioned computer-readable storage medium may be included in the water control data transmission device; or it may exist independently without being assembled into the water control data transmission device.
[0072] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the water control data transmission device, the water control data transmission device enables the water control data transmission device to: obtain original water control data related to water quality, water quantity and pollution sources; streamline the original water control data to obtain target water control data; determine the data transmission method according to the data content and data transmission distance of the target water control data; and transmit the target water control data according to the data transmission method.
[0073] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0074] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0075] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0076] The readable storage medium provided in this application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned water management data transmission method, and can solve the technical problem of how to improve the transmission efficiency of water management data. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as the beneficial effects of the water management data transmission method provided in the above-mentioned embodiment, and will not be repeated here.
[0077] The present application also provides a computer program product, including a computer program, which implements the steps of the water management data transmission method as described above when executed by a processor.
[0078] The computer program product provided by this application can solve the technical problem of how to improve the transmission efficiency of water management data. Compared with the prior art, the beneficial effects of the computer program product provided by this application are the same as the beneficial effects of the water management data transmission method provided by the above embodiment, which will not be repeated here.
[0079] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A method for transmitting water management data, characterized in that: The method includes: Obtaining original water management data related to water quality, water quantity and pollution sources; Simplifying the original water control data to obtain target water control data; Determine the data transmission mode according to the data content and data transmission distance of the target water management data; The target water management data is transmitted according to the data transmission method.
2. The method according to claim 1, characterized in that The step of streamlining the original water control data to obtain target water control data comprises: Detecting and deleting duplicate data in the original water management data; Acquire historical water control data, compare the original water control data with the historical water control data, delete the data in the original water control data that are the same as the historical water control data, and obtain initial water control data; The missing values of the initial water control data are filled according to the statistical characteristics of the historical water control data, and the initial water control data are standardized to obtain target water control data.
3. The method according to claim 1, characterized in that The step of determining the data transmission mode according to the data content and data transmission distance of the target water control data comprises: Classifying the target water control data according to data content of the target water control data to determine whether the target water control data is first-category water control data or second-category water control data; According to the classification result of the target water management data, determining the judgment index of the data transmission method is data content or transmission distance; The data transmission mode is determined according to the judgment indicator.
4. The method according to claim 3, characterized in that The step of classifying the target water control data according to the data content of the target water control data and determining whether the target water control data is the first type of water control data or the second type of water control data comprises: According to the data content of the target water control data, the requirements of the target water control data on data transmission speed and confidentiality are obtained according to preset standards; Determine the target water control data with the highest requirement for data transmission speed as the first type of water control data; The target water control data having the highest requirement for data confidentiality is determined as the second category of water control data.
5. The method according to claim 3, characterized in that The step of determining, based on the classification result of the target water management data, that the judgment index of the data transmission mode is data content or transmission distance comprises: When the target water control data is the first type of water control data, the transmission distance is used as a judgment indicator of the data transmission mode; When the target water management data is the second type of water management data, the data content is used as a judgment indicator for the data transmission method.
6. The method according to claim 3, characterized in that The step of determining the data transmission mode according to the judgment indicator comprises: When the determination index of the data transmission mode is the transmission distance, if the transmission distance is less than the preset distance, the data transmission mode is determined as the serial port transparent transmission mode, otherwise the data transmission mode is determined as the network transparent transmission mode; When the judgment indicator of the data transmission mode is the data content, if the data transmission mode is directly determined as the network transparent transmission mode.
7. The method according to claim 1, characterized in that Before the step of transmitting the target water management data in the data transmission mode, the method further includes: Encrypting the target water management data by using a preset encryption method; Use a hash function to process the encrypted target water management data and generate a hash value; The encrypted target water management data and the hash value are stored in the blockchain.
8. A water management data transmission device, characterized in that: The device comprises: The acquisition module is used to obtain the original water management data related to water quality, water quantity and pollution sources; A processing module, used for simplifying the original water control data to obtain target water control data; A determination module, used to determine a data transmission mode according to the data content and data transmission distance of the target water management data; A transmission module is used to transmit the target water management data according to the data transmission method.
9. A water management data transmission device, characterized in that: The device comprises: a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the method for transmitting water management data as described in any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the water management data transmission method according to any one of claims 1 to 7 are implemented.