CN102243496B - Remote oil well management method based on mobile communication network and core processor - Google Patents
Remote oil well management method based on mobile communication network and core processor Download PDFInfo
- Publication number
- CN102243496B CN102243496B CN2011101993624A CN201110199362A CN102243496B CN 102243496 B CN102243496 B CN 102243496B CN 2011101993624 A CN2011101993624 A CN 2011101993624A CN 201110199362 A CN201110199362 A CN 201110199362A CN 102243496 B CN102243496 B CN 102243496B
- Authority
- CN
- China
- Prior art keywords
- oil
- core processor
- data
- embedded system
- time
- 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.)
- Expired - Fee Related
Links
- 238000007726 management method Methods 0.000 title claims abstract description 43
- 238000010295 mobile communication Methods 0.000 title claims abstract description 22
- 239000003129 oil well Substances 0.000 title claims abstract description 14
- 239000003921 oil Substances 0.000 claims abstract description 122
- 239000010779 crude oil Substances 0.000 claims abstract description 52
- 238000000034 method Methods 0.000 claims abstract description 18
- 238000006243 chemical reaction Methods 0.000 claims description 18
- 238000012937 correction Methods 0.000 claims description 4
- 238000012544 monitoring process Methods 0.000 claims description 4
- 238000009825 accumulation Methods 0.000 claims description 2
- 230000003203 everyday effect Effects 0.000 claims description 2
- 230000026676 system process Effects 0.000 claims 1
- 238000012545 processing Methods 0.000 abstract description 13
- 230000006870 function Effects 0.000 abstract description 12
- 238000004519 manufacturing process Methods 0.000 description 11
- 239000000446 fuel Substances 0.000 description 10
- 238000010276 construction Methods 0.000 description 5
- 230000007423 decrease Effects 0.000 description 5
- 238000011161 development Methods 0.000 description 5
- 230000005540 biological transmission Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000013480 data collection Methods 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 238000013507 mapping Methods 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000033228 biological regulation Effects 0.000 description 1
- 238000009530 blood pressure measurement Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 239000007788 liquid Substances 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 238000004377 microelectronic Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 239000003208 petroleum Substances 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Images
Classifications
-
- 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
- Pipeline Systems (AREA)
- Selective Calling Equipment (AREA)
Abstract
本发明公开的一种基于移动通讯网络和核心处理器的远程油井管理方法,该方法依赖一个嵌入式系统,该嵌入式系统基于全球移动通讯网络和利用核心处理器,通过智能仪表在线实时采集信号,然后核心处理器通过串口读取油量数据并直接送入内部存储器RAM中以便处理;油量数据通过核心处理器进行处理后,分不同情况进行相应操作。本发明方法利用嵌入式结构核心处理器,可靠性高、不占用主机资源;采用了全球移动通讯网络,传输数据快,成本低;采用了简单、可靠的鉴别工作人员拉取原油的方法,判断油量数据信息并进行相关处理的复杂逻辑方法使得该发明的方法功能强、准确性高、应用性广、速度快。
The invention discloses a remote oil well management method based on a mobile communication network and a core processor. The method relies on an embedded system. The embedded system is based on a global mobile communication network and uses a core processor to collect signals online in real time through smart instruments. , and then the core processor reads the oil quantity data through the serial port and directly sends it to the internal memory RAM for processing; after the oil quantity data is processed by the core processor, corresponding operations are performed in different situations. The method of the present invention utilizes an embedded structure core processor, which has high reliability and does not occupy host resources; adopts a global mobile communication network, transmits data quickly, and has low cost; adopts a simple and reliable method for identifying staff to pull crude oil, and judges The complex logic method of oil volume data information and related processing makes the method of the invention strong in function, high in accuracy, wide in applicability and fast in speed.
Description
技术领域 technical field
本发明属于油田控制技术领域,涉及一种基于移动通讯网络和核心处理器的远程油井管理方法。The invention belongs to the technical field of oil field control and relates to a remote oil well management method based on a mobile communication network and a core processor.
背景技术 Background technique
随着信息产业的高速发展,信息数字化概念已经为越来越多的领域广泛接受,尤其是关系到国家经济发展的石油能源产业。目前,各大油田采用铺设骨干网进行信息管理,但是其过于依赖网络信号,需要生产单位自己铺设网络,由于地理地貌的复杂,导致施工难度上升,导致网络铺设的成本加大。With the rapid development of the information industry, the concept of information digitization has been widely accepted in more and more fields, especially the oil and energy industry that is related to the country's economic development. At present, major oil fields use backbone networks for information management, but they rely too much on network signals and require production units to lay networks by themselves. Due to the complexity of geography and landforms, construction difficulties increase and the cost of network laying increases.
全球移动通讯,俗称“全球通”,全球移动通讯系统具有防盗拷能力强、网络容量大、手机号码资源丰富、通话清晰、稳定性强、不易受干扰、信息灵敏、通话死角少的特点,它与骨干网最大的区别是:骨干网需要生产单位自己铺设光纤等通信设备,而全球移动通讯网络是利用了手机移动网,这样避免了开发成本高,起效慢的问题。Global mobile communication, commonly known as "Global Communication", the global mobile communication system has the characteristics of strong anti-theft copying ability, large network capacity, rich mobile phone number resources, clear calls, strong stability, less susceptible to interference, sensitive information, and fewer call dead spots. The biggest difference between the backbone network is that the backbone network requires the production unit to lay optical fiber and other communication equipment, while the global mobile communication network uses the mobile phone network, which avoids the problems of high development cost and slow effect.
数字化油田建设是一项复杂的系统工程,需要信息技术、石油地质、油藏工程、企业管理等学科的配合发展。可靠的数据质量,以及标准化和智能化的管理是实现数字油田的基础。其中,可靠的数据质量涉及准确可靠的数据采集、处理与传输。标准化和智能化的管理涉及数据的集中、分类、管理与应用,即数据中心建设。针对数据化油田建设的理念,考虑实际应用的可行性,目前采用的读取油量数据、鉴别工作人员身份以及控制油田上磕头机的方式分别是:选用静压变送器测量原油重量;选用个人身份IC卡进行鉴别工作人员身份;选用较小电流控制较大电流的继电器来控制磕头机工作。Digital oilfield construction is a complex system engineering, which requires the coordinated development of information technology, petroleum geology, reservoir engineering, enterprise management and other disciplines. Reliable data quality, as well as standardized and intelligent management are the basis for realizing digital oilfield. Among them, reliable data quality involves accurate and reliable data collection, processing and transmission. Standardized and intelligent management involves the centralization, classification, management and application of data, that is, the construction of data centers. Aiming at the concept of data-based oilfield construction and considering the feasibility of practical application, the current methods of reading oil volume data, identifying the identity of the staff and controlling the kowtow machine on the oilfield are: use a static pressure transmitter to measure the weight of crude oil; The personal identity IC card is used to identify the identity of the staff; the relay with a smaller current to control a larger current is selected to control the work of the kowtow machine.
静压式测量计的工作原理是压力等于压强和接触面积的乘积。通常选用智能仪表作为测量原油重量的仪器。智能仪表能够实时读取原油重量,能够与其它微机进行相互通信,将采集的数据进行传输。Static gauges work on the principle that pressure is equal to the product of pressure and contact area. Smart meters are usually selected as instruments for measuring the weight of crude oil. The smart instrument can read the weight of crude oil in real time, communicate with other microcomputers, and transmit the collected data.
IC卡又称集成电路卡,其一般采用射频技术与IC卡读写器进行通讯,因此IC卡读写器是IC卡与应用系统间的桥梁。IC card, also known as integrated circuit card, generally uses radio frequency technology to communicate with IC card reader, so IC card reader is the bridge between IC card and application system.
继电器是一种电子控制器件,通常应用于自动控制电路中。它实际上是用较小的电流去控制较大电流的一种“自动开关”,故在电路中起着自动调节、安全保护、转换电路等作用。A relay is an electronic control device, usually used in automatic control circuits. It is actually an "automatic switch" that uses a smaller current to control a larger current, so it plays the role of automatic adjustment, safety protection, and conversion circuit in the circuit.
鉴于现有油田在远程油井管理过程中,通讯网络建设成本高、不能有效地实现自动化的集输管理原油,无法及时发现油量丢失并加以报警,偷油事件经常发生,急需要一种自动化程度高的远程油井管理设备及管理方法,满足油田的技术要求。In view of the high cost of communication network construction in the remote oil well management process of existing oil fields, the automatic gathering and transportation management of crude oil cannot be effectively realized, and the loss of oil volume cannot be detected in time and alarmed, and oil theft incidents often occur, and a degree of automation is urgently needed Advanced remote oil well management equipment and management methods meet the technical requirements of oil fields.
发明内容 Contents of the invention
本发明的目的是,提供一种基于移动通讯网络和核心处理器的远程油井管理方法,有效地实现油田集输管理原油,及时发现油量丢失并加以报警,同时管理原油输送,防止偷油事件的发生。The purpose of the present invention is to provide a remote oil well management method based on a mobile communication network and a core processor, effectively realize oil field gathering and transportation management of crude oil, timely discover oil loss and give an alarm, manage crude oil transportation at the same time, and prevent oil theft incidents happened.
本发明所采用的技术方案是,一种基于移动通讯网络和核心处理器的远程油井管理方法,该方法依赖一个嵌入式系统,该嵌入式系统基于全球移动通讯网络和利用核心处理器,采用智能仪表在线实时读取当前油罐中的油量数据,并通过RS485串口将油量数据传入到嵌入式系统中的核心处理器;核心处理器将得到的油量数据和管理人员设置的油量门限值进行比较,分不同情况进行相应操作,具体包括:The technical solution adopted in the present invention is a remote oil well management method based on a mobile communication network and a core processor, the method relies on an embedded system, the embedded system is based on a global mobile communication network and uses a core processor, and adopts an intelligent The instrument reads the current oil quantity data in the oil tank online in real time, and transmits the oil quantity data to the core processor in the embedded system through the RS485 serial port; the core processor will obtain the oil quantity data and the oil quantity set by the manager Threshold values are compared, and corresponding operations are performed according to different situations, including:
1)、油量增加时1) When the oil volume increases
如果当前油量数据超过油量过高报警门限值时,则嵌入式系统发出报警并告知上位机系统;If the current oil quantity data exceeds the oil quantity alarm threshold value, the embedded system will send out an alarm and inform the upper computer system;
如果当前油量数据超过了油量过高停机门限值时,嵌入式系统不仅告知上位机系统而且将自动关闭连接该油罐的磕头机,使其停止工作,一旦当前油量低于当前油量过高停机门限值后,且嵌入式系统时间正处于由管理人员设置的磕头机工作时间段内,嵌入式系统将自动打开磕头机的电源开关,使其重新工作;If the current oil quantity data exceeds the oil quantity over-high shutdown threshold value, the embedded system will not only notify the host computer system but also automatically shut down the kowtow machine connected to the oil tank to make it stop working. Once the current oil quantity is lower than the current oil quantity After the shutdown threshold is too high, and the embedded system time is within the working time period of the kowtow machine set by the administrator, the embedded system will automatically turn on the power switch of the kowtow machine to make it work again;
2)、油量正常降低时2) When the oil volume is normally reduced
嵌入式系统对IC读卡器发送指令以获取当前读卡器的状态信息,判断工作人员是否正在拉取原油,并对返回来的状态信息与上位机系统下发的员工工号数据进行匹配,如果匹配,则判断有工作人员正在拉取原油,并同时记录该工作人员的工号;如果不匹配,则判断无工作人员拉取原油,The embedded system sends instructions to the IC card reader to obtain the status information of the current card reader, judges whether the staff is pulling crude oil, and matches the returned status information with the employee ID data issued by the host computer system. If it matches, it is judged that there is a staff member who is pulling crude oil, and at the same time record the staff number; if it does not match, it is judged that no staff member is pulling crude oil,
如果此时有工作人员拉取原油,系统将记录工作人员拉取原油前一刻的油量数据,一旦工作人员停止拉取原油后,嵌入式系统将计算该工作人员拉取的原油数量,并且将该工作人员的工号,拉取的原油数量以及拉取的时间一并发送给上位机系统,上位机系统通过显示或者短信方式告知管理人员;If a worker pulls crude oil at this time, the system will record the oil quantity data at the moment before the worker pulls crude oil. Once the worker stops pulling crude oil, the embedded system will calculate the amount of crude oil pulled by the worker, and will The employee's job number, the quantity of crude oil pulled and the time of pulling are sent to the upper computer system, and the upper computer system informs the management personnel through display or SMS;
如果此时没有工作人员拉取原油,系统将当前的油量数据和上一时刻的油量数据进行比较,如果发现下降,则记录前一刻的油量数据,并与下一刻的油量数据进行比较,一旦下降累计到由管理人员设置的设定值后,嵌入式系统就会报警并发送短信通知管理人员;反之,如果油量并未达到该设定值之前,油量上升,则清除前一刻记录的油量数据,并重新获取油量数据的波动变化,如果上升,则不记录,反之记录。If there is no staff to pull the crude oil at this time, the system will compare the current oil volume data with the oil volume data at the previous moment, and if it finds a drop, record the oil volume data at the previous moment and compare it In comparison, once the accumulation reaches the set value set by the management personnel, the embedded system will alarm and send a text message to notify the management personnel; on the contrary, if the oil volume has not reached the set value, and the oil volume rises, the previous alarm will be cleared. The oil quantity data is recorded at a moment, and the fluctuation change of the oil quantity data is reacquired. If it rises, it will not be recorded, otherwise it will be recorded.
本发明方法的有益效果是:The beneficial effects of the inventive method are:
1)通过使用全球移动通讯系统和基于核心处理器的嵌入式系统,进行油井现场生产信息的采集、处理和传输,成本低、速度快、可靠性高。1) Through the use of the global mobile communication system and the embedded system based on the core processor, the collection, processing and transmission of oil well site production information are carried out, with low cost, high speed and high reliability.
2)通过智能仪表得到生产现场原油储量信息,考虑储油罐自身的最大储油量以及磕头机的工作情况,基于当前储油量和储油量最大值的处理算法,能够及时处理油罐冒顶的突发事件,减少了石油资源的生产浪费。2) Obtain the crude oil reserve information on the production site through intelligent instruments, consider the maximum oil storage capacity of the oil storage tank itself and the working conditions of the kowtow machine, and based on the processing algorithm of the current oil storage volume and the maximum oil storage volume, it can timely deal with the roof fall of the oil tank emergencies, reducing the production waste of oil resources.
3)通过分析原油油量的下降情况,设置了两种情况的信息上报机制算法,改善了工作人员拉取原油的管理制度,同时对生产现场上正在发生的偷油现象能够及时报警,使管理人员能第一时间采取相应措施。3) By analyzing the decline of crude oil volume, the information reporting mechanism algorithm for two situations is set up, which improves the management system for the staff to pull crude oil, and at the same time can timely alarm the oil stealing phenomenon that is happening on the production site, so that the management Personnel can take corresponding measures in the first time.
4)管理人员通过上位机系统下发命令,实现远程控制油井的生产状态,同时生产信息也可按照管理人员的要求上报给上位机系统,提高了生产效率,降低工作者的劳动强度,减少成本支出。4) The management personnel issue commands through the upper computer system to realize remote control of the production status of the oil well. At the same time, the production information can also be reported to the upper computer system according to the requirements of the management personnel, which improves the production efficiency, reduces the labor intensity of the workers, and reduces the cost expenditure.
附图说明 Description of drawings
图1是本发明方法采用的嵌入式系统的硬件结构示意框图。Fig. 1 is a schematic block diagram of the hardware structure of the embedded system adopted by the method of the present invention.
图中,1.核心处理器,2.CPLD器件,3.转换器件一,4.移动通讯网络模块,5.IC读卡器,6.智能仪表,7.七位通用接口一,8.磕头机控制开关继电器,9.磕头机控制开关继电器状态读取,10.七位通用接口二,11.转换器件二。In the figure, 1. Core processor, 2. CPLD device, 3.
具体实施方式 Detailed ways
下面结合附图和具体实施方式对本发明进行详细说明。The present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments.
随着微电子学的发展,核心处理器得到了迅速发展,性能不断提高的同时,价格不断降低,使得基于核心处理器的嵌入式信息处理技术成为可能,为实现设置性能价格比高、可靠性高的基于全球移动通讯系统的远程管理油井生产系统提供了技术手段。With the development of microelectronics, the core processor has been developed rapidly. While the performance is continuously improved, the price is continuously reduced, which makes the embedded information processing technology based on the core processor possible. Gao's remote management oil well production system based on the global mobile communication system provides technical means.
如图1所示,本发明方法所依赖的嵌入式系统的结构是,包括核心处理器1,核心处理器1与CPLD器件2连接,CPLD器件2与两个同样结构的转换器件(转换器件一3和转换器件二11)连接,其中的转换器件一3通过RS232接口与移动通讯网络模块4和IC读卡器5连接,另一个转换器件二11通过RS485接口与智能仪表6连接;CPLD器件2通过一个七位通用接口一7与磕头机控制开关继电器8连接,CPLD器件2还通过另外一个七位通用接口二10与磕头机控制开关继电器状态读取9连接,核心处理器1还与报警装置及上位机系统连接。As shown in Figure 1, the structure of the embedded system that the inventive method relies on is, comprises
核心处理器1选用TMS320DM642芯片作为嵌入式系统的主控芯片,根据该芯片需要的电源选用相应的电源芯片得到5V和3.3V的电压;The
为了实现上电自我重启和自我加载程序,DM642上外加有4M×8bit的Flash;由于DM642的内部存储资源较小,另外增加了两块4M×64bit的异步存储器SDRAM,用于扩大嵌入式系统的存储数据能力。In order to realize power-on self-restart and self-loading program, a 4M×8bit Flash is added to the DM642; due to the small internal storage resources of the DM642, two additional 4M×64bit asynchronous memory SDRAMs are added to expand the capacity of the embedded system. ability to store data.
为了实现可编程进行控制的功能,通过核心处理器1的外部存储器接口连接有CPLD器件2,该CPLD器件2用于实现外部地址的扩展,通过地址扩展带动实现相应功能的器件,如并行数据转换串行数据的器件。In order to realize the function of programmable control, a
由于移动通讯网络模块4、IC读卡器5以及智能仪表6都以串口方式与外部微机进行通信,因此系统设置了四个串口,其中多余的一个串口为预留串口。在CPLD器件2上挂接有2块同样的并行数据转换串行数据的转换器件((转换器件一3和转换器件二11均选用TL16C752B型号),而每块转换器件都控制两个串口,达到了嵌入式系统硬件的设置要求。Because the mobile communication network module 4, the
由于嵌入式系统需要控制并获得磕头机的工作状态,并实现数据总线的读写操作复用的功能,因此从DM642中引出低8位数据总线作为传输控制及获得控制磕头机工作的继电器的开关量;在CPLD器件内部进行逻辑判断,实现数据总线的功能复用。Since the embedded system needs to control and obtain the working status of the kowtow machine, and realize the multiplexing function of the data bus read and write operations, the lower 8-bit data bus is drawn from the DM642 as a switch for transmission control and a relay for controlling the kowtow machine. Quantity; Logical judgment is carried out inside the CPLD device to realize the function multiplexing of the data bus.
由于CPLD器件2上挂接了8位数据线,两块转换器件,为了让核心处理器1能够去控制,因此从核心处理器1上引出了低8位地址总线,该八根地址线通过CPLD器件2进行逻辑功能添加后,对每个器件和数据线进行地址映射,这样使每个和CPLD器件2连接的模块都有了对核心处理器1的地址映射。Since the 8-bit data line and two conversion devices are connected to the
为了让CPLD器件2能和核心处理器1(DM642)之间进行相互的通信,需要将CPLD器件2的控制引脚和核心处理器1的部分控制引脚相接,通过通用I/O口、DSP控制引脚和CPLD控制引脚,实现CPLD器件2在核心处理器1的控制下进行正常工作。In order to allow the
核心处理器1选用上海视可电子科技有限公司的DM642SmartI模块,其CPU为美国TI公司生产的DM642芯片,该模块具有嵌入式计算、机器视觉处理和工业控制等功能。The
CPLD器件2选用EPM7128ST100-10型号,该器件属于Altera公司的MAX7000系列的CPLD,该模块具有数字逻辑功能,用户能够根据自己的设置目的实现所需的逻辑功能。
移动通讯网络模块4选用是华为公司的EM310模块,该模块具有GPRS和移动通信功能、远程信息处理以及其它移动数据传输等功能。The mobile communication network module 4 is the EM310 module of Huawei, which has functions such as GPRS and mobile communication, telematics processing and other mobile data transmission.
IC读卡器5选用东莞市同欣智能科技有限公司TX522系列读卡器。该读卡器具有易用、高可靠、多种接口、体积小等特点,是一种非接触式IC卡读取和识别的仪器。
智能仪表6选用福建上瑞精密仪器有限公司的智能电流/电压仪表,该仪器适用于温度、湿度、压力、液位、流量等多种物理量检测信号的显示控制,能够巡回检测多路测量信号,并能对各种非线性输入信号进行高精度的线性校正。Smart meter 6 uses the smart current/voltage meter of Fujian Shangrui Precision Instrument Co., Ltd., which is suitable for the display control of various physical quantity detection signals such as temperature, humidity, pressure, liquid level, flow, etc., and can detect multiple measurement signals in a circuit. And it can perform high-precision linear correction on various nonlinear input signals.
鉴于上述的结构,本发明方法程序运行的嵌入式系统具有以下功能:In view of the above-mentioned structure, the embedded system that the method program of the present invention operates has the following functions:
1)系统能够自我上电复位、自我加载、运行程序;2)系统硬件支持海量数据的处理;3)系统硬件能与GSM模块进行相互通信;4)系统硬件能与IC识别器进行相互通信;5)系统硬件能与智能仪表进行相互通信;6)系统硬件能控制磕头机的工作状态,即对继电器控制开关继电器的开关量进行完整控制;7)系统硬件能回传磕头机的工作状态,即获取磕头机控制开关继电器的开关量。1) The system can power on and reset itself, load itself, and run programs; 2) The system hardware supports the processing of massive data; 3) The system hardware can communicate with the GSM module; 4) The system hardware can communicate with the IC identifier; 5) The system hardware can communicate with the smart instrument; 6) The system hardware can control the working state of the kowtow machine, that is, complete control of the switching value of the relay control switch relay; 7) The system hardware can return the working state of the kowtow machine, That is to obtain the switching value of the kowtow machine control switch relay.
本发明方法使用的嵌入式系统经过上电自检程序、初始化设置程序后,进行油量数据采集和处理程序,包括以下内容:1)上电自检程序包括上电后FLASH中程序向SDRAM的拷贝,以便上电后程序能够自动执行。2)初始化设置程序负责完成系统工作需要配置的寄存器和硬件设置,包括系统电源、程序存储器接口、数据存储器接口、以太网接口和串行口,初始化完成后,系统的硬件部分就可以正常工作。3)油量数据采集和处理程序是:首先上电复位,完成初始化的操作以及油量检测判断和短信发送告知管理人员算法的导入,并启动A/D连续工作;通过DSP向智能仪表发送读取数据指令,使智能仪表不停地将油量数据通过串口传给DSP,DSP根据之前的油量数据与此时的油量数据进行判断,并将变化结果存储,以此保障记录信息的精确程度;当油量变化到了某一设定值后,会执行相应操作;DSP通过短信方式向管理系统发送判断结果及应执行的相应操作;此时,管理人员通过管理系统实时了解到生产现场的具体情况,并采取对应的措施。The embedded system that the inventive method uses is through power-on self-inspection program, after initialization setting program, carries out fuel quantity data collection and processing program, comprises the following content: Copy, so that the program can be automatically executed after power on. 2) The initialization setting program is responsible for completing the registers and hardware settings that need to be configured for system work, including system power supply, program memory interface, data memory interface, Ethernet interface and serial port. After the initialization is completed, the hardware part of the system can work normally. 3) The fuel quantity data acquisition and processing procedure is: first power on and reset, complete the initialization operation, oil quantity detection and judgment, and send short messages to inform the manager of the algorithm introduction, and start A/D to work continuously; Take the data command, so that the smart meter continuously transmits the fuel quantity data to the DSP through the serial port, and the DSP judges according to the previous fuel quantity data and the current fuel quantity data, and stores the change result, so as to ensure the accuracy of the recorded information When the oil quantity changes to a certain set value, it will execute the corresponding operation; DSP sends the judgment result and the corresponding operation to the management system through SMS; at this time, the management personnel can know the real-time situation of the production site through the management system circumstances and take appropriate measures.
本发明的远程油井管理方法,采用智能仪表6读取当前油量数据,利用基于核心处理器1的嵌入式结构对当前油量数据分别进行数据读取,判定油量的门限,识别工作人员拉取原油的情况,判断相邻油量的数据情况,处理原油的数据下降情况,处理上位机系统下发的指令,使用继电器来完成自动控制磕头机的开关功能,具体的信息采集和处理过程包括:In the remote oil well management method of the present invention, the smart meter 6 is used to read the current oil volume data, and the embedded structure based on the
1)对油量数据的读取1) Reading of oil quantity data
首先通过核心处理器1对智能仪表6进行初始化设置,这些设置包括智能仪表6的测压范围、仪表读取对象的地址分配以及仪表通过中断方式发送数据,然后通过通用输入口与系统连接的磕头机将从地下开采的原油直接存入油罐中,智能仪表6通过读取油罐中原油的压力来判断油量的多少,以此获取油井开采的原油量,同时对拉取原油以及原油的损失通过油罐中的油量数据得到最直接的结果。智能仪表6通过RS485串口将油量数据传入到嵌入式系统中,进行具体的油量数据分析和处理。First, initialize the smart meter 6 through the
2)对油量门限的判定2) Judgment on the fuel volume threshold
由于油罐存储的油量有上限规定,一旦油量超过上限,就会出现原油溢出油罐,即发生“冒顶”现象。管理人员通过对油罐的可存储量最大值进行判定,同时设置两个门限值,其中第一个门限值的含义为原油已超过警戒线,但未到发生“冒顶”现象的临界值;第二个门限值的含义为原油已达到发生“冒顶”现象的存储值。通过智能仪表6发送到核心处理器1的油量数据进行实时判断,如果油量数据超过第一个门限值(油量过高报警门限值)时,嵌入式系统会产生油量已超出警戒线的报警短信,同时通过移动通讯网络模块4(华为EM310模块)上报给上位机系统,并通过人工交互界面显示或者短信提示的方式通知管理人员,管理人员根据具体情况采取具体措施,管理人员还能够选择获得报警短信的具体方式。当接收的油量数据超过第二个门限值(油量过高停机门限值)时,嵌入式系统不仅会产生当前油量已超出警戒线的报警短信并上报给上位机系统,还将自动断开连接在七位通用接口的磕头机工作电源,使得磕头机停止工作,避免冒顶现象产生。直到系统时间正处在磕头机的工作时间段内,且当油罐中的油量低于第二个门限值时,自动关闭的磕头机工作电源将自动打开重新工作。Since the amount of oil stored in the oil tank has an upper limit regulation, once the oil amount exceeds the upper limit, crude oil will overflow the oil tank, that is, the phenomenon of "roof fall" will occur. The management personnel judge the maximum storage capacity of the oil tank and set two thresholds at the same time. The first threshold means that the crude oil has exceeded the warning line, but has not reached the critical value of the "top fall" phenomenon. ; The meaning of the second threshold value is that the crude oil has reached the storage value where the phenomenon of "top fall" occurs. The fuel quantity data sent to the
3)对工作人员拉取原油情况的识别3) Identification of the crude oil pulled by the staff
使用IC卡用于身份证明,系统通过RS232串口对TX522系列IC读卡器5发送读取当前读卡器状态指令,从而获取当前IC读卡器5的状态信息;将返回来的状态信息与上位机系统下发的员工工号数据进行匹配,如果状态信息中所含的数据与员工工号数据匹配,则判断有工作人员正在拉取原油,并同时记录该工作人员的工号;如果不匹配,则判断无工作人员拉取原油。Use the IC card for identification, the system sends an instruction to read the current status of the
4)对相邻油量下降情况的判断4) Judgment on the decline of adjacent oil volume
如果此时有工作人员拉取原油,系统将记录工作人员拉取原油前一刻的油量数据,一旦工作人员停止拉取原油后,嵌入式系统将计算该工作人员拉取的原油数量,并且将该工作人员的工号,拉取的原油数量以及拉取的时间一并发送给上位机系统,上位机系统通过显示或者短信方式告知管理人员。If a worker pulls crude oil at this time, the system will record the oil quantity data at the moment before the worker pulls crude oil. Once the worker stops pulling crude oil, the embedded system will calculate the amount of crude oil pulled by the worker, and will The employee's job number, the quantity of crude oil pulled and the time of pulling are sent to the host computer system, and the host computer system informs the management personnel through display or SMS.
如果此时没有工作人员拉取原油,嵌入式系统将当前的油量数据和上一时刻的油量数据进行比较,如果发现下降,则记录该时刻的油量数据,以便进行下一步处理,如果没有下降,则不记录该时刻的油量数据,这一过程由核心处理器通过发送指令方式对智能仪表进行读取数据。If there is no staff to pull the crude oil at this time, the embedded system will compare the current oil volume data with the oil volume data at the previous moment, and if it finds a drop, record the oil volume data at that time for the next step of processing, if If there is no drop, the fuel volume data at that moment will not be recorded. In this process, the core processor reads the data from the smart meter by sending instructions.
5)对原油非法下降情况的处理5) Handling of the illegal decline of crude oil
将前一刻记录的油量数据和之后的油量数据进行分析,如果判断油量继续下降,则保留前一刻记录的油量数据,并继续与之后的油量数据进行分析,一旦下降累计到由管理人员设置的设定值后,嵌入式系统就会报警并发送短信通知管理人员;反之,如果油量并未达到该设定值之前,油量上升,则清除前一刻记录的油量数据,并重新获取油量数据的波动变化,如果上升,则不记录,反之记录。Analyze the oil quantity data recorded at the previous moment and the subsequent oil quantity data. If it is judged that the oil quantity continues to decline, keep the oil quantity data recorded at the previous moment and continue to analyze it with the subsequent oil quantity data. After the set value is set by the management personnel, the embedded system will alarm and send a text message to notify the management personnel; on the contrary, if the oil volume has not reached the set value and the oil volume rises, the oil volume data recorded at the previous moment will be cleared. And reacquire the fluctuation of oil volume data. If it rises, it will not be recorded, otherwise it will be recorded.
6)上位机系统下发指令的处理6) Processing of instructions issued by the host computer system
对上位机系统下发的指令,按照其命令含义的不同,进行相应的操作,命令的含义包括:For the instructions issued by the host computer system, perform corresponding operations according to the different meanings of the commands. The meanings of the commands include:
a.磕头机工作时间段设置:管理人员设置磕头机工作的时间段,使其运行在设定的时间段内;a. Kowtow machine working time setting: the manager sets the working time of the kowtow machine so that it runs within the set time period;
b.油量监控:管理人员需要获得油罐内存储的油量数据时,只需发送油量监控命令,就能够迅速获得该数据;b. Oil volume monitoring: When managers need to obtain the oil volume data stored in the oil tank, they only need to send the oil volume monitoring command to quickly obtain the data;
c.IC卡管理:当工作人员拉取原油时,管理人员需向系统发送IC卡管理命令,该命令包含了拉取原油工作人员工号;c. IC card management: when the staff pulls crude oil, the manager needs to send an IC card management command to the system, which includes the employee ID of the worker who pulls the crude oil;
d.设置短信回传时间:管理人员设置短信回传时间并发送给嵌入式系统后,嵌入式系统将会在每一日系统时间到达回传时间后,发送油罐中此时刻的油量数据;d. Set the message return time: After the manager sets the message return time and sends it to the embedded system, the embedded system will send the oil volume data in the oil tank at this moment after the system time reaches the return time every day ;
e.设置终端系统初始化:该命令包含了油量过高报警门限值,油量过高停机门限值,系统时间校正值以及磕头机个数;油量过高报警门限值和油量过高停机门限值是为了防止油罐发生“冒顶”现象,系统时间校正值是为了校正系统时间,磕头机个数是为了同时控制多个磕头机正常运行。e. Set the terminal system initialization: This command includes the alarm threshold value for high oil volume, the shutdown threshold value for excessive oil volume, the system time correction value and the number of kowtow machines; the alarm threshold value and oil volume for high oil volume The over-high shutdown threshold is to prevent the oil tank from "roof fall", the system time correction value is to correct the system time, and the number of kowtow machines is to control the normal operation of multiple kowtow machines at the same time.
Claims (2)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011101993624A CN102243496B (en) | 2011-07-15 | 2011-07-15 | Remote oil well management method based on mobile communication network and core processor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011101993624A CN102243496B (en) | 2011-07-15 | 2011-07-15 | Remote oil well management method based on mobile communication network and core processor |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102243496A CN102243496A (en) | 2011-11-16 |
CN102243496B true CN102243496B (en) | 2013-03-13 |
Family
ID=44961594
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2011101993624A Expired - Fee Related CN102243496B (en) | 2011-07-15 | 2011-07-15 | Remote oil well management method based on mobile communication network and core processor |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102243496B (en) |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040149436A1 (en) * | 2002-07-08 | 2004-08-05 | Sheldon Michael L. | System and method for automating or metering fluid recovered at a well |
CN1414211A (en) * | 2002-10-22 | 2003-04-30 | 孙殿新 | Oil field production monitoring and management system |
CN2746121Y (en) * | 2004-08-05 | 2005-12-14 | 北京卓辰基业技术开发有限公司 | Monitoring device for oil well production |
CN102069980A (en) * | 2011-02-23 | 2011-05-25 | 上海江润石油科技有限公司 | Burglar alarm for oil storage tank on oil field site |
-
2011
- 2011-07-15 CN CN2011101993624A patent/CN102243496B/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN102243496A (en) | 2011-11-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106054108B (en) | A kind of multiplexing electric abnormality inspection method and device | |
CN201406235Y (en) | Dynamic intelligent monitoring device for elevator | |
CN106110889B (en) | A kind of counter-infiltration system Breakdown forecast and diagnosis method, apparatus and system | |
CN104122508B (en) | Online monitoring method for backup power supply system of intelligent power distribution terminal | |
CN106569466A (en) | Building electric equipment operation state monitoring method, device and system | |
CN107085156A (en) | Microcomputer type relay protection and automatic test instrument automatic checkout system | |
CN107742925A (en) | Inspection method of substation hard pressure plate based on three-level network | |
CN104932395B (en) | Solar photovoltaic assembly monitors the intelligent maintenance device and maintaining method of system | |
CN105373118A (en) | Intelligent equipment data acquisition method | |
CN105094070B (en) | The operation monitoring system and its operating method of passive outdoor equipment | |
CN201269911Y (en) | Multifunctional electric power monitor | |
CN118331161A (en) | Concentrator operation environment monitoring management system | |
CN208537658U (en) | A kind of intelligent reminding anticreeping fire alarm system | |
CN109149776A (en) | Transmission line of electricity applied to smart grid reliably monitors system | |
CN103595999A (en) | Automatic detection method and automatic detection device of intelligent television | |
CN205742333U (en) | A kind of intelligent excavator remote on-line monitoring system | |
CN209311894U (en) | A kind of real-time road construction Supervision system based on cloud | |
CN104793270A (en) | Comprehensive judging method of operation states of equipment in comprehensive meteorological observation network | |
CN202166888U (en) | Remote Oil Well Management System Based on Mobile Communication Network and Core Processor | |
CN102243496B (en) | Remote oil well management method based on mobile communication network and core processor | |
CN119024248A (en) | A fault monitoring system and method for smart electric meter | |
CN211236617U (en) | A multi-function gate pump station monitoring device | |
CN117093943B (en) | Power consumption monitoring and early warning method and device | |
Xiong et al. | Biodiesel remote monitoring system design based on IOT | |
CN204117343U (en) | Arcola security of operation IDT |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20130313 Termination date: 20150715 |
|
EXPY | Termination of patent right or utility model |