CN115426293A - Oil-gas equipment interconnection and intercommunication detection method and device - Google Patents
Oil-gas equipment interconnection and intercommunication detection method and device Download PDFInfo
- Publication number
- CN115426293A CN115426293A CN202110599839.1A CN202110599839A CN115426293A CN 115426293 A CN115426293 A CN 115426293A CN 202110599839 A CN202110599839 A CN 202110599839A CN 115426293 A CN115426293 A CN 115426293A
- Authority
- CN
- China
- Prior art keywords
- standard
- equipment
- parameters
- rtu
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 52
- 238000012360 testing method Methods 0.000 claims abstract description 56
- 238000000034 method Methods 0.000 claims abstract description 44
- 238000004458 analytical method Methods 0.000 claims description 20
- 238000004590 computer program Methods 0.000 claims description 16
- 238000007405 data analysis Methods 0.000 claims description 10
- 238000005259 measurement Methods 0.000 claims description 8
- 239000012530 fluid Substances 0.000 claims description 3
- 238000010276 construction Methods 0.000 abstract description 8
- 238000010586 diagram Methods 0.000 description 17
- 238000004891 communication Methods 0.000 description 9
- 238000004519 manufacturing process Methods 0.000 description 9
- 230000006870 function Effects 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 238000012795 verification Methods 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000007689 inspection Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 238000005553 drilling Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000003208 petroleum Substances 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0811—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/18—Protocol analysers
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Arrangements For Transmission Of Measured Signals (AREA)
- Maintenance And Management Of Digital Transmission (AREA)
Abstract
本发明公开了一种油气设备互联互通检测方法及装置,其中该方法包括:获取采用标准检测系统测量得到的待测设备参数,所述标准检测系统中包含待测设备及标准设备,标准设备遵循标准协议,待测设备遵循厂商协议;将待测设备参数与预设的标准参数进行比对;如果比对通过,则确定待测设备遵循的厂商协议为标准协议,具备互联互通性。本发明可以检测不同厂家生产的油气设备的互联互通性,从而为油气数字化建设提供参考。
The invention discloses a method and device for interconnection and intercommunication detection of oil and gas equipment, wherein the method includes: obtaining the parameters of the equipment to be tested measured by a standard detection system, the standard detection system includes the equipment to be tested and standard equipment, and the standard equipment follows Standard protocol, the device under test follows the manufacturer's protocol; compare the parameters of the device under test with the preset standard parameters; if the comparison is passed, it is determined that the manufacturer's protocol followed by the device under test is a standard protocol, which has interconnection and interoperability. The invention can detect the interoperability of oil and gas equipment produced by different manufacturers, thereby providing reference for oil and gas digital construction.
Description
技术领域technical field
本发明涉及油气生产设备检测技术领域,尤其涉及一种油气设备互联互通检测方法及装置。The invention relates to the technical field of detection of oil and gas production equipment, in particular to a method and device for detection of interconnection of oil and gas equipment.
背景技术Background technique
本部分旨在为权利要求书中陈述的本发明实施例提供背景或上下文。此处的描述不因为包括在本部分中就承认是现有技术。This section is intended to provide a background or context to embodiments of the invention that are recited in the claims. The descriptions herein are not admitted to be prior art by inclusion in this section.
在油气生产地面井口位置,安装有大量采集设备及传输设备,不同厂家生产的油气设备,虽然底层协议都采用标准协议,如WIA-Pa协议或者ZigBee协议等,但上层应用层协议由于可以自由定制的原因,各个厂家使用的应用层协议不尽相同,这就导致了各个厂家生产的油气设备存在一定的不能互联互通的现象,需要对油气设备的互联互通性进行验证,进而验证其自组网性能。但是,目前还没有一种很好的方法对油气设备的互联互通性进行检测。A large number of acquisition equipment and transmission equipment are installed at the surface wellhead of oil and gas production. Although the underlying protocols of oil and gas equipment produced by different manufacturers adopt standard protocols, such as WIA-Pa protocol or ZigBee protocol, the upper application layer protocol can be customized freely. The reason is that the application layer protocols used by various manufacturers are not the same, which leads to the phenomenon that the oil and gas equipment produced by each manufacturer cannot be interconnected. It is necessary to verify the interconnection of the oil and gas equipment, and then verify its ad hoc network. performance. However, there is currently no good method to detect the interconnectivity of oil and gas equipment.
发明内容Contents of the invention
本发明实施例提供一种油气设备互联互通检测方法,用以检测不同厂家生产的油气设备的互联互通性,从而为油气数字化建设提供参考,该方法包括:An embodiment of the present invention provides a method for detecting the interconnection and interoperability of oil and gas equipment, which is used to detect the interconnection and interoperability of oil and gas equipment produced by different manufacturers, so as to provide a reference for oil and gas digital construction. The method includes:
获取采用标准检测系统测量得到的待测设备参数,所述标准检测系统中包含待测设备及标准设备,标准设备遵循标准协议,待测设备遵循厂商协议;Obtaining the parameters of the equipment under test measured by the standard detection system, the standard detection system includes the equipment under test and the standard equipment, the standard equipment follows the standard protocol, and the equipment under test follows the manufacturer's agreement;
将待测设备参数与预设的标准参数进行比对;Compare the parameters of the equipment under test with the preset standard parameters;
如果比对通过,则确定待测设备遵循的厂商协议为标准协议,具备互联互通性。If the comparison is passed, it is determined that the manufacturer's protocol followed by the device under test is a standard protocol and has interconnection and interoperability.
本发明实施例还提供一种油气设备互联互通检测装置,用以检测不同厂家生产的油气设备的互联互通性,从而为油气数字化建设提供参考,该装置包括:The embodiment of the present invention also provides an oil and gas equipment interconnection detection device, which is used to detect the interconnection and interoperability of oil and gas equipment produced by different manufacturers, so as to provide reference for oil and gas digital construction. The device includes:
获取模块,用于获取采用标准检测系统测量得到的待测设备参数,所述标准检测系统中包含待测设备及标准设备,标准设备遵循标准协议,待测设备遵循厂商协议;The obtaining module is used to obtain the parameters of the equipment under test measured by the standard detection system, the standard detection system includes the equipment under test and the standard equipment, the standard equipment follows the standard protocol, and the equipment under test follows the manufacturer's agreement;
比对模块,用于将待测设备参数与预设的标准参数进行比对;The comparison module is used to compare the parameters of the equipment under test with the preset standard parameters;
确定模块,用于当比对通过时,确定待测设备遵循的厂商协议为标准协议,具备互联互通性。The determination module is used to determine that the manufacturer's protocol followed by the device under test is a standard protocol and has interconnection and interoperability when the comparison is passed.
本发明实施例还提供一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述油气设备互联互通检测方法。An embodiment of the present invention also provides a computer device, including a memory, a processor, and a computer program stored on the memory and operable on the processor, and the processor implements the above-mentioned oil and gas equipment interconnection detection method when executing the computer program .
本发明实施例还提供一种计算机可读存储介质,所述计算机可读存储介质存储有执行上述油气设备互联互通检测方法的计算机程序。An embodiment of the present invention also provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for executing the above-mentioned oil and gas equipment interconnection detection method.
本发明实施例中,利用包含标准设备和待测设备的标准检测系统采集并上传待测设备参数,将待测设备参数与标准参数进行比对,如果比对通过,则认为待测设备遵循的厂商协议同样为标准协议,由于遵循了标准协议的设备是可以互联互通的,这样就确认了待测设备具备互联互通性。相比与现有技术中对各个设备分别进行技术参数的查验,由于技术参数数量繁多难以实施相比,本发明实施例采用了待测设备与标准设备互相验证的方法,只需要一套符合标准协议的标准设备即可进行验证,可扩展、易维护、简单可靠;并且,本发明实施例中方法实现简单,对于操作人员的技术要求较低,同时操作简单也能快速完成检测,特别适用于在进行数字化建设前进行的测试,保障不同厂家不同油气生产物联设备的互联互通性,具备良好的应用价值。In the embodiment of the present invention, the standard detection system including the standard equipment and the equipment to be tested is used to collect and upload the parameters of the equipment to be tested, and compare the parameters of the equipment to be tested with the standard parameters. If the comparison is passed, it is considered that the equipment to be tested follows The manufacturer's agreement is also a standard agreement. Since the equipment that follows the standard agreement can be interconnected, it is confirmed that the equipment under test has interconnection and interoperability. Compared with the inspection of technical parameters of each equipment in the prior art, which is difficult to implement due to the large number of technical parameters, the embodiment of the present invention adopts the method of mutual verification between the equipment to be tested and the standard equipment, and only one set of standard equipment is required. The standard equipment of the protocol can be verified, which is scalable, easy to maintain, simple and reliable; moreover, the method in the embodiment of the present invention is simple to implement, has low technical requirements for operators, and is easy to operate and can quickly complete the detection, which is especially suitable for The test conducted before digital construction ensures the interoperability of different oil and gas production IoT equipment from different manufacturers, which has good application value.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。在附图中:In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work. In the attached picture:
图1为本发明实施例中一种油气设备互联互通检测方法的流程图;FIG. 1 is a flowchart of a method for detecting interconnection of oil and gas equipment in an embodiment of the present invention;
图2为本发明实施例中一种标准检测系统的架构图;Fig. 2 is the architecture diagram of a kind of standard detection system in the embodiment of the present invention;
图3为本发明实施例中另一种标准检测系统的架构图;Fig. 3 is the framework diagram of another kind of standard detection system in the embodiment of the present invention;
图4为本发明实施例中另一种标准检测系统的架构图;Fig. 4 is the architectural diagram of another kind of standard detection system in the embodiment of the present invention;
图5为本发明实施例中一种油气设备互联互通检测装置的结构示意图;Fig. 5 is a schematic structural diagram of an oil and gas equipment interconnection detection device in an embodiment of the present invention;
图6为本发明实施例中一种计算机设备的结构示意图。FIG. 6 is a schematic structural diagram of a computer device in an embodiment of the present invention.
具体实施方式Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚明白,下面结合附图对本发明实施例做进一步详细说明。在此,本发明的示意性实施例及其说明用于解释本发明,但并不作为对本发明的限定。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention more clear, the embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings. Here, the exemplary embodiments and descriptions of the present invention are used to explain the present invention, but not to limit the present invention.
本发明实施例提供了一种油气设备互联互通检测方法,如图1所示,该方法包括如下步骤101至步骤103:An embodiment of the present invention provides a method for detecting interconnection and interoperability of oil and gas equipment. As shown in FIG. 1 , the method includes the
步骤101、获取采用标准检测系统测量得到的待测设备参数,标准检测系统中包含待测设备及标准设备,标准设备遵循标准协议,待测设备遵循厂商协议。
其中,标准协议为标准的WIA-Pa协议或ZigBee协议等。WIA-Pa技术标准是中国自主开发的无线工业标准,具有抗干扰能力强、功耗低、通讯实时性强、牢靠性高等特点,在石油行业数字化建设中已经有大量的应用实践。该技术作为无线通信的一种关键技术,在油气行业的通信技术标准写入了油气生产物联网系统建设规范中。Wherein, the standard protocol is a standard WIA-Pa protocol or ZigBee protocol or the like. The WIA-Pa technical standard is a wireless industry standard independently developed by China. It has the characteristics of strong anti-interference ability, low power consumption, strong real-time communication, and high reliability. It has already had a large number of application practices in the digital construction of the petroleum industry. As a key technology of wireless communication, this technology has been written into the construction specification of the oil and gas production Internet of Things system in the communication technology standard of the oil and gas industry.
厂商协议为厂商确定的油气设备遵循的协议,由于部分厂商会在标准协议的基础上自定义协议,因此厂商协议与标准协议可能相同或不同。The manufacturer's agreement is the agreement followed by the oil and gas equipment determined by the manufacturer. Since some manufacturers will customize the agreement on the basis of the standard agreement, the manufacturer's agreement may be the same or different from the standard agreement.
如图2所示,为标准检测系统的一种架构图。参见图2,测试计算机可以通过以太网、本地串口、RS485口或网口等实现与RTU的连接,RTU与采集设备连接,RTU可以为单井RTU或丛井式RTU(图2中同时示出了该两种RTU,标准检测系统中还可以只包含其中一种RTU)。图2中示例性的示出了温度变送器、压力变送器、示功仪、电参模块、流量自控仪等采集设备,除了上述设备之外,还可以对其他油气生产中使用的采集设备进行互联互通性测试。As shown in Figure 2, it is an architecture diagram of a standard detection system. Referring to Fig. 2, the test computer can realize the connection with RTU through Ethernet, local serial port, RS485 port or network port etc., RTU is connected with acquisition equipment, RTU can be single well RTU or cluster well type RTU (shown simultaneously in Fig. 2 In addition to the two RTUs, the standard detection system can only include one of the RTUs). Figure 2 exemplarily shows acquisition equipment such as temperature transmitters, pressure transmitters, dynamometers, electric parameter modules, and flow automatic controllers. In addition to the above equipment, other acquisition equipment used in oil and gas production can also be used. Devices are tested for interoperability.
标准检测系统中的所有设备自组网,具有如下特征:All devices in the standard detection system are ad hoc networks with the following characteristics:
①、网关的从站地址分配模式设置为静态分配;①. The slave station address allocation mode of the gateway is set to static allocation;
②、各参与检测的设备组号均配置为1;②. The group number of each device participating in the detection is configured as 1;
③、RTU使能模拟起井,该模式下RTU和示功仪均可上传模拟电流图和模拟功图;③. The RTU enables simulated drilling. In this mode, both the RTU and the dynamometer can upload the simulated current diagram and simulated power diagram;
④、功图电流图上传周期设置为30分钟;④. The upload period of power diagram and current diagram is set to 30 minutes;
⑤、压力表编号为0-2;⑤, the pressure gauge number is 0-2;
⑥、温度表编号为0;⑥, the number of the thermometer is 0;
⑦、测试用计算机搭载测试软件,能够显示各类仪表采集的生产数据、模拟数据、仪表状态数据等信息。⑦. The test computer is equipped with test software, which can display information such as production data, simulation data, and instrument status data collected by various instruments.
标准检测系统中包含待测设备、标准设备以及测试计算机,当待测设备为RTU时,标准设备为采集设备。其采用的标准检测系统的架构可以参见图3。待测的RTU可以与多个采集设备连接,其获取采集设备上送标准数据包,并解析标准数据包得到解析参数以及RTU设备参数。本发明实施例中,当待测设备为RTU时,将解析参数和RTU设备参数作为待测设备参数。The standard testing system includes the equipment to be tested, the standard equipment and the test computer. When the equipment to be tested is RTU, the standard equipment is the collection equipment. The architecture of the standard detection system used can be seen in Figure 3. The RTU to be tested can be connected to multiple acquisition devices, and the acquisition device sends standard data packets, and parses the standard data packets to obtain analysis parameters and RTU device parameters. In the embodiment of the present invention, when the device under test is an RTU, the analysis parameter and the RTU device parameter are used as the device parameter under test.
其中,标准数据包中数据由采集设备按照标准协议定义的字段顺序及标准字段值写入,并由采集设备发送至RTU。也就是说,标准协议定义了字段的顺序,比如说,当采集设备为温度传感器时,其所写的第一个字段为当前温度,第二个字段为平均温度,第三个字段为采集设备型号,采集设备按照上述顺序写入标准数据包,并且,标准协议定义了每个字段的字段值和字节数量,比如说,温度的字段值范围为000~100,字节数量为3,则当检测到当前温度后,选择该温度对应的字段值写入标准数据包中前三个字节。这样按照顺序写入每个字段的字段值,所写入的字段值的字节数量也符合标准协议规定的数量,就得到了标准数据包。Among them, the data in the standard data packet is written by the acquisition device according to the field order and standard field values defined by the standard protocol, and sent to the RTU by the acquisition device. That is to say, the standard protocol defines the order of the fields. For example, when the acquisition device is a temperature sensor, the first field it writes is the current temperature, the second field is the average temperature, and the third field is the acquisition device. model, the acquisition device writes standard data packets in the above order, and the standard protocol defines the field value and byte quantity of each field. For example, the temperature field value ranges from 000 to 100 and the byte quantity is 3, then When the current temperature is detected, select the field value corresponding to the temperature and write it into the first three bytes of the standard data packet. In this way, the field value of each field is written in order, and the number of bytes of the written field value also conforms to the number specified in the standard protocol, and a standard data packet is obtained.
当RTU接收到标准数据包后,按照自身采用的厂商协议对应的解析方法解析标准数据包,一般情况下,该解析方法定义了每个字段的字节数量,比如说,对于一个包含6个字节的标准数据包030105,厂商协议定义了其中包含3个字段,第一个字段占用3个字节,第二个字段占用1个字节,第三个字段占用2个字节,则RTU解析该标准数据包得到解析参数030/1/05。When the RTU receives the standard data packet, it parses the standard data packet according to the parsing method corresponding to the vendor protocol adopted by itself. Generally, the parsing method defines the number of bytes in each field. For example, for a section of the standard data packet 030105, the vendor agreement defines that it contains 3 fields, the first field occupies 3 bytes, the second field occupies 1 byte, and the third field occupies 2 bytes, then RTU parses The standard data packet gets parsed parameter 030/1/05.
当得到解析参数之后,RTU将解析参数存入寄存器中,之后将寄存器中解析参数与其自身的RTU设备参数打包为新的数据包向测试计算机发送,以供测试计算机根据数据包中待测参数确认RTU是否采用标准协议。After getting the analysis parameters, the RTU will store the analysis parameters in the register, and then pack the analysis parameters in the register and its own RTU device parameters into a new data packet and send it to the test computer for the test computer to confirm according to the parameters to be tested in the data packet Whether the RTU adopts the standard protocol.
需要说明的是,RTU一般采用Modbus协议打包数据包,测试计算机可以准确对Modbus协议数据包进行解析,因此,可以排除因计算机解析RTU上送数据包错误而导致互联互通性确认错误的情况。It should be noted that the RTU generally uses the Modbus protocol to pack data packets, and the test computer can accurately analyze the Modbus protocol data packets. Therefore, it can be ruled out that the interconnection confirmation error caused by the computer analyzing the wrong data packet sent by the RTU can be ruled out.
RTU设备参数包括本地实时数据、本地告警数据、本地历史数据、设备升级数据和配置数据。设备升级数据包括本地升级数据、点对点升级数据和远程升级数据等。对于RTU设备参数,也定义了标准参数,当RTU设备参数比对不通过时,也认为RTU设备没有采用标准协议,以保证互联互通性验证的准确度。RTU device parameters include local real-time data, local alarm data, local historical data, device upgrade data and configuration data. Equipment upgrade data includes local upgrade data, point-to-point upgrade data and remote upgrade data. For RTU equipment parameters, standard parameters are also defined. When the comparison of RTU equipment parameters fails, it is also considered that the RTU equipment does not adopt the standard protocol to ensure the accuracy of interconnection and interoperability verification.
当标准检测系统中待测设备为采集设备时,标准设备为RTU,可以采用如图4所示的标准检测系统,RTU与待测采集设备连接。获取采用标准检测系统测量得到的待测设备参数,可以执行为:获取RTU按照标准协议定义的标准数据解析方法解析采集数据包得到的解析参数,作为待测设备参数。When the device to be tested in the standard detection system is a collection device, the standard device is an RTU, and the standard detection system shown in Figure 4 can be used, and the RTU is connected to the collection device to be tested. Obtaining the parameters of the device under test measured by the standard detection system may be performed as follows: obtaining the analysis parameters obtained by analyzing the collected data packets according to the standard data analysis method defined by the standard protocol as the parameters of the device under test.
其中,标准数据解析方法中定义了按照固定顺序排列的每个字段值对应的字节数量;采集数据包中数据由采集设备按照采集设备遵循的厂商协议写入,并由采集设备发送至RTU。Among them, the standard data analysis method defines the number of bytes corresponding to each field value arranged in a fixed order; the data in the collection data packet is written by the collection device according to the manufacturer's protocol followed by the collection device, and sent to the RTU by the collection device.
也即,采集数据包由采集设备按照厂商协议写入,例如,其可能按照第一个字段当前温度占用2个字节,第二个字段平均温度占用1个字节,第三个字段设备类型占用3个字节写入。而标准数据解析方法中定义了标准协议要求的解析方法,如第一个字段平均温度占用3个字节,第二个字段当前温度占用1个字节,第三个字段设备类型占用2个字节,对于一组数据030105,采集设备认为其中03为当前温度,0为平均温度,105为设备类型;而当标准RTU按照标准数据解析方法进行解析时,认为030为平均温度,1为当前温度,05为设备类型,这样在步骤102中,将RTU解析得到的上述参数与标准参数进行比对时,就会比对不通过,确认采集设备没有采用标准协议,采用标准协议的设备无法正确解析采集设备的参数,其与采用标准协议的其他油气设备不具备互联互通性。That is, the collection data packet is written by the collection device according to the manufacturer's agreement. For example, it may occupy 2 bytes according to the current temperature in the first field, 1 byte in the average temperature in the second field, and 1 byte in the third field device type It takes 3 bytes to write. The standard data analysis method defines the analysis method required by the standard protocol. For example, the first field average temperature occupies 3 bytes, the second field current temperature occupies 1 byte, and the third field device type occupies 2 characters. Section, for a set of data 030105, the acquisition device considers that 03 is the current temperature, 0 is the average temperature, and 105 is the device type; when the standard RTU is analyzed according to the standard data analysis method, it is considered that 030 is the average temperature and 1 is the current temperature , 05 is the device type, so in
采集设备写入标准数据包或采集数据包中的参数包括测量参数及采集设备参数。The parameters written into the standard data packet or the collection data packet by the collection device include measurement parameters and collection device parameters.
测量参数为采集设备的执行其功能时得到的参数,比如温度传感器的测量参数为温度、湿度传感器的测量参数为湿度、风速传感器的测量参数为风速。The measurement parameter is a parameter obtained when the acquisition device performs its function, for example, the measurement parameter of the temperature sensor is temperature, the measurement parameter of the humidity sensor is humidity, and the measurement parameter of the wind speed sensor is wind speed.
采集设备参数包括配置参数、设备升级参数和告警参数。配置参数包括基本配置参数、点对点配置参数和远程配置参数,点对点配置参数包括发射功率、数据率、PanID、定时参数、井站类型、井站编号、RTU存在标识、RTU主从标识、RTU类型、组号/编号和流体种类。The collected device parameters include configuration parameters, device upgrade parameters and alarm parameters. Configuration parameters include basic configuration parameters, point-to-point configuration parameters and remote configuration parameters. Point-to-point configuration parameters include transmit power, data rate, PanID, timing parameters, well station type, well station number, RTU existence identification, RTU master-slave identification, RTU type, Group number/number and type of fluid.
此外,RTU和采集设备中还可能生成一些传输数据,可以一并作为待测设备参数。In addition, some transmission data may be generated in the RTU and the acquisition device, which can be used as the parameters of the device under test.
需要说明的是,对于不同的RTU或不同的采集设备来说,RTU设备参数和采集设备参数与上述例举的RTU设备参数和采集设备参数可能不同,该些参数包括的种类由RTU设备与采集设备本身决定。It should be noted that for different RTUs or different collection devices, the RTU device parameters and collection device parameters may be different from the above-mentioned RTU device parameters and collection device parameters. The device itself decides.
步骤102、将待测设备参数与预设的标准参数进行比对。
本发明实施例中,预先定义了标准参数,其为数值或数值范围,比如说,待测设备为温度传感器时,测量参数为温度,对应的标准参数为10~40,如果待测设备参数为20,则确认比对通过;如果待测设备参数为50,则确认比对不通过。In the embodiment of the present invention, a standard parameter is predefined, which is a value or a range of values. For example, when the device to be tested is a temperature sensor, the measurement parameter is temperature, and the corresponding standard parameter is 10 to 40. If the parameter of the device to be tested is 20, it is confirmed that the comparison is passed; if the parameter of the device under test is 50, it is confirmed that the comparison is not passed.
沿用步骤101中示例,如果待测设备为RTU,其解析的标准数据包的解析参数为030、1、05,而相应的标准参数为000~100、01、1~6,则解析参数与标准参数的比对不通过;如果相应的标准参数为000~100、1、01~06,则比对通过。Following the example in
步骤103、如果比对通过,则确定待测设备遵循的厂商协议为标准协议,具备互联互通性。
如果比对通过,则表明厂商协议也是标准协议,符合标准协议的设备之间可以正确读取其他设备的相应数据,其具备互联互通性。If the comparison is passed, it indicates that the manufacturer's protocol is also a standard protocol, and devices that conform to the standard protocol can correctly read the corresponding data of other devices, which has interconnection and interoperability.
本发明实施例中,利用包含标准设备和待测设备的标准检测系统采集并上传待测设备参数,将待测设备参数与标准参数进行比对,如果比对通过,则认为待测设备遵循的厂商协议同样为标准协议,由于遵循了标准协议的设备是可以互联互通的,这样就确认了待测设备具备互联互通性。相比与现有技术中对各个设备分别进行技术参数的查验,由于技术参数数量繁多难以实施相比,本发明实施例采用了待测设备与标准设备互相验证的方法,只需要一套符合标准协议的标准设备即可进行验证,可扩展、易维护、简单可靠;并且,本发明实施例中方法实现简单,对于操作人员的技术要求较低,同时操作简单也能快速完成检测,特别适用于在进行数字化建设前进行的测试,保障不同厂家不同油气生产物联设备的互联互通性,具备良好的应用价值。In the embodiment of the present invention, the standard detection system including the standard equipment and the equipment to be tested is used to collect and upload the parameters of the equipment to be tested, and compare the parameters of the equipment to be tested with the standard parameters. If the comparison is passed, it is considered that the equipment to be tested follows The manufacturer's agreement is also a standard agreement. Since the equipment that follows the standard agreement can be interconnected, it is confirmed that the equipment under test has interconnection and interoperability. Compared with the inspection of technical parameters of each equipment in the prior art, which is difficult to implement due to the large number of technical parameters, the embodiment of the present invention adopts the method of mutual verification between the equipment to be tested and the standard equipment, and only one set of standard equipment is required. The standard equipment of the protocol can be verified, which is scalable, easy to maintain, simple and reliable; moreover, the method in the embodiment of the present invention is simple to implement, has low technical requirements for operators, and is easy to operate and can quickly complete the detection, which is especially suitable for The test conducted before digital construction ensures the interoperability of different oil and gas production IoT equipment from different manufacturers, which has good application value.
本发明实施例中还提供了一种油气设备互联互通检测装置,如下面的实施例所述。由于该装置解决问题的原理与油气设备互联互通检测方法相似,因此该装置的实施可以参见油气设备互联互通检测方法的实施,重复之处不再赘述。An embodiment of the present invention also provides a device for detecting interconnection of oil and gas equipment, as described in the following embodiments. Since the problem-solving principle of the device is similar to the oil and gas equipment interconnection detection method, the implementation of the device can refer to the implementation of the oil and gas equipment interconnection detection method, and the repetition will not be repeated.
如图5所示,该装置500包括获取模块501、比对模块502和确定模块503。As shown in FIG. 5 , the device 500 includes an acquisition module 501 , a comparison module 502 and a determination module 503 .
其中,获取模块501,用于获取采用标准检测系统测量得到的待测设备参数,标准检测系统中包含待测设备及标准设备,标准设备遵循标准协议,待测设备遵循厂商协议;Among them, the obtaining module 501 is used to obtain the parameters of the equipment under test measured by the standard detection system. The standard detection system includes the equipment under test and the standard equipment. The standard equipment follows the standard protocol, and the equipment under test follows the manufacturer's agreement;
比对模块502,用于将待测设备参数与预设的标准参数进行比对;A comparison module 502, configured to compare the parameters of the device under test with preset standard parameters;
确定模块503,用于当比对通过时,确定待测设备遵循的厂商协议为标准协议,具备互联互通性。The determining module 503 is configured to determine that the manufacturer's protocol followed by the device under test is a standard protocol and has interconnection and interoperability when the comparison is passed.
在本发明实施例的一种实现方式中,当标准检测系统中待测设备为RTU时,标准设备为采集设备;获取模块501,用于:In an implementation of the embodiment of the present invention, when the device to be tested in the standard detection system is an RTU, the standard device is a collection device; the acquisition module 501 is used for:
获取RTU解析标准数据包得到的解析参数以及RTU设备参数,将解析参数和RTU设备参数作为待测设备参数;Obtain the analysis parameters and RTU equipment parameters obtained by RTU analysis standard data packets, and use the analysis parameters and RTU equipment parameters as the equipment parameters to be tested;
其中,标准数据包中数据由采集设备按照标准协议定义的字段顺序及标准字段值写入,并由采集设备发送至RTU。Among them, the data in the standard data packet is written by the acquisition device according to the field order and standard field values defined by the standard protocol, and sent to the RTU by the acquisition device.
在本发明实施例的一种实现方式中,RTU设备参数包括本地实时数据、本地告警数据、本地历史数据、设备升级数据和配置数据。In an implementation manner of the embodiment of the present invention, the RTU device parameters include local real-time data, local alarm data, local historical data, device upgrade data and configuration data.
在本发明实施例的一种实现方式中,当标准检测系统中待测设备为采集设备时,标准设备为RTU;获取模块501,用于:In an implementation manner of the embodiment of the present invention, when the device to be tested in the standard detection system is a collection device, the standard device is an RTU; the acquisition module 501 is used for:
获取RTU按照标准协议定义的标准数据解析方法解析采集数据包得到的解析参数,作为待测设备参数;Obtain the analysis parameters obtained by analyzing the collected data packets according to the standard data analysis method defined by the standard protocol by the RTU, as the parameters of the device under test;
其中,标准数据解析方法中定义了按照固定顺序排列的每个字段值对应的字节数量;采集数据包中数据由采集设备按照采集设备遵循的厂商协议写入,并由采集设备发送至RTU。Among them, the standard data analysis method defines the number of bytes corresponding to each field value arranged in a fixed order; the data in the collection data packet is written by the collection device according to the manufacturer's protocol followed by the collection device, and sent to the RTU by the collection device.
在本发明实施例的一种实现方式中,采集设备写入标准数据包或采集数据包中的参数包括测量参数及采集设备参数,采集设备参数包括配置参数、设备升级参数和告警参数,配置参数包括基本配置参数、点对点配置参数和远程配置参数,点对点配置参数包括发射功率、数据率、PanID、定时参数、井站类型、井站编号、RTU存在标识、RTU主从标识、RTU类型、组号/编号和流体种类。In an implementation of an embodiment of the present invention, the parameters written by the collection device into the standard data packet or the collection data packet include measurement parameters and collection device parameters, and the collection device parameters include configuration parameters, device upgrade parameters, and alarm parameters. Including basic configuration parameters, point-to-point configuration parameters and remote configuration parameters, point-to-point configuration parameters include transmit power, data rate, PanID, timing parameters, well station type, well station number, RTU existence identification, RTU master-slave identification, RTU type, group number / number and type of fluid.
本发明实施例中,利用包含标准设备和待测设备的标准检测系统采集并上传待测设备参数,将待测设备参数与标准参数进行比对,如果比对通过,则认为待测设备遵循的厂商协议同样为标准协议,由于遵循了标准协议的设备是可以互联互通的,这样就确认了待测设备具备互联互通性。相比与现有技术中对各个设备分别进行技术参数的查验,由于技术参数数量繁多难以实施相比,本发明实施例采用了待测设备与标准设备互相验证的方法,只需要一套符合标准协议的标准设备即可进行验证,可扩展、易维护、简单可靠;并且,本发明实施例中方法实现简单,对于操作人员的技术要求较低,同时操作简单也能快速完成检测,特别适用于在进行数字化建设前进行的测试,保障不同厂家不同油气生产物联设备的互联互通性,具备良好的应用价值。In the embodiment of the present invention, the standard detection system including the standard equipment and the equipment to be tested is used to collect and upload the parameters of the equipment to be tested, and compare the parameters of the equipment to be tested with the standard parameters. If the comparison is passed, it is considered that the equipment to be tested follows The manufacturer's agreement is also a standard agreement. Since the equipment that follows the standard agreement can be interconnected, it is confirmed that the equipment under test has interconnection and interoperability. Compared with the inspection of technical parameters of each equipment in the prior art, which is difficult to implement due to the large number of technical parameters, the embodiment of the present invention adopts the method of mutual verification between the equipment to be tested and the standard equipment, and only one set of standard equipment is required. The standard equipment of the protocol can be verified, which is scalable, easy to maintain, simple and reliable; moreover, the method in the embodiment of the present invention is simple to implement, has low technical requirements for operators, and is easy to operate and can quickly complete the detection, which is especially suitable for The test conducted before digital construction ensures the interoperability of different oil and gas production IoT equipment from different manufacturers, which has good application value.
本发明实施例还提供一种计算机设备,图6为本发明实施例中计算机设备的示意图,该计算机设备能够实现上述实施例中的油气设备互联互通检测方法中全部步骤,该计算机设备具体包括如下内容:The embodiment of the present invention also provides a computer device. FIG. 6 is a schematic diagram of the computer device in the embodiment of the present invention. The computer device can implement all the steps in the oil and gas equipment interconnection detection method in the above embodiment. The computer device specifically includes the following content:
处理器(processor)601、存储器(memory)602、通信接口(CommunicationsInterface)603和通信总线604;Processor (processor) 601, memory (memory) 602, communication interface (CommunicationsInterface) 603 and
其中,所述处理器601、存储器602、通信接口603通过所述通信总线604完成相互间的通信;所述通信接口603用于实现相关设备之间的信息传输;Wherein, the
所述处理器601用于调用所述存储器602中的计算机程序,所述处理器执行所述计算机程序时实现上述实施例中的油气设备互联互通检测方法。The
本发明实施例还提供一种计算机可读存储介质,所述计算机可读存储介质存储有执行上述油气设备互联互通检测方法的计算机程序。An embodiment of the present invention also provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for executing the above-mentioned oil and gas equipment interconnection detection method.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, systems, or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may 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.) having computer-usable program code embodied therein.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.
以上所述的具体实施例,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本发明的具体实施例而已,并不用于限定本发明的保护范围,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The specific embodiments described above have further described the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above descriptions are only specific embodiments of the present invention and are not intended to limit the scope of the present invention. Protection scope, within the spirit and principles of the present invention, any modification, equivalent replacement, improvement, etc., shall be included in the protection scope of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110599839.1A CN115426293B (en) | 2021-05-31 | 2021-05-31 | Oil-gas equipment interconnection detection method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110599839.1A CN115426293B (en) | 2021-05-31 | 2021-05-31 | Oil-gas equipment interconnection detection method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115426293A true CN115426293A (en) | 2022-12-02 |
CN115426293B CN115426293B (en) | 2024-10-29 |
Family
ID=84195433
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110599839.1A Active CN115426293B (en) | 2021-05-31 | 2021-05-31 | Oil-gas equipment interconnection detection method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115426293B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5864658A (en) * | 1990-10-08 | 1999-01-26 | D2B Systems Company Limited | Test apparatus for verifying the conformity of a device under test with a standard application protocol |
CN105592119A (en) * | 2014-10-24 | 2016-05-18 | 中国石油天然气股份有限公司 | Communication method and device of network equipment |
CN112054934A (en) * | 2019-06-05 | 2020-12-08 | 杭州海康威视系统技术有限公司 | Protocol detection method and device and electronic equipment |
CN112866047A (en) * | 2019-11-27 | 2021-05-28 | 中国石油天然气股份有限公司 | Wireless data detection device |
-
2021
- 2021-05-31 CN CN202110599839.1A patent/CN115426293B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5864658A (en) * | 1990-10-08 | 1999-01-26 | D2B Systems Company Limited | Test apparatus for verifying the conformity of a device under test with a standard application protocol |
CN105592119A (en) * | 2014-10-24 | 2016-05-18 | 中国石油天然气股份有限公司 | Communication method and device of network equipment |
CN112054934A (en) * | 2019-06-05 | 2020-12-08 | 杭州海康威视系统技术有限公司 | Protocol detection method and device and electronic equipment |
CN112866047A (en) * | 2019-11-27 | 2021-05-28 | 中国石油天然气股份有限公司 | Wireless data detection device |
Non-Patent Citations (2)
Title |
---|
刘英;李清辉;成书军;赵卫明;韩辛酉;刘洋洋;: "基于油气生产物联网的无线传感器网络设备互连互通测试平台设计及实现", 信息系统工程, no. 05 * |
王成城;王春喜;刘卓;段潘婷;: "智能制造中的生产过程质量控制标准化体系研究", 中国标准化, no. 04, 25 February 2018 (2018-02-25) * |
Also Published As
Publication number | Publication date |
---|---|
CN115426293B (en) | 2024-10-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107222362B (en) | Automatic test platform for finished vehicle CAN network and optimization method thereof | |
WO2017000424A1 (en) | Protocol detection method and apparatus | |
WO2012155842A1 (en) | Ctcs-3 train control test and simulation system | |
CN103475523B (en) | With the CAN analytical system of bus error analytical capabilities | |
CN102946616B (en) | Internet of things middleware performance testing system and testing method | |
JP2012038302A5 (en) | ||
CN102833132B (en) | Detection method of onboard data multiplexer | |
CN101237358B (en) | Analysis method on available bandwidth of network parameter measurement system and point-to-point access time sequence | |
CN104378260B (en) | load rate testing method, device and system of CAN bus | |
US7957951B2 (en) | Address translation system for use in a simulation environment | |
CN111966084A (en) | TBOX detection device and method | |
CN103939085A (en) | Method for debugging comprehensive logging instrument by means of simulating scene sensor signal | |
CN101677277B (en) | MODBUS-RTU protocol conformance test method | |
US20080229165A1 (en) | Address translation system for use in a simulation environment | |
CN105162649A (en) | Testing method and system for nuclear power station safety level network performance index | |
CN115426293A (en) | Oil-gas equipment interconnection and intercommunication detection method and device | |
CN201146527Y (en) | Network parameter measurement system | |
CN104780123A (en) | Network packet receiving and sending processing device and design method thereof | |
CN116298088B (en) | Test method and system for nitrogen-oxygen sensor for vehicle | |
CN102984749B (en) | For the RFC2544 consensus standard method of wireless device performance test | |
CN108900244A (en) | A kind of FC optical interface data and its method of related data monitoring and test | |
CN205669677U (en) | Oil and gas pipeline leakage detection system based on radio sensing network and KNN algorithm | |
CN202602670U (en) | IEC61850 detection platform of electric energy quality monitoring terminal | |
Zhang et al. | Pipeline data collection system based on wireless sensor network | |
CN219551767U (en) | Multichannel device for detecting air pressure sensor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |