Data transmission method, device, equipment, medium and product
By acquiring and analyzing real-time data of sub-station equipment in the gas system, combining recording data and preset change rate, calculating the current change rate and uploading significant data, the problem of data accumulation and processing pressure in the data system is solved, and data processing efficiency and timeliness are improved.
Patent Information
- Application Number
- CN202510157674.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-13
- Publication Date
- 2025-05-16
- Estimated Expiration
- 2045-02-13
AI Technical Summary
In gas systems, when data updates frequently and measurement points are numerous, the existing data transmission methods lead to data accumulation in the data system, increasing data processing pressure and reducing data processing efficiency.
By obtaining the real-time data collected by the branch station equipment and matching it with the recorded data and the preset rate of change, the current rate of change is calculated. If the current rate of change reaches or exceeds the preset threshold, the recorded data is updated and the real-time data and the current rate of change are uploaded to the data system.
It effectively avoids data accumulation in the data system, reduces data processing pressure, improves data processing efficiency, and ensures data timeliness and accuracy.
Smart Images

Figure CN120017586A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a data transmission method, device, equipment, medium and product. Background Art
[0002] In the application scenario of the gas system, the data system needs to receive real-time data from various stations and pipelines so that managers can monitor the working conditions of the equipment in real time and handle abnormal data in a timely manner. The current data transmission method uploads the changed data to the data system immediately when the data changes.
[0003] However, in the implementation, it was found that when data updates frequently and there are many measurement points, uploading all the changed data to the data system will easily lead to data accumulation in the data system, increase the data processing pressure of the data system, and thus lead to low data processing efficiency of the data system. Summary of the invention
[0004] The purpose of this application is to provide a data transmission method, device, equipment, medium and product, which can avoid data accumulation in a data system, reduce the data processing pressure of the data system, and thus improve the data processing efficiency of the data system.
[0005] To achieve the above objectives, this application provides the following solutions:
[0006] In a first aspect, the present application provides a data transmission method, comprising:
[0007] Obtain real-time data collected by preset substation equipment;
[0008] Acquiring recorded data and a preset change rate matching the real-time data;
[0009] If the recorded data is not empty, the real-time data and the recorded data are used to calculate the current change rate;
[0010] If the current change rate is greater than or equal to the preset change rate, the real-time data is determined as the recorded data, and the real-time data and the current change rate are uploaded to the data system.
[0011] Optionally, the using the real-time data and the recorded data to calculate the current change rate specifically includes:
[0012] Calculating a first absolute value of a difference between the real-time data and the recorded data;
[0013] determining the absolute value of the recorded data as a second absolute value;
[0014] A ratio between the first absolute value and the second absolute value is determined as a current rate of change.
[0015] Optionally, the data transmission method further includes:
[0016] If the recorded data is empty, obtaining a standard value matching the real-time data;
[0017] Calculating a third absolute value of a difference between the real-time data and the standard value;
[0018] determining the absolute value of the standard value as a fourth absolute value;
[0019] determining a ratio between the third absolute value and the fourth absolute value as a real-time change rate;
[0020] If the real-time change rate is greater than or equal to the preset change rate, the steps of determining the real-time data as the recorded data and uploading the real-time data and the current change rate to the data system are performed.
[0021] Optionally, the preset change rate is determined in the following manner:
[0022] Acquire a plurality of historical normal data matching the real-time data;
[0023] Calculate historical normal average data using the plurality of historical normal data;
[0024] Calculate the change rate between each historical normal data and the historical normal average data to obtain the historical change rate corresponding to each historical normal data;
[0025] determining a maximum historical rate of change from the historical rates of change;
[0026] The sum of the maximum historical change rate and a preset threshold is determined as the preset change rate.
[0027] Optionally, uploading the real-time data and the current change rate to a data system specifically includes:
[0028] Determining a change rate interval in which the current change rate is located;
[0029] Determine the problem level corresponding to the change rate interval;
[0030] adding the real-time data, the current rate of change, and the problem level to a data packet;
[0031] The data packet is uploaded to a data system so that the data system analyzes the problem of the real-time data based on the data packet.
[0032] Optionally, the real-time data is temperature data, pressure data or gas concentration data.
[0033] In a second aspect, the present application provides a data transmission device, including:
[0034] A first acquisition unit, used to acquire real-time data collected by a preset substation device;
[0035] A second acquisition unit, used to acquire recorded data matching the real-time data and a preset change rate;
[0036] a calculation unit, configured to calculate a current change rate using the real-time data and the recorded data if the recorded data is not empty;
[0037] A determination unit is used to determine the real-time data as the recorded data if the current change rate is greater than or equal to the preset change rate, and upload the real-time data and the current change rate to a data system.
[0038] In a third aspect, the present application provides a computer device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of any of the above-mentioned data transmission methods.
[0039] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any of the above-described data transmission methods.
[0040] In a fifth aspect, the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of any of the above-mentioned data transmission methods.
[0041] In a sixth aspect, the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction. When the processor executes the program or instruction, the steps of any of the above-mentioned data transmission methods are implemented.
[0042] According to the specific embodiments provided in this application, this application discloses the following technical effects:
[0043] The present application provides a data transmission method, device, equipment, medium and product, which realizes dynamic monitoring and analysis of data by automatically acquiring real-time data of preset substation equipment and matching it with recorded data and preset change rate. When recorded data exists, the current change rate is calculated through real-time data and recorded data, and the current change rate is compared with the preset change rate, so as to accurately judge the significance of data changes. Once the current change rate reaches or exceeds the preset threshold, the recorded data is updated immediately, and the real-time data and the current change rate are uploaded to the data system, which ensures the timeliness and accuracy of the data, and can also avoid data accumulation in the data system, reduce the data processing pressure of the data system, and thus improve the data processing efficiency of the data system. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] 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 will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0045] Figure 1 This is an application environment diagram of a data transmission method in an embodiment of the present application;
[0046] Figure 2 A flowchart of a data transmission method provided in one embodiment of the present application;
[0047] Figure 3 A schematic diagram of functional modules of a data transmission device provided in one embodiment of the present application.
[0048] Figure 4 A schematic diagram of the structure of a computer device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0049] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0050] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.
[0051] The data transmission method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Figure 1It includes multiple substation devices, multiple substation collection hosts and data systems, and one substation device corresponds to one substation collection host. The substation device is used to collect real-time data; the substation collection host is used to obtain the real-time data collected by the preset substation device, and obtain the recorded data and preset change rate that match the real-time data, and use the real-time data and recorded data to calculate the current change rate when the recorded data is not empty, and when the current change rate is greater than or equal to the preset change rate, determine the real-time data as recorded data, and upload the real-time data and the current change rate to the data system.
[0052] The data system may be, but is not limited to, a system set up on various desktop computers, laptops, smart phones, tablet computers, IoT devices, portable wearable devices, independent servers, server clusters consisting of multiple servers, or systems on cloud servers. IoT devices may be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc.
[0053] In an exemplary embodiment, Figure 2 As shown, a data transmission method is provided, which is executed by a computer device, and can be executed by a computer device such as a terminal or a server alone, or by a terminal and a server together. In the embodiment of the present application, the method is applied to Figure 1 Taking the substation collection host in the example as an example, the method includes the following steps 201 to 204. Among them:
[0054] Step 201, obtaining real-time data collected by preset substation equipment.
[0055] In the embodiment of the present application, the real-time data is temperature data, pressure data or gas concentration data. The preset substation device may refer to the underlying device, such as a sensor, a programmable controller PLC or other physical device. The real-time data is the data in the internal registers of these devices. These data are data information reflecting the operation of the device when the device is running. The data can usually be transmitted through a communication protocol, and the more common one is ModBus.
[0056] Step 202: Acquire recorded data and a preset change rate that match the real-time data.
[0057] In the embodiment of the present application, different real-time data corresponds to different preset change rates, for example, the preset change rates corresponding to temperature data and pressure data are different. The preset change rate is set according to the requirements of different data systems for data. For example, for temperature data above, the purpose of setting the change rate is to optimize the data volume, and pressure is to count abnormal data, which needs to be set according to the purpose of the manager.
[0058] In an embodiment of the present application, the recorded data may be data stored based on previous real-time data. If the change rate between the previous real-time data and the previous recorded data matching the previous real-time data is greater than a preset change rate, the previous real-time data needs to be stored as new recorded data.
[0059] In addition, if the acquired real-time data is the first real-time data acquired, the recorded data is empty, that is, the recorded data does not store real data. Therefore, a standard value matching the real-time data can be obtained, and the current change rate can be calculated using the standard value and the real-time data.
[0060] As an optional implementation manner, the preset change rate may be determined in the following manner:
[0061] Acquire a plurality of historical normal data matching the real-time data;
[0062] Calculate historical normal average data using the plurality of historical normal data;
[0063] Calculate the change rate between each historical normal data and the historical normal average data to obtain the historical change rate corresponding to each historical normal data;
[0064] determining a maximum historical rate of change from the historical rates of change;
[0065] The sum of the maximum historical change rate and a preset threshold is determined as the preset change rate.
[0066] Among them, by implementing this implementation method, the rationality and adaptability of the preset threshold are ensured by comprehensively considering the historical normal data. By calculating the average value of the historical normal data and deriving the change rate of each historical data based on this, the normal fluctuation range of the data can be fully grasped. Furthermore, the maximum historical change rate is selected as a reference and added to the preset threshold, so that the preset change rate not only reflects the historical fluctuation limit of the data, but also has a certain safety margin. This method not only improves the scientificity and accuracy of the preset change rate, but also helps to more accurately identify abnormal data, thereby enhancing the sensitivity and reliability of the data monitoring and early warning system.
[0067] In an embodiment of the present application, the maximum historical change rate can be the maximum change rate of normal data. Therefore, a value slightly larger than the maximum historical change rate can be set as the preset change rate to ensure the identification of normal data and abnormal data. At this time, a preset threshold can be obtained. The preset threshold is a positive number. The maximum historical change rate can be added to the preset threshold to obtain the preset change rate.
[0068] Step 203: If the recorded data is not empty, the real-time data and the recorded data are used to calculate the current change rate.
[0069] As an optional implementation manner, step 203 uses the real-time data and the recorded data to calculate the current rate of change in a manner that includes:
[0070] Calculating a first absolute value of a difference between the real-time data and the recorded data;
[0071] determining the absolute value of the recorded data as a second absolute value;
[0072] A ratio between the first absolute value and the second absolute value is determined as a current rate of change.
[0073] Among them, this implementation method is implemented to determine the current change rate by introducing the calculation of the first absolute value and the second absolute value. This method can measure the degree of data change more accurately and stably. The first absolute value reflects the direct difference between the real-time data and the recorded data, while the second absolute value is used as a benchmark to ensure that the calculation of the change rate is not affected by the size of the recorded data. This ratio calculation method not only simplifies the complex data analysis process, but also improves the accuracy and reliability of the data change rate calculation, providing a more solid basis for subsequent data processing and decision-making.
[0074] In the embodiment of the present application, the calculation formula for the current change rate can be: |ab| / |b|>=c, where a represents real-time data, b represents recorded data, and c represents the current change rate.
[0075] As an optional implementation, if the recorded data is empty, the following steps may also be performed:
[0076] Acquire a standard value matching the real-time data;
[0077] Calculating a third absolute value of a difference between the real-time data and the standard value;
[0078] determining the absolute value of the standard value as a fourth absolute value;
[0079] determining a ratio between the third absolute value and the fourth absolute value as a real-time change rate;
[0080] If the real-time change rate is greater than or equal to the preset change rate, the steps of determining the real-time data as the recorded data and uploading the real-time data and the current change rate to the data system are performed.
[0081] Among them, by implementing this implementation method, by introducing a standard value that matches the real-time data, the change rate of the real-time data can continue to be effectively calculated. Calculating the ratio of the third absolute value to the fourth absolute value as the real-time change rate not only provides a reliable method for evaluating data changes in the absence of historical data, but also ensures the continuity and accuracy of the change rate calculation. When the real-time change rate reaches or exceeds the preset threshold, the recorded data can be updated in a timely manner and relevant information can be uploaded to the data system, which not only enhances the flexibility of data processing, but also helps to promptly discover and respond to significant changes in the data, providing strong support for data monitoring and analysis.
[0082] In the embodiment of the present application, the calculation method of the real-time change rate is the same as the calculation method of the current change rate, which will not be repeated here.
[0083] Step 204: If the current change rate is greater than or equal to the preset change rate, the real-time data is determined as the recorded data, and the real-time data and the current change rate are uploaded to the data system.
[0084] For example, if the real-time temperature data is 90℃, if the data fluctuation is 0.1, then the data will be 90.1, 90.2, etc. At this time, if the preset change rate is set to 0%, all data will be transmitted. If the preset change rate is set to 2%, the data will be judged and will not be uploaded as soon as the data changes. This is generally used to optimize the data volume.
[0085] Assume that the data system needs to record abnormal pressure data, the normal data is 1000Pa, and the allowable fault tolerance range is 990~1010, excluding 990 and 1010. Any data exceeding this range is considered abnormal data and needs to be transmitted to the data system for recording. The data system prompts the abnormal data, and the technician will perform the next step of the data operation after review. Therefore, the preset change rate needs to be set to 1%.
[0086] Assuming that the preset change rate is 5%, the real-time data is 105, and the recorded data is 100, the conclusion drawn from the formula is greater than or equal to the preset change rate, then 105 will be updated to the recorded data for comparison with the real-time data.
[0087] Assuming that the preset change rate is 5%, the real-time data is 101, and the recorded data is 100, the conclusion drawn from the formula is that it is less than the preset change rate, then the current data will not be transmitted. If the data is accumulated by 1, it will only be transmitted when the data accumulates to 105.
[0088] As an optional implementation, the method of uploading the real-time data and the current change rate to the data system in step 204 may include:
[0089] Determining a change rate interval in which the current change rate is located;
[0090] Determine the problem level corresponding to the change rate interval;
[0091] adding the real-time data, the current rate of change, and the problem level to a data packet;
[0092] The data packet is uploaded to a data system so that the data system analyzes the problem of the real-time data based on the data packet.
[0093] Among them, the implementation of this implementation method significantly improves the efficiency of data upload and the analysis ability of the data system by refining the processing flow of the current change rate. First, the current change rate is divided into specific change rate intervals, which can quickly locate the degree of data change and provide a basis for subsequent problem level determination. Then, the problem level is determined according to the change rate interval, which not only makes the severity of the data problem clear, but also helps the data system to respond quickly and take corresponding measures. Finally, the real-time data, current change rate and problem level are integrated into the data package and uploaded, which ensures the integrity and relevance of the data, so that the data system can perform accurate problem analysis based on a comprehensive data package.
[0094] In the embodiment of the present application, the calculated current change rate can be compared with a series of preset change rate intervals to determine which interval the current change rate is in. These preset change rate intervals are usually set based on historical data analysis and business rules to reflect different degrees of data changes.
[0095] Once the change rate interval of the current change rate is determined, the next step is to evaluate the problem level corresponding to the interval. The problem level is usually associated with the severity of the data change. For example, a smaller change rate interval may correspond to a normal or minor problem level, while a larger change rate interval may correspond to a severe or urgent problem level. This level division helps the data system quickly identify the urgency of data problems and take appropriate measures.
[0096] The real-time data, current rates of change, and identified problem levels are then combined into a data package, a structured collection of data that contains all the information necessary for the data system to fully understand and analyze the real-time data.
[0097] Finally, the data packet is uploaded to the data system. After receiving the data packet, the data system will conduct in-depth analysis of the real-time data based on the information in it to identify potential problems or trends. This data packet-based upload and analysis method not only improves the efficiency of data processing, but also ensures the accuracy and completeness of data information, providing strong support for subsequent decision-making.
[0098] The implementation of the above-mentioned steps 201 to 204 ensures the timeliness and accuracy of the data, and can also avoid data accumulation in the data system, reduce the data processing pressure of the data system, and thus improve the data processing efficiency of the data system. In addition, the present application can also improve the scientificity and accuracy of the preset change rate, and also help to more accurately identify abnormal data, thereby enhancing the sensitivity and reliability of the data monitoring and early warning system. In addition, the present application can also simplify complex data analysis processes and improve the accuracy and reliability of data change rate calculations. In addition, the present application can also enhance the flexibility of data processing, help to promptly discover and respond to significant changes in data, and provide strong support for data monitoring and analysis. In addition, the present application can also ensure the integrity and relevance of the data, so that the data system can perform accurate problem analysis based on a comprehensive data packet.
[0099] The present application also provides an application scenario, which applies the above-mentioned data transmission method. Specifically: The data transmission method provided in this embodiment can be applied in the application scenario of the gas system. The preset substation equipment can collect real-time data in the gas application scenario, and obtain the current change rate by analyzing and calculating the real-time data and the recorded data that have been obtained; and the current change rate can be compared with the preset change rate. When the current change rate is greater than or equal to the preset change rate, the real-time data is determined as recorded data, and the real-time data and the current change rate are uploaded to the data system. The data transmission method provided in this embodiment belongs to the link of analyzing the collected real-time data to obtain the current change rate, and uploading the current change rate that meets the requirements to the data system.
[0100] Based on the same inventive concept, the embodiment of the present application also provides a data transmission device for implementing the data transmission method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more data transmission device embodiments provided below can refer to the limitations on the data transmission method above, and will not be repeated here.
[0101] In an exemplary embodiment, Figure 3 As shown, a data transmission device is provided, comprising:
[0102] The first acquisition unit 301 is used to acquire real-time data collected by a preset substation device;
[0103] In the embodiment of the present application, the real-time data is temperature data, pressure data or gas concentration data.
[0104] A second acquisition unit 302 is used to acquire recorded data and a preset change rate matching the real-time data;
[0105] A calculation unit 303, configured to calculate a current change rate using the real-time data and the recorded data if the recorded data is not empty;
[0106] The determination unit 304 is configured to determine the real-time data as the recorded data if the current change rate is greater than or equal to the preset change rate, and upload the real-time data and the current change rate to a data system.
[0107] As an optional implementation manner, the calculation unit 303 uses the real-time data and the recorded data to calculate the current change rate in the following manner:
[0108] Calculating a first absolute value of a difference between the real-time data and the recorded data;
[0109] determining the absolute value of the recorded data as a second absolute value;
[0110] A ratio between the first absolute value and the second absolute value is determined as a current rate of change.
[0111] Among them, this implementation method is implemented to determine the current change rate by introducing the calculation of the first absolute value and the second absolute value. This method can measure the degree of data change more accurately and stably. The first absolute value reflects the direct difference between the real-time data and the recorded data, while the second absolute value is used as a benchmark to ensure that the calculation of the change rate is not affected by the size of the recorded data. This ratio calculation method not only simplifies the complex data analysis process, but also improves the accuracy and reliability of the data change rate calculation, providing a more solid basis for subsequent data processing and decision-making.
[0112] As an optional implementation manner, the calculation unit 303 is further configured to:
[0113] If the recorded data is empty, obtaining a standard value matching the real-time data;
[0114] Calculating a third absolute value of a difference between the real-time data and the standard value;
[0115] determining the absolute value of the standard value as a fourth absolute value;
[0116] determining a ratio between the third absolute value and the fourth absolute value as a real-time change rate;
[0117] If the real-time change rate is greater than or equal to the preset change rate, the steps of determining the real-time data as the recorded data and uploading the real-time data and the current change rate to the data system are performed.
[0118] Among them, by implementing this implementation method, by introducing a standard value that matches the real-time data, the change rate of the real-time data can continue to be effectively calculated. Calculating the ratio of the third absolute value to the fourth absolute value as the real-time change rate not only provides a reliable method for evaluating data changes in the absence of historical data, but also ensures the continuity and accuracy of the change rate calculation. When the real-time change rate reaches or exceeds the preset threshold, the recorded data can be updated in a timely manner and relevant information can be uploaded to the data system, which not only enhances the flexibility of data processing, but also helps to promptly discover and respond to significant changes in the data, providing strong support for data monitoring and analysis.
[0119] As an optional implementation manner, the preset change rate may be determined in the following manner:
[0120] Acquire a plurality of historical normal data matching the real-time data;
[0121] Calculate historical normal average data using the plurality of historical normal data;
[0122] Calculate the change rate between each historical normal data and the historical normal average data to obtain the historical change rate corresponding to each historical normal data;
[0123] determining a maximum historical rate of change from the historical rates of change;
[0124] The sum of the maximum historical change rate and a preset threshold is determined as the preset change rate.
[0125] Among them, by implementing this implementation method, the rationality and adaptability of the preset threshold are ensured by comprehensively considering the historical normal data. By calculating the average value of the historical normal data and deriving the change rate of each historical data based on this, the normal fluctuation range of the data can be fully grasped. Furthermore, the maximum historical change rate is selected as a reference and added to the preset threshold, so that the preset change rate not only reflects the historical fluctuation limit of the data, but also has a certain safety margin. This method not only improves the scientificity and accuracy of the preset change rate, but also helps to more accurately identify abnormal data, thereby enhancing the sensitivity and reliability of the data monitoring and early warning system.
[0126] As an optional implementation manner, the determination unit 304 may upload the real-time data and the current change rate to the data system in the following manner:
[0127] Calculating a first absolute value of a difference between the real-time data and the recorded data;
[0128] determining the absolute value of the recorded data as a second absolute value;
[0129] A ratio between the first absolute value and the second absolute value is determined as a current rate of change.
[0130] Among them, the implementation of this implementation method significantly improves the efficiency of data upload and the analysis ability of the data system by refining the processing flow of the current change rate. First, the current change rate is divided into specific change rate intervals, which can quickly locate the degree of data change and provide a basis for subsequent problem level determination. Then, the problem level is determined according to the change rate interval, which not only makes the severity of the data problem clear, but also helps the data system to respond quickly and take corresponding measures. Finally, the real-time data, current change rate and problem level are integrated into the data package and uploaded, which ensures the integrity and relevance of the data, so that the data system can perform accurate problem analysis based on a comprehensive data package.
[0131] The implementation of the above-mentioned implementation mode ensures the timeliness and accuracy of the data, and can also avoid data accumulation in the data system, reduce the data processing pressure of the data system, and thus improve the data processing efficiency of the data system. In addition, the present application can also improve the scientificity and accuracy of the preset change rate, and also help to more accurately identify abnormal data, thereby enhancing the sensitivity and reliability of the data monitoring and early warning system. In addition, the present application can also simplify complex data analysis processes and improve the accuracy and reliability of data change rate calculations. In addition, the present application can also enhance the flexibility of data processing, help to promptly discover and respond to significant changes in data, and provide strong support for data monitoring and analysis. In addition, the present application can also ensure the integrity and relevance of the data, so that the data system can perform accurate problem analysis based on comprehensive data packets.
[0132] In an exemplary embodiment, a computer device is provided. The computer device may be a server or a terminal. The internal structure diagram thereof may be as follows: Figure 4As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data transmission data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a data transmission method is implemented.
[0133] Those skilled in the art will understand that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0134] In an exemplary embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.
[0135] In an exemplary embodiment, a computer-readable storage medium is provided, storing a computer program, and when the computer program is executed by a processor, the steps in the above method embodiments are implemented.
[0136] In an exemplary embodiment, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in the above method embodiments are implemented.
[0137] In an exemplary embodiment, a chip is provided, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the steps in the above-mentioned method embodiments and achieve the same technical effects. To avoid repetition, they are not described here.
[0138] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0139] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0140] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM may be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0141] The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. The non-relational database may include a distributed database based on blockchain, etc., but is not limited thereto. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but is not limited thereto.
[0142] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0143] This article uses specific examples to illustrate the principles and implementation methods of this application. The description of the above embodiments is only used to help understand the method and core ideas of this application. At the same time, for those skilled in the art, according to the ideas of this application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting this application.
Claims
1. A data transmission method, characterized in that: The data transmission method comprises: Obtain real-time data collected by preset substation equipment; Acquiring recorded data and a preset change rate matching the real-time data; If the recorded data is not empty, the real-time data and the recorded data are used to calculate the current change rate; If the current change rate is greater than or equal to the preset change rate, the real-time data is determined as the recorded data, and the real-time data and the current change rate are uploaded to the data system.
2. The data transmission method according to claim 1, characterized in that: The using the real-time data and the recorded data to calculate the current change rate specifically includes: Calculating a first absolute value of a difference between the real-time data and the recorded data; determining the absolute value of the recorded data as a second absolute value; A ratio between the first absolute value and the second absolute value is determined as a current rate of change.
3. The data transmission method according to claim 1, characterized in that: The data transmission method further comprises: If the recorded data is empty, obtaining a standard value matching the real-time data; Calculating a third absolute value of a difference between the real-time data and the standard value; determining the absolute value of the standard value as a fourth absolute value; determining a ratio between the third absolute value and the fourth absolute value as a real-time change rate; If the real-time change rate is greater than or equal to the preset change rate, the steps of determining the real-time data as the recorded data and uploading the real-time data and the current change rate to the data system are performed.
4. The data transmission method according to any one of claims 1 to 3, characterized in that: The preset change rate is determined in the following manner: Acquire a plurality of historical normal data matching the real-time data; Calculate historical normal average data using the plurality of historical normal data; Calculate the change rate between each historical normal data and the historical normal average data to obtain the historical change rate corresponding to each historical normal data; determining a maximum historical rate of change from the historical rates of change; The sum of the maximum historical change rate and a preset threshold is determined as the preset change rate.
5. The data transmission method according to claim 1, characterized in that: The uploading of the real-time data and the current change rate to the data system specifically includes: Determining a change rate interval in which the current change rate is located; Determine the problem level corresponding to the change rate interval; adding the real-time data, the current rate of change, and the problem level to a data packet; The data packet is uploaded to a data system so that the data system analyzes the problem of the real-time data based on the data packet.
6. The data transmission method according to claim 1, characterized in that: The real-time data is temperature data, pressure data or gas concentration data.
7. A data transmission device, characterized in that: The data transmission device comprises: A first acquisition unit, used to acquire real-time data collected by a preset substation device; A second acquisition unit, used to acquire recorded data and a preset change rate matching the real-time data; a calculation unit, configured to calculate a current change rate using the real-time data and the recorded data if the recorded data is not empty; A determination unit is used to determine the real-time data as the recorded data if the current change rate is greater than or equal to the preset change rate, and upload the real-time data and the current change rate to a data system.
8. A computer device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the data transmission method according to any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the data transmission method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the data transmission method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
IOT (Internet of Things) communication method and device
CN109246210A
Data acquisition method
CN110113777A
Internet-of-Things communication data topology method and system for reducing data acquisition terminals
CN111800503A
Data processing method and device used during real-time calculation abnormity and electronic equipment
CN113590989A
Data processing method and device, computer equipment and storage medium
CN115994386A