Sensor simulation method and system based on gas pressure regulating station, and medium

By implementing sensor simulation methods on the gas pressure regulating station, simulating sensor data and building a simulation architecture, the safety hazards and reliability problems caused by manual intervention in traditional testing are solved, and safer and more reliable automated testing is achieved.

WO2025112257A1PCT designated stage expired Publication Date: 2025-06-05SHANGHAI FIORENTINI GAS EQUIP
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/085487
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-12-01
Filing Date
2024-04-02
Publication Date
2025-06-05

AI Technical Summary

Technical Problem

When traditional voltage regulator station controllers simulate various working conditions for testing, they require a lot of manual intervention, which poses safety risks and is not reliable enough.

Method used

Through the sensor simulation method based on the gas pressure regulating station, software is used to simulate the input data of various sensors, and the underlying data input layer and business logic layer of the simulation architecture are built to realize automated testing and reduce manual intervention.

Benefits of technology

Improves the safety and reliability of tests, reduces manual errors through automated testing, and enhances verification of the performance and reliability of digital voltage regulator station controllers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024085487_05062025_PF_FP_ABST
    Figure CN2024085487_05062025_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in the present invention are a sensor simulation method and system based on a gas pressure regulating station, and a medium. The method comprises: selecting a plurality of corresponding entity sensors on the basis of working conditions to be simulated; constructing an underlying data input layer of a simulation architecture, and arranging a plurality of sensor driving devices on the underlying data input layer; enabling the plurality of sensor driving devices to be in one-to-one correspondence with the plurality of entity sensors, and performing logic processing on the plurality of corresponding entity sensors by means of the plurality of sensor driving devices; and performing logic replacement on the logic entity sensors by means of simulation sensors in the underlying data input layer; and constructing a service logic layer of the simulation architecture, the service logic layer being used for receiving data of said working conditions sent by the underlying data input layer, and performing service logic processing. Manual intervention is reduced, thereby improving the testing security and reliability.
Need to check novelty before this filing date? Find Prior Art

Description

A sensor simulation method, system and medium based on gas pressure regulating station Technical Field

[0001] The present invention relates to the field of simulation testing, and further to a sensor simulation method, system and medium based on a gas pressure regulating station. Background Art

[0002] To ensure system stability, traditional pressure regulating station controllers must simulate various operating conditions, such as inlet pressure that is too high or too low, excessive gas usage, filter blockage, and pressure regulator failure. However, actual simulation of these operating conditions is not easy and involves issues of safe gas use. Improper operation can endanger the lives of operators.

[0003] Summary of the Invention

[0004] In order to solve the above technical problems, the present invention provides a sensor simulation method, system and medium based on a gas pressure regulating station, which reduce manual intervention and improve the safety and reliability of testing.

[0005] Specifically, the technical solution of the present invention is as follows:

[0006] A sensor simulation method based on a gas pressure regulating station comprises the following steps:

[0007] Select corresponding physical sensors according to the working conditions to be simulated;

[0008] Constructing a bottom data input layer of the simulation architecture, and setting a plurality of sensor driving devices on the bottom data input layer;

[0009] Matching the plurality of sensor driving devices to the plurality of physical sensors one by one, and logicalizing the corresponding plurality of physical sensors through the plurality of sensor driving devices;

[0010] Logically replace the logical physical sensors through the simulation sensors in the underlying data input layer;

[0011] Constructing a business logic layer of the simulation architecture, wherein the business logic layer is used to receive the working condition data to be simulated sent by the underlying data input layer and perform business logic processing;

[0012] Setting parameters corresponding to the working condition to be simulated through the simulation sensor in the bottom data input layer;

[0013] The parameters corresponding to the working condition to be simulated are sent to the business logic layer, and the business logic layer performs business logic processing on the working condition to be simulated according to the parameters corresponding to the working condition to be simulated.

[0014] Software can simulate input data from various sensors to test the upper-level business logic of the digital pressure regulating station controller. By simulating environmental test data from different operating conditions, the performance and reliability of the digital pressure regulating station controller can be verified under various operating conditions. Script files can also be used to automate testing, reducing manual intervention and improving test safety and reliability.

[0015] In some embodiments, the physical sensor includes a pressure sensor, a temperature sensor, and a valve position sensor.

[0016] In some embodiments, the physical sensor includes a primary sensor and a backup sensor.

[0017] In some embodiments, when the operating condition to be simulated is the service life of the primary and standby line filters, the construction of the business logic layer of the simulation architecture, wherein the business logic layer is used to receive the operating condition data to be simulated sent by the underlying data input layer and perform business logic processing, specifically includes the following steps:

[0018] Selecting a main line inlet pressure sensor, a main line filter outlet pressure sensor, and a backup line filter outlet pressure sensor from the pressure sensors according to the service life working conditions of the main and backup line filters;

[0019] or,

[0020] Selecting the main line inlet pressure sensor and the main line filter outlet pressure sensor among the main line sensors according to the service life working condition of the main and backup line filters, and selecting the backup line filter outlet pressure sensor among the backup line sensors;

[0021] Setting the data of each sensor corresponding to the service life condition of the main and backup filters and the range of each sensor through the simulation sensor, and sending the data of each sensor corresponding to the service life condition of the main and backup filters and the range of each sensor to the business logic layer;

[0022] The business logic layer performs business logic processing on the service life condition of the main and backup filters according to the data of each sensor corresponding to the service life condition of the main and backup filters and the measuring range of each sensor.

[0023] In some embodiments, the steps are further included:

[0024] Constructing a result output layer of the simulation architecture, wherein the result output layer is used to receive and store the result of the business logic layer performing business logic processing on the working condition to be simulated;

[0025] The result output layer is further used to receive a simulation result query instruction set by a user, and to output the result after the stored business logic processing of the working condition to be simulated.

[0026] The simulation results are verified through simulation result query instructions, which further improves the reliability and accuracy of the simulation test.

[0027] In some embodiments, after sending the parameters corresponding to the working condition to be simulated to the business logic layer and causing the business logic layer to perform business logic processing on the working condition to be simulated according to the parameters corresponding to the working condition to be simulated, the process further includes the following steps:

[0028] Determine whether the business logic processing of the working condition to be simulated has been completed;

[0029] If not completed, repeat the simulation of the working scenario where the business logic processing is not completed.

[0030] The present invention also provides a sensor simulation system based on a gas pressure regulating station, comprising:

[0031] Several physical sensors;

[0032] The bottom data input layer is used to select corresponding physical sensors according to the working conditions to be simulated;

[0033] The bottom data input layer is further provided with a plurality of sensor driving devices, and the plurality of sensor device drivers correspond one-to-one to the plurality of physical sensors, and are used to logicalize the corresponding plurality of physical sensors;

[0034] The bottom data input layer is further provided with a simulation sensor, which is used to logically replace the logicalized physical sensor;

[0035] A business logic layer, the business logic layer is used to receive the working condition data to be simulated sent by the underlying data input layer and perform business logic processing;

[0036] The simulation sensor is also used to set parameters corresponding to the working condition to be simulated;

[0037] The bottom data input layer is further used to input the parameters corresponding to the working condition to be simulated to the business logic layer;

[0038] The business logic layer is further used to perform business logic processing on the working condition to be simulated after receiving parameters corresponding to the working condition to be simulated.

[0039] In some embodiments, the physical sensor includes a pressure sensor, a temperature sensor, and a valve position sensor.

[0040] In some embodiments, the physical sensor includes a pressure sensor, a temperature sensor, and a valve position sensor.

[0041] In some embodiments, when the working condition to be simulated is the service life of the main standby filter,

[0042] The bottom data input layer is further used to select the main line inlet pressure sensor, the main line filter outlet pressure sensor and the backup line filter outlet pressure sensor among the pressure sensors according to the service life working condition of the main and backup line filters;

[0043] or,

[0044] The bottom data input layer is further configured to select the main line inlet pressure sensor and the main line filter outlet pressure sensor from among the main line sensors, and select the standby line filter outlet pressure sensor from among the standby line sensors, according to the service life working condition of the main and standby line filters;

[0045] The simulation sensor is further used to set the data of each sensor corresponding to the service life working condition of the main and backup line filters and the range of each sensor;

[0046] The bottom data input layer is further used to send the data of each sensor corresponding to the service life working condition of the main and backup line filters and the range of each sensor to the business logic layer;

[0047] The business logic layer is further used to perform business logic processing on the service life condition of the main and backup filters according to the data of each sensor corresponding to the service life condition of the main and backup filters and the measuring range of each sensor.

[0048] Compared with the prior art, the present invention has at least one of the following beneficial effects:

[0049] 1. Software can simulate input data from various sensors to test the upper-level business logic of the digital pressure regulating station controller. By simulating environmental test data from different operating conditions, the performance and reliability of the digital pressure regulating station controller can be verified under various working conditions. Script files can also be used to automate testing, reducing manual intervention and improving test safety and reliability.

[0050] 2. The simulation results are verified through simulation result query instructions, which further improves the reliability and accuracy of the simulation test. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] The preferred embodiments will be described below in a clear and understandable manner with reference to the accompanying drawings to further illustrate the above-mentioned characteristics, technical features, advantages and implementation methods of the present invention.

[0052] FIG1 is a flow chart of an embodiment of a sensor simulation method based on a gas pressure regulating station according to the present invention;

[0053] FIG2 is a flow chart of an embodiment of a sensor simulation method based on a gas pressure regulating station according to the present invention;

[0054] FIG3 is a flow chart of another embodiment of a sensor simulation sampling method based on a gas pressure regulating station of the present invention;

[0055] FIG4 is a structural diagram of an embodiment of a sensor simulation system based on a gas pressure regulating station of the present invention;

[0056] FIG5 is a simplified structural diagram of a gas pressure regulating station according to the present invention;

[0057] FIG6 is a simplified structural diagram of a sensor simulation system based on a gas pressure regulating station according to the present invention.

[0058] Description of the drawings: underlying data input layer 100; business logic layer 200; result output layer 300. DETAILED DESCRIPTION

[0059] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the specific embodiments of the present invention will be described below with reference to the accompanying drawings. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings and other embodiments can be obtained based on these drawings without inventive work.

[0060] To simplify the drawings, only portions relevant to the invention are schematically depicted in each figure; they do not represent the actual structure of the product. Furthermore, to simplify the drawings and facilitate understanding, in some figures, only one component with the same structure or function is schematically depicted or labeled. In this document, "one" not only means "only one" but also "more than one."

[0061] It should be further understood that the term "and / or" used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.

[0062] It should be noted that, unless otherwise specified or limited, the terms "mounted," "connected," and "connected" should be understood broadly. For example, they can refer to fixed, detachable, or integral connections; mechanical or electrical connections; direct or indirect connections through an intermediary; and internal communication between two components. Those skilled in the art will understand the specific meanings of these terms in the present invention based on specific circumstances.

[0063] In addition, in the description of the present application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0064] It should be noted that the above embodiments can be freely combined as needed. The above are only preferred embodiments of the present invention. It should be noted that those skilled in the art can make several improvements and modifications without departing from the principles of the present invention, and such improvements and modifications should also be considered within the scope of protection of the present invention.

[0065] Gas pressure regulating station control systems typically utilize multiple sensors to collect current operating conditions. Based on the raw input data, these sensors analyze and process the data to generate corresponding outputs, such as triggering alarms, reporting faults, and storing logs. Therefore, monitoring the station's operating conditions is crucial. Traditional pressure regulating station controllers, to ensure system stability, require simulation testing of various operating conditions, such as excessively high or low inlet pressure, excessive gas usage, filter clogs, and pressure regulator failure. However, simulating these conditions is not easy and raises concerns about safe gas use. Improper operation can endanger the operator's life.

[0066] In order to solve the above problems, the present invention provides a sensor simulation method based on a gas pressure regulating station, which processes the working conditions to be simulated by simulating various sensor data.

[0067] Referring to Figure 5, a commonly used gas pressure regulating station generally includes a main gas line and a backup gas line. The main and backup gas lines both contain filters and pressure regulators, including the main line inlet pressure sensor PE1, the main line filter outlet pressure PE3, the backup line filter outlet pressure PE2, the main line pressure regulator valve position transmitter ZT2, the backup line pressure regulator valve position transmitter ZT2, the main line pressure regulator outlet pressure PE5, the backup line pressure regulator outlet pressure PE4, and the outlet temperature sensor T1, which monitor up to 8 lines of sensor data.

[0068] Referring to Figure 6 , the present invention uses a shell framework to simulate input data from multiple sensors and pass the data to upper-level business logic. The business logic outputs the processing results to memory, and the shell framework can also be used to read the output log to verify the correctness of the upper-level business logic. Python scripts can also be used to remotely or locally access the system for efficient automated simulation, reducing the impact of human intervention on the output results. The specific implementation of the present invention is as follows:

[0069] In one embodiment, as shown in FIG1 , the present invention provides a sensor simulation method based on a gas pressure regulating station, comprising the steps of:

[0070] S100: Selecting a number of corresponding physical sensors according to the working condition to be simulated.

[0071] Specifically, according to the working conditions to be simulated (for example, the working conditions to be simulated include but are not limited to the sensor connection status, the sensor threshold alarm status, the service life of the main and standby line filters, the pressure regulation status of the main and standby line pressure regulators, and the main and standby line pressure regulator valve opening status), select a corresponding number of physical sensors (for example, the physical sensors include but are not limited to the inlet pressure sensor, the main line filter outlet pressure sensor, the standby line filter outlet pressure sensor, the main line pressure regulator outlet pressure sensor, the standby line pressure regulator outlet pressure sensor, the standby line pressure regulator valve position travel sensor, the main line pressure regulator valve position travel sensor, and the outlet temperature sensor).

[0072] S110, constructing a bottom data input layer of the simulation architecture, and setting a plurality of sensor driving devices in the bottom data input layer.

[0073] S120 , a plurality of sensor driving devices are matched one-to-one with a plurality of physical sensors, and the corresponding plurality of physical sensors are logically organized by the plurality of sensor driving devices.

[0074] Specifically, a bottom data input layer of a simulation architecture that applies the simulation method of an embodiment of the present application is constructed, and a plurality of sensor driving devices are set in the bottom data input layer, and the plurality of sensor driving devices are matched one-to-one with a plurality of physical sensors, and the corresponding plurality of physical sensors are logically represented by the plurality of sensor driving devices (for example, by matching the corresponding physical sensor data through a shell framework).

[0075] S130 , performing logical replacement of the logicalized physical sensor by the simulation sensor in the bottom data input layer.

[0076] Specifically, simulation sensors corresponding to the logicalized physical sensors are set in the underlying data input layer, and the simulation sensors also correspond one-to-one to the physical sensors. The logicalized physical sensors are logically replaced by each simulation sensor (for example, the logicalized physical sensor data can be set to the hal_xx_simulator of the corresponding simulation sensor to realize the logical replacement of the physical sensor data), thereby converting the physical sensor into the corresponding simulation sensor (for example, the physical temperature sensor is logically replaced with a simulated temperature sensor).

[0077] S140, constructing a business logic layer of the simulation architecture, the business logic layer is used to receive the working condition data to be simulated sent by the underlying data input layer and perform business logic processing.

[0078] Specifically, a business logic layer of the simulation architecture is constructed, wherein the business logic layer is used to receive the working condition data to be simulated sent by the underlying data input layer (for example, various sensor data required for the working condition to be simulated; if the working condition to be simulated is the service life of the main and standby filters, the required sensor data are the main inlet pressure sensor data, the main filter outlet pressure sensor data and the standby filter outlet pressure sensor data, as well as the corresponding range of each sensor).

[0079] S150, setting parameters corresponding to the working condition to be simulated through the simulation sensor in the bottom data input layer.

[0080] The parameters corresponding to the working condition to be simulated are set through the simulation sensors in the underlying data input layer. Different working conditions to be simulated correspond to different physical sensors. The values ​​of the simulation sensors corresponding to the physical sensors are set according to the actual requirements of the working condition to be simulated (for example, in the shell framework, the parameters corresponding to the working condition to be simulated are set through the simulation sensors, where the simulation sensor input command is sensor_simulator. If the main inlet pressure sensor is simulated, the corresponding simulation sensor setting input command is sensor_simulator--typePE1--data120.35, which means that the pressure value of the simulated main inlet pressure sensor is 120.35 kPa).

[0081] S160 , sending parameters corresponding to the working condition to be simulated to the business logic layer, and causing the business logic layer to perform business logic processing on the working condition to be simulated according to the parameters corresponding to the working condition to be simulated.

[0082] Specifically, after the simulation sensor completes setting of the parameters corresponding to the working condition to be simulated, the bottom input layer transmits the parameters corresponding to the working condition to be simulated to the business logic layer.

[0083] When the business logic layer receives the parameters corresponding to the working condition to be simulated, it first parses the parameters corresponding to the working condition to be simulated (for example, sensor_simulator--typePE1--data120.35 is the input command set for the simulation sensor, and the business logic layer needs to parse it into the main road inlet pressure sensor data), and performs business logic processing on the working condition to be simulated based on the parsed data.

[0084] Software can simulate input data from various sensors to test the upper-level business logic of the digital pressure regulating station controller. By simulating environmental test data from different operating conditions, the performance and reliability of the digital pressure regulating station controller can be verified under various operating conditions. Script files can also be used to automate testing, reducing manual intervention and improving test safety and reliability.

[0085] In one embodiment, the present invention provides a sensor simulation method based on a gas pressure regulating station. Based on the above embodiment, physical sensors can be classified into pressure sensors, temperature sensors, and valve position sensors; or, they can be divided into main line sensors and backup line sensors. Physical sensors include but are not limited to a main line inlet pressure sensor, a main line filter outlet pressure sensor, a backup line filter outlet pressure sensor, a main line pressure regulator outlet pressure sensor, a backup line pressure regulator outlet pressure sensor, a backup line pressure regulator valve position travel sensor, a main line pressure regulator valve position travel sensor, and a main line outlet temperature sensor.

[0086] In one embodiment, as shown in FIG2 , the present invention provides a sensor simulation method based on a gas pressure regulating station. On the basis of the above embodiment, when the working condition to be simulated is the service life of the main and standby line filters, the business logic layer of the simulation architecture is constructed. The business logic layer is used to receive the working condition data to be simulated sent by the underlying data input layer and perform business logic processing. Specifically, the method includes the following steps:

[0087] S200 , selecting a main line inlet pressure sensor, a main line filter outlet pressure sensor, and a backup line filter outlet pressure sensor from among the pressure sensors according to the service life working conditions of the main and backup line filters.

[0088] or,

[0089] Select the main line inlet pressure sensor and the main line filter outlet pressure sensor in the main line sensor according to the service life working conditions of the main and backup line filters, and select the backup line filter outlet pressure sensor in the backup line sensor.

[0090] Specifically, when the working condition to be simulated is the service life of the main and backup filters, the corresponding main inlet pressure sensor, main filter outlet pressure sensor and backup filter outlet pressure sensor are selected according to the main and backup filter service life working condition.

[0091] S210, sets the data of each sensor and the measuring range of each sensor corresponding to the service life condition of the main and backup filters through simulation sensors, and sends the data of each sensor and the measuring range of each sensor corresponding to the service life condition of the main and backup filters to the business logic layer.

[0092] Specifically, the user inputs the simulation sensor input command representing the various sensor data and range corresponding to the service life conditions of the main and backup filters through a terminal (such as a computer, mobile phone, etc.). The simulation sensor sets the main inlet pressure sensor data, main filter outlet pressure sensor data and backup filter outlet pressure sensor data corresponding to the service life conditions of the main and backup filters according to the simulation sensor input command, and sets the ranges of several physical sensors described in the aforementioned embodiments (including but not limited to the main inlet pressure sensor range, the main filter outlet pressure sensor range, the backup filter outlet pressure sensor range, the main pressure regulator outlet pressure sensor range, the backup pressure regulator outlet pressure sensor range, the backup pressure regulator valve position stroke sensor range, the main pressure regulator valve position stroke sensor range and the main outlet temperature sensor range). Among them, the sensors that are not related to the service life conditions of the main and backup filters ensure that their values ​​are within the range of each sensor.

[0093] Furthermore, the main line inlet pressure sensor data, main line filter outlet pressure sensor data and backup line filter outlet pressure sensor data corresponding to the service life conditions of the main and backup line filters, as well as the measuring ranges of several physical sensors are sent to the business logic layer.

[0094] S220 , enabling the business logic layer to perform business logic processing on the service life condition of the main and backup filters according to the data of each sensor corresponding to the service life condition of the main and backup filters and the measuring range of each sensor.

[0095] Specifically, after the business logic layer receives the main line inlet pressure sensor data, the main line filter outlet pressure sensor data and the backup line filter outlet pressure sensor data corresponding to the main and backup line filter service life conditions, as well as the measuring ranges of several physical sensors, it parses these sensor data and measuring ranges, and performs business logic processing on the main and backup line filter service life conditions based on the parsed data. When the business logic processing is completed, the business logic layer sends the main and backup line filter service life condition results after business logic processing to the result output layer for storage.

[0096] The simulation input commands corresponding to the physical sensors in the above embodiments are described with examples:

[0097] Main inlet pressure sensor (its simulation input command is sensor_simulator--type PE1--data 120.35, where type represents the sensor type, which is the main inlet pressure sensor, and data represents the main inlet pressure setting value. The setting value and type can be changed accordingly according to actual conditions and are not limited here); main filter outlet pressure sensor (sensor_simulator--type PE2--data 120.35); backup filter outlet pressure sensor (sensor_simulator--type PE3--data 120.35); main pressure regulator outlet pressure sensor (sensor_simulator--type PE4--data 2.3); backup pressure regulator outlet pressure sensor (sensor_simulator--type PE5--data 2.1); backup pressure regulator valve position travel sensor (sensor_simulator--type ZT1--data 1.23); main pressure regulator valve position travel sensor (sensor_simulator--type ZT2--data 1.23); main outlet temperature sensor (sensor_simulator--type T1--data 23.45).

[0098] Of course, the actual gas pressure regulating station is not limited to the above-mentioned physical sensors. The type and data in the above-mentioned input command can also be changed according to the actual situation, and the parameters of the corresponding simulation conditions can be set through other physical sensors, and business logic processing can be performed.

[0099] Furthermore, the user refers to the above-mentioned input command format, sets the type, value and measuring range of the physical sensor corresponding to the working condition to be simulated through the simulation sensor, and sends these parameters to the business logic layer for processing.

[0100] Furthermore, after the business logic layer receives the parameters corresponding to the simulation working conditions, it first parses them and then performs business logic processing.

[0101] In one embodiment, the present invention provides a sensor simulation method based on a gas pressure regulating station. On the basis of the above embodiment, when the working condition to be simulated is the pressure regulation of the main and backup line pressure regulators,

[0102] Select the corresponding main line filter outlet pressure sensor, backup line filter outlet pressure sensor, main line pressure regulator outlet pressure sensor, and backup line pressure regulator outlet pressure sensor according to the pressure regulation working conditions of the main and backup line pressure regulators.

[0103] Furthermore, the sensor data and measuring range corresponding to the voltage regulation condition of the main and backup voltage regulators are set through simulation sensors, and then processed through the business logic layer.

[0104] The method used in this embodiment is the same as that used in the above embodiment, except for the simulation conditions, which will not be described again here.

[0105] In one embodiment, the present invention provides a sensor simulation method based on a gas pressure regulating station. On the basis of the above embodiment, when the working condition to be simulated is the valve opening of the main and standby line pressure regulator,

[0106] Select the corresponding main line pressure regulator valve position stroke sensor and backup line pressure regulator valve position stroke sensor according to the main and backup line pressure regulator valve port opening conditions.

[0107] Furthermore, the sensor data and measuring range corresponding to the valve opening of the main and standby line pressure regulators are set through the simulation sensor, and then processed through the business logic layer.

[0108] The method used in this embodiment is the same as that used in the above embodiment, except for the simulation conditions, which will not be described again here.

[0109] The embodiments of the present application can simulate any working condition (eg, upper-upper limit, upper limit, lower limit, lower-lower limit alarm business logic processing of thresholds) according to actual needs, and are not limited to the working conditions to be simulated proposed in the above embodiments.

[0110] In one embodiment, as shown in FIG3 , the present invention provides a sensor simulation method based on a gas pressure regulating station, which, based on the above embodiment, further includes the following steps:

[0111] S300, constructing a result output layer of the simulation architecture, where the result output layer is used to receive and store the result of the business logic layer performing business logic processing on the simulation condition.

[0112] Specifically, the result output layer is used to receive and store the results of the simulated working conditions after business logic processing, including but not limited to main backup line pressure regulator failure, main backup line filter failure, inlet and outlet pressure threshold alarms, filter pressure threshold alarms, and pressure regulator pressure threshold alarms.

[0113] S310, the result output layer is further used to receive a simulation result query instruction set by the user, and to output the result after the stored business logic processing of the working condition to be simulated.

[0114] The result output layer is also used to receive simulation result query instructions set by the user (for example, recorder_list--index, representing the number of simulation results to be read, recorder_list--all, representing the reading of all simulation contents, recorder_list--fail, representing the reading of all simulation failure contents).

[0115] The simulation results are verified through simulation result query instructions, which further improves the reliability and accuracy of the simulation test.

[0116] In one embodiment, the present invention provides a sensor simulation method based on a gas pressure regulating station. Based on the above embodiment, when multiple working conditions to be simulated are simulated at the same time,

[0117] As in the previous embodiment, first, the sensors corresponding to the working conditions to be simulated are selected;

[0118] Furthermore, the sensor data and the measuring range corresponding to each working condition to be simulated are set by simulating the sensor, and then processed by the business logic layer (before processing, the business logic layer parses the sensor data and the measuring range corresponding to each working condition to be simulated).

[0119] Furthermore, after the business logic processing is completed, it is determined whether the business logic processing of each working condition to be simulated has been completed.

[0120] If completed, enter the simulation result query command to query the simulation results.

[0121] If not completed, repeat the simulation of the working scenario where the business logic processing is not completed.

[0122] In one embodiment, as shown in FIG4 , the present invention provides a sensor simulation system based on a gas pressure regulating station, including: a bottom data input layer 100 and a business logic layer 200 .

[0123] Several physical sensors.

[0124] The bottom data input layer 100 is used to select corresponding physical sensors according to the working conditions to be simulated.

[0125] Several sensor driving devices are also provided inside the bottom data input layer 100 , and the several sensor device drivers correspond one-to-one to the several physical sensors, and are used to logicalize the corresponding several physical sensors.

[0126] The bottom data input layer 100 is also provided with a simulation sensor, which is used to logically replace the logicalized physical sensor.

[0127] Specifically, a bottom-level data input layer 100 of a simulation architecture that applies the simulation method of an embodiment of the present application is constructed, and a number of sensor driving devices are set in the bottom-level data input layer 100, and the number of sensor driving devices are matched one-to-one with a number of physical sensors, and the corresponding number of physical sensors are logicized through the number of sensor driving devices (for example, the corresponding physical sensor data is matched through the shell framework).

[0128] Furthermore, simulation sensors corresponding to the logicalized physical sensors are provided in the underlying data input layer 100, and the simulation sensors also correspond one-to-one to the physical sensors. The logicalized physical sensors are logically replaced by each simulation sensor (for example, the logicalized physical sensor data can be set to the hal_xx_simulator of the corresponding simulation sensor to realize the logical replacement of the physical sensor data), thereby converting the physical sensor into the corresponding simulation sensor (for example, the physical temperature sensor is logically replaced with a simulated temperature sensor).

[0129] Furthermore, the process of logicizing and replacing the physical sensors is performed in the modules corresponding to the physical sensors in the bottom input layer (eg, the temperature module layer, the pressure module layer, etc.).

[0130] The business logic layer 200 is used to receive the working condition data to be simulated sent by the underlying data input layer and perform business logic processing.

[0131] The simulation sensor is also used to set the parameters corresponding to the working condition to be simulated.

[0132] The bottom data input layer 100 is also used to input the parameters corresponding to the working conditions to be simulated to the business logic layer 200.

[0133] The business logic layer 200 is further configured to perform business logic processing on the working condition to be simulated after receiving parameters corresponding to the working condition to be simulated.

[0134] The sensor simulation method based on the gas pressure regulating station adopted in this embodiment has been described in detail in the above embodiments and will not be repeated here.

[0135] In one embodiment, as shown in FIG4 , the present invention provides a sensor simulation system based on a gas pressure regulating station, which, based on the above embodiment, further includes: a result output layer 300 .

[0136] The result output layer 300 is used to receive and store the results of the business logic layer performing business logic processing on the simulation conditions.

[0137] The result output layer 300 is further used to receive simulation result query instructions set by the user, and to output the results after the stored business logic processing of the working condition to be simulated.

[0138] In one embodiment, as shown in FIG4 , the present invention provides a sensor simulation system based on a gas pressure regulating station. Based on the above embodiment,

[0139] The bottom data input layer 100 is also used to select the main line inlet pressure sensor, the main line filter outlet pressure sensor and the backup line filter outlet pressure sensor among the pressure sensors according to the service life working conditions of the main and backup line filters.

[0140] or,

[0141] The bottom data input layer 100 is also used to select the main line inlet pressure sensor and the main line filter outlet pressure sensor in the main line sensor according to the service life working condition of the main and backup line filters, and select the backup line filter outlet pressure sensor in the backup line sensor.

[0142] The simulation sensor is also used to set the data of each sensor corresponding to the service life working conditions of the main and backup line filters and the measuring range of each sensor.

[0143] The bottom data input layer 100 is also used to send the data of each sensor corresponding to the service life working condition of the main and backup line filters and the range of each sensor to the business logic layer 200.

[0144] The business logic layer 200 is further configured to perform business logic processing on the service life condition of the main and backup filters based on the data of each sensor corresponding to the service life condition of the main and backup filters and the measuring range of each sensor.

[0145] The sensor simulation method based on the gas pressure regulating station adopted in this embodiment has been described in detail in the above embodiments and will not be repeated here.

[0146] In one embodiment, the present invention provides a computer medium having a computer program stored thereon. When the computer program is executed by a processor, it can implement the sensor simulation method based on the gas pressure regulating station as described in the aforementioned embodiment. That is, when part or all of the technical solution that contributes to the prior art in the aforementioned embodiment of the present invention is embodied in the form of a computer software product, the aforementioned computer software product is stored in a computer-readable storage medium. The computer-readable storage medium can be any physical device or equipment that can carry computer program code, such as a USB flash drive, a mobile disk, a magnetic disk, an optical disk, a computer memory, a read-only memory, a random access memory, etc.

[0147] It should be noted that the above embodiments can be freely combined as needed. The above are only preferred embodiments of the present invention. It should be pointed out that those skilled in the art can make several improvements and modifications without departing from the principles of the present invention, and such improvements and modifications should also be considered within the scope of protection of the present invention.

Claims

1. A sensor simulation method based on a gas pressure regulating station, characterized in that: Includes steps: Select a number of corresponding physical sensors according to the working conditions to be simulated; Constructing a bottom data input layer of the simulation architecture, and setting a plurality of sensor driving devices in the bottom data input layer; Matching the plurality of sensor driving devices to the plurality of physical sensors one by one, and logicalizing the corresponding plurality of physical sensors through the plurality of sensor driving devices; The logical physical sensors are replaced by the simulated sensors in the underlying data input layer; Constructing a business logic layer of the simulation architecture, wherein the business logic layer is used to receive the working condition data to be simulated sent by the underlying data input layer and perform business logic processing; Setting the parameters corresponding to the working condition to be simulated through the simulation sensor in the bottom data input layer; The parameters corresponding to the working condition to be simulated are sent to the business logic layer, and the business logic layer performs business logic processing on the working condition to be simulated according to the parameters corresponding to the working condition to be simulated.

2. The sensor simulation method based on the gas pressure regulating station according to claim 1 is characterized in that: The physical sensors include a pressure sensor, a temperature sensor and a valve position sensor; or, The physical sensor includes a main path sensor and a backup path sensor.

3. The sensor simulation method based on the gas pressure regulating station according to claim 2 is characterized in that: When the working condition to be simulated is the service life of the main and standby filters, the business logic layer of the simulation architecture is constructed, and the business logic layer is used to receive the working condition data to be simulated sent by the underlying data input layer, and after performing business logic processing, specifically includes the steps of: According to the service life condition of the main and backup filters, a main inlet pressure sensor, a main filter outlet pressure sensor and a backup filter outlet pressure sensor are selected from the pressure sensors; or, According to the service life condition of the main and standby filters, the main inlet pressure sensor and the main filter outlet pressure sensor are selected from the main sensors, and the standby filter outlet pressure sensor is selected from the standby sensors; The data of each sensor corresponding to the service life condition of the main backup filter and the measuring range of each sensor are set by the simulation sensor, and the data of each sensor corresponding to the service life condition of the main backup filter and the measuring range of each sensor are sent to the business logic layer; The business logic layer performs business logic processing on the service life condition of the main and backup line filters according to the data of each sensor corresponding to the service life condition of the main and backup line filters and the measuring range of each sensor.

4. The sensor simulation method based on the gas pressure regulating station according to claim 1 is characterized in that: Also includes the steps: Constructing a result output layer of the simulation architecture, wherein the result output layer is used to receive and store the result of the business logic layer performing business logic processing on the working condition to be simulated; The result output layer is also used to receive simulation result query instructions set by the user, and to output the stored results after the business logic processing of the working condition to be simulated.

5. The sensor simulation method based on the gas pressure regulating station according to claim 1 is characterized in that: After sending the parameters corresponding to the working condition to be simulated to the business logic layer and causing the business logic layer to perform business logic processing on the working condition to be simulated according to the parameters corresponding to the working condition to be simulated, the method further includes the following steps: Determine whether the working condition to be simulated has completed business logic processing; If not completed, repeat the simulation for the operating scenario where the business logic processing is not completed.

6. A sensor simulation system based on a gas pressure regulating station, characterized in that: include: A bottom data input layer, wherein the bottom data input layer is used to select corresponding physical sensors according to the working conditions to be simulated; A plurality of sensor driving devices are also arranged inside the bottom data input layer, and the plurality of sensor device drivers correspond one-to-one to the plurality of physical sensors, and are used to logicalize the corresponding plurality of physical sensors; The bottom data input layer is also provided with a simulation sensor, which is used to logically replace the logicalized physical sensor; A business logic layer, the business logic layer is used to receive the working condition data to be simulated sent by the underlying data input layer, and perform business logic processing; The simulation sensor is also used to set parameters corresponding to the working condition to be simulated; The bottom data input layer is also used to input the parameters corresponding to the working condition to be simulated to the business logic layer; The business logic layer is further used to perform business logic processing on the working condition to be simulated after receiving parameters corresponding to the working condition to be simulated.

7. The sensor simulation system based on the gas pressure regulating station according to claim 6 is characterized in that: The physical sensors include a pressure sensor, a temperature sensor and a valve position sensor; or, The physical sensor includes a main path sensor and a backup path sensor.

8. The sensor simulation system based on the gas pressure regulating station according to claim 7 is characterized in that: When the working condition to be simulated is the service life of the main and backup line filters, The bottom data input layer is further used to select the main line inlet pressure sensor, the main line filter outlet pressure sensor and the standby line filter outlet pressure sensor among the pressure sensors according to the service life working condition of the main and standby line filters; or, The bottom data input layer is further used to select the main road inlet pressure sensor and the main road filter outlet pressure sensor among the main road sensors according to the service life working condition of the main and standby road filters, and select the standby road filter outlet pressure sensor among the standby road sensors; The simulation sensor is also used to set the data of each sensor corresponding to the service life condition of the main and standby filter and the range of each sensor; The bottom data input layer is also used to send the data of each sensor corresponding to the service life condition of the main and standby filter and the range of each sensor to the business logic layer; The business logic layer is also used to perform business logic processing on the service life condition of the main and backup line filters according to the data of each sensor corresponding to the service life condition of the main and backup line filters and the measuring range of each sensor.

9. The sensor simulation system based on the gas pressure regulating station according to claim 6, characterized in that: Also includes: A result output layer, the result output layer is used to receive and store the result after the business logic layer performs business logic processing on the working condition to be simulated; The result output layer is also used to receive simulation result query instructions set by the user, and to output the stored results after the business logic processing of the working condition to be simulated.

10. A computer medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the sensor simulation method based on a gas pressure regulating station as claimed in any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Sensing data processing method and compute node

    CN102662646A

  • Computer-aided design based embedded sensor simulation and analysis

    CN113454631A

  • Gas turbine sensor fault simulation device and method and monitoring system

    CN115639765A

  • Sensor simulation method and system based on fuel gas pressure regulating station and medium

    CN117454665A

  • System and Method for IoT Device Signal Simulation

    US20190068455A1