An oil well data management system
By designing an oil well data management system to automatically acquire and transmit oil well data, the problem of insufficient real-time and accuracy in oil well data management in the existing technology is solved, and the oil well output and data management efficiency are improved.
Patent Information
- Application Number
- CN202310896927.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-20
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2043-07-20
AI Technical Summary
Existing oil well data management methods have problems with low real-time performance and low accuracy, causing oil well production to be affected.
An oil well data management system is designed, including a data acquisition subsystem, a data transmission subsystem and a data management subsystem, which improves the real-time and accuracy of data by automatically acquiring and transmitting oil well data, analyzing and storing them according to the sending protocol type .
It improves the real-time and accuracy of oil well data management, thereby increasing the production of oil wells, reducing the reliance on manual inspections, reducing troubleshooting time and worker labor intensity.
Smart Images

Figure CN117834664B
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of computer technology, and in particular to an oil well data management system. Background Art
[0002] Oil well data management is of great significance to the acquisition and construction of oil fields.
[0003] At present, oil well data management mainly relies on manual inspections, specifically by transcribing various production data on site. This means that if an abnormal situation occurs at the oil field construction site, it will not be dealt with until the inspection staff discovers it.
[0004] However, since oil field construction sites are usually located in remote areas with inconvenient transportation, and oil wells and well stations are scattered, numerous and cover a wide range, the current oil well data management method has problems with low real-time and accuracy, which will affect the production of oil wells and needs to be solved. Summary of the invention
[0005] The embodiment of the present invention provides an oil well data management system to improve the production of oil wells by improving the real-time performance and accuracy of oil well data management.
[0006] According to one aspect of the present invention, an oil well data management system is provided, which may include: a data acquisition subsystem, a data transmission subsystem and a data management subsystem; wherein:
[0007] The data acquisition subsystem is used to acquire the oil well data associated with the target oil well, and send the oil well data to the data transmission subsystem based on the sending protocol type corresponding to the oil well data;
[0008] The data transmission subsystem is used to receive the oil well data, analyze the oil well data according to the transmission protocol type, obtain the analysis data, and transmit the analysis data to the data management subsystem;
[0009] The data management subsystem is used to receive and store analysis data.
[0010] The technical solution of the embodiment of the present invention is to obtain the oil well data associated with the target oil well through the data acquisition subsystem, and send the oil well data to the data transmission subsystem based on the sending protocol type corresponding to the oil well data; receive the oil well data through the data transmission subsystem, analyze the oil well data according to the sending protocol type, obtain analysis data, and transmit the analysis data to the data management subsystem; receive the analysis data through the data management subsystem, and store the analysis data. The above technical solution can automatically and accurately obtain the oil well data and transmit the oil well data to the data management subsystem in a timely manner, thereby improving the real-time and accuracy of the oil well data management, and improving the production of the oil well by improving the real-time and accuracy of the oil well data management.
[0011] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0013] Figure 1 is a flow chart of an oil well data management system provided according to an embodiment of the present invention;
[0014] Figure 2 It is a schematic diagram of the layout of a beam pumping unit in an oil well data management system provided according to an embodiment of the present invention;
[0015] Figure 3 is a schematic diagram of the layout of another beam pumping unit in an oil well data management system provided according to an embodiment of the present invention;
[0016] Figure 4 is a schematic diagram of the layout of a tower-type oil pumping unit in an oil well data management system provided according to an embodiment of the present invention;
[0017] Figure 5 is a schematic diagram of a data transmission method for analyzing data in an oil well data management system provided in an embodiment of the present invention;
[0018] Figure 6 is a structural diagram of a data acquisition subsystem in an oil well data management system provided according to an embodiment of the present invention;
[0019] Figure 7is a schematic diagram of a remote terminal control system in an oil well data management system provided according to an embodiment of the present invention;
[0020] Figure 8 is a schematic diagram of a wireless load displacement sensor in an oil well data management system provided according to an embodiment of the present invention;
[0021] Fig. 9 is a schematic diagram of a wireless digital pressure sensor in an oil well data management system provided according to an embodiment of the present invention;
[0022] Fig.10 is a schematic diagram of a wireless digital temperature sensor in an oil well data management system provided according to an embodiment of the present invention;
[0023] Fig.11 is a schematic diagram of an oil well measurement and control instrument in an oil well data management system provided according to an embodiment of the present invention;
[0024] Fig.12 This is a structural diagram of an oil well measurement and control instrument in an oil well data management system provided according to an embodiment of the present invention;
[0025] Fig.13 It is a schematic diagram of the installation position of an oil well measurement and control instrument in an oil well data management system provided according to an embodiment of the present invention;
[0026] Fig.14 is a schematic diagram of the hardware composition of a data management subsystem in an oil well data management system provided in an embodiment of the present invention;
[0027] Fig.15 is an example diagram of a server configuration page in an oil well data management system provided according to an embodiment of the present invention;
[0028] Fig.16 This is an example diagram of a target oil well data page in an oil well data management system provided according to an embodiment of the present invention;
[0029] Fig.17 is a flow chart of another oil well data management system provided according to an embodiment of the present invention;
[0030] Fig.18 is a schematic diagram of the workflow of a protocol processing module in another oil well data management system provided according to an embodiment of the present invention;
[0031] Fig.19 is a flow chart of another oil well data management system provided according to an embodiment of the present invention;
[0032] Fig. 20 is a flow chart of another oil well data management system provided according to an embodiment of the present invention;
[0033] Fig.21 is a schematic diagram of a work flow of a target analysis module in another oil well data management system provided according to an embodiment of the present invention;
[0034] Fig. 22 is a schematic diagram of an optional example of another oil well data management system provided according to an embodiment of the present invention;
[0035] Fig.23 is a schematic diagram of another optional example of an oil well data management system provided according to an embodiment of the present invention;
[0036] Fig.24 It is a schematic diagram of yet another optional example of an oil well data management system provided according to an embodiment of the present invention. DETAILED DESCRIPTION
[0037] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0038] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. The situations of "target", "original", etc. are similar and will not be repeated here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0039] Figure 1 is a structural block diagram of an oil well data management system provided in an embodiment of the present invention. This embodiment is applicable to the case of oil well data management. Figure 1The oil well data management system of the embodiment of the present invention may include: a data acquisition subsystem 110, a data transmission subsystem 120 and a data management subsystem 130; wherein the data acquisition subsystem 110 is used to acquire the oil well data associated with the target oil well, and send the oil well data to the data transmission subsystem 120 based on the sending protocol type corresponding to the oil well data; the data transmission subsystem 120 is used to receive the oil well data, analyze the oil well data according to the sending protocol type, obtain analysis data, and transmit the analysis data to the data management subsystem 130; the data management subsystem 130 is used to receive the analysis data and store the analysis data.
[0040] Among them, the data acquisition subsystem 110 is a subsystem for acquiring oil well data. The target oil well is the oil well for which the oil well data managed by the target oil well is required to be managed; the target oil well may be, for example, a pumping well, a self-flowing well, a screw pump well and / or an electric submersible pump well, etc. The oil well data is data associated with the target oil well; the oil well data may include, for example, the production and operation parameters of the target oil well, the oil production station associated with the target oil well, the injection station associated with the target oil well, the joint station associated with the target oil well and / or the gathering and transportation pipeline network associated with the target oil well, etc.
[0041] In an embodiment of the present invention, sensors, transmitters, automated instruments, video cameras and other equipment may be deployed at the well site and production station of the target oil well. The sensors may be, for example, oil pressure, casing pressure, temperature, displacement, load, infrared alarm, wattmeter, current, voltage and other sensors, which may collect in real time parameters such as current, voltage, temperature, pressure, flow, displacement, load and / or liquid level of oil, gas, water wells and / or production stations associated with the target oil well, and / or industrial audio and video data as oil well data. It should be noted that the above-mentioned sensors and other equipment may monitor the oil well data associated with the target oil well in real time, and may adapt to various severe weather and environments to ensure that the oil well data is collected in real time and accurately.
[0042] For example, see Figure 2 and Figure 3 Wellhead oil pressure sensors, casing pressure sensors, flow sensors, temperature sensors, load sensors or load sensors, displacement sensors and infrared sensors can be deployed on the beam pumping unit of the target oil well, the acquisition unit and the General Packet Radio Service (GPRS) communication unit can be installed in the dedicated cabinet of the beam pumping unit, and the current sensor can be installed in the power distribution cabinet of the beam pumping unit.
[0043] For example, see Figure 4Load sensors, infrared sensors, and displacement sensors can be deployed on the tower-type pumping unit of the target oil well, temperature sensors, back pressure sensors, and casing pressure sensors can be installed at the wellhead of the target oil well, and current sensors, voltage sensors, and wattmeters can be installed in the cabinet of the measurement and control terminal of the tower-type pumping unit.
[0044] Exemplarily, if the target oil well is a pumping well, the oil well data may be data such as the oil pressure, casing pressure, temperature, displacement, load, infrared alarm, electric energy, current, voltage and / or dynamic liquid level of the pumping well; if the target oil well is a screw pump well, the oil well data may be data such as the power, power factor, voltage, current, speed, torque, temperature, oil pressure and / or casing pressure of the screw pump well; if the target oil well is an electric submersible pump well, the oil well data may be data such as the power, power factor, voltage, current, oil pressure and / or back pressure of the electric submersible pump well; if the target oil well is a flowing well, the oil well data may be data such as the oil pressure, back pressure and / or oil temperature of the flowing well.
[0045] It should be noted that due to the different data types or data sources of the oil well data, the sending protocol type of the oil well data may also be different. The sending protocol type is the protocol type corresponding to the oil well data. Therefore, the oil well data can be sent to the data transmission subsystem 120 based on the sending protocol type corresponding to the oil well data.
[0046] It should be noted that, since the location of the target oil well may be remote and inconvenient for transportation, the oil well data needs to be transmitted to the base located at the oil well data management, and the data transmission subsystem 120 is a subsystem that can transmit the oil well data. Accordingly, the terminals of the data acquisition subsystem 110 and the data transmission subsystem 120 can be located in the area where the target oil well is located, and the terminal of the data management subsystem 130 can be located in the area where the base for managing the oil well data is located.
[0047] In the embodiment of the present invention, the data transmission subsystem 120 can be located on the base real-time data receiving server to receive the oil well data, analyze the oil well data according to the transmission protocol type, obtain analysis data, which is the data obtained by analyzing the oil well data, and transmit the analysis data to the data management subsystem 130. It should be noted that the method of transmitting the analysis data to the data management subsystem 130 can be determined according to the actual situation of the target oil well, see Figure 5The method of transmitting the analysis data to the data management subsystem 130 may be, for example, wireless communication methods such as GPRS / Code Division Multiple Access (CDMA) wireless transmission, satellite, microwave and / or wireless bridge, and / or wired communication methods such as optical cable and / or coaxial cable. In the embodiment of the present invention, there is no specific limitation on the method of transmitting the analysis data to the data management subsystem 130.
[0048] For example, see Figure 6 The data acquisition subsystem 110 may include a wireless load displacement sensor, an explosion-proof wireless digital pressure sensor for measuring the oil pressure of the target oil well, an explosion-proof wireless digital pressure sensor for measuring the casing pressure of the target oil well, an explosion-proof wireless digital temperature sensor, and a digital power acquisition controller; the oil well data corresponding to the wireless load displacement sensor, the explosion-proof wireless digital pressure sensor for measuring the oil pressure of the target oil well, the explosion-proof wireless digital pressure sensor for measuring the casing pressure of the target oil well, and the explosion-proof wireless digital temperature sensor are sent to the remote terminal control system (Remote Terminal Unit, RTU) included in the data transmission subsystem 120 through the ZIGBEE 2.4G local wireless digital communication network, and the oil well data corresponding to the digital power acquisition controller are sent to the RTU through the controller area network bus (Controller Area Network, CAN); the RTU analyzes the above oil well data according to the sending protocol type to obtain analysis data, and transmits the analysis data to the generation command monitoring center in the data management subsystem 130, so as to monitor and manage the target oil well according to the analysis data. Among them, see Figure 7 , RTU can be OS40P-5000D RTU, its power supply is 7.5V; power is 40W; CAN bus is 1 channel, using CAN Specification Version 2.0 standard, photoelectric isolation, isolation voltage 1000Vdc / 1 minute; operating temperature is -40~+80℃; relative humidity is <90%RH (no condensation); remote wireless communication is CDMA / GPRS / SCDMA, etc.; this case has Ethernet interface, 10BASE-T PHY, compatible with 100 / 1000BASE-T network; local wireless communication is Zigbee pro 2.4G, line of sight ≥150m; size is length 160×width 100×height 65; waterproof PE panel is used, IP65 protection level. See Figure 8 The wireless load displacement sensor may be an OS35AWB wireless load displacement sensor, and its functional characteristics are shown in Table 1 below.
[0049] Table 1 Functional characteristics of OS35AWB wireless load displacement sensor
[0050]
[0051]
[0052] The main technical specifications of the OS35AWB wireless load displacement sensor are shown in Table 2.
[0053] Table 2 Main technical indicators of OS35AWB wireless load displacement sensor
[0054]
[0055]
[0056] See also Fig. 9 The explosion-proof wireless digital pressure sensor can be an OS39P wireless digital pressure transmitter. The functional features of the OS39P wireless digital pressure transmitter can be shown in Table 3 below.
[0057] Table 3 OS39P wireless digital pressure transmitter features
[0058]
[0059]
[0060] The technical specifications of the OS39P wireless digital pressure transmitter can be shown in Table 4 below.
[0061] Table 4 Technical specifications of OS39P wireless digital pressure transmitter
[0062]
[0063]
[0064] See also Fig.10 The explosion-proof wireless digital temperature sensor can be an OS39T wireless digital temperature transmitter. The technical indicators of the OS39T wireless digital temperature transmitter can be shown in Table 5 below.
[0065] Table 5 OS39T wireless digital temperature transmitter technical indicators
[0066]
[0067]
[0068] Exemplarily, as shown in Table 6 below, the data acquisition subsystem 110 may include an oil well intelligent monitoring box, a wireless load displacement sensor, a digital power acquisition controller, an open-close mutual inductor, an explosion-proof wireless digital pressure transmitter, an explosion-proof wireless digital temperature transmitter, and an RTU mounting bracket.
[0069] Table 6 Data acquisition subsystem 110 configuration table
[0070]
[0071]
[0072] For example, see Fig.11 and Fig.12, the data acquisition subsystem 110 may include an oil well monitoring instrument. The oil well monitoring instrument is divided into two parts, a chassis and a junction box, from the outside. The main equipment of the slave is installed in the chassis, and the junction box is used for wiring external sensors. The interior of the chassis is mainly composed of a power supply, a mainboard, an expansion baseboard, a communication module and various data acquisition boards, and their properties and quantities are marked on the label outside the slave housing. Up to 5 expansion boards can be inserted, and the order of expansion slots is: No. 0 on the mainboard, and No. 1, 2, 3, and 4 on the baseboard from left to right. At present, there are 6 types of cards, including pumping unit cards, 12-bit AD cards, flow acquisition and integration cards, serial communication cards, 6-way current and 1-way voltage cards, and uninterruptible power supply cards. Among them, the pumping unit card and the 6-way current and 1-way voltage card can only be inserted in slot No. 0, and other cards can be inserted in any slot. Some data acquisition cards have SUB central processing units (CPUs), which are used to complete data acquisition tasks and maintain high-speed communication with the MAINCPU on the mainboard, ensuring the amount of data collected and the redundancy of communication. The mainboard is mainly composed of CPU, memory, two 8-bit analog-to-digital conversions (AD), various wiring ports, various indicator lights, setting jumpers and expansion slot 0. There are 4 indicator lights on the mainboard, namely power, signaling, status and protection indicators. The power light is on, indicating that the power supply on the board is normal, the signaling light is on, indicating that the device is in the signaling state, and the status light has the following functions: it flashes for a short time when the machine is turned on, and the flashing time and mode are related to the number of external expansion boards; if it flashes quickly for a long time, it indicates that the memory is damaged; the light is on when sending a signal, and after the signal is sent, it flashes to indicate that it does not communicate with the lower-level expansion board, and it communicates with the lower-level expansion board when it does not flash. The expansion slot 0 on the mainboard is mainly used to insert the pumping unit card, but other expansion cards can also be inserted. The power supply in this machine is usually AC 380V input (special cases use 220V or remote centralized power supply, which are marked on the label outside the machine), DC +12V, +24V and -12V output, AC power 35W, DC +12V 2A, -12V 0.3A, +24V 0.3A. Connect to the mainboard with a 4-wire connection cable. The power fuse is 0.5A. See Fig.13 , the oil well monitoring instrument can be located in the field area where the target oil well is located.
[0073] Exemplarily, the data transmission subsystem 120 can use the wireless network of China Mobile and China Unicom as a channel or transparently transmit serial communication. The data transmission subsystem 120 can use different communication methods according to the different field areas where the target oil well is located, and can also use different communication modules. In the case where the field area where the target oil well is located mainly uses GPRS and CDMA two wireless communication methods, the GPRS communication module and the CDMA1X wireless communication module can be used for communication accordingly. Both of the above modules can be connected to instruments with RS232, 485 / 422 and other interfaces. Among them, the GPRS communication module can be composed of an ETPRO manual communication module and an interface circuit, and the interface circuit includes a CPU, a memory, an antenna seat, a data line seat, an indication circuit and a SIM card setting circuit, etc., and its communication rate with the mainboard is 9600bit / s; the communication interface of the GPRS communication module is RS232, which requires 5V power supply; although the GPRS communication module is not large in size, it integrates the mobile phone core and the Transmission Control Protocol / Internet Protocol (TCP / IP) stack; the communication protocol for controlling the GPRS communication module is the AT+i instruction. AT+i command is an extension of At command set, adding support for TCP / IP protocol control; GPRS communication module can be used alone to realize GPRS network communication; GPRS communication module not only includes all the functions of general GPRS IP MODEM seen on the market, but also integrates power control and At command hardware channel directly to MODEM core. The functions of CDMA1X wireless communication module are basically the same as GPRS module, but its communication channel is China Unicom's CDMA1X, so CDMA1X wireless communication module can provide faster connection speed than GPRS module, and it can connect with other devices through RS 232 serial communication interface. The advantage of GPRS communication module and CDMA1X wireless communication module is that the channel is completely transparent. Any signal received by the serial communication port of the module can be transmitted intact to the device at the other end through the mobile phone channel. Similarly, the data at the other end can be transmitted intact to the serial communication port of the module. The GPRS communication module and CDMA1X wireless communication module are easy to configure. Through the dip switch, the user can specify the communication rate and verification method of the communication serial port. The GPRS communication module and CDMA1X wireless communication module can adapt to the computer's super terminal program. The user can enter the configuration menu and interactively modify various parameters. The GPRS communication module and CDMA1X wireless communication module can use VPN (fixed IP) communication mode to ensure stable communication, or use dynamic IP mode for communication. The GPRS communication module and CDMA1X wireless communication module can use multiple soft and hard WATCHDOGs, which can work continuously when unattended.
[0074] In an embodiment of the present invention, the data management subsystem 130 can receive analysis data and store the analysis data in a storage space such as a database. For example, the analysis data can be stored in a background analysis system database so that the background analysis software can use the analysis data. The user can also issue corresponding instructions through pages such as display pages to instruct the export or display of analysis data, thereby achieving management of the analysis data.
[0075] In an embodiment of the present invention, the analysis data received by the data management subsystem 130 can be viewed and displayed in real time through the display page, thereby avoiding well shutdown and personal injury caused by testing the dynamometer diagram and the liquid level during manual inspection; it is also possible to timely prevent or discover environmental accidents that may cause pollution to surrounding fish ponds, reed fields, and farmland due to oil well failures through real-time monitoring of the target oil wells; and by viewing in real time the analysis data related to infrared monitoring, video monitoring and other equipment installed at the target oil wells and the central station, effectively reduce the occurrence of various theft incidents at the well site and oil production station; it is also possible to timely discover various abnormal working conditions of the target oil wells, so that on-site staff can solve the failures of the oil wells in a targeted manner, and there is no need for staff to blindly inspect and discover oil well problems, which effectively reduces the labor intensity of workers, optimizes the employment structure, shortens the fault handling time, increases the well opening rate, and reduces the number of on-site operations.
[0076] In the embodiments of the present invention, see Fig.14 The data management subsystem 130 can be deployed in a hardware group consisting of network devices such as data acquisition servers, switches and / or data transmission dedicated lines to implement a comprehensive network security and data backup strategy. The network security strategy adopted by the data management subsystem 130 may include firewall technology, antivirus technology, intrusion detection technology and / or multi-task security gateway technology. The data management subsystem 130 can adopt a database backup strategy that combines local backup with off-site backup, and / or a database backup strategy that combines full backup with incremental backup as the data backup strategy of the data management subsystem 130. The data management subsystem 130 may include parts such as database and / or user management, see Fig.15 and Fig.16 ,User management can configure the server and manage the relevant data of the target oil well to realize functions such as data reception and storage, well station setting of the target oil well and / or user authority management.
[0077] In the embodiment of the present invention, the modules included in the data transmission subsystem 120 can use socket connections to exchange data, and the protocol processing module in the data transmission subsystem 120 can publish the socket port to the outside.
[0078] The technical solution of the embodiment of the present invention is to obtain the oil well data associated with the target oil well through the data acquisition subsystem, and send the oil well data to the data transmission subsystem based on the sending protocol type corresponding to the oil well data; receive the oil well data through the data transmission subsystem, analyze the oil well data according to the sending protocol type, obtain analysis data, and transmit the analysis data to the data management subsystem; receive the analysis data through the data management subsystem, and store the analysis data. The above technical solution can automatically and accurately obtain the oil well data and transmit the oil well data to the data management subsystem in a timely manner, thereby improving the real-time and accuracy of the oil well data management, and improving the production of the oil well by improving the real-time and accuracy of the oil well data management.
[0079] An optional technical solution, the data management subsystem includes a third control module, a real-time database and a backup database; the third control module is used to store the analysis data as real-time data in the real-time database, and, when there is timeout data with a storage time exceeding a preset time in the real-time data stored in the real-time database, store the timeout data in the backup database and delete the timeout data in the real-time database.
[0080] The third control module is a module for controlling the scheduling data. The real-time database is a database for storing real-time data. The backup database is a database for storing backup data. Real-time data is data with a shorter storage duration stored in the real-time database. Timeout data is real-time data in the real-time database whose storage duration exceeds the preset duration.
[0081] In an embodiment of the present invention, considering that analysis data with a shorter storage time may be more easily called or viewed, in order to increase the speed of calling or viewing data, a data scheduling rule may be pre-set, and the data scheduling rule is a rule for scheduling data into different databases. The third control module may store the analysis data as real-time data in the real-time database according to the data scheduling rule; according to the data scheduling rule, if there is timeout data with a storage time exceeding the preset time in the real-time data stored in the real-time database, it means that the timeout data is less likely to be viewed or called, and therefore, the timeout data may be automatically stored in the backup database for backup, and the timeout data in the real-time database may be deleted.
[0082] It should be noted that the storage duration can be defined by the system administrator according to needs.
[0083] It should be noted that a transfer function can also be written in an instance of a real-time database and called by a job to automatically store the analysis data as real-time data in the real-time database. In addition, if there is timed-out data whose storage duration exceeds the preset duration in the real-time data stored in the real-time database, the timed-out data is stored in a backup database and the timed-out data in the real-time database is deleted.
[0084] In the embodiment of the present invention, the database types of the real-time database and the backup database may be the same or different. In the case where the database types of the real-time database and the backup database are different, the real-time database may be a database such as a memory database with a relatively fast access speed but a relatively small storage space, and the backup database may be a database with a relatively slow access speed but a large storage space.
[0085] In the embodiment of the present invention, by storing the timeout data in the backup database and deleting the timeout data in the real-time database, it can be ensured that data will not be lost and the access speed of the real-time database can be improved by controlling the total amount of data in the real-time database.
[0086] Fig.17 is a structural block diagram of another oil well data management system provided in an embodiment of the present invention, Fig.17 This is only an example of the structure of another oil well data management system provided in this embodiment. In the embodiment of the present invention, the structure of the oil well data management system is not specifically limited. This embodiment is optimized based on the above technical solutions. In this embodiment, optionally, the data transmission subsystem includes at least one protocol processing module, a transmission control module and at least one data analysis module; the data acquisition subsystem is specifically used to obtain the protocol package and send the protocol package to the first target processing module corresponding to the sending protocol type in at least one protocol processing module, wherein the protocol package is obtained by packaging the oil well data; the first target processing module is used to receive the protocol package, and according to the sending protocol type, the protocol package is unpacked to obtain the unpacked data corresponding to the oil well data, and the unpacked data is sent to the transmission control module; the transmission control module is used to receive the unpacked data and send the unpacked data to the target analysis module corresponding to the sending protocol type in at least one data analysis module; the target analysis module is used to receive the unpacked data, analyze the unpacked data according to the preset analysis rules, obtain the analysis data, and transmit the analysis data to the data management subsystem.
[0087] For details, see Fig.17The system of this embodiment may specifically include: a data acquisition subsystem 210, a data transmission subsystem 220 and a data management subsystem 230; wherein the data transmission subsystem 220 includes at least one protocol processing module 221, a transmission control module 222 and at least one data analysis module 223; the data acquisition subsystem 210, the data acquisition subsystem 210, is specifically used to acquire a protocol packet and send the protocol packet to a first target processing module 221 corresponding to the sending protocol type in at least one protocol processing module, wherein the protocol packet is obtained by packaging the oil well data; the first target processing module 221, with The transmission control module 222 is used to receive the unpacked data and send the unpacked data to a target analysis module 223 in at least one data analysis module corresponding to the sending protocol type; the target analysis module 223 is used to receive the unpacked data, analyze the unpacked data according to preset analysis rules, obtain analysis data, and transmit the analysis data to the data management subsystem 230; the data management subsystem 230 is used to receive the analysis data and store the analysis data.
[0088] The protocol processing module 221 is a module for unpacking the protocol packet or packaging the data according to the protocol type; for example, see Fig.18 When the data management subsystem 230 deployed on the terminal receives the protocol packet through the data receiving thread, the protocol packet can be unpacked and the unpacked data can be sent to the transmission control module 222 through the data receiving buffer. When the terminal control module wants the transmission control module 222 to send data, the transmission control module 222 sends the sent data to the protocol processing module 221 through the data sending buffer. The protocol processing module 221 packages the data and sends the packaged data to the terminal through the data sending thread. The transmission control module 222 is a module for controlling and transmitting data; the transmission control module 222 can adopt a dual-machine hot standby method according to actual needs to improve reliability. The data analysis module is a module for analyzing the unpacked data to obtain the analysis data; the data analysis module can be mounted on multiple servers to facilitate addition and deletion at any time to improve scalability. The first target processing module 221 is a protocol processing module 221 corresponding to the sending protocol type. The preset analysis rule is a pre-set rule for analyzing the unpacked data. The target analysis module 223 is a data analysis module corresponding to the sending protocol type.
[0089] It should be noted that, since different sensors and other equipment use different communication protocols due to different equipment types or different manufacturers, the data acquisition subsystem 210 may acquire the protocol package obtained by packaging the oil well data. If the data needs to be analyzed and transmitted later, the protocol package needs to be unpacked. Taking the above into account, in an embodiment of the present invention, a protocol processing module 221 corresponding to the protocol type can be set for different protocol types; the data acquisition subsystem 210 can acquire the protocol package and send the protocol package to the first target processing module 221 corresponding to the sending protocol type in at least one protocol processing module 221; the first target processing module 221 can receive the protocol package, and according to the sending protocol type, unpack the protocol package to obtain the unpacked data corresponding to the oil well data, the unpacked data is the data obtained by unpacking the protocol package, and the unpacked data is sent to the transmission control module 222.
[0090] It should be noted that since the methods of analyzing unpacked data corresponding to different protocol types may also be different, in an embodiment of the present invention, data analysis modules corresponding to different protocol types can be set respectively for different protocol types; the transmission control module 222 can receive the unpacked data, and send the unpacked data to a target analysis module 223 corresponding to the sending protocol type in at least one data analysis module; the target analysis module 223 can receive the unpacked data, analyze the unpacked data according to preset analysis rules, obtain analysis data, and transmit the analysis data to the data management subsystem 230.
[0091] In an embodiment of the present invention, the data transmission subsystem 220 may further include a data analysis module for load balancing. When the oil well data is downhole data associated with a target oil well, the target analysis module 223 receives the unpacked data, analyzes the unpacked data according to preset analysis rules, and after obtaining the analysis data, sends the analysis data to the load balancing data analysis module, so that the load balancing data analysis module updates the analysis data after processing the analysis data, and transmits the analysis data to the data management subsystem 230.
[0092] According to the technical solution of the embodiment of the present invention, the data transmission subsystem includes at least one protocol processing module, a transmission control module and at least one data analysis module; the data acquisition subsystem acquires the protocol packet and sends the protocol packet to the first target processing module corresponding to the transmission protocol type in at least one protocol processing module, wherein the protocol packet is obtained by packaging the oil well data; the first target processing module receives the protocol packet and unpacks the protocol packet according to the transmission protocol type to obtain the unpacked data corresponding to the oil well data, and sends the unpacked data to the transmission control module; the transmission control module receives the unpacked data and sends the unpacked data to the target analysis module corresponding to the transmission protocol type in at least one data analysis module; the target analysis module receives the unpacked data and analyzes the unpacked data according to the preset analysis rules to obtain the analysis data, and transmits the analysis data to the data management subsystem. The above technical solution can increase the source of the acquired oil well data by sending the protocol packets of different protocol types to the corresponding target processing modules for processing, and can improve the scalability of the oil well data source, so that the oil well data management system can be applied to more usage scenarios.
[0093] An optional technical solution, the data transmission subsystem also includes a terminal control module, the data management subsystem includes a second control module and a second display page; the second control module is used to transmit the oil well control instruction to the terminal control module in response to the oil well control instruction input by the user through the second display page; the terminal control module is used to receive the oil well control instruction and forward the oil well control instruction to the transmission control module; the transmission control module is also used to receive the oil well control instruction and analyze the oil well control instruction, and according to the analysis result, send the oil well control instruction to the second target processing module corresponding to the oil well control instruction in at least one protocol processing module; the second target processing module is also used to receive the oil well control instruction, package the oil well control instruction according to the receiving protocol type corresponding to the second target processing module, obtain packaged data, and send the packaged data to the data acquisition subsystem; for the target device associated with the target oil well, the data acquisition subsystem is also used to receive the packaged data and control the target device based on the packaged data.
[0094] Among them, the terminal control module is a module for analyzing instructions and sending instructions; the terminal control module can be mounted on a website (WEB) server, which can register a COM interface in the oil well data management system and be called by the java background service of the website located in the area where the base for managing oil well data is located. The second control module is a module for transmitting oil well control instructions. The second display page is a page for users to input oil well control instructions; the second display page can be a display page of a website located in the area where the base for managing oil well data is located, or it can be a display page located in the area where the target oil well is located, that is, the user can input the oil well control instruction through the second display page at the base, and the user can input the oil well control instruction through the second display page in the field area where the target oil well is located. The target device is the device that needs to be controlled. The receiving protocol type is the protocol type corresponding to the target device. The packaged data is the data obtained by packaging the oil well control instruction according to the receiving protocol type.
[0095] In an embodiment of the present invention, a second display page can be displayed to the user, and the user can input an oil well control instruction for controlling a target device associated with a target oil well through the second display page; the second control module can transmit the oil well control instruction to the terminal control module in response to the oil well control instruction input by the user through the second display page; the terminal control module can receive the oil well control instruction and forward the oil well control instruction to the transmission control module; the transmission control module can receive the oil well control instruction and analyze the oil well control instruction, and according to the analysis result, send the oil well control instruction to a second target processing module corresponding to the oil well control instruction in at least one protocol processing module, and the second target processing module is a protocol processing module corresponding to the oil well control instruction in at least one protocol processing module; the second target processing module can receive the oil well control instruction, and according to the receiving protocol type corresponding to the second target processing module, the oil well control instruction is packaged to obtain packaged data, and the packaged data is sent to the data acquisition subsystem; for the target device associated with the target oil well, the data acquisition subsystem is also used to receive the packaged data and control the target device based on the packaged data.
[0096] In the embodiment of the present invention, the user may view or detect data related to the target oil field in real time through the second display page, and input the oil well control instruction through the second display page according to the viewing result. Alternatively, the data management subsystem may analyze and process the received analysis data in real time, and generate the oil well control instruction according to the analysis and processing result. The above scheme can facilitate timely adjustment of the production parameters of the target equipment associated with the target oil well, thereby ensuring the optimal working condition of the oil well and reducing the consumption of equipment and electricity.
[0097] The technical solution of the embodiment of the present invention can realize two-way transmission of data or instructions in the oil well data management system by transmitting oil well control instructions, and by controlling the target device based on the oil well control instructions, the target device can be controlled in time according to demand, and the production of the target oil well can be dynamically managed, thereby increasing the output of the oil well.
[0098] Another optional technical solution, the data analysis module, is also used to convert the analysis data into target data of the target protocol type before transmitting the analysis data to the data management subsystem, and update the target data into the analysis data.
[0099] The target protocol type is the protocol type of the analysis data requirement received by the data management subsystem, for example, it can be a TCP / IP protocol type. The target data is the data of the target protocol type converted from the analysis data.
[0100] It should be noted that, in order to facilitate data storage and unified processing, the analysis data received by the data management subsystem can be data of a unified protocol, for example, the analysis data received by the data management subsystem can be data of a unified TCP / IP protocol type. In the embodiment of the present invention, the method of converting the analysis data into target data of a target protocol type is not specifically limited. For example, in special cases, hardware conversion can be used to convert the analysis data into target data of a target protocol type.
[0101] The technical solution of the embodiment of the present invention can facilitate unified storage and unified processing of data by converting analysis data into target data of a target protocol type.
[0102] Fig.19 is a structural block diagram of another oil well data management system provided in an embodiment of the present invention. Fig.19 This is only an example of the structure of another oil well data management system provided in this embodiment. In the embodiment of the present invention, the structure of the oil well data management system is not specifically limited. This embodiment is optimized based on the above-mentioned technical solutions. In this embodiment, optionally, a data analysis module list is stored in the transmission control module, and the data analysis module list records the sending protocol type corresponding to at least one data analysis module; the transmission control module is specifically used to receive unpacked data, search in the data analysis module list according to the sending protocol type, obtain the target analysis module corresponding to the sending protocol type in at least one data analysis module, and send the unpacked data to the target analysis module.
[0103] The explanations of the terms that are the same as or corresponding to the above embodiments are not repeated here.
[0104] For details, see Fig.19The system of this embodiment may specifically include: a data acquisition subsystem 310, a data transmission subsystem 320 and a data management subsystem 330; wherein the data transmission subsystem 320 includes at least one protocol processing module 321, a transmission control module 322 and at least one data analysis module 323, the transmission control module 322 stores a data analysis module list, and the data analysis module list records the transmission protocol type corresponding to at least one data analysis module 323; the data acquisition subsystem 310, the data acquisition subsystem 310, is specifically used to obtain a protocol packet and send the protocol packet to at least one protocol processing module The first target processing module 321 corresponding to the sending protocol type in the data processing module 321, wherein the protocol package is obtained by packaging the oil well data; the first target processing module 321 is used to receive the protocol package, and according to the sending protocol type, unpack the protocol package to obtain the unpacked data corresponding to the oil well data, and send the unpacked data to the transmission control module 322; the transmission control module 322 is specifically used to receive the unpacked data, search in the data analysis module list according to the sending protocol type, obtain the target analysis module 323 corresponding to the sending protocol type in at least one data analysis module, and send the unpacked data to the target analysis module 323. The target analysis module 323 is used to receive the unpacked data, analyze the unpacked data according to the preset analysis rules, obtain the analysis data, and transmit the analysis data to the data management subsystem 330; the data management subsystem 330 is used to receive the analysis data and store the analysis data.
[0105] The data analysis module list is a list used to determine the target analysis module 323 .
[0106] In an embodiment of the present invention, a data analysis module list can be stored in the transmission control module 322 in advance, and the transmission control module 322 can maintain the data analysis modules in real time. For example, after a data analysis module is started, it can automatically log in to the transmission control module 322. The transmission control module 322 adds the automatically logged-in data analysis module to the data analysis module list according to the login situation. In the event that a data analysis module exits or times out, the transmission control module 322 can delete the exited or timed-out data analysis module from the data analysis module list.
[0107] In an embodiment of the present invention, the data analysis module list may record analysis module identifiers corresponding to at least one data analysis module, and sending protocol types corresponding to at least one data analysis module. There is a correspondence between the analysis module identifier and the sending protocol type. The analysis module identifier is an identifier of the analysis module. In an embodiment of the present invention, there is no specific limitation on the form of expression of the analysis module identifier. The transmission control module 322 can receive unpacked data and search in the data analysis module list according to the sending protocol type to find an analysis module identifier that corresponds to the sending protocol type. According to the analysis module identifier, determine the target analysis module 323 corresponding to the sending protocol type in at least one data analysis module, and send the unpacked data to the target analysis module 323.
[0108] In an embodiment of the present invention, a protocol processing module list may also be stored in the transmission control module 322, in which the sending protocol types corresponding to at least one protocol processing module are recorded. The transmission control module 322 can maintain the protocol processing module in real time. For example, after a protocol processing module is started, it can automatically log in to the transmission control module 322. The transmission control module 322 adds the automatically logged-in protocol processing module to the protocol processing module list according to the login situation. In the case that a protocol processing module exits or times out, the transmission control module 322 can delete the exited or timed-out protocol processing module from the protocol processing module list. When the number of protocol packets acquired by the data acquisition subsystem 310 is multiple, the number of unpacked data received by the transmission control module 322 is also multiple accordingly. For each of the multiple unpacked data, the transmission control module 322 can search in the protocol processing module list according to the sending protocol type to determine the priority of the unpacked data; determine the target analysis modules 323 corresponding to the multiple unpacked data according to the priorities corresponding to the multiple unpacked data; and send the multiple unpacked data to the target analysis modules 323 corresponding to the multiple unpacked data according to the priority corresponding to the multiple unpacked data and in accordance with the principle of taking turns.
[0109] According to the technical solution of the embodiment of the present invention, a data analysis module list is stored in the transmission control module, and the data analysis module list records the transmission protocol type corresponding to at least one data analysis module; the transmission control module receives the unpacked data, searches the data analysis module list according to the transmission protocol type, obtains the target analysis module corresponding to the transmission protocol type in at least one data analysis module, and sends the unpacked data to the target analysis module. According to the technical solution of the embodiment of the present invention, the target analysis module is determined by the data analysis module list, and the determination speed of the target analysis module is improved by using a table lookup method.
[0110] An optional technical solution, wherein the data analysis module list also records the analysis module identifier corresponding to at least one data analysis module, and there is a corresponding relationship between the analysis module identifier and the sending protocol type; the transmission control module is also used to send the generated unpacked data sending failure information to the data management subsystem when the unpacked data is not successfully sent to the target analysis module, and delete the deleted module identifier corresponding to the target analysis module in at least one analysis module identifier; the data management subsystem is also used to receive the unpacked data sending failure information and store the unpacked data sending failure information.
[0111] The unpacked data sending failure information is information generated by the transmission control module according to the failure of sending the unpacked data to the target analysis module. The deleted module identifier is the analysis module identifier corresponding to the target analysis module in the at least one analysis module identifier.
[0112] In an embodiment of the present invention, when the unpacked data is not successfully sent to the target analysis module, it means that there is a problem in the data transmission process. The transmission control module can send the generated unpacked data sending failure information to the data management subsystem when the unpacked data is not successfully sent to the target analysis module, and delete the deleted module identifier corresponding to the target analysis module in at least one analysis module identifier to prevent the subsequent failure caused by continuing to send the unpacked data to the target analysis module. In particular, when there are multiple data analysis modules that have a corresponding relationship with the sending protocol type, it is possible to avoid sending the unpacked data to the target analysis module that will cause the unpacked data sending failure, and instead send the unpacked data to other data analysis modules that have a corresponding relationship with the sending protocol type; the data management subsystem can receive the unpacked data sending failure information and store the unpacked data sending failure information, for example, it can be stored in a database, and the stored unpacked data sending failure information can be called later through a website located in the area where the base for managing oil well data is located, so as to repair the modules or subsystems involved in the failure to send the unpacked data to the target analysis module according to the unpacked data sending failure information.
[0113] The technical solution of the embodiment of the present invention can, when the unpacked data is not successfully sent to the target analysis module, send the generated unpacked data sending failure information to the data management subsystem, so that the user can promptly discover the failure of unpacked data sending and handle it in time; delete the deletion module identifier corresponding to the target analysis module in at least one analysis module identifier, which can prevent the subsequent failure caused by continuing to send the unpacked data to the target analysis module.
[0114] Fig. 20 is a structural block diagram of another oil well data management system provided in an embodiment of the present invention. Fig. 20 This is only an example of the structure of another oil well data management system provided in this embodiment. In the embodiment of the present invention, the structure of the oil well data management system is not specifically limited. This embodiment is optimized based on the above-mentioned technical solutions. In this embodiment, optionally, the preset analysis rules include alarm rules and data analysis rules; the target analysis module is specifically used to: receive unpacked data, and analyze the unpacked data according to the alarm rules to obtain target alarm information; analyze the unpacked data according to the data analysis rules to obtain analysis data; when the target alarm information is not empty, transmit the target alarm information and analysis data to the data management subsystem; when the target alarm information is empty, transmit the analysis data to the data management subsystem.
[0115] The explanations of the terms that are the same as or corresponding to the above embodiments are not repeated here.
[0116] For details, see Fig. 20 The system of this embodiment may specifically include: a data acquisition subsystem 410, a data transmission subsystem 420 and a data management subsystem 430; wherein the data transmission subsystem 420 includes at least one protocol processing module 421, a transmission control module 422 and at least one data analysis module 423, and the preset analysis rules include alarm rules and data analysis rules; the data acquisition subsystem 410, the data acquisition subsystem 410, is specifically used to obtain a protocol packet and send the protocol packet to a first target processing module 421 corresponding to the sending protocol type in at least one protocol processing module, wherein the protocol packet is obtained by packaging the oil well data; the first target processing module 421 is used to receive the protocol packet and unpack the protocol packet according to the sending protocol type to obtain the protocol packet corresponding to the oil well data. The unpacked data corresponding to the data is sent to the transmission control module 422; the transmission control module 422 is used to receive the unpacked data and send the unpacked data to the target analysis module 423 corresponding to the sending protocol type in at least one data analysis module; the target analysis module 423 is specifically used to: receive the unpacked data, and analyze the unpacked data according to the alarm rules to obtain the target alarm information; analyze the unpacked data according to the data analysis rules to obtain the analysis data; when the target alarm information is not empty, transmit the target alarm information and the analysis data to the data management subsystem 430; when the target alarm information is empty, transmit the analysis data to the data management subsystem 430; the data management subsystem 430 is used to receive the analysis data and store the analysis data.
[0117] Among them, the alarm rule is a rule for determining whether the unpacked data is abnormal and whether it is necessary to generate target alarm information. The alarm rule may include threshold value judgment. The data analysis rule is a rule for analyzing the unpacked data. The data analysis rule may include image discretization analysis. The target alarm information is relevant information that can reflect the abnormal situation of the unpacked data requiring alarm.
[0118] In an embodiment of the present invention, the preset analysis rules may include alarm rules and data analysis rules; the target analysis module 423 can receive unpacked data, and analyze the unpacked data according to the alarm rules to obtain target alarm information. It should be noted that when there is no abnormality in the unpacked data, the target alarm data is empty, and when there is an abnormality in the unpacked data, the target alarm information is not empty; according to the data analysis rules, the unpacked data is analyzed to obtain analysis data; when the target alarm information is not empty, the target alarm information and analysis data are transmitted to the data management subsystem 430; when the target alarm information is empty, the analysis data is transmitted to the data management subsystem 430.
[0119] The technical solution of the embodiment of the present invention, the preset analysis rules include alarm rules and data analysis rules; receiving the unpacked data through the target analysis module, and analyzing the unpacked data according to the alarm rules to obtain the target alarm information; analyzing the unpacked data according to the data analysis rules to obtain the analysis data; when the target alarm information is not empty, the target alarm information and the analysis data are transmitted to the data management subsystem; when the target alarm information is empty, the analysis data is transmitted to the data management subsystem. The technical solution of the embodiment of the present invention can analyze the unpacked data according to the alarm rules, so that when the unpacked data is abnormal, the target alarm information and the analysis data are transmitted to the data management subsystem, which can facilitate the timely discovery of the abnormal situation of the target oil well, and facilitate the alarm of the abnormal situation and timely processing, so as to avoid the production of the target oil well being affected by the abnormal situation.
[0120] An optional technical solution, the data management subsystem includes a first control module, an alarm table and a storage database; the first control module is used to: store the received analysis data in the storage database; when receiving target alarm information, store the target alarm information in the alarm table.
[0121] The first control module is a module for processing analysis data and target alarm information. The first control module, the second control module and the third control module can be the same control module or different control modules. The alarm table is a table for storing target alarm information. The storage database is a database for storing analysis data.
[0122] In the embodiment of the present invention, the first control module can also store the target alarm information in the alarm table when receiving the target alarm information, and alarm according to the target alarm information to prompt the user to deal with the abnormal situation in time, so as to facilitate the timely discovery of emergencies and target oil well failure hazards, improve the emergency response speed, and shorten the fault handling time. In the embodiment of the present invention, the alarm method is not specifically limited.
[0123] For example, see Fig.21 The target analysis module can receive the unpacked data through the data buffer list, and analyze and judge the unpacked data according to the preset analysis rules to obtain the target alarm information and analysis data; send the target alarm information to the alarm table so that the alarm table stores the target alarm information, and send the analysis data to the storage database so that the storage database stores the analysis data.
[0124] In the embodiment of the present invention, by storing the received analysis data in a storage database and, when receiving target alarm information, storing the target alarm information in an alarm table, the traceability of the analysis data or the target alarm information can be improved.
[0125] Based on the above scheme, another optional technical scheme is that the data management subsystem also includes a first display page; the first control module is also used to: in response to an alarm viewing instruction input by a user through the first display page, obtain alarm viewing information from all stored alarm information stored in the alarm table, and send the alarm viewing information to the first display page, so as to display the alarm viewing information through the first display page, wherein all stored alarm information includes target alarm information; in response to a data viewing instruction input by a user through the first display page, obtain viewing data from all stored data stored in the storage database, and send the viewing data to the first display page, so as to display the viewing data through the first display page, wherein all stored data includes analysis data.
[0126] The first display page is a page for displaying alarm viewing information or; the first display page may be a display page of a website located in the area where the base for managing oil well data is located. The first display page and the second display page may be the same page or different pages. The stored alarm information is the alarm information stored in the alarm table. The alarm viewing information is the stored alarm information that needs to be viewed. The stored data is the data stored in the storage database. The viewing data is the stored data that needs to be viewed.
[0127] In an embodiment of the present invention, the first control module can respond to an alarm view instruction input by the user through the first display page to view the alarm view information, obtain the alarm view information from all the stored alarm information stored in the alarm table, and send the alarm view information to the first display page to display the alarm view information through the first display page; respond to a data view instruction input by the user through the first display page to view the view data, obtain the view data from all the stored data stored in the storage database, and send the view data to the first display page to display the view data through the first display page.
[0128] The technical solution of the embodiment of the present invention allows users to view data and alarm information at any time through viewing data and alarm information, so that users can grasp the production and operation status of the target oil well at any time, and solve the faults of the target oil well in a targeted manner, and can also reduce a large amount of invalid inspection workload and time.
[0129] In order to better understand the technical solution of the above embodiment of the present invention, an optional example is provided here. Fig. 22 The data acquisition subsystem deployed in the field terminal associated with the target oil well can interact with the data transmission subsystem in the following ways: login request, login reply, data sending, data reply, line detection, line detection reply, command sending, command sending reply, connection removal request and removal reply request; the data transmission subsystem can receive instructions from the external publishing website; the data transmission subsystem can unpack the data into the database in the data management subsystem; the data transmission subsystem can also read the configuration information in the database to send the configuration information to the data acquisition subsystem, and the data acquisition subsystem configures the production parameters of the target equipment based on the configuration information.
[0130] In order to better understand the technical solution of the above embodiment of the present invention, an optional example is provided here. Fig.23 The data acquisition subsystem can be deployed on the terminal; the data transmission subsystem includes three protocol processing modules, a transmission control module, a terminal control module, three data analysis modules and a load balancing data analysis module; the data management subsystem can include a database for receiving and analyzing data; the transmission control module can read the configuration information in the database to configure the production parameters and other aspects of the target device.
[0131] In order to better understand the technical solution of the above embodiment of the present invention, an optional example is provided here. Fig.24The transmission control module can store a protocol processing module list and a data analysis module. The transmission control module can include a data receiving buffer submodule, a data distribution submodule and a data sending buffer submodule. The data receiving buffer submodule can receive the unpacked data sent by the protocol processing module. The data distribution submodule can search in the protocol processing module list according to the sending protocol type to determine the priority of the unpacked data; search in the data analysis module list according to the priority of the unpacked data and the sending protocol type to determine the target analysis module corresponding to the unpacked data; the data distribution submodule sends the unpacked data to the target analysis module. The data sending buffer submodule can receive the oil well control instruction sent by the terminal control module; the data distribution submodule can analyze the oil well control instruction, and according to the analysis result, send the oil well control instruction to the protocol processing module corresponding to the oil well control instruction.
[0132] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. An oil well data management system, characterized in that: include: Data acquisition subsystem, data transmission subsystem and data management subsystem; among them, The data acquisition subsystem is used to acquire oil well data associated with the target oil well, and send the oil well data to the data transmission subsystem based on the sending protocol type corresponding to the oil well data; The data transmission subsystem is used to receive the oil well data, analyze the oil well data according to the transmission protocol type to obtain analysis data, and transmit the analysis data to the data management subsystem; The data management subsystem is used to receive the analysis data and store the analysis data; The data transmission subsystem includes at least one protocol processing module, a transmission control module and at least one data analysis module; The data acquisition subsystem is specifically used to acquire a protocol packet and send the protocol packet to a first target processing module corresponding to the sending protocol type in the at least one protocol processing module, wherein the protocol packet is obtained by packaging the oil well data; The first target processing module is used to receive the protocol packet, and unpack the protocol packet according to the sending protocol type to obtain unpacked data corresponding to the oil well data, and send the unpacked data to the transmission control module; The transmission control module is used to receive the unpacked data and send the unpacked data to a target analysis module in the at least one data analysis module corresponding to the sending protocol type; The target analysis module is used to receive the unpacked data, analyze the unpacked data according to preset analysis rules to obtain analysis data, and transmit the analysis data to the data management subsystem; The transmission control module stores a data analysis module list, wherein the data analysis module list records the transmission protocol type corresponding to the at least one data analysis module; The transmission control module is specifically configured to receive the unpacked data, search in the data analysis module list according to the sending protocol type, obtain a target analysis module corresponding to the sending protocol type in the at least one data analysis module, and send the unpacked data to the target analysis module; The data analysis module is used to automatically log into the transmission control module after startup; The transmission control module is also used to add the automatically logged-in data analysis module to the data analysis module list according to the login situation, and in the event that the data analysis module exits or times out, delete the exited or timed-out data analysis module from the data analysis module list.
2. The system according to claim 1, characterized in that The data analysis module list also records the analysis module identifiers corresponding to the at least one data analysis module, and there is a corresponding relationship between the analysis module identifier and the sending protocol type; The transmission control module is further configured to, when the unpacked data is not successfully sent to the target analysis module, send the generated unpacked data sending failure information to the data management subsystem, and delete the deleted module identifier corresponding to the target analysis module in the at least one analysis module identifier; The data management subsystem is further used to receive the unpacked data sending failure information and store the unpacked data sending failure information.
3. The system according to claim 1, characterized in that The preset analysis rules include alarm rules and data analysis rules; The target analysis module is specifically used for: Receiving the unpacked data, and analyzing the unpacked data according to the alarm rule to obtain target alarm information; Analyze the unpacked data according to the data analysis rule to obtain analysis data; If the target alarm information is not empty, transmitting the target alarm information and the analysis data to the data management subsystem; When the target alarm information is empty, the analysis data is transmitted to the data management subsystem.
4. The system according to claim 3, characterized in that The data management subsystem includes a first control module, an alarm table and a storage database; The first control module is used to: storing the received analysis data in the storage database; When the target alarm information is received, the target alarm information is stored in the alarm table.
5. The system according to claim 4, characterized in that The data management subsystem also includes a first display page; The first control module is further used for: In response to an alarm viewing instruction input by a user through the first display page, obtaining alarm viewing information from all stored alarm information stored in the alarm table, and sending the alarm viewing information to the first display page, so as to display the alarm viewing information through the first display page, wherein the all stored alarm information includes the target alarm information; In response to a data viewing instruction input by a user through the first display page, viewing data is obtained from all stored data stored in the storage database, and the viewing data is sent to the first display page so that the viewing data is displayed through the first display page, wherein all stored data includes the analysis data.
6. The system according to claim 1, characterized in that The data transmission subsystem further includes a terminal control module, and the data management subsystem includes a second control module and a second display page; The second control module is used to transmit the oil well control instruction to the terminal control module in response to the oil well control instruction input by the user through the second display page; The terminal control module is used to receive the oil well control instruction and forward the oil well control instruction to the transmission control module; The transmission control module is further used to receive the oil well control instruction, analyze the oil well control instruction, and send the oil well control instruction to a second target processing module corresponding to the oil well control instruction in the at least one protocol processing module according to the analysis result; The second target processing module is further used to receive the oil well control instruction, package the oil well control instruction according to the receiving protocol type corresponding to the second target processing module to obtain packaged data, and send the packaged data to the data acquisition subsystem; For the target device associated with the target oil well, the data acquisition subsystem is further used to receive the packaged data and control the target device based on the packaged data.
7. The system according to claim 1, characterized in that The data analysis module is further configured to convert the analysis data into target data of a target protocol type before transmitting the analysis data to the data management subsystem, and update the target data into the analysis data.
8. The system according to claim 1, characterized in that The data management subsystem includes a third control module, a real-time database and a backup database; The third control module is used to store the analysis data as real-time data in the real-time database, and when there is timeout data with a storage duration exceeding a preset duration in the real-time data stored in the real-time database, store the timeout data in the backup database and delete the timeout data in the real-time database.
