A data transmission method, apparatus, device, medium and product
By calculating the real-time data change rate of the gas station equipment in the gas system and uploading the data when a threshold is reached, the problem of data accumulation is solved, and the data processing efficiency and system responsiveness are improved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-13
- Publication Date
- 2026-03-27
AI Technical Summary
In gas systems, when data is updated frequently and there are numerous measurement points, the existing data transmission methods lead to data accumulation in the data system, increasing the data processing pressure and reducing data processing efficiency.
By obtaining the rate of change of real-time data and recorded data from the substation equipment, the current rate of change is calculated, and when the rate of change reaches or exceeds a preset threshold, the real-time data and the rate of change are uploaded to the data system to avoid data accumulation.
It ensures the timeliness and accuracy of data, reduces the processing pressure on the data system, improves data processing efficiency, and enhances the sensitivity and reliability of the data monitoring and early warning system.
Smart Images

Figure CN120017586B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of data processing, and in particular to a data transmission method, device, equipment, medium and product. BACKGROUND
[0002] In the application scenario of a gas system, a data system needs to receive real-time data of each station and pipe network, so that a management personnel can monitor the working condition of equipment in real time and handle abnormal data in a timely manner. In the current data transmission mode, when data changes, the changed data is immediately uploaded to the data system.
[0003] However, it is found in implementation that, in the case of frequent data updates and a large number of measuring points, uploading all changed data to the data system can easily cause data accumulation in the data system and increase the data processing pressure of the data system, thereby reducing the data processing efficiency of the data system. SUMMARY
[0004] The purpose of the present application is to provide a data transmission method, device, equipment, medium and product, which can avoid data accumulation in the data system, reduce the data processing pressure of the data system, and thereby improve the data processing efficiency of the data system.
[0005] To achieve the above purpose, the present application provides the following solutions.
[0006] In a first aspect, the present application provides a data transmission method, comprising:
[0007] obtaining real-time data collected by a preset substation device;
[0008] obtaining record data matched with the real-time data and a preset change rate;
[0009] if the record data is not empty, calculating a current change rate using the real-time data and the record data;
[0010] if the current change rate is greater than or equal to the preset change rate, determining the real-time data as the record data, and uploading the real-time data and the current change rate to a data system.
[0011] Optionally, the calculating a current change rate using the real-time data and the record data specifically comprises:
[0012] calculating a first absolute value of a difference between the real-time data and the record data;
[0013] determining an absolute value of the record data as a second absolute value;
[0014] determining a ratio between the first absolute value and the second absolute value as the current change rate.
[0015] Optionally, the data transmission method further comprises:
[0016] if the record data is empty, obtaining a standard value matched with the real-time data;
[0017] calculating a third absolute value of a difference between the real-time data and the standard value;
[0018] determining an 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, performing the steps of determining the real-time data as the record data and uploading the real-time data and the current change rate to a data system.
[0021] Optionally, the determination of the preset change rate is specifically:
[0022] obtaining a plurality of historical normal data matched with the real-time data;
[0023] calculating historical normal average data from the plurality of historical normal data;
[0024] calculating a change rate between each historical normal data and the historical normal average data to obtain a historical change rate corresponding to each historical normal data respectively;
[0025] determining a maximum historical change rate from the historical change rates;
[0026] determining a sum of the maximum historical change rate and a preset threshold value as the preset change rate.
[0027] Optionally, the uploading of the real-time data and the current change rate to the data system specifically comprises:
[0028] determining a change rate interval in which the current change rate is located;
[0029] determining a problem level corresponding to the change rate interval;
[0030] adding the real-time data, the current change rate and the problem level to a data packet;
[0031] uploading the data packet to the data system, so that the data system analyzes a 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, comprising:
[0034] a first obtaining unit, configured to obtain real-time data collected by a preset substation device;
[0035] a second obtaining unit, configured to obtain record data matched with the real-time data and a preset change rate;
[0036] a calculating unit, configured to, if the record data is not empty, calculate a current change rate by using the real-time data and the record data;
[0037] a determining unit, configured to, if the current change rate is greater than or equal to the preset change rate, determine the real-time data as the record data, 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 the data transmission method according to any one of the above.
[0039] In a fourth aspect, the present application provides a computer readable storage medium, which stores a computer program, wherein the computer program is executable on a processor to implement the steps of the data transmission method according to any one of the above.
[0040] In a fifth aspect, the present application provides a computer program product, comprising a computer program, wherein the computer program is executable on a processor to implement the steps of the data transmission method according to any one of the above.
[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, the processor is configured to run a program or an instruction, and the processor executes the program or the instruction to implement the steps of the data transmission method according to any one of the above.
[0042] According to the embodiments of the present application, the following technical effects are achieved:
[0043] The application provides a data transmission method, device, equipment, medium and product. Real-time data of a preset substation device is automatically acquired, and is matched with recorded data and a preset change rate, so that dynamic monitoring and analysis of the data are realized. When the recorded data exists, a current change rate is calculated according to the real-time data and the recorded data, and the current change rate is compared with the preset change rate, so that the significance of the data change can be accurately judged. Once the current change rate reaches or exceeds a preset threshold, the recorded data is updated in real time, and the real-time data and the current change rate are uploaded to a data system, so that the timeliness and accuracy of the data are ensured, data accumulation in the data system is avoided, the data processing pressure of the data system is reduced, and the data processing efficiency of the data system is improved. BRIEF DESCRIPTION OF DRAWINGS
[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings needed in the embodiments will be briefly introduced. Obviously, the drawings in the following description only constitute some embodiments of the present application, and for those skilled in the art, other drawings can be obtained without creative labor.
[0045] Figure 1 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 an embodiment of the present application;
[0047] Figure 3 A functional module diagram of a data transmission device provided in an embodiment of the present application.
[0048] Figure 4 A structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0049] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments only constitute some embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the present application.
[0050] The above-mentioned purposes, features and advantages of the present application can be more obvious and easy to understand. The present application will be further described in detail below with reference to the drawings and specific embodiments.
[0051] The data transmission method provided in the embodiments of the present application can be applied in an application environment as shown in Figure 1 Figure 1 The system comprises a plurality of substation devices, a plurality of substation acquisition hosts and a data system, and one substation device corresponds to one substation acquisition host. The substation device is used to acquire real-time data; the substation acquisition host is used to acquire the real-time data acquired by the preset substation device, acquire record data matched with the real-time data and a preset change rate, and in the case that the record data is not empty, calculate a current change rate by using the real-time data and the record data, and in the case that the current change rate is greater than or equal to the preset change rate, determine the real-time data as the record data, and upload the real-time data and the current change rate to the data system.
[0052] The data system can be, but is not limited to, a system arranged on various desktop computers, notebook computers, smart phones, tablet computers, Internet of Things devices, portable wearable devices, independent servers, server clusters composed of a plurality of servers, or cloud servers. The Internet of Things device can be a smart speaker, a smart television, a smart air conditioner, a smart vehicle device, etc. The portable wearable device can be a smart watch, a smart bracelet, a head-mounted device, etc.
[0053] In an exemplary embodiment, as shown in Figure 2 , a data transmission method is provided, which is executed by a computer device, specifically, can be executed by a terminal or a server alone or jointly, and in the embodiments of the present application, the method is applied to the substation acquisition host in Figure 1 , which comprises the following steps 201 to 204. Wherein:
[0054] Step 201, acquiring real-time data acquired by a preset substation device.
[0055] In the embodiments of the present application, the real-time data is temperature data, pressure data or gas concentration data. The preset substation device can be a bottom-layer device, such as a sensor, a programmable logic controller (PLC) or other physical devices. The real-time data is the data in the internal register of the device, which is the data information reflecting the operation of the device when the device is running, and can be transmitted through a communication protocol, such as ModBus.
[0056] Step 202, acquiring record data matched with the real-time data and a preset change rate.
[0057] In the embodiments of the present application, different real-time data correspond to different preset change rates, for example, the preset change rates corresponding to the temperature data and the pressure data are different. The preset change rate is set according to the requirements of different data systems for data, for example, the purpose of setting the change rate for the temperature data is to optimize the data volume, and the pressure is to count abnormal data, which needs to be set according to the purpose of the manager.
[0058] In the embodiments of the present application, the record data can be data stored according to previous real-time data, and if a change rate between the previous real-time data and a previous record 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 record data.
[0059] In addition, if the obtained real-time data is the first real-time data obtained first, at this time, the record data is empty, that is, the record data does not store real data. Therefore, a standard value matching the real-time data can be obtained, and the standard value and the real-time data are used to calculate a current change rate.
[0060] As an optional implementation, the determination manner of the preset change rate can be specifically as follows:
[0061] Obtaining a plurality of historical normal data matching the real-time data;
[0062] Calculating historical normal average data from the plurality of historical normal data;
[0063] Calculating a change rate between each historical normal data and the historical normal average data to obtain a historical change rate corresponding to each historical normal data respectively;
[0064] Determining a maximum historical change rate from the historical change rates;
[0065] Determining a sum of the maximum historical change rate and a preset threshold value as the preset change rate.
[0066] In this implementation, the rationality and adaptability of the preset threshold value are ensured by comprehensively considering the historical normal data. By calculating the average value of the historical normal data and obtaining the change rate of each historical data based on the average value, the normal fluctuation range of the data can be comprehensively grasped. Further, the maximum historical change rate is selected as a reference and added to the preset threshold value, so that the preset change rate not only reflects the historical fluctuation limit of the data, but also has a certain safety margin. This way 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 the embodiments of the present application, the maximum historical change rate can be the maximum change rate of the normal data, so a value slightly greater than the maximum historical change rate can be set as the preset change rate, thereby ensuring the identification of normal data and abnormal data. At this time, the preset threshold value can be obtained, the preset threshold value is a positive number, the maximum historical change rate can be added to the preset threshold value to obtain the preset change rate.
[0068] In step 203, if the record data is not empty, the real-time data and the record data are used to calculate a current change rate.
[0069] As an optional implementation, the manner of calculating the current change rate using the real-time data and the recorded data in step 203 can include:
[0070] calculating a first absolute value of the difference between the real-time data and the recorded data;
[0071] determining an absolute value of the recorded data as a second absolute value;
[0072] determining a ratio between the first absolute value and the second absolute value as the current change rate.
[0073] In this implementation, the current change rate is determined by introducing the calculation of the first absolute value and the second absolute value, which can more accurately and stably measure the degree of data change. The first absolute value reflects the direct difference between the real-time data and the recorded data, while the second absolute value serves as a reference 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 embodiments of the present application, the formula for calculating the current change rate can be: |a-b| / |b|>=c, where a represents the real-time data, b represents the recorded data, and c represents the current change rate.
[0075] As an optional implementation, if the recorded data is empty, the following steps can also be performed:
[0076] obtaining a standard value matching the real-time data;
[0077] calculating a third absolute value of the difference between the real-time data and the standard value;
[0078] determining an 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] In this embodiment, by introducing a standard value matched with the real-time data, the change rate of the real-time data can be effectively calculated. The ratio of the third absolute value and 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 record data can be updated in time and the relevant information can be uploaded to the data system, which not only enhances the flexibility of data processing, but also helps to discover and respond to significant changes in data in time, 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 that of the current change rate, which will not be described here.
[0083] In 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 record data, and the real-time data and the current change rate are uploaded to the data system.
[0084] For example, assuming that the real-time temperature data is 90℃, if the data fluctuation is a change of 0.1, there will be data such as 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 the data will not be uploaded as soon as it changes. This is generally used to optimize the amount of data.
[0085] Suppose the data system needs to record abnormal data of pressure, the normal data is 1000Pa, the allowed fault tolerance interval is 990-1010, excluding 990 and 1010, and the data exceeding the interval 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 reviews the data before proceeding to the next step, so the preset change rate needs to be set to 1% at present.
[0086] Suppose the preset change rate is set to 5%, the real-time data is 105, and the record data is 100. According to the formula, the conclusion is greater than or equal to the preset change rate, and the data is transmitted, so 105 will be updated as the record data and compared with the real-time data.
[0087] Suppose the preset change rate is set to 5%, the real-time data is 101, and the record data is 100. According to the formula, the conclusion is less than the preset change rate, so the current data is not transmitted. If the data is accumulated by 1, only when the data is accumulated to 105, it will be transmitted.
[0088] As an optional embodiment, the way of step 204 uploading the real-time data and the current change rate to the data system can include:
[0089] determining a change rate interval in which the current change rate is located;
[0090] determining a problem level corresponding to the change rate interval;
[0091] adding the real-time data, the current change rate, and the problem level to a data package;
[0092] uploading the data package to a data system, so that the data system analyzes the real-time data based on the data package.
[0093] By implementing this embodiment, the efficiency of data uploading and the analysis capability of the data system are significantly improved through refining the processing flow of the current change rate. First, dividing the current change rate into a specific change rate interval can quickly locate the degree of data change and provide a basis for subsequent problem level determination. Then, determining the problem level according to the change rate interval not only makes the severity of the data problem clear, but also helps the data system to respond quickly and take appropriate measures. Finally, integrating the real-time data, the current change rate, and the problem level into the data package for uploading ensures the completeness and relevance of the data, so that the data system can perform accurate problem analysis based on the comprehensive data package.
[0094] In the embodiments of the present application, the calculated current change rate can be compared with a series of preset change rate intervals to determine which interval it is in. These preset change rate intervals are usually set according to historical data analysis and business rules, aiming to reflect different degrees of data change.
[0095] Once the change rate interval in which the current change rate is located is determined, the problem level corresponding to the interval will be evaluated next. The problem level is usually associated with the severity of 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 serious or urgent problem level. This classification helps the data system quickly identify the urgency of the data problem and take appropriate handling measures.
[0096] Subsequently, the real-time data, the current change rate, and the determined problem level and other information will be integrated into a data package. This data package is a structured data set that contains all the necessary information so that the data system can fully understand and analyze the real-time data.
[0097] Finally, this data package will be uploaded to the data system. After receiving the data package, the data system will conduct in-depth analysis on the real-time data based on the information in the data package to identify potential problems or trends. This data package-based uploading and analysis method not only improves the efficiency of data processing, but also ensures the accuracy and integrity of data information, providing strong support for subsequent decision-making.
[0098] Implementing steps 201 to 204 ensures the timeliness and accuracy of the data, and can also avoid data accumulation in the data system, reducing the data processing pressure of the data system, thereby improving 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 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 the complex data analysis process and improve the accuracy and reliability of the data change rate calculation. In addition, the present application can also enhance the flexibility of data processing, help to discover and respond to significant changes in data in a timely manner, and provide strong support for data monitoring and analysis. In addition, the present application can also ensure the integrity and correlation of the data, so that the data system can conduct accurate problem analysis based on comprehensive data packages.
[0099] The present application also provides an application scenario for applying the above-mentioned data transmission method. Specifically, the data transmission method provided by the present embodiment can be applied in the application scenario of a gas system. The preset substation device can collect real-time data in the gas application scenario, calculate the current change rate by analyzing and calculating the real-time data and the recorded data obtained, and compare the current change rate with the preset change rate. In the case where 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. The data transmission method provided by the present embodiment belongs to the link of analyzing the collected real-time data to obtain the current change rate and uploading the current change rate meeting the requirements to the data system.
[0100] Based on the same inventive concept, the present embodiment also provides a data transmission device for implementing the above-mentioned data transmission method. The implementation scheme of the problem solving provided by the device is similar to the implementation scheme described in the above method, so the specific limitations in one or more data transmission device embodiments provided below can be referred to the limitations of the data transmission method in the above text, which will not be repeated here.
[0101] In one exemplary embodiment, as shown in Figure 3 a data transmission device is provided, comprising:
[0102] The first acquisition unit 301 is configured to acquire real-time data collected by a preset substation device.
[0103] In the embodiments of the present application, the real-time data is temperature data, pressure data or gas concentration data.
[0104] The second acquisition unit 302 is configured to acquire record data matched with the real-time data and a preset change rate.
[0105] The calculation unit 303 is configured to, if the record data is not empty, calculate a current change rate by using the real-time data and the record data.
[0106] The determination unit 304 is configured to, if the current change rate is greater than or equal to the preset change rate, determine the real-time data as the record data, and upload the real-time data and the current change rate to a data system.
[0107] As an optional implementation, the calculation unit 303 calculates the current change rate by using the real-time data and the record data in the following manner:
[0108] calculating a first absolute value of a difference between the real-time data and the record data;
[0109] determining an absolute value of the record data as a second absolute value;
[0110] determining a ratio between the first absolute value and the second absolute value as the current change rate.
[0111] In this implementation, the current change rate is determined by introducing the calculation of the first absolute value and the second absolute value, which can more accurately and stably measure the degree of data change. The first absolute value reflects the direct difference between the real-time data and the record data, and the second absolute value serves as a reference to ensure that the calculation of the change rate is not affected by the size of the record 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, the calculation unit 303 is further configured to:
[0113] if the record data is empty, acquiring a standard value matched with the real-time data;
[0114] calculating a third absolute value of a difference between the real-time data and the standard value;
[0115] determining an 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 step of determining the real-time data as the record data and uploading the real-time data and the current change rate to the data system is performed.
[0118] In this embodiment, by introducing a standard value matched with the real-time data, the change rate of the real-time data can be effectively calculated continuously. The ratio of the third absolute value to the fourth absolute value is calculated as the real-time change rate, which 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 record data can be updated in time and relevant information can be uploaded to the data system, which not only enhances the flexibility of data processing, but also helps to discover and respond to significant changes in data in time, providing strong support for data monitoring and analysis.
[0119] As an optional embodiment, the determination of the preset change rate can be specifically as follows:
[0120] Obtaining a plurality of historical normal data matched with the real-time data;
[0121] Calculating a historical normal average data using the plurality of historical normal data;
[0122] Calculating a change rate between each historical normal data and the historical normal average data to obtain a historical change rate corresponding to each historical normal data respectively;
[0123] Determining a maximum historical change rate from the historical change rates;
[0124] Determining the sum of the maximum historical change rate and a preset threshold as the preset change rate.
[0125] In this embodiment, by comprehensively considering the historical normal data, the rationality and adaptability of the preset threshold are ensured. By calculating the average value of the historical normal data and obtaining the change rate of each historical data based on the average value, the normal fluctuation range of the data can be comprehensively grasped. Further, 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 embodiment, the determination unit 304 can upload the real-time data and the current change rate to the data system in the following manner:
[0127] determining a first absolute value of a difference between the real-time data and the recorded data;
[0128] determining an absolute value of the recorded data as a second absolute value;
[0129] determining a ratio between the first absolute value and the second absolute value as a current change rate.
[0130] By implementing this embodiment, the efficiency of data uploading and the analysis capability of the data system are significantly improved through the process of refining the current change rate. First, by dividing the current change rate into specific change rate intervals, the degree of data change can be quickly located, providing a basis for subsequent problem level determination. Then, according to the change rate interval, the problem level is determined, 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, the current change rate and the problem level are integrated into the data packet for uploading, ensuring the integrity and relevance of the data, so that the data system can accurately analyze the problem based on the comprehensive data packet.
[0131] By implementing the above-mentioned embodiments, the timeliness and accuracy of the data are ensured, and data accumulation in the data system can be avoided, reducing the data processing pressure of the data system and thus improving the data processing efficiency of the data system. In addition, the scientificity and accuracy of the preset change rate can be improved, and abnormal data can be more accurately identified, thereby enhancing the sensitivity and reliability of the data monitoring and early warning system. In addition, the application can simplify the complex data analysis process and improve the accuracy and reliability of data change rate calculation. In addition, the application can enhance the flexibility of data processing, help to discover and respond to significant changes in data in a timely manner, and provide strong support for data monitoring and analysis. In addition, the application can ensure the integrity and relevance of the data, so that the data system can accurately analyze the problem based on the comprehensive data packet.
[0132] In an exemplary embodiment, a computer device, which can be a server or a terminal, is provided, and its internal structure diagram can be as shown in Figure 4As shown in the figure. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through the system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capability. 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 the external device. The communication interface of the computer device is used to communicate with the terminal outside through the network connection. The computer program is executed by the processor to realize a data transmission method.
[0133] Those skilled in the art can understand that, Figure 4 The structure shown in the figure is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. The specific computer device can include more or fewer components than those shown in the figure, or combine certain components, or have a different component arrangement.
[0134] In one exemplary embodiment, a computer device is also provided, including a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the steps in each of the above method embodiments.
[0135] In one exemplary embodiment, a computer readable storage medium is provided, storing a computer program, which is executed by a processor to implement the steps in each of the above method embodiments.
[0136] In one exemplary embodiment, a computer program product is provided, including a computer program, which is executed by a processor to implement the steps in each of the above method embodiments.
[0137] In one exemplary embodiment, a chip is provided, including a processor and a communication interface, the communication interface and the processor are coupled, the processor is used to run a program or an instruction, to implement the steps in each of the above method embodiments, and to achieve the same technical effects. To avoid repetition, it will not be repeated here.
[0138] It should be understood that the chip mentioned in the embodiments of the present application can also be referred to as 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 equipment information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in the present application are all information and data authorized by the user or authorized by all parties, and the collection, use and processing of related data need to comply with relevant regulations.
[0140] It can be understood by those skilled in the art that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing related 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 above-mentioned embodiments of each method. In the embodiments provided in the present application, any reference to memory, database or other medium can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (Read-Only Memory, ROM), magnetic tape, floppy disk, flash memory, optical storage, high-density embedded non-volatile memory, resistive memory (ReRAM), magnetic variable memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric memory (Ferroelectric Random Access Memory, FRAM), phase change memory (Phase Change Memory, PCM), graphene memory, etc. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, etc. As an illustration but not limitation, RAM can be in various forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), etc.
[0141] The database involved in the embodiments provided in the present application can include at least one of a relational database and a non-relational database. The non-relational database can include a distributed database based on a block chain, etc., without being limited thereto. The processor involved in the embodiments provided in the present application can be a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., without being limited thereto.
[0142] The technical features of the above embodiments can be combined arbitrarily. In order to make the description simple, not all possible combinations of the technical features in the above embodiments are described, but as long as the combination of the technical features does not exist contradictory, it should be considered as the scope of the present application.
[0143] The principles and implementations of the present application are described in detail with specific examples in this paper, and the above examples are only used to help understand the method of the present application and its core idea; at the same time, for those skilled in the art, according to the idea of the present application, the specific implementation and application range will be changed. Therefore, the content of the specification should not be understood as a limitation of the present application.
Claims
1. A data transmission method, characterized by, The data transmission method comprises: acquiring real-time data collected by a preset substation device; wherein the real-time data is temperature data, pressure data or gas concentration data; the preset substation device is a sensor or a programmable logic controller (PLC); acquiring record data matching the real-time data and a preset change rate; wherein the preset change rate of the temperature data is 2%, and the preset change rate of the pressure data is 1%; if the record data is not empty, using the real-time data and the record data to calculate a current change rate; if the current change rate is greater than or equal to the preset change rate, determining the real-time data as the record data, and uploading the real-time data and the current change rate to a data system; wherein the preset change rate is determined in the following manner: acquiring a plurality of historical normal data matching the real-time data; calculating historical normal average data using the plurality of historical normal data; calculating a change rate between each historical normal data and the historical normal average data to obtain a historical change rate corresponding to each historical normal data respectively; determining a maximum historical change rate from the historical change rates; determining the sum of the maximum historical change rate and a preset threshold value as the preset change rate; and the uploading of the real-time data and the current change rate to the data system specifically comprises: determining a change rate interval in which the current change rate is located; wherein the change rate interval is set according to historical data analysis and business rules; determining a problem level corresponding to the change rate interval; wherein a smaller change rate interval corresponds to a slight problem level, and a larger change rate interval corresponds to a serious problem level; adding the real-time data, the current change rate and the problem level to a data packet; uploading the data packet to the data system to enable the data system to analyze the problem of the real-time data based on the data packet; and the calculation of the current change rate using the real-time data and the record data specifically comprises: calculating a first absolute value of a difference between the real-time data and the record data; determining an absolute value of the record data as a second absolute value; determining a ratio between the first absolute value and the second absolute value as the current change rate; wherein the calculation formula of the current change rate is: |a-b| / |b|>=c; wherein a represents the real-time data, b represents the record data, and c represents the current change rate; and the data transmission method further comprises: if the record data is empty, acquiring 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 an 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, performing the steps of determining the real-time data as the record data and uploading the real-time data and the current change rate to the data system.
2. A data transmission apparatus characterized by comprising: The data transmission device comprises: The first acquisition unit is configured to acquire real-time data collected by a preset substation device, wherein the real-time data is temperature data, pressure data, or gas concentration data, and the preset substation device is a sensor or a programmable logic controller (PLC); The second acquisition unit is configured to acquire record data matched with the real-time data and a preset change rate, wherein the preset change rate of the temperature data is 2%, and the preset change rate of the pressure data is 1%; The calculation unit is configured to calculate a current change rate using the real-time data and the record data if the record data is not empty; The determination unit is configured to determine the real-time data as the record data and upload the real-time data and the current change rate to a data system if the current change rate is greater than or equal to the preset change rate; The preset change rate is determined in the following manner: a plurality of historical normal data matched with the real-time data are acquired; historical normal average data are calculated using the plurality of historical normal data; a change rate between each historical normal data and the historical normal average data is calculated to obtain a historical change rate corresponding to each historical normal data, respectively; a maximum historical change rate is determined from the historical change rates; a sum of the maximum historical change rate and a preset threshold is determined as the preset change rate; The determination unit uploads the real-time data and the current change rate to the data system in the following manner: a change rate interval in which the current change rate is located is determined, wherein the change rate interval is set according to historical data analysis and business rules; a problem level corresponding to the change rate interval is determined, wherein a smaller change rate interval corresponds to a slight problem level, and a larger change rate interval corresponds to a serious problem level; the real-time data, the current change rate, and the problem level are added to a data packet; the data packet is uploaded to the data system, so that the data system analyzes a problem of the real-time data based on the data packet; The calculation unit calculates the current change rate using the real-time data and the record data if the record data is not empty in the following manner: a first absolute value of a difference between the real-time data and the record data is calculated; an absolute value of the record data is determined as a second absolute value; a ratio between the first absolute value and the second absolute value is determined as the current change rate; The calculation formula of the current change rate is as follows: |a-b| / |b|>=c; wherein a represents the real-time data, b represents the record data, and c represents the current change rate; The calculation unit is further configured to: acquire a standard value matched with the real-time data if the record data is empty; calculate a third absolute value of a difference between the real-time data and the standard value; determine an absolute value of the standard value as a fourth absolute value; determine 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 determining unit is controlled to determine the real-time data as the record data and upload the real-time data and the current change rate to a data system.
3. A computer device comprising: A memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the data transmission method of claim 1.
4. A computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to implement the steps of the data transmission method of claim 1.
5. A computer program product comprising a computer program, characterized in that, The computer program is executed by the processor to implement the steps of the data transmission method of claim 1. The computer program is executed by the processor to implement the steps of the data transmission method of claim 1.
Citation Information
Patent Citations
IOT (Internet of Things) communication method and device
CN109246210A
Internet-of-Things communication data topology method and system for reducing data acquisition terminals
CN111800503A
5g-based abnormity diagnosis method and apparatus for nuclear power device, and computer device
WO2024098668A1