Industrial and commercial gas data processing method and system based on internet of things and single-chip microcomputer
By combining the Internet of Things with a microcontroller, the system collects real-time data on gas calorific value and flow rate, establishes and verifies the internal circulation characteristics of the system, and solves the losses and safety risks caused by calorific value differences in traditional gas management systems, thus achieving precise gas management and safety monitoring.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-07
- Publication Date
- 2026-03-31
AI Technical Summary
Traditional gas management systems lack a unified platform and logical framework, making it difficult to link different monitoring indicators, which affects management efficiency and increases operating costs and safety risks. At the same time, losses caused by differences in calorific value between gas companies and industrial and commercial users are hard to avoid.
The industrial and commercial gas data processing method based on the Internet of Things and microcontrollers establishes the comprehensive characteristics of the system's internal circulation by collecting gas calorific value and flow data in real time, and performs double-sided verification processing to ensure that the amount of gas with calorific value involved in the calculation is accurate, thereby achieving precise billing and safety monitoring.
It improves the accuracy and safety of gas management, reduces unnecessary costs, ensures users pay according to actual energy consumption, and enhances the system's operational stability and information transmission efficiency.
Smart Images

Figure CN119940722B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of comprehensive gas data processing, specifically to a method and system for processing industrial and commercial gas data based on the Internet of Things and a microcontroller. Background Technology
[0002] Natural gas, as a clean and efficient energy source, plays an increasingly important role in residential life and industrial production. As the core unit of gas supply and management, gas operating companies face complex and crucial tasks such as managing gas consumption by large end-users and ensuring safe production.
[0003] First, traditional gas usage management technologies have significant limitations. Most gas equipment and facilities only have basic flow counting and billing functions. However, in real-world scenarios, the heat generated by natural gas for the same volume or flow rate is related to its calorific value. The actual calorific value of the gas purchased by the gas company may differ from the standard calorific value. Therefore, for industrial and commercial users with higher gas demands, failing to consider the calorific value when billing could cause serious losses for both gas companies and users. Furthermore, existing gas management systems often lack a unified platform and logical framework, making it difficult to effectively link and integrate different monitoring indicators (such as pressure, temperature, flow, or leak alarms). This not only affects the efficiency of gas management but also increases the operating costs and safety risks for gas operators. Summary of the Invention
[0004] To address the shortcomings of existing technologies, this invention provides a method and system for processing industrial and commercial gas data based on the Internet of Things and a microcontroller. By simultaneously collecting gas usage and actual calorific value and accurately calculating the amount of gas with calorific value involved in the calculation, it helps industrial and commercial users to more accurately calculate gas costs and reduce unnecessary cost expenditures.
[0005] To achieve the above objectives, this invention provides a method for processing industrial and commercial gas data based on the Internet of Things and a microcontroller, comprising:
[0006] S1. Establish real-time gas status characteristics for industrial and commercial gas based on the data center server and the industrial and commercial intelligent terminal;
[0007] S2. Establish the comprehensive characteristics of the internal circulation of industrial and commercial gas using the real-time gas status characteristics and corresponding natural gas flow data;
[0008] S3. Based on the comprehensive characteristics of the internal circulation of industrial and commercial gas, perform two-sided verification processing to obtain the industrial and commercial gas data processing results.
[0009] Preferably, the establishment of real-time gas status characteristics for industrial and commercial gas based on the data center server and the industrial and commercial intelligent terminal includes:
[0010] S1-1. Obtain gas price information from the data center server as real-time gas price data;
[0011] S1-2, Using the calorific value of gas from industrial and commercial digital terminals as gas calorific value data;
[0012] S1-3. Use the gas calorific value data as the primary characteristic of the gas state;
[0013] S1-4. Use the real-time gas price data as a secondary feature of gas status;
[0014] S1-5. The primary and secondary gas state characteristics are used as real-time gas state characteristics for industrial and commercial gas.
[0015] Furthermore, establishing the comprehensive characteristics of the internal circulation of industrial and commercial gas using the real-time gas status characteristics and corresponding natural gas flow data includes:
[0016] S2-1. Obtain the natural gas flow data corresponding to the real-time gas status characteristics of the industrial and commercial gas;
[0017] S2-2. Establish real-time gas status time-series characteristics and natural gas flow data time-series characteristics using the real-time gas status characteristics and natural gas flow data of the industrial and commercial gas respectively;
[0018] S2-3. Utilize the real-time gas status time-series characteristics and natural gas process data time-series characteristics as the comprehensive internal circulation characteristics of industrial and commercial gas systems.
[0019] Furthermore, the establishment of real-time gas status time-series characteristics and natural gas flow data time-series characteristics using the real-time gas status characteristics and natural gas flow data of the industrial and commercial gas includes:
[0020] S2-2-1. Establish a standard processing time t by utilizing the real-time gas state characteristics of the industrial and commercial gas at the corresponding time.
[0021] S2-2-2. Obtain the primary gas state characteristics corresponding to the real-time gas state characteristics at time t-1, standard processing time t, and time t+1 respectively, and use them as the primary gas state characteristics at the previous time, the primary gas state characteristics at the real-time time, and the primary gas state characteristics at the subsequent time.
[0022] S2-2-3. Using the primary characteristics of the gas state at the preceding time and the primary characteristics of the gas state in real time, the data fluctuation trend of time t-1 and standard processing time t is obtained as the first gas state data trend.
[0023] S2-2-4. Using the primary features of the real-time gas state and the primary features of the gas state at the subsequent time, the data fluctuation trend at the standard processing time t and t+1 is obtained as the second gas state data trend.
[0024] S2-2-5. Use the first gas state data trend and the second gas state data trend as real-time gas state time sequence features.
[0025] S2-2-6. Obtain the natural gas flow rate at time t-1, standard processing time t, and time t+1 respectively as the flow rate data at the preceding time, the real-time flow rate data, and the flow rate data at the following time.
[0026] S2-2-7. Using the aforementioned pre-time flow data and real-time flow data, the data fluctuation trend between time t-1 and standard processing time t is obtained as the first flow data trend;
[0027] S2-2-8. Use the real-time traffic data and the subsequent time-lapse traffic data to obtain the data fluctuation trend at standard processing time t and t+1 as the second traffic data trend;
[0028] S2-2-9. Use the first flow data trend and the second flow data trend as the time series characteristics of natural gas flow data;
[0029] The data fluctuation trend refers to the change trend of adjacent data.
[0030] Furthermore, the industrial and commercial gas data processing results obtained by performing two-sided verification processing based on the comprehensive characteristics of the system internal circulation of the industrial and commercial gas include:
[0031] S3-1. The system-side verification results of industrial and commercial gas are obtained by performing system-side verification processing using the comprehensive characteristics of the system internal circulation of the industrial and commercial gas.
[0032] S3-2. Numerical side verification results of industrial and commercial gas are obtained by using the comprehensive characteristics of the system internal circulation of the industrial and commercial gas.
[0033] S3-3. Use the system-side verification results and numerical-side verification results of the industrial and commercial gas as the data processing results of the industrial and commercial gas.
[0034] Furthermore, the system-side verification results of industrial and commercial gas obtained by utilizing the comprehensive characteristics of the system's internal circulation are as follows:
[0035] S3-1-1. Based on the standard processing time t, the system growth rate of the secondary gas state characteristics corresponding to the real-time gas state characteristics of the industrial and commercial gas is used as real-time uncorrelated standard data.
[0036] S3-1-2. Based on the uncorrelated standard data at the standard processing time t, obtain the uncorrelated standard data at time t-1 and time t+1 as the uncorrelated standard data at the previous time and the uncorrelated standard data at the subsequent time, respectively.
[0037] S3-1-3. Using the aforementioned uncorrelated standard data from the previous time and the real-time uncorrelated standard data, the data fluctuation trend between time t-1 and standard processing time t is obtained as the first uncorrelated standard data trend.
[0038] S3-1-4. Use the uncorrelated standard data of the preceding time and the uncorrelated standard data of the following time to obtain the data fluctuation trend of the standard processing time and time t+1 as the second uncorrelated standard data trend.
[0039] S3-1-5. Determine whether the trend of the first unrelated standard data corresponds to the trend of the first flow data of the system's internal circulation comprehensive characteristics. If yes, execute S3-1-6; otherwise, the system-side verification result is abnormal.
[0040] S3-1-6. Determine whether the trend of the second unrelated standard data corresponds to the trend of the second flow data of the system's internal circulation comprehensive characteristics. If yes, the system-side verification result is normal; otherwise, the system-side verification result is abnormal.
[0041] The system growth rate is the gas price growth rate.
[0042] Furthermore, the numerical verification results of industrial and commercial gas obtained by utilizing the comprehensive characteristics of the system's internal circulation are as follows:
[0043] S3-2-1. Obtain the corresponding historical system internal circulation comprehensive characteristics based on the system internal circulation comprehensive characteristics of the industrial and commercial gas;
[0044] S3-2-2. Establish a gas state-flow feature mapping based on the historical gas state data characteristics and natural gas flow data time-series characteristics of the historical system internal circulation comprehensive characteristics.
[0045] S3-2-3. Determine whether the gas state-flow feature mapping and the system internal circulation comprehensive feature have the same primary gas state feature. If so, use the data position corresponding to the primary gas state feature as the starting position k for numerical verification and execute S3-2-4. Otherwise, update the historical system internal circulation comprehensive feature and return to S3-2-2.
[0046] S3-2-4. Based on the numerical verification starting position k, obtain the primary gas state features at positions k+1 and k+2 respectively to establish a basic sequence of primary gas state features.
[0047] S3-2-5. Based on the numerical verification starting position k, obtain the secondary features of the gas state at the corresponding k+1 and k+2 positions respectively, and establish the basic sequence of secondary features of the gas state.
[0048] S3-2-6. Determine if the data fluctuations of the primary characteristic basic sequence of the gas state and the secondary characteristic basic sequence of the gas state are the same. If so, execute S3-2-7; otherwise, update the numerical verification start position k and return to S3-2-4.
[0049] S3-2-7. Based on the first gas state data trend and the first flow rate data trend of the comprehensive internal circulation characteristics of the system, respectively obtain the corresponding historical first gas state data trend and historical first flow rate data trend.
[0050] S3-2-8. Based on the second gas state data trend and the second flow data trend of the comprehensive internal circulation characteristics of the system, respectively obtain the corresponding historical second gas state data trend and historical second flow data trend.
[0051] S3-2-9. Determine whether the trend of the first gas state data of the integrated circulation characteristics of the system is the same as the trend of the historical first gas state data. If yes, execute S3-2-10; otherwise, the numerical verification result is abnormal.
[0052] S3-2-10. Determine whether the trend of the second gas state data of the integrated characteristics of the internal circulation of the system is the same as the trend of the historical second gas state data. If yes, execute S3-2-11; otherwise, the numerical verification result is abnormal.
[0053] S3-2-11. Determine whether the first flow data trend of the system's internal circulation comprehensive characteristics corresponds to the historical first flow data trend. If yes, execute S3-2-12; otherwise, the numerical verification result is abnormal.
[0054] S3-2-12. Determine whether the second flow data trend of the system's internal circulation comprehensive characteristics corresponds to the historical second flow data trend. If yes, the numerical verification result is normal; otherwise, the numerical verification result is abnormal.
[0055] A commercial and industrial gas data processing system based on the Internet of Things and a microcontroller includes: a gas calorific value detection device connected to a main gas source pipeline, wherein the main gas source pipeline supplies gas to commercial and industrial users through various gas branch pipelines, each gas branch pipeline is equipped with a gas flow meter, and each commercial and industrial user corresponding to each gas branch pipeline is equipped with a commercial and industrial digital terminal.
[0056] The gas calorific value detection device is used to detect the current gas calorific value of the main gas source pipeline in real time. When the gas calorific value changes, the changed gas calorific value is sent to the cloud server in real time.
[0057] The cloud server is used to send the received changed gas calorific value to the industrial and commercial digital terminals of each gas branch pipeline under the main gas source pipeline.
[0058] The industrial and commercial digital terminal is used to receive the calorific value of the gas and the current natural gas flow rate collected by the gas flow meter, calculate the amount of gas with calorific value involved in the calculation based on the gas calorific value and flow rate, and perform deduction management based on the gas price and the amount with calorific value involved in the calculation. When the balance drops to the warning amount, it sends an insufficient balance alarm to the digital center server and the user's APP. When the balance drops to 0, it cuts off the valve at the industrial and commercial user's branch pipeline.
[0059] The data intelligence center server is used to set gas prices and send the gas prices to the industrial and commercial data intelligence terminal; and to receive industrial and commercial gas safety data and generate industrial and commercial gas alarm information based on the industrial and commercial gas safety data, and transmit the industrial and commercial gas alarm information to the cloud server.
[0060] The industrial and commercial digital terminal is used to receive the actual calorific value of the natural gas collected by the gas calorific value detection device and the current natural gas flow rate collected by the gas flow meter. Based on the actual calorific value and the current natural gas flow rate, it calculates the amount of gas with calorific value involved in the calculation. Based on the gas price and relative usage, it performs billing management. When the balance drops to the warning amount, it sends an insufficient balance alarm to the digital center server and the user terminal APP. When the balance drops to 0, it cuts off the valve at the natural gas pipeline.
[0061] The user-end APP is used to send remote payment instructions, balance viewing instructions, and remotely open or close valves to the industrial and commercial digital terminal.
[0062] The cloud server is used to receive industrial and commercial gas alarm information and process and synchronize the industrial and commercial gas alarm information to the user terminal APP and the data intelligence center server to notify industrial and commercial users and gas companies of the alarm information.
[0063] The data acquisition module includes: an inlet pressure transmitter installed at the inlet of the branch pipeline and an outlet pressure transmitter installed at the outlet of the natural gas pipeline; the inlet pressure transmitter and the outlet pressure transmitter are hard-wired to the explosion-proof transfer box, and the explosion-proof transfer box is connected to the industrial and commercial digital terminal via 485 communication.
[0064] The inlet pressure transmitter is used to collect the inlet pressure value at the inlet of the branch pipeline; when the inlet pressure value is not within the inlet safety range, the inlet pressure value is sent to the industrial and commercial digital terminal.
[0065] The outlet pressure transmitter is used to collect the outlet pressure value at the outlet of the branch pipeline; when the outlet pressure value is not within the safe range of the outlet, the outlet pressure value is sent to the industrial and commercial digital terminal.
[0066] Preferably, the data acquisition module includes: an inlet temperature transmitter installed at the inlet of the branch pipeline and an outlet temperature transmitter installed at the outlet of the branch pipeline; the inlet temperature transmitter and the outlet temperature transmitter are hard-wired connected to the explosion-proof transfer box, and the explosion-proof transfer box is connected to the industrial and commercial digital terminal via 485 communication.
[0067] The inlet temperature transmitter is used to collect the inlet temperature value at the inlet of the branch pipeline in real time and send the inlet temperature value to the industrial and commercial digital terminal.
[0068] The outlet temperature transmitter is used to collect the outlet temperature value at the outlet of the branch pipeline in real time and send the outlet temperature value to the industrial and commercial digital terminal.
[0069] The data acquisition module includes a gas leak detector, which is hardwired to a transfer explosion-proof box, and the transfer explosion-proof box is connected to the industrial and commercial digital terminal via 485 communication.
[0070] The gas leak detector is used to collect gas leak data. When the gas leak data exceeds a preset leak alarm value, the gas leak data is sent to an industrial and commercial digital terminal.
[0071] Compared with the closest existing technology, the present invention has the following advantages:
[0072] The system utilizes calorific value detection equipment to collect the current calorific value of natural gas and gas flow meters to collect its flow rate. Based on the current calorific value and flow rate, it calculates the amount of gas with calorific value involved in the calculation. The energy generated by the amount of gas with calorific value involved in the calculation is the energy that the user can actually receive. At the same time, the iterative cycle verification established within the solution process can operate stably for a long time after actual deployment and output results. Furthermore, a multi-level comparison and verification method for system data is established based on various data in the system and related time points. This ensures both cyclical monitoring of the system's own operation and real-time monitoring and evaluation of the overall operation of industrial and commercial gas. It avoids user losses due to the actual calorific value of gas being less than the standard calorific value, and improves the operational safety and data processing accuracy on both the system and user sides. Attached Figure Description
[0073] Figure 1This is a flowchart of a method for processing industrial and commercial gas data based on the Internet of Things and a microcontroller, provided by the present invention.
[0074] Figure 2 A schematic diagram of the structure of an industrial and commercial gas data processing system based on the Internet of Things provided in an embodiment of the present invention;
[0075] Figure 3 This is a schematic diagram of another IoT-based industrial and commercial gas data processing system provided in an embodiment of the present invention. Detailed Implementation
[0076] The specific embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.
[0077] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0078] Example 1
[0079] This invention provides a method for processing industrial and commercial gas data based on the Internet of Things and a microcontroller, such as... Figure 1 As shown, it includes:
[0080] S1. Establish real-time gas status characteristics for industrial and commercial gas based on the data center server and the industrial and commercial intelligent terminal;
[0081] S2. Establish the comprehensive characteristics of the internal circulation of industrial and commercial gas using the real-time gas status characteristics and corresponding natural gas flow data;
[0082] S3. Based on the comprehensive characteristics of the internal circulation of industrial and commercial gas, perform two-sided verification processing to obtain the industrial and commercial gas data processing results.
[0083] S1 specifically includes:
[0084] S1-1. Obtain gas price information from the data center server as real-time gas price data;
[0085] S1-2, Using the calorific value of gas from industrial and commercial digital terminals as gas calorific value data;
[0086] S1-3. Use the gas calorific value data as the primary characteristic of the gas state;
[0087] S1-4. Use the real-time gas price data as a secondary feature of gas status;
[0088] S1-5. The primary and secondary gas state characteristics are used as real-time gas state characteristics for industrial and commercial gas.
[0089] S2 specifically includes:
[0090] S2-1. Obtain the natural gas flow data corresponding to the real-time gas status characteristics of the industrial and commercial gas;
[0091] S2-2. Establish real-time gas status time-series characteristics and natural gas flow data time-series characteristics using the real-time gas status characteristics and natural gas flow data of the industrial and commercial gas respectively;
[0092] S2-3. Utilize the real-time gas status time-series characteristics and natural gas process data time-series characteristics as the comprehensive internal circulation characteristics of industrial and commercial gas systems.
[0093] S2-2 specifically includes:
[0094] S2-2-1. Establish a standard processing time t by utilizing the real-time gas state characteristics of the industrial and commercial gas at the corresponding time.
[0095] S2-2-2. Obtain the primary gas state characteristics corresponding to the real-time gas state characteristics at time t-1, standard processing time t, and time t+1 respectively, and use them as the primary gas state characteristics at the previous time, the primary gas state characteristics at the real-time time, and the primary gas state characteristics at the subsequent time.
[0096] S2-2-3. Using the primary characteristics of the gas state at the preceding time and the primary characteristics of the gas state in real time, the data fluctuation trend of time t-1 and standard processing time t is obtained as the first gas state data trend.
[0097] S2-2-4. Using the primary features of the real-time gas state and the primary features of the gas state at the subsequent time, the data fluctuation trend at the standard processing time t and t+1 is obtained as the second gas state data trend.
[0098] S2-2-5. Use the first gas state data trend and the second gas state data trend as real-time gas state time sequence features.
[0099] S2-2-6. Obtain the natural gas flow rate at time t-1, standard processing time t, and time t+1 respectively as the flow rate data at the preceding time, the real-time flow rate data, and the flow rate data at the following time.
[0100] S2-2-7. Using the aforementioned pre-time flow data and real-time flow data, the data fluctuation trend between time t-1 and standard processing time t is obtained as the first flow data trend;
[0101] S2-2-8. Use the real-time traffic data and the subsequent time-lapse traffic data to obtain the data fluctuation trend at standard processing time t and t+1 as the second traffic data trend;
[0102] S2-2-9. Use the first flow data trend and the second flow data trend as the time series characteristics of natural gas flow data;
[0103] The data fluctuation trend refers to the change trend of adjacent data.
[0104] S3 specifically includes:
[0105] S3-1. The system-side verification results of industrial and commercial gas are obtained by performing system-side verification processing using the comprehensive characteristics of the system internal circulation of the industrial and commercial gas.
[0106] S3-2. Numerical side verification results of industrial and commercial gas are obtained by using the comprehensive characteristics of the system internal circulation of the industrial and commercial gas.
[0107] S3-3. Use the system-side verification results and numerical-side verification results of the industrial and commercial gas as the data processing results of the industrial and commercial gas.
[0108] S3-1 specifically includes:
[0109] S3-1-1. Based on the standard processing time t, the system growth rate of the secondary gas state characteristics corresponding to the real-time gas state characteristics of the industrial and commercial gas is used as real-time uncorrelated standard data.
[0110] S3-1-2. Based on the uncorrelated standard data at the standard processing time t, obtain the uncorrelated standard data at time t-1 and time t+1 as the uncorrelated standard data at the previous time and the uncorrelated standard data at the subsequent time, respectively.
[0111] S3-1-3. Using the aforementioned uncorrelated standard data from the previous time and the real-time uncorrelated standard data, the data fluctuation trend between time t-1 and standard processing time t is obtained as the first uncorrelated standard data trend.
[0112] S3-1-4. Use the uncorrelated standard data of the preceding time and the uncorrelated standard data of the following time to obtain the data fluctuation trend of the standard processing time and time t+1 as the second uncorrelated standard data trend.
[0113] S3-1-5. Determine whether the trend of the first unrelated standard data corresponds to the trend of the first flow data of the system's internal circulation comprehensive characteristics. If yes, execute S3-1-6; otherwise, the system-side verification result is abnormal.
[0114] S3-1-6. Determine whether the trend of the second unrelated standard data corresponds to the trend of the second flow data of the system's internal circulation comprehensive characteristics. If yes, the system-side verification result is normal; otherwise, the system-side verification result is abnormal.
[0115] The system growth rate is the gas price growth rate.
[0116] S3-2 specifically includes:
[0117] S3-2-1. Obtain the corresponding historical system internal circulation comprehensive characteristics based on the system internal circulation comprehensive characteristics of the industrial and commercial gas;
[0118] S3-2-2. Establish a gas state-flow feature mapping based on the historical gas state data characteristics and natural gas flow data time-series characteristics of the historical system internal circulation comprehensive characteristics.
[0119] S3-2-3. Determine whether the gas state-flow feature mapping and the system internal circulation comprehensive feature have the same primary gas state feature. If so, use the data position corresponding to the primary gas state feature as the starting position k for numerical verification and execute S3-2-4. Otherwise, update the historical system internal circulation comprehensive feature and return to S3-2-2.
[0120] S3-2-4. Based on the numerical verification starting position k, obtain the primary gas state features at positions k+1 and k+2 respectively to establish a basic sequence of primary gas state features.
[0121] S3-2-5. Based on the numerical verification starting position k, obtain the secondary features of the gas state at the corresponding k+1 and k+2 positions respectively, and establish the basic sequence of secondary features of the gas state.
[0122] S3-2-6. Determine if the data fluctuations of the primary characteristic basic sequence of the gas state and the secondary characteristic basic sequence of the gas state are the same. If so, execute S3-2-7; otherwise, update the numerical verification start position k and return to S3-2-4.
[0123] S3-2-7. Based on the first gas state data trend and the first flow rate data trend of the comprehensive internal circulation characteristics of the system, respectively obtain the corresponding historical first gas state data trend and historical first flow rate data trend.
[0124] S3-2-8. Based on the second gas state data trend and the second flow data trend of the comprehensive internal circulation characteristics of the system, respectively obtain the corresponding historical second gas state data trend and historical second flow data trend.
[0125] S3-2-9. Determine whether the trend of the first gas state data of the integrated circulation characteristics of the system is the same as the trend of the historical first gas state data. If yes, execute S3-2-10; otherwise, the numerical verification result is abnormal.
[0126] S3-2-10. Determine whether the trend of the second gas state data of the integrated characteristics of the internal circulation of the system is the same as the trend of the historical second gas state data. If yes, execute S3-2-11; otherwise, the numerical verification result is abnormal.
[0127] S3-2-11. Determine whether the first flow data trend of the system's internal circulation comprehensive characteristics corresponds to the historical first flow data trend. If yes, execute S3-2-12; otherwise, the numerical verification result is abnormal.
[0128] S3-2-12. Determine whether the second flow data trend of the system's internal circulation comprehensive characteristics corresponds to the historical second flow data trend. If yes, the numerical verification result is normal; otherwise, the numerical verification result is abnormal.
[0129] Example 2:
[0130] This invention provides an industrial and commercial gas data processing system based on the Internet of Things and a microcontroller, such as... Figure 2 As shown, the system includes: a gas calorific value detection device connected to the main gas source pipeline, the main gas source pipeline supplies gas to industrial and commercial users through various gas branch pipelines, each gas branch pipeline is equipped with a gas flow meter, and each industrial and commercial user corresponding to each gas branch pipeline is equipped with an industrial and commercial digital terminal.
[0131] The gas calorific value detection device is used to detect the current gas calorific value of the main gas source pipeline in real time. When the gas calorific value changes, the changed gas calorific value is sent to the cloud server in real time.
[0132] The cloud server is used to send the received changed gas calorific value to the industrial and commercial digital terminals of each gas branch pipeline under the main gas source pipeline.
[0133] The industrial and commercial digital terminal is used to receive the calorific value of the gas and the current natural gas flow rate collected by the gas flow meter, calculate the amount of gas with calorific value involved in the calculation based on the gas calorific value and flow rate, and perform deduction management based on the gas price and the amount with calorific value involved in the calculation. When the balance drops to the warning amount, it sends an insufficient balance alarm to the digital center server and the user's APP. When the balance drops to 0, it cuts off the valve at the industrial and commercial user's branch pipeline.
[0134] The data intelligence center server is used to set gas prices and send the gas prices to the industrial and commercial data intelligence terminal; and to receive industrial and commercial gas safety data and generate industrial and commercial gas alarm information based on the industrial and commercial gas safety data, and transmit the industrial and commercial gas alarm information to the cloud server.
[0135] The industrial and commercial digital terminal is used to receive the actual calorific value of the natural gas collected by the gas calorific value detection device and the current natural gas flow rate collected by the gas flow meter. Based on the actual calorific value and the current natural gas flow rate, it calculates the amount of gas with calorific value involved in the calculation. Based on the gas price and relative usage, it performs billing management. When the balance drops to the warning amount, it sends an insufficient balance alarm to the digital center server and the user terminal APP. When the balance drops to 0, it cuts off the valve at the natural gas pipeline.
[0136] The user-end APP is used to send remote payment instructions, balance viewing instructions, and remotely open or close valves to the industrial and commercial digital terminal.
[0137] The heat generated by natural gas depends not only on the amount of natural gas used but also on its calorific value. For example, for the same volume of natural gas, the higher the calorific value, the more energy it produces. In reality, the actual calorific value of the gas purchased by the gas company may differ from the standard calorific value, resulting in a difference between the actual energy produced per cubic meter of gas and the theoretical energy produced. For instance, the standard calorific value of the gas purchased by the gas company may be 50 kcal, but the actual calorific value may be less than 50 kcal. If the gas is still sold to users at the price corresponding to 50 kcal, it will result in a loss for the users.
[0138] Therefore, this invention simultaneously collects the flow rate and actual calorific value of the gas, and calculates the amount of gas with calorific value involved in the calculation. The specific process is as follows:
[0139] First, the actual calorific value of the natural gas is collected by the gas calorific value detection equipment, and the calorific value deviation rate is calculated. The calorific value deviation rate is the ratio of the current calorific value to the standard calorific value. For example, if the gas company purchases gas with a labeled calorific value of 50 kcal, but the actual calorific value is 40 kcal, then the calorific value deviation rate is 0.8.
[0140] Then, the flow rate of natural gas collected by the gas flow meter is received, and the product of the gas flow rate and the deviation rate of the gas calorific value is calculated to obtain the amount of gas with calorific value involved in the calculation. For example, if the gas flow meter collects a natural gas flow rate of 100 cubic meters, then the amount of gas with calorific value involved in the calculation is calculated to be 80 cubic meters.
[0141] As can be seen from the above, the energy generated by the amount of gas with calorific value involved in the calculation is the energy that the user can actually receive. Therefore, this invention can ensure that the user pays according to the actual energy received, avoiding user losses caused by the actual calorific value of the gas being less than the standard calorific value. It helps industrial and commercial users to calculate gas costs more accurately and reduce unnecessary cost expenditures.
[0142] In addition, the industrial and commercial gas data processing system also includes a first data acquisition module, which is used to collect industrial and commercial gas safety data. When the industrial and commercial gas safety data triggers industrial and commercial gas alarm conditions, the industrial and commercial gas safety data is sent to the industrial and commercial smart terminal.
[0143] The cloud server is used to receive industrial and commercial gas alarm information and process and synchronize the industrial and commercial gas alarm information to the user terminal APP and the data intelligence center server to notify industrial and commercial users and gas companies of the alarm information.
[0144] Specifically, gas safety data can include: gas pressure data, gas temperature data, smoke concentration data, and gas leak concentration data. Through the data acquisition module, the system can collect gas safety data in real time, ensuring that every gas safety data point is under monitoring. When a gas safety data point triggers an alarm condition, it is sent to the industrial and commercial intelligent terminal. The industrial and commercial intelligent terminal has multiple interfaces, such as DI, AI, DQ, QA, 485, and pulse interfaces. The industrial and commercial intelligent terminal performs logical analysis on the various gas safety data received to determine whether the gas facilities are working properly. If they are not working properly, it generates corresponding alarm information.
[0145] Specifically, after receiving an alarm message, the cloud server can quickly synchronize the alarm information to the user-end APP and the data intelligence center server. Users can then promptly access alarm information through the industrial and commercial user-end APP and contact the gas company for corresponding repairs. The first data intelligence center server can be the gas company's data intelligence center service system, ensuring that the gas company can promptly understand gas safety issues of industrial and commercial users through alarm information. Gas company staff can then contact users promptly and carry out repairs in a timely manner, thereby ensuring the safety of users' gas usage. Furthermore, this embodiment improves information transmission efficiency through this multi-terminal synchronous notification mechanism, making gas management more transparent and open. Both the user-end APP and the first data intelligence center server can receive alarm information in a timely manner, facilitating communication between users and the gas company.
[0146] The data acquisition module includes an inlet pressure transmitter installed at the gas branch inlet and an outlet pressure transmitter installed at the natural gas pipeline outlet. Due to the large number of connections in the industrial and commercial digital terminal, for safety reasons, the inlet pressure transmitter and the outlet pressure transmitter are hardwired to the explosion-proof adapter box, and the explosion-proof adapter box is connected to the commercial digital terminal via 485 communication.
[0147] Depend on Figure 3 As can be seen, a pressure regulator is installed in the natural gas pipeline. Therefore, the gas pressure at the inlet and outlet of the natural gas pipeline are different. So, to ensure safety, inlet pressure transmitters and outlet pressure transmitters are installed at the inlet and outlet of the pipeline, respectively.
[0148] The inlet pressure transmitter is used to collect the inlet pressure value at the inlet of the natural gas pipeline; when the inlet pressure value is not within the inlet safety range, the inlet pressure value is sent to the industrial and commercial intelligent terminal; the outlet pressure transmitter is used to collect the outlet pressure value at the outlet of the natural gas pipeline; when the outlet pressure value is not within the outlet safety range, the outlet pressure value is sent to the industrial and commercial intelligent terminal.
[0149] After receiving the inlet pressure value, the industrial and commercial intelligent terminal will determine the gas pressure. If the inlet pressure value is greater than the maximum value in the inlet safety range, it indicates that the current gas pressure is too high. In this case, the valve at the natural gas pipeline will be shut off to avoid safety issues, and the high-pressure alarm information will be transmitted to the cloud server. If the inlet pressure value is less than the minimum value in the inlet safety range, it indicates that the current gas pressure is too low. Although there will be no safety issues, there may be a leak in the pipeline. Therefore, the low-pressure alarm information will be transmitted to the first cloud server for users and gas companies to investigate in a timely manner.
[0150] In addition to collecting gas pressure data from gas pipelines to determine whether there is a gas leak, the data acquisition module also includes a gas leak detector. The gas leak detector is hardwired to the explosion-proof adapter box, and the explosion-proof adapter box is connected to the commercial digital terminal via 485 communication.
[0151] The gas leak detector is installed in an indoor environment to collect indoor gas leak data. When the gas leak data exceeds a preset leak alarm value, the gas leak data is sent to an industrial and commercial digital terminal.
[0152] The industrial and commercial digital terminal is specifically used to receive the gas leak data. If the smoke concentration data is greater than a first threshold and less than a second threshold, wherein the second threshold is greater than the first threshold, it indicates that there is an indoor gas leak. However, the leak is not very serious and will not cause safety problems. Therefore, the leak alarm information is only transmitted to the cloud server.
[0153] If the smoke concentration data is greater than the second threshold, it indicates that there is a serious indoor gas leak. Therefore, to ensure safety, the valve at the natural gas pipeline is shut off and the leak alarm information is transmitted to the cloud server.
[0154] The data acquisition module further includes: an inlet temperature transmitter installed at the inlet of the gas branch pipeline and an outlet temperature transmitter installed at the outlet of the gas branch pipeline; the inlet temperature transmitter and the outlet temperature transmitter are hard-wired to the explosion-proof transfer box, and the explosion-proof transfer box is connected to the industrial and commercial digital terminal via 485 communication.
[0155] The inlet temperature transmitter is used to collect the inlet temperature value at the inlet of the natural gas pipeline in real time and send the inlet temperature value to the industrial and commercial intelligent terminal; the outlet temperature transmitter is used to collect the outlet temperature value at the outlet of the natural gas pipeline in real time and send the outlet temperature value to the industrial and commercial intelligent terminal.
[0156] The industrial and commercial intelligent terminal receives the inlet temperature value and the outlet temperature value, calculates the temperature difference between the inlet temperature value and the outlet temperature value, and if the temperature difference is greater than the preset temperature difference alarm value, it indicates that the inlet temperature and the outlet temperature are different due to a gas leak in the natural gas pipeline. Therefore, the temperature difference alarm information is transmitted to the cloud server.
[0157] After receiving gas safety data, the industrial and commercial digital terminal can first determine whether the gas safety data is abnormal.
[0158] Specifically, after receiving industrial and commercial gas safety data, the industrial and commercial intelligent terminal determines whether the industrial and commercial gas safety data is abnormal. If the industrial and commercial gas safety data is abnormal, it automatically filters the industrial and commercial gas safety data. If the industrial and commercial gas safety data is not abnormal, it generates alarm information based on the industrial and commercial gas safety data and transmits the alarm information to the cloud server through the 4G / 5G network.
[0159] The cloud server is also used for:
[0160] For each branch pipeline, a record of industrial and commercial gas usage is generated based on the historical gas usage flow rate of that branch pipeline;
[0161] The system receives the current gas flow rate collected by the flow meter in real time and determines whether the current flow rate is abnormal based on the industrial and commercial gas usage records.
[0162] If the current traffic flow is abnormal, traffic flow abnormality information is generated and synchronized to the user-end APP and the data intelligence center server to notify industrial and commercial users and gas companies of the traffic flow abnormality.
[0163] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0164] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0165] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0166] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0167] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that modifications or equivalent substitutions can still be made to the specific implementation of the present invention. Any modifications or equivalent substitutions that do not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.
Claims
1. An industrial and commercial gas data processing method based on Internet of Things and single-chip microcomputer, characterized in that, Comprising: S1, based on the numerical center server and the industrial and commercial type of digital side to establish the real-time gas state characteristics of industrial and commercial gas; S1-1, based on the numerical center server to obtain gas price information as real-time gas price data; S1-2, based on the industrial and commercial type of digital side gas heat value as gas heat value data; S1-3, using the gas heat value data as the primary feature of gas state; S1-4, using the real-time gas price data as the secondary feature of gas state; S1-5, using the primary feature of gas state and the secondary feature of gas state as the real-time gas state characteristics of industrial and commercial gas; S2, using the real-time gas state characteristics of industrial and commercial gas and the corresponding natural gas flow data to establish the system internal circulation comprehensive characteristics of industrial and commercial gas; S2-1, obtaining the real-time gas state characteristics of industrial and commercial gas corresponding to the natural gas flow data; S2-2, using the real-time gas state characteristics of industrial and commercial gas and the natural gas flow data to establish real-time gas state time sequence characteristics and natural gas flow data time sequence characteristics respectively; S2-2-1, using the real-time gas state characteristics of industrial and commercial gas to establish a standard processing time t at the corresponding time; S2-2-2, respectively obtaining the primary feature of gas state corresponding to the real-time gas state characteristics at t-1, standard processing time t and t+1 as the primary feature of gas state at the previous time, the primary feature of gas state at the real-time and the primary feature of gas state at the next time; S2-2-3, using the primary feature of gas state at the previous time and the primary feature of gas state at the real-time to obtain the data floating trend of t-1 and standard processing time t as the first gas state data trend; S2-2-4, using the primary feature of gas state at the real-time and the primary feature of gas state at the next time to obtain the data floating trend of standard processing time t and t+1 as the second gas state data trend; S2-2-5, using the first gas state data trend and the second gas state data trend as the real-time gas state time sequence characteristics; S2-2-6, respectively obtaining the natural gas flow at t-1, standard processing time t and t+1 as the previous time flow data, real-time flow data and next time flow data; S2-2-7, using the previous time flow data and real-time flow data to obtain the data floating trend of t-1 and standard processing time t as the first flow data trend; S2-2-8, using the real-time flow data and the next time flow data to obtain the data floating trend of standard processing time t and t+1 as the second flow data trend; S2-2-9, using the first flow data trend and the second flow data trend as the natural gas flow data time sequence characteristics; Wherein, the data floating trend is the change trend of adjacent data; S2-3, using the real-time gas state time sequence characteristics and the natural gas flow data time sequence characteristics as the system internal circulation comprehensive characteristics of industrial and commercial gas; S3, according to the system internal circulation comprehensive characteristics of industrial and commercial gas, the bilateral verification processing is carried out to obtain the industrial and commercial gas data processing result.
2. The industrial and commercial gas data processing method based on the Internet of Things and the single-chip microcomputer according to claim 1, characterized in that, According to the double-side verification processing of the comprehensive characteristics of the industrial and commercial gas system internal circulation, the industrial and commercial gas data processing result is obtained, including: S3-1, the system-side verification result of the industrial and commercial gas is obtained by using the comprehensive characteristics of the industrial and commercial gas system internal circulation for system-side verification processing; S3-2, the numerical-side verification result of the industrial and commercial gas is obtained by using the comprehensive characteristics of the industrial and commercial gas system internal circulation for numerical-side verification processing; S3-3, the system-side verification result and the numerical-side verification result of the industrial and commercial gas are used as the industrial and commercial gas data processing result.
3. The industrial and commercial gas data processing method based on the Internet of Things and the single-chip microcomputer according to claim 2, characterized in that, The system-side verification result of the industrial and commercial gas is obtained by using the comprehensive characteristics of the industrial and commercial gas system internal circulation for system-side verification processing, including: S3-1-1, the system growth rate of the corresponding gas state secondary feature of the real-time gas state feature of the industrial and commercial gas at the standard processing time t is used as real-time irrelevant standard data; S3-1-2, the irrelevant standard data at the standard processing time t is used to obtain the irrelevant standard data at t-1 and t+1 as the preceding time irrelevant standard data and the subsequent time irrelevant standard data, respectively; S3-1-3, the data floating trend at t-1 and the standard processing time t is obtained by using the preceding time irrelevant standard data and the real-time irrelevant standard data as the first irrelevant standard data trend; S3-1-4, the data floating trend at the standard processing time and t+1 is obtained by using the preceding time irrelevant standard data and the subsequent time irrelevant standard data as the second irrelevant standard data trend; S3-1-5, it is judged whether the first irrelevant standard data trend corresponds to the first flow data trend of the system internal circulation comprehensive characteristics, if yes, S3-1-6 is executed, otherwise, the system-side verification result is abnormal; S3-1-6, it is judged whether the second irrelevant standard data trend corresponds to the second flow data trend of the system internal circulation comprehensive characteristics, if yes, the system-side verification result is normal, otherwise, the system-side verification result is abnormal; Wherein, the system growth rate is the gas price growth rate.
4. The industrial and commercial gas data processing method based on the Internet of Things and the single-chip microcomputer according to claim 3, characterized in that, The numerical-side verification result of the industrial and commercial gas is obtained by using the comprehensive characteristics of the industrial and commercial gas system internal circulation for numerical-side verification processing, including: S3-2-1, the corresponding historical system internal circulation comprehensive characteristics are obtained according to the comprehensive characteristics of the industrial and commercial gas system internal circulation; S3-2-2, the gas state-flow feature mapping is established according to the historical gas state data characteristics and the natural gas flow data time sequence characteristics of the historical system internal circulation comprehensive characteristics; S3-2-3, it is judged whether the gas state-flow feature mapping and the system internal circulation comprehensive characteristics have the same gas state primary feature, if yes, the data position corresponding to the same gas state primary feature is used as the numerical-side verification starting position k, and S3-2-4 is executed, otherwise, the historical system internal circulation comprehensive characteristics are updated, and S3-2-2 is returned; S3-2-4, according to the numerical side verification starting position k respectively corresponding to k+1 position and k+2 position of the gas state primary feature is established gas state primary feature basis sequence; S3-2-5, according to the numerical side verification starting position k respectively corresponding to k+1 position and k+2 position of the gas state secondary feature is established gas state secondary feature basis sequence; S3-2-6, judge the gas state primary feature basis sequence and gas state secondary feature basis sequence data fluctuation is same, if yes, execute S3-2-7, otherwise, update numerical side verification starting position k, and return to S3-2-4; S3-2-7, according to the first gas state data trend and the first flow data trend of the system circulating comprehensive feature respectively corresponding to the historical first gas state data trend and the historical first flow data trend; S3-2-8, according to the second gas state data trend and the second flow data trend of the system circulating comprehensive feature respectively corresponding to the historical second gas state data trend and the historical second flow data trend; S3-2-9, judge whether the first gas state data trend and the historical first gas state data trend of the system circulating comprehensive feature are same, if yes, execute S3-2-10, otherwise, the numerical side verification result is abnormal; S3-2-10, judge whether the second gas state data trend and the historical second gas state data trend of the system circulating comprehensive feature are same, if yes, execute S3-2-11, otherwise, the numerical side verification result is abnormal; S3-2-11, judge whether the first flow data trend and the historical first flow data trend of the system circulating comprehensive feature are corresponding, if yes, execute S3-2-12, otherwise, the numerical side verification result is abnormal; S3-2-12, judge whether the second flow data trend and the historical second flow data trend of the system circulating comprehensive feature are corresponding, if yes, the numerical side verification result is normal, otherwise, the numerical side verification result is abnormal.
5. An Internet of Things and Single Chip Microcomputer-based industrial and commercial gas data processing method system according to any one of claims 1 to 4, characterized in that, Comprise: The gas heat value detection equipment connected with the gas total gas source pipeline, the gas total gas source pipeline transports gas to industrial and commercial users through each gas branch pipeline, each gas branch pipeline is provided with a gas flow meter, and each gas branch pipeline corresponding industrial and commercial user is provided with an industrial and commercial type number intelligence terminal; The gas heat value detection equipment is used for detecting the current gas heat value of the gas total gas source pipeline in real time, and when the gas heat value changes, the changed gas heat value is sent to the cloud service terminal in real time; The cloud service terminal is used for sending the received changed gas heat value to each industrial and commercial type number intelligence terminal of the gas branch pipeline under the gas total gas source pipeline; The commercial and industrial digital terminal is configured to receive a gas calorific value and a current natural gas flow collected by the gas flow meter, calculate a gas calorific value participating quantity based on the gas calorific value and the flow, perform a deduction management based on a gas price and the calorific value participating quantity, send a balance shortage warning to the digital center service terminal and a user terminal APP when the balance decreases to a pre-warning amount, and cut off a valve at a commercial and industrial user branch when the balance decreases to 0. The digital center service terminal is configured to set a gas price and send the gas price to the commercial and industrial digital terminal, receive commercial and industrial gas safety data, generate commercial and industrial gas alarm information based on the commercial and industrial gas safety data, and transmit the commercial and industrial gas alarm information to a cloud service terminal. The commercial and industrial digital terminal is configured to receive an actual calorific value of current natural gas collected by the gas calorific value detection device and a current natural gas flow collected by the gas flow meter, calculate a gas calorific value participating quantity based on the actual calorific value and the current natural gas flow, perform a deduction management based on the gas price and the relative usage quantity, send a balance shortage warning to the digital center service terminal and a user terminal APP when the balance decreases to a pre-warning amount, and cut off a valve at a natural gas pipeline when the balance decreases to 0. The user terminal APP is configured to send a remote payment instruction, a balance checking instruction, and a remote valve opening or closing instruction to the commercial and industrial digital terminal. The cloud service terminal is configured to receive commercial and industrial gas alarm information, process the commercial and industrial gas alarm information, and synchronize the processed commercial and industrial gas alarm information to the user terminal APP and the digital center service terminal to notify commercial and industrial users and a gas company of the alarm information. The data acquisition module includes an inlet pressure transmitter installed at an inlet of a branch pipeline and an outlet pressure transmitter installed at an outlet of a natural gas pipeline. The inlet pressure transmitter and the outlet pressure transmitter are hard-wired connected with a switching explosion-proof box, and the switching explosion-proof box is connected with the commercial and industrial digital terminal through 485 communication. The inlet pressure transmitter is configured to collect an inlet pressure value at the inlet of the branch pipeline and send the inlet pressure value to the commercial and industrial digital terminal when the inlet pressure value is not within an inlet safety range. The outlet pressure transmitter is configured to collect an outlet pressure value at the outlet of the branch pipeline and send the outlet pressure value to the commercial and industrial digital terminal when the outlet pressure value is not within an outlet safety range.
6. The industrial and commercial gas data processing method based on the Internet of Things and single-chip microcomputer system according to claim 5, characterized in that, The data acquisition module further includes an inlet temperature transmitter installed at the inlet of the branch pipeline and an outlet temperature transmitter installed at the outlet of the branch pipeline. The inlet temperature transmitter is configured to collect an inlet temperature value at the inlet of the branch pipeline in real time and send the inlet temperature value to the commercial and industrial digital terminal. The outlet temperature transmitter is configured to collect an outlet temperature value at the outlet of the branch pipeline in real time and send the outlet temperature value to the commercial and industrial digital terminal. The data acquisition module comprises a gas leakage detector, the gas leakage detector is hard-wired connected with an adapter explosion-proof box, the adapter explosion-proof box is communicated with the industrial and commercial type digital terminal through 485 communication connection. The gas leakage detector is used for collecting gas leakage data, and when the gas leakage data is greater than a preset leakage alarm value, the gas leakage data is sent to the industrial and commercial type digital terminal.
Citation Information
Patent Citations
Energy optimization scheduling method and system based on distributed resources
CN119005655A