Data storage and monitoring method and system for hydropower fusion terminal
By detecting data storage instructions on the water-to-power fusion terminal, determining storage priorities, conducting security and integrity detection, and splitting, compressing and encrypting the data, the problem of low storage efficiency of agricultural irrigation data is solved, and the data storage and processing capabilities of the hydropower system platform are improved.
Patent Information
- Application Number
- CN202411571061.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-06
- Publication Date
- 2025-03-14
- Estimated Expiration
- 2044-11-06
AI Technical Summary
The storage efficiency of agricultural irrigation data on the hydropower system platform is low, resulting in high memory pressure and slow processing speed, which is prone to data corruption or loss.
By detecting data storage instructions on the water-to-energy fusion terminal, the storage priority of data is determined, and the transmission time and transmission mode are determined based on the priority. The stored data is subject to security and integrity detection. If normal, the data is split into multiple copies, compress and encrypt, generate multiple data packets, and finally transmit them to the hydropower system platform.
It improves the storage efficiency of agricultural irrigation data by the hydropower system platform, reduces memory pressure, avoids data corruption or loss, and improves the overall data processing capacity.
Smart Images

Figure CN119109931B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of agricultural irrigation equipment, and in particular to a data storage monitoring method and system for a hydropower fusion terminal. Background Art
[0002] In modern agricultural irrigation systems, with the rapid development of the Internet of Things, big data and cloud computing technologies, intelligent irrigation systems have become an important means to improve agricultural production efficiency and save water resources. These systems integrate sensors, controllers and communication modules to achieve real-time monitoring of farmland environmental parameters and precise irrigation control. However, in the operation of intelligent irrigation systems, the collection, transmission and storage of large amounts of real-time data has become a key technical challenge.
[0003] Agricultural irrigation data is diverse, including soil moisture, rainfall, crop growth status, water consumption, electricity consumption, pump status, etc. in various regions. These data are crucial for irrigation decisions. The amount of agricultural irrigation data is huge. When multiple hydropower fusion terminals send data to the hydropower system platform for storage, the hydropower system platform faces greater memory pressure, slow processing speed, and reduced data storage efficiency, which affects the overall data processing capability of the hydropower system platform and is prone to data corruption and loss. Summary of the invention
[0004] The present invention provides a data storage and monitoring method and system for a hydropower fusion terminal, which can solve the problem of low efficiency in storing agricultural irrigation data on a hydropower system platform and improve the data storage efficiency of agricultural irrigation data.
[0005] In a first aspect, the present invention provides a data storage monitoring method for a hydropower fusion terminal, the method comprising: detecting a data storage instruction; the data storage instruction comprising an identification and a data type of the data to be stored; determining the storage priority of the data to be stored based on the identification and the data type of the data to be stored; determining the transmission time and the transmission method of the data to be stored based on the storage priority; performing security and integrity detection on the data content of the data to be stored, and determining the detection status of the data to be stored, the detection status comprising a normal status and an abnormal status; if the data to be stored is in a normal status, splitting the data to be stored into multiple copies of data; and compressing and encrypting the multiple copies of data to obtain multiple data packets; based on the transmission time and the transmission method, transmitting multiple data packets to a hydropower system platform to realize storage monitoring of the data to be stored.
[0006] In one possible implementation, the storage priority of the data to be stored is determined based on the identification and data type of the data to be stored, including: determining a priority mapping relationship table based on the communication status between the hydropower fusion terminal and the hydropower system platform; determining the storage priority based on the identification and data type of the data to be stored, and the priority mapping relationship table.
[0007] In one possible implementation, security and integrity checks are performed on the data content of the data to be stored to determine the detection status of the data to be stored, including: performing a security check on the data to be stored to determine the security status of the data to be stored, the security status including data security and data insecurity; if the security status of the data to be stored is data insecurity, determining the detection status of the data to be stored is an abnormal status; if the security status of the data to be stored is data security, performing an integrity check on the data to be stored to determine the detection status of the data to be stored.
[0008] In a possible implementation, a security check is performed on the data to be stored to determine the security status of the data to be stored, including: extracting the data source and data type of the data to be stored; the data type includes real-time irrigation data, equipment status data, environmental detection data, alarm warning data, statistical analysis data, user information and historical irrigation data; based on the data source and data type, determining whether the data to be stored is credible data; if the data to be stored is credible data, traversing the data to be stored based on a malware detection algorithm to determine whether the data to be stored contains malicious code; if the data to be stored does not contain malicious code, determining the security status of the data to be stored is data security; if the data to be stored contains malicious code, determining the security status of the data to be stored is data insecurity, repairing the data to be stored, and traversing the repaired data to be stored based on a malware detection algorithm until the repaired data to be stored does not contain malicious code.
[0009] In a possible implementation, an integrity check is performed on the data to be stored to determine the detection status of the data to be stored, including: traversing the field information of each data in the data to be stored to determine whether the number of data to be stored and the field information are complete; if the number of data to be stored and the field information are incomplete, determining that the detection status of the data to be stored is an abnormal state; if the number of data to be stored and the field information are complete, performing a consistency check on each type of data in the data to be stored to determine whether the data to be stored is logically consistent; if the data to be stored is logically consistent, determining that the detection status of the data to be stored is a normal state; if the data to be stored is logically inconsistent, determining that the detection status of the data to be stored is an abnormal state.
[0010] In a possible implementation, consistency check is performed on various types of data in the data to be stored to determine whether the data to be stored is logically consistent, including: for the alarm and warning data in the data to be stored, based on the alarm and warning data, determining the sensor category, alarm time and alarm value of each alarm; based on the alarm time, querying historical data and device status data, extracting historical data and device status data corresponding to the alarm time; based on the sensor category, alarm time and alarm value of each alarm, and the historical data and device status data corresponding to the alarm time, determining whether the alarm and warning data are logically consistent with other data in the data to be stored; for the real-time irrigation data and historical irrigation data in the data to be stored, based on the sensor data and irrigation type of each region in the real-time irrigation data and historical irrigation data, time series analysis is performed to determine the time series characteristics; the time series characteristics are used to characterize the law of change of each sensor data over time during the irrigation process; based on the time series characteristics and the hydropower detection model, the hydropower detection results are determined, and the hydropower detection results include the calculated power consumption and calculated water consumption during the irrigation process; based on the hydropower detection results, and the power consumption data and water consumption data of the hydropower fusion terminal, data analysis is performed to determine whether the real-time irrigation data and the historical irrigation data are logically consistent.
[0011] In one possible implementation, the data to be stored is split into multiple copies of data, including: determining the transmission rate of the pre-transmission process based on the transmission time and the transmission mode; determining the data packet size of a single transmission based on the transmission rate of the pre-transmission process; and splitting the data to be stored based on the data packet size of a single transmission to obtain multiple copies of data.
[0012] In one possible implementation, multiple copies of data are compressed and encrypted to obtain multiple data packets, including: based on a hash algorithm, a hash value of each copy of data is calculated, and the hash value is used to indicate whether the data has been modified; each copy of data is compressed and encrypted to obtain multiple encrypted copies of data; and multiple data packets are generated based on each copy of encrypted data and the hash value corresponding to each copy of encrypted data.
[0013] In a possible implementation, before performing security and integrity checks on the data content of the data to be stored and determining the detection status of the data to be stored, it also includes: obtaining the data storage requirements of other hydropower fusion terminals near the hydropower fusion terminal; the data storage requirements include the amount and type of data to be stored; based on the data storage requirements of the hydropower fusion terminal and other hydropower fusion terminals, priority sorting is performed to determine the sending order, sending time and sending duration of each hydropower fusion terminal; based on the sending order, sending time and sending duration of the hydropower fusion terminal, the transmission time and transmission mode are updated to determine the updated transmission time and transmission mode.
[0014] In a second aspect, an embodiment of the present invention provides a data storage monitoring device for a hydropower fusion terminal, the data storage monitoring device comprising: a communication module for detecting data storage instructions; the data storage instructions include an identifier and a data type of the data to be stored; a processing module for determining the storage priority of the data to be stored based on the identifier and the data type of the data to be stored; based on the storage priority, determining the transmission time and the transmission method of the data to be stored; performing security and integrity detection on the data content of the data to be stored, and determining the detection status of the data to be stored, the detection status including a normal state and an abnormal state; if the data to be stored is in a normal state, splitting the data to be stored into multiple copies of data; and compressing and encrypting the multiple copies of data to obtain multiple data packets; based on the transmission time and transmission method, transmitting multiple data packets to the hydropower system platform to realize storage monitoring of the data to be stored.
[0015] In a third aspect, an embodiment of the present invention provides a data storage and monitoring system for a hydropower integration terminal, the data storage and monitoring system comprising a hydropower integration terminal and a hydropower system platform, the hydropower integration terminal comprising a memory and a processor, the memory storing a computer program, the processor being used to call and run the computer program stored in the memory to execute the steps of the method described in the first aspect and any possible implementation method of the first aspect.
[0016] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and wherein when the computer program is executed by a processor, the steps of the method described in the first aspect and any possible implementation method of the first aspect are implemented.
[0017] The present invention provides a data storage monitoring method and system for a hydropower fusion terminal. After detecting a data storage instruction, the present invention performs security and integrity detection on the data content of the data to be stored to determine whether the data to be stored is normal, and then determines the transmission time and transmission mode according to the storage priority, splits the data to be stored into multiple data packets, and sends them to the hydropower system platform. The present invention performs security and integrity detection before data storage and transmission, so that the hydropower system platform can directly store data, reduces the memory pressure of the hydropower system platform, and improves data storage efficiency. It solves the problem of low efficiency of storing agricultural irrigation data on the hydropower system platform and improves the data storage efficiency of agricultural irrigation data. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0019] Figure 1 It is a flow chart of a data storage and monitoring method of a hydropower fusion terminal provided by an embodiment of the present invention;
[0020] Figure 2 It is a structural schematic diagram of a data storage and monitoring device of a hydropower fusion terminal provided by an embodiment of the present invention;
[0021] Figure 3 It is a structural schematic diagram of a hydropower fusion terminal provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0022] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present invention. However, it should be clear to those skilled in the art that the present invention may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present invention.
[0023] In the description of the present invention, unless otherwise specified, " / " means "or", for example, A / B can mean A or B. "And / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, "at least one" and "plurality" refer to two or more. The words "first", "second", etc. do not limit the quantity and execution order, and the words "first", "second", etc. do not limit them to be different.
[0024] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way for easy understanding.
[0025] In addition, the terms "including" and "having" and any variations thereof mentioned in the description of this application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or modules is not limited to the listed steps or modules, but may optionally include other steps or modules that are not listed, or may optionally include other steps or modules that are inherent to these processes, methods, products or devices.
[0026] In order to make the purpose, technical solutions and advantages of the present invention more clear, the following will be described through specific embodiments in conjunction with the accompanying drawings of the present invention.
[0027] As described in the background technology, in the process of storing agricultural irrigation data, the hydropower system platform has problems such as large data volume, high memory pressure, slow processing speed and low data storage efficiency, which affect the processing capacity of the hydropower system platform.
[0028] To solve this technical problem, Figure 1 As shown, an embodiment of the present invention provides a data storage and monitoring method for a hydroelectric fusion terminal. The method includes steps S101-S106.
[0029] S101, detecting data storage instructions.
[0030] In the embodiment of the present application, the data storage instruction includes an identifier and a data type of the data to be stored.
[0031] For example, the hydropower fusion terminal can irrigate the area that needs irrigation, record the irrigation data during the irrigation process, and generate data storage instructions after the irrigation is completed to store the irrigation data during the irrigation process to the hydropower system platform.
[0032] As another example, the hydropower integration terminal may periodically send real-time irrigation data during the irrigation process to the hydropower system platform for storage.
[0033] In another example, the hydropower fusion terminal can receive a data storage instruction sent by the hydropower system platform. The hydropower system platform instructs the hydropower fusion terminal to transmit back the device status data, environmental detection data, alarm data, statistical gap data, user information and historical irrigation data detected by the hydropower fusion terminal.
[0034] S102: Determine the storage priority of the data to be stored based on the identifier and data type of the data to be stored.
[0035] In some embodiments, the storage priority is used to represent the time limit requirement for sending the data to be stored to the hydropower system platform.
[0036] Exemplarily, the storage priority includes high priority, medium priority and low priority, wherein high priority means immediate transmission and storage, medium priority means transmission and storage within a set time limit, and low priority means transmission and storage during idle time.
[0037] As a possible implementation manner, step S102 may be specifically implemented as steps S1021 - S1022 .
[0038] S1021. Determine a priority mapping relationship table based on the communication status between the hydropower integration terminal and the hydropower system platform.
[0039] Exemplarily, the identifiers and data types of the data to be stored in different priority mapping relationship tables are different from the mapping relationships between the storage priorities.
[0040] S1022: Determine the storage priority based on the identifier and data type of the data to be stored and the priority mapping relationship table.
[0041] S103: Determine the transmission time and transmission method of the data to be stored based on the storage priority.
[0042] Exemplarily, the transmission time of high priority is immediate transmission, and the transmission method is direct transmission or indirect transmission through other hydropower fusion terminals. The transmission time of medium priority is transmission within a set time limit, and the transmission method is direct transmission to the hydropower system platform. The transmission time of low priority is transmission during idle time, and the transmission method is direct transmission to the hydropower system platform. Among them, the medium priority and low priority can refer to the communication status between the hydropower fusion terminal and the hydropower system platform. Transmission is performed when the communication status is good.
[0043] S104: Perform security and integrity checks on the data content of the data to be stored, and determine the detection status of the data to be stored.
[0044] In the embodiment of the present application, the detection state includes a normal state and an abnormal state.
[0045] In some embodiments, security detection means detecting malicious codes such as viruses that may exist in data content to protect the hydropower system platform from network attacks and improve data security in the hydropower system platform.
[0046] In some embodiments, integrity detection refers to detecting the integrity and accuracy of data content, thereby avoiding data loss and data inaccuracy, preventing data tampering, and improving the accuracy of data in the hydropower system platform.
[0047] As a possible implementation manner, step S104 may be specifically implemented as steps S1041 - S1043 .
[0048] S1041. Perform security check on the data to be stored to determine the security status of the data to be stored.
[0049] In some embodiments, the security status includes data secure and data unsecure.
[0050] Exemplarily, step S1041 may be specifically implemented as steps A1-A5.
[0051] A1. Extract the data source and data type of the data to be stored.
[0052] In some embodiments, the data types include real-time irrigation data, equipment status data, environmental detection data, alarm warning data, statistical analysis data, user information, and historical irrigation data.
[0053] A2. Determine whether the data to be stored is credible based on the data source and data type.
[0054] Exemplarily, the hydropower fusion terminal may store trusted data sources and trusted data types, as well as the corresponding relationship between the trusted data sources and the trusted data types.
[0055] The embodiment of the present invention can perform inquiries based on the data source and data type to determine whether the data source and data type are credible. If the data source and data type are credible, it is determined whether the corresponding relationship between the data source and data type is consistent. If they are consistent, it means that the data to be stored is credible data.
[0056] A3. If the data to be stored is credible data, the data to be stored is traversed based on a malware detection algorithm to determine whether there is malicious code in the data to be stored.
[0057] Exemplarily, the malware detection algorithm may be a blacklist database, or may be obtained by training a neural network model.
[0058] In the embodiment of the present invention, each field of the data to be stored can be input into the malware detection algorithm one by one to detect whether each field is a malicious field. If there is no malicious field, it is determined that there is no malicious code in the data to be stored. If there is a malicious field, it is determined that there is malicious code in the data to be stored.
[0059] A4. If the data to be stored does not contain malicious code, the security status of the data to be stored is determined to be data security.
[0060] A5. If the data to be stored contains malicious code, the security status of the data to be stored is determined to be unsafe, and the data to be stored is repaired. Based on the malware detection algorithm, the repaired data to be stored is traversed until the repaired data to be stored does not contain malicious code.
[0061] S1042: If the security status of the data to be stored is that the data is not secure, determine that the detection status of the data to be stored is an abnormal status.
[0062] S1043: If the security status of the data to be stored is data security, perform integrity check on the data to be stored to determine the detection status of the data to be stored.
[0063] Exemplarily, step S1043 may be specifically implemented as steps B1-B5.
[0064] B1. Traverse each field information of each data to be stored to determine whether the number of data to be stored and the field information are complete.
[0065] B2. If the number of data to be stored and field information are incomplete, it is determined that the detection state of the data to be stored is an abnormal state.
[0066] B3. If the number of data to be stored and the field information are complete, a consistency check is performed on each type of data to be stored to determine whether the data to be stored is logically consistent.
[0067] Exemplarily, for the alarm and warning data in the data to be stored, the embodiment of the present invention can determine whether the alarm and warning data are logically consistent based on steps B311-B313.
[0068] B311. Based on the alarm warning data, determine the sensor type, alarm time and alarm value of each alarm.
[0069] B312. Based on the alarm time, query the historical data and device status data, and extract the historical data and device status data corresponding to the alarm time.
[0070] B313. Based on the sensor category, alarm time and alarm value of each alarm, as well as the historical data and device status data corresponding to the alarm time, determine whether the alarm warning data is logically consistent with other data in the data to be stored.
[0071] As another example, for the real-time irrigation data and the historical irrigation data in the data to be stored, the embodiment of the present invention can determine whether the real-time irrigation data and the historical irrigation data are logically consistent based on steps B321-B323.
[0072] B321. Based on the sensor data and irrigation types of each area in the real-time irrigation data and historical irrigation data, time series analysis is performed to determine the time series characteristics.
[0073] In some embodiments, the time series feature is used to characterize the law of changes of each sensor data over time during the irrigation process.
[0074] B322. Determine the hydropower detection results based on time series characteristics and hydropower detection model.
[0075] In some embodiments, the water and electricity detection results include the calculated electricity consumption and the calculated water consumption during the irrigation process.
[0076] B323. Based on the hydropower detection results, as well as the electricity consumption data and water consumption data of the hydropower integration terminal, data analysis is performed to determine whether the real-time irrigation data and historical irrigation data are logically consistent.
[0077] As another example, the embodiment of the present invention may also determine whether the user information to be stored is logically consistent through pre-stored user information.
[0078] As another example, the embodiment of the present invention can also determine whether the device status data and the environmental detection data are logically consistent through device parameters, such as water pumps, humidity sensors, temperature sensors, and the like.
[0079] B4. If the data to be stored is logically consistent, it is determined that the detection state of the data to be stored is a normal state.
[0080] B5. If the data to be stored is logically inconsistent, determining that the detection state of the data to be stored is an abnormal state.
[0081] S105: If the data to be stored is in a normal state, the data to be stored is split into multiple copies of data; and the multiple copies of data are compressed and encrypted to obtain multiple data packets.
[0082] As a possible implementation manner, the embodiment of the present invention can split the data to be stored based on steps S1051-S1053.
[0083] S1051. Determine a transmission rate of the pre-transmission process based on the transmission time and the transmission mode.
[0084] Exemplarily, the hydropower fusion terminal stores historical transmission rates of various time periods between the hydropower fusion terminal and the power transmission system platform. The embodiment of the present invention can estimate the transmission rate of the pre-transmission process by querying the historical transmission rate.
[0085] S1052: Determine the size of a data packet for a single transmission based on the transmission rate of the pre-transmission process.
[0086] For example, the greater the transmission rate, the larger the size of the data packet for a single transmission; the smaller the transmission rate, the smaller the size of the data packet for a single transmission. This can not only transmit as much data as possible, but also reduce the data packet loss rate, ensure normal data transmission, and maximize data transmission efficiency.
[0087] S1053. Split the data to be stored based on the size of the data packet transmitted in a single time to obtain multiple copies of data.
[0088] As a possible implementation manner, the embodiment of the present invention may perform compression and encryption based on steps S1054-S1056.
[0089] S1054. Calculate the hash value of each piece of data based on the hash algorithm.
[0090] In some embodiments, the hash value is used to indicate whether the data is modified.
[0091] Exemplarily, the hash algorithm may be MD5, SHA-256, or the like. The hash value of the same piece of data is unique. The unique hash value may be used as a digital fingerprint of the data. The embodiment of the present invention may determine whether the data has been modified by calculating the hash value.
[0092] For example, after the hydropower fusion terminal sends data to the hydropower system platform, the hydropower system platform can calculate the hash value of each data packet to determine whether the data packet has been modified without traversing all the data, thereby improving storage convenience.
[0093] S1055. Compress and encrypt each piece of data to obtain multiple pieces of encrypted data.
[0094] S1056. Generate multiple data packets based on each encrypted data and the hash value corresponding to each encrypted data.
[0095] In this way, the embodiment of the present invention can facilitate the storage of the hydropower system platform by setting the hash value, thereby reducing the memory pressure of the hydropower system platform and improving the security and accuracy of the data packet.
[0096] S106. Based on the transmission time and the transmission mode, multiple data packets are transmitted to the hydropower system platform to realize storage monitoring of the data to be stored.
[0097] The present invention provides a data storage monitoring method for a hydropower fusion terminal. After detecting a data storage instruction, the data content of the data to be stored is tested for security and integrity to determine whether the data to be stored is normal. Then, according to the storage priority, the transmission time and transmission mode are determined, and the data to be stored is split into multiple data packets and sent to the hydropower system platform. The present invention performs a security and integrity test before data storage and transmission, so that the hydropower system platform can directly store data, reducing the memory pressure of the hydropower system platform and improving the data storage efficiency. The problem of low efficiency of storing agricultural irrigation data on the hydropower system platform is solved, and the data storage efficiency of agricultural irrigation data is improved.
[0098] Optionally, the data storage and monitoring method for the hydropower integration terminal provided in the embodiment of the present invention further includes steps S201-S203 before step S104.
[0099] S201. Obtain the data storage requirements of other hydropower integration terminals near the hydropower integration terminal.
[0100] In some embodiments, the data storage requirements include the amount and type of data to be stored.
[0101] S202. Based on the data storage requirements of the hydropower fusion terminal and other hydropower fusion terminals, priority sorting is performed to determine the sending order, sending time and sending duration of each hydropower fusion terminal.
[0102] S203: Based on the transmission order, transmission time and transmission duration of the hydropower fusion terminal, the transmission time and transmission mode are updated to determine the updated transmission time and transmission mode.
[0103] In this way, the embodiment of the present invention can comprehensively determine the transmission time and transmission method of stored data by comparing the communication status of multiple nearby hydropower fusion terminals, thereby realizing rotating transmission between multiple hydropower fusion terminals and the hydropower system platform, reducing the memory pressure of the hydropower system platform, and improving the data storage efficiency of agricultural irrigation data.
[0104] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
[0105] The following is an embodiment of the device of the present invention. For details not described in detail therein, reference may be made to the corresponding method embodiment described above.
[0106] Figure 2 The schematic diagram of the structure of a data storage monitoring device of a hydroelectric fusion terminal provided by an embodiment of the present invention is shown. The data storage monitoring device 300 includes a communication module 301 and a processing module 302 .
[0107] The communication module 301 is used to detect a data storage instruction; the data storage instruction includes an identifier and a data type of the data to be stored.
[0108] The processing module 302 is used to determine the storage priority of the data to be stored based on the identification and data type of the data to be stored; determine the transmission time and transmission method of the data to be stored based on the storage priority; perform security and integrity detection on the data content of the data to be stored, and determine the detection status of the data to be stored, the detection status includes a normal state and an abnormal state; if the data to be stored is in a normal state, split the data to be stored into multiple copies of data; and compress and encrypt the multiple copies of data to obtain multiple data packets; based on the transmission time and transmission method, transmit multiple data packets to the hydropower system platform to realize storage monitoring of the data to be stored.
[0109] Figure 3 Schematic diagram of a hydroelectric fusion terminal provided by an embodiment of the present invention. Figure 3 As shown, the hydroelectric fusion terminal 400 includes: a processor 401, a memory 402, and a computer program 403 stored in the memory 402 and executable on the processor 401. When the processor 401 executes the computer program 403, the steps in the above-mentioned method embodiments are implemented, for example Figure 1 Alternatively, when the processor 401 executes the computer program 403, the functions of each module / unit in the above-mentioned device embodiments are realized, for example, Figure 2 The functions of the communication module 301 and the processing module 302 are shown.
[0110] Exemplarily, the computer program 403 may be divided into one or more modules / units, which are stored in the memory 402 and executed by the processor 401 to implement the present invention. The one or more modules / units may be a series of computer program instruction segments capable of implementing specific functions, which are used to describe the execution process of the computer program 403 in the hydropower fusion terminal 400. For example, the computer program 403 may be divided into Figure 2 The communication module 301 and the processing module 302 are shown.
[0111] The processor 401 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0112] The memory 402 may be an internal storage unit of the hydropower fusion terminal 400, such as a hard disk or memory of the hydropower fusion terminal 400. The memory 402 may also be an external storage device of the hydropower fusion terminal 400, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the hydropower fusion terminal 400. Further, the memory 402 may also include both an internal storage unit of the hydropower fusion terminal 400 and an external storage device. The memory 402 is used to store the computer program and other programs and data required by the terminal. The memory 402 may also be used to temporarily store data that has been output or is to be output.
[0113] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.
Claims
1. A data storage and monitoring method for a hydropower fusion terminal, characterized in that: include: Detecting a data storage instruction; the data storage instruction includes an identifier and a data type of the data to be stored; Determining a storage priority of the data to be stored based on the identifier and data type of the data to be stored; Based on the storage priority, determine the transmission time and transmission mode of the data to be stored; wherein the transmission time of high priority is immediate transmission, and the transmission mode is direct transmission or indirect transmission through other hydropower fusion terminals; the transmission time of medium priority is transmission within a set time limit, and the transmission mode is direct transmission to the hydropower system platform; the transmission time of low priority is transmission during idle time, and the transmission mode is direct transmission to the hydropower system platform; Performing security and integrity detection on the data content of the data to be stored, and determining the detection status of the data to be stored, wherein the detection status includes a normal state and an abnormal state; If the data to be stored is in a normal state, the data to be stored is split into multiple copies of data; and the multiple copies of data are compressed and encrypted to obtain multiple data packets; Based on the transmission time and transmission mode, transmitting the multiple data packets to the hydropower system platform to realize storage monitoring of the data to be stored; The performing security and integrity detection on the data content of the data to be stored and determining the detection status of the data to be stored comprises: performing security detection on the data to be stored and determining the security status of the data to be stored, wherein the security status comprises data security and data insecurity; if the security status of the data to be stored is data insecurity, determining the detection status of the data to be stored is an abnormal status; if the security status of the data to be stored is data security, performing integrity detection on the data to be stored and determining the detection status of the data to be stored; The security detection of the data to be stored to determine the security status of the data to be stored includes: extracting the data source and data type of the data to be stored; the data type includes real-time irrigation data, equipment status data, environmental detection data, alarm warning data, statistical analysis data, user information and historical irrigation data; based on the data source and data type, determining whether the data to be stored is credible data; if the data to be stored is credible data, traversing the data to be stored based on a malware detection algorithm to determine whether the data to be stored contains malicious code; if the data to be stored does not contain malicious code, determining the security status of the data to be stored is data security; if the data to be stored contains malicious code, determining the security status of the data to be stored is data insecurity, repairing the data to be stored, and traversing the repaired data to be stored based on a malware detection algorithm until the repaired data to be stored does not contain malicious code; The performing integrity check on the data to be stored and determining the detection status of the data to be stored includes: traversing each field information of each data in the data to be stored to determine whether the number of data and field information of the data to be stored are complete; if the number of data and field information of the data to be stored are incomplete, determining that the detection status of the data to be stored is an abnormal state; if the number of data and field information of the data to be stored are complete, performing consistency check on various types of data in the data to be stored to determine whether the data to be stored is logically consistent; if the data to be stored is logically consistent, determining that the detection status of the data to be stored is a normal state; if the data to be stored is logically inconsistent, determining that the detection status of the data to be stored is an abnormal state; The consistency check of various types of data in the data to be stored to determine whether the data to be stored is logically consistent includes: for the alarm and warning data in the data to be stored, based on the alarm and warning data, determining the sensor category, alarm time and alarm value of each alarm; based on the alarm time, querying the historical data and device status data in the data to be stored, and extracting the historical data and device status data corresponding to the alarm time; based on the sensor category, alarm time and alarm value of each alarm, and the historical data and device status data corresponding to the alarm time, determining whether the alarm and warning data is logically consistent with other data in the data to be stored for the real-time irrigation data and the historical irrigation data in the data to be stored, based on the sensor data of each area in the real-time irrigation data and the historical irrigation data and the irrigation type, time series analysis is performed to determine the time series characteristics; the time series characteristics are used to characterize the law of change of each sensor data over time during the irrigation process; based on the time series characteristics and the hydropower detection model, the hydropower detection result is determined, and the hydropower detection result includes the calculated electricity consumption and the calculated water consumption during the irrigation process; based on the hydropower detection result, as well as the electricity consumption data and the water consumption data of the hydropower fusion terminal, data analysis is performed to determine whether the real-time irrigation data and the historical irrigation data are logically consistent.
2. The data storage and monitoring method of the hydropower fusion terminal according to claim 1 is characterized in that: The determining the storage priority of the data to be stored based on the identifier and data type of the data to be stored includes: Based on the communication status between the hydropower integration terminal and the hydropower system platform, determine the priority mapping relationship table; The storage priority is determined based on the identifier and data type of the data to be stored and the priority mapping relationship table.
3. The data storage and monitoring method of the hydropower fusion terminal according to claim 1 is characterized in that: The step of splitting the data to be stored into multiple copies of data includes: Determining a transmission rate of a pre-transmission process based on the transmission time and the transmission mode; Determining a data packet size for a single transmission based on a transmission rate of the pre-transmission process; Based on the size of the data packet of the single transmission, the data to be stored is split to obtain multiple copies of data.
4. The data storage and monitoring method of the hydropower fusion terminal according to claim 1 is characterized in that: The plurality of copies of data are compressed and encrypted to obtain a plurality of data packets, including: Based on the hash algorithm, a hash value of each piece of data is calculated, and the hash value is used to indicate whether the data has been modified; Each piece of data is compressed and encrypted to obtain multiple pieces of encrypted data; The multiple data packets are generated based on each encrypted data and a hash value corresponding to each encrypted data.
5. The data storage and monitoring method of the hydropower fusion terminal according to claim 1 is characterized in that: Before performing security and integrity detection on the data content of the data to be stored and determining the detection status of the data to be stored, the method further includes: Acquire the data storage requirements of other hydropower fusion terminals near the hydropower fusion terminal; the data storage requirements include the amount of data to be stored and the type of data; Based on the data storage requirements of the hydropower fusion terminal and other hydropower fusion terminals, priority sorting is performed to determine the sending order, sending time and sending duration of each hydropower fusion terminal; Based on the sending order, sending time and sending duration of the hydropower fusion terminal, the transmission time and transmission mode are updated to determine the updated transmission time and transmission mode.
6. A data storage and monitoring system for a hydropower fusion terminal, characterized in that: The data storage monitoring system includes a hydropower integration terminal and a hydropower system platform. The hydropower integration terminal includes a memory and a processor. The memory stores a computer program. The processor is used to call and run the computer program stored in the memory to execute the steps of the method as described in any one of claims 1 to 5.
Citation Information
Patent Citations
High-security and high-reliability data exchange system and method between networks
CN112653664A
Agricultural Internet of Things data transmission method
CN117527149A
Water consumption abnormity detection method and device, electronic equipment and storage medium
CN117851953A