Summary of the invention
The object of the present invention is to provide a kind of passing through the remote real time monitoring in well site, report output, report fault oil well reach the well site GPRS wireless monitor control method that improves oil well output, reduces energy consumption and accident rate.
For achieving the above object, the technical solution used in the present invention is as follows:
A kind of oil-well realtime monitoring method, wherein, the monitoring system that this method is used comprises: be arranged on the sensing system I in the well site, described monitoring system comprises that also near be arranged on the well site SCM system II and one are long-range, can accurately monitor the production wellhead state in real time, realize the remote detection monitoring system III of remote-wireless communication, the information input terminal of described SCM system II links to each other with sensing system I by cable network, and the information output of described SCM system II is by mobile GPRS network, the mobile base station, the internet links to each other with remote detection monitoring system III; Described SCM system II comprises microcontroller 11, is used to the GPRS module 12 of the information that sends, real-time clock 13, system power supply 14, be used to the sensor interface 15 of the information that receives, described GPRS module 12, real-time clock 13, system power supply 14 and sensor interface 15 link to each other with microcontroller 11 respectively and accept the control of microcontroller 11, and described system power supply 14 links to each other, gives GPRS module 12 that electric energy is provided with GPRS module 12;
This method for supervising mainly is divided into following three steps:
(1). by the fuel-displaced situation in the sensing system I detection well site;
(2). the cable network by the well site passes to SCM system II with information, is controlled, is handled by SCM system II;
(3). pass to the mobile base station through the information after the SCM system II processing by mobile GPRS network, issue the internet by the mobile base station again, received by remote detection monitoring system III at last;
In step (two), as follows with regard to the concrete control step of SCM system II:
At first, program begins;
Second step, the SCM system initialization;
The 3rd step connected network,
The 4th step, by the real-time clock timing,, wait for 10 seconds read transducers for avoiding signal oscillating, if do not reach 10 seconds, continue to wait for, if to 10 seconds continuation next steps;
In the 5th step, from sensor, read in the oil well state;
In the 6th step, deposit in the buffer memory of single-chip microcomputer inside;
In the 7th step, real-time clock judges whether to reach half an hour, continues next step half an hour if reached, if do not reach half an hour, then returns the 4th step, continues circulation;
The 8th step sent the oil well state in the single-chip microcomputer buffer memory, returned the 4th step then;
In step (three), the concrete detection monitoring step of described remote detection monitoring system III is as follows:
At first, program begins,
Then, system initialization,
Next, detect monitoring programme and be divided into three branches---time-triggered report, listens for network, transmitter status;
In time-triggered report, judge whether to arrive the specified a certain moment of client by timer, if arrive, the record in the staqtistical data base then, printing reports, the report of sending short messages, disposal data; If do not arrive, then return and continue timing in the time-triggered report;
In listens for network, judged whether connection, if connection is arranged, then open new thread, then do not return and continue to monitor; Enter to carry out successively behind this new thread and read in data, whether judgment data is legal, if legal then deposit database in, if illegal, then closes this thread;
In transmitter status, whether the work that detects earlier transmitter is normal, if data query time of advent regularly, and surpass two hours, then send short messages and printed report; If regularly data query does not reach the time, then return and continue in the transmitter status to detect.
Described oil-well realtime monitoring method, microcontroller 11 among the described SCM system II is detecting sensor interface 15 regularly, the read sensor state, state is carried out accident analysis, control GPRS module 12 then, directly the packing data after handling is sent to the designated port of assigned ip on the internet with ICP/IP protocol.
Use beneficial effect of the present invention to be: this cover system is by the real time monitoring to oil storage tank, report out the oil mass of oil storage tank in time by GPRS network, simultaneously by to the analysis report of data apart from the also remaining time of canful, automatically report oil recovery workman sends short messages, will produce the function of similar note dial-a-cab like this, thereby reduce vehicle, fuel oil, manpower consumption, be embodied as the effect of industry energy conservation, the safety that has improved Petroleum Production simultaneously.In addition, monitoring system of the present invention also has the following advantages: the quantity of the sensor of support is big, can satisfy the requirement of many mouthfuls of wells; Can be directly connected to the internet, realize and internet information alternately; Use the three phase mains the same, be fit to the well site and use with oil well.Adopt monitoring and control method of the present invention can monitor oil well produce oil situation in real time, automatically guarantee; Automatically arrange oil-extraction vehicle work according to the situation of oil storage tank; Analysing output need drop into quantity for the policymaker provides new accurately well.
The specific embodiment
Below by the specific embodiment, accompanying drawing describes the present invention in addition.
As shown in Figure 1 and Figure 2, be oil-well realtime monitoring system of the present invention, this monitoring system comprises: be arranged on the sensing system I in the well site, described monitoring system also comprise near be arranged on the well site SCM system II and one long-range, can accurately monitor the production wellhead state in real time, realize the remote detection monitoring system III of remote-wireless communication;
Wherein, described sensing system I be flow switch, flow meter, content gauge etc. can the perception oil wells whether fuel-displaced sensor; Described flow meter setting is installed in the middle of the oil pipeline, and described flow switch is installed in the oil-out that crude oil enters oil storage tank, and described content gauge is installed in the oil storage tank.Wherein, described flow meter can adopt Germany (HONSBERG) VHZ gear meter, is characterized in measuring high viscosity liquid; Also can adopt the RotorFlow rotary flowmeter, be characterized in electromagnetic induction, can see the rotation of rotor; Described flow switch can adopt FS-550 series high voltage, metal blade formula switch, perhaps adopts the RF-OH2/OH3 flow switch; Described content gauge can adopt BTY-U550 series float level meter or adopt JKB-KO-LAG-1X pressure liquid level transmitter, the user is when installation system, can be according to the situation of oil well, and the characteristic of every kind of sensor and select multi-form sensor.
As Fig. 1, described remote detecting system III comprises: an appointment that is used to accept the data that SCM system II sent receives monitoring system 2, described appointment receives the designated port that monitoring system 2 has assigned ip, it comprises netscape messaging server Netscape 21, three manipulators 22, described manipulator 22 is by the mutual communication between internet login Internet realization and the netscape messaging server Netscape 21, wherein, with regard to number of users is set can decides of manipulator according to different requirements, can be two, also can be four or the like indefinite.Described remote detecting system III comprises also and the ancillary equipment 3 of specifying reception monitoring system 2 to link to each other that described ancillary equipment 3 comprises printer 31, facsimile machine 32.The cellphone subscriber 23 that control system 2 also comprises one, uses mobile GPRS network is taken into custody in described appointment, communication mutually between described cellphone subscriber 23 and the manipulator 22, realize the transmission of data message, wherein, the cellphone subscriber establishes as required, can be Liang Tai, three even four or the like.
As Fig. 3, Fig. 5, shown in Figure 6, described SCM system II mainly comprises microcontroller 11, the GPRS module 12 that is used to the information that sends, real-time clock 13, system power supply 14, be used to the sensor interface 15 of the information that receives etc., described GPRS module 12, real-time clock 13, system power supply 14 links to each other with microcontroller 11 respectively with sensor interface 15, and accept the control of microcontroller 11, described system power supply 14 links to each other with GPRS module 12, electric energy is provided for GPRS module 12, system power supply 14 is carried out inversion with the three-phase alternating current of input, become the needed magnitude of voltage of system after the step-down, to each module for power supply of system.At first, microcontroller 11 is in control real-time clock 13, also regularly detect the data message situation of the sensor interface 15 that is used to the information that receives, the read sensor state, state is carried out accident analysis, then, microprocessor 11 will deposit in the buffer area of microprocessor 11 temporary from the data that sensor interface 15 receives, after the data acquisition of (generally being 30 minutes) through after a while, microprocessor 11 control GPRS modules 12, directly the packing data after handling is sent to the designated port of assigned ip on the internet with ICP/IP protocol, just give the server among the remote detecting system III, manipulator or cellphone subscriber.The circuit theory diagrams of this SCM system, as Fig. 5, shown in Figure 6, wherein, the chip U7 model of microprocessor is: ATMEGA162_TQFP44, its effect is the control program flow process and realizes data acquisition and transmission; U6 is a LCD, and model is: LCM128645ZK, and its effect is to show related data; U8 is a memory, and model is: 62LV256, and effect is a program data; U9 is a power supply chip, and model is: LM1117-3.3, and effect is to produce the 3.3V power supply; U10 is a sensor interface.X1, X2, X3 are data latches, and model is: 74HC373, and effect is respectively to latch sensing data or latch the microprocessor output data; X4 is an address decoder, and model is: 74HC138, effect is to select correct latch according to the microprocessor OPADD.In module shown in the lower right corner of Fig. 6, be the major part of the GPRS module that is connected with Fig. 6 of Fig. 5.As Fig. 6, U1 is a power supply chip, and model is: MIC29302, and effect is to produce the power supply that the GPRS module is used; U2 is a GPRS module 12, and model is SIM100, and effect is the access of realization system and GPRS network; U3 is the antistatic device, and U4 is the SIM card interface.
As Fig. 1, the information input terminal of described SCM system II links to each other with sensing system I by cable network, the information output of described SCM system II links to each other with remote detection monitoring system III by mobile GPRS network, mobile base station, internet Internet, that is to say, at first by the fuel-displaced situation in the sensing system I detection well site, then, the cable network by the well site passes to SCM system II with information, is controlled, is handled by SCM system II; Pass to the mobile base station through the information after the SCM system II processing by mobile GPRS network, issue internet Internet by the mobile base station again, received by remote detection monitoring system III at last, at this moment, remote detection monitoring system III handles accordingly according to the data that receive.
Secondly, the control method of oil-well realtime monitoring system, this control method mainly was divided into for three steps:
(1). by the fuel-displaced situation in the sensing system I detection well site;
(2). the cable network by the well site passes to SCM system II with information, is controlled, is handled by SCM system II;
(3). pass to the mobile base station through the information after the SCM system II processing by mobile GPRS network, issue internet Internet by the mobile base station again, received by remote detection monitoring system III at last.
Microcontroller 11 among the described SCM system II is detecting sensor interface 15 regularly, the read sensor state, state is carried out accident analysis, control GPRS module 12 then, directly the packing data after handling is sent to the designated port of assigned ip on the internet with ICP/IP protocol.
Wherein, in above-mentioned steps (two), as follows with regard to the concrete control step of SCM system II:
At first, program begins, the SCM system initialization;
Then, connect network, pick up counting,, need to wait for 10 seconds read transducers for avoiding signal oscillating by real-time clock, so, read in a secondary data every 10 seconds from sensor, and deposit in the buffer memory of single-chip microcomputer inside;
Then, real-time clock judges whether to be half an hour, and system requirements sends a secondary data per half an hour, and carries out this step and can save communication flows;
At last, turn back to 10 seconds meter steps of real-time clock, circulation is from sensor readings.
Need to prove that around here in this step, after one section program is carried out, when circulating from sensor readings, still need wait for for 10 seconds, this is for fear of signal oscillating, and then continues performing a programme; And microprocessor selected 30 minutes to send a secondary data, mainly was to save communication flows, and transmission in per 10 minutes is once intensive excessively, certainly will cause too high communication cost; It is oversize again to send a blanking time in per 1 hour, real-time monitoring to oil well is unfavorable, just in case there is accident to take place, it is oversize that people obtain time of information, handles if having little time, cause immeasurable loss, consequence is serious, and is hardly imaginable, so, the reason of comprehensive all angles, we selected with 30 minutes is that a spaced points sends a secondary data.
At last, be the core place of most critical of the present invention, the control flow of monitoring programme (describe by its hardware components front among the remote detection monitoring system III, so, here just no longer repeat), as shown in Figure 7, the concrete detection monitoring step of described remote detection monitoring system III is as follows:
At first, program begins, system initialization;
Then, detect monitoring programme and be divided into three branches---time-triggered report, listens for network, transmitter status:
In time-triggered report, arrive the record in the staqtistical data base then, printing reports, the report of sending short messages, disposal data the specified a certain moment if judge whether to arrive the client by timer; If do not arrive, then return and continue timing in the time-triggered report; Wherein, just the moment of client's appointment is not fixed, and it can be 10 minutes, 20 minutes, 30 minutes or the like, according to client's demand set printing reports, the time of the report of sending short messages;
In listens for network, in fact, all monitoring no matter whether connect circuit always; Judged whether connection,, then opened new thread, then do not returned and continue to monitor if connection is arranged; Enter to carry out successively behind this new thread and read in data, judgment data, whether judgment data is legal, if legal then deposit database in, if illegal, then closes this thread;
In transmitter status, whether the work that detects earlier transmitter is normal, if data query time of advent regularly, and surpass two hours, then send short messages and printed report; If regularly data query does not reach the time, then return and continue in the transmitter status to detect.
In addition, emphasize again one be that the monitoring programme of remote detection monitoring system III is made up of three parts: database, backstage control program, WEB service; Wherein, database: after data are received from network, deposit it in database (seeing Fig. 8 and data dictionary) earlier by background monitor, database is responsible for the management of data, and its technology is very ripe, repeats no more here; WEB service: inform today during output when people's application that authority is arranged on the network, it can obtain data from database, tell the applicant with the form of html web page then.
Bulletin table that is to use below that one embodiment of the invention well site printed and data dictionary:
Table 1
Table 2
Data dictionary
The well site Basic Information Table
The row name |
Data type |
Could be sky |
Explanation |
jcid |
num |
NOT NULL |
The well site numbering |
jcname |
varchar |
NOT NULL |
The well site title |
jcarea |
float |
NOT NULL |
The oil storage tank floor space |
jcheight |
float |
NOT NULL |
The oil storage tank height |
jcqd |
varchar |
NOT NULL |
Be subordinate to sector |
jcposition |
varchar |
NOT NULL |
The geographical position |
jcdriver |
varchar |
NOT NULL |
The oil recovery driver |
jcxlid |
varchar |
NOT NULL |
Group is repaired in the well site |
|
|
|
|
The oil pumper Basic Information Table
The row name |
Data type |
Could be sky |
Explanation |
cyjid |
num |
NOT NULL |
The oil pumper numbering |
cyjjc |
varchar |
NOT NULL |
Well site, oil pumper place |
Oil recovery driver table
The row name |
Data type |
Could be sky |
Explanation |
ryid |
num |
NOT NULL |
Driver's numbering |
ryname |
varchar |
NOT NULL |
Driver's name |
rymobile |
num |
NULL |
Driver mobile phone |
ryphone |
num |
NULL |
Driver's phone |
ryqd |
varchar |
NOT NULL |
Sector under the driver |
The person in charge of oil recovery sector
The row name |
Data type |
Could be sky |
Explanation |
leaderid |
num |
NOT NULL |
Person in charge's numbering |
leadername |
varchar |
NOT NULL |
Person in charge's name |
leadermobile |
num |
NULL |
Person in charge's mobile phone |
leaderphone |
num |
NULL |
Person in charge's phone |
leaderqd |
varchar |
NOT NULL |
Sector under the person in charge |
Maintenance group
The row name |
Data type |
Could be sky |
Explanation |
xlid |
num |
NOT NULL |
Little group # |
xlname |
varchar |
NOT NULL |
The person in charge of group name |
xlmobile |
num |
NULL |
The person in charge of group mobile phone |
xlphone |
num |
NULL |
The person in charge of group phone |
The well site tables of original record
The row name |
Data type |
Could be sky |
Explanation |
ysid |
num |
NOT NULL |
The well site numbering |
ysdate |
datetime |
NOT NULL |
Writing time |
ysheight |
float |
NOT NULL |
Fuel head (being falling head) |
ystem |
num |
NOT NULL |
Temperature |
The oil pumper tables of original record
The row name |
Data type |
Could be sky |
Explanation |
yscyjid |
num |
NOT NULL |
The oil pumper numbering |
yscyjzt |
varchar |
NOT NULL |
The oil pumper state |
yscyjdate |
datetime |
NOT NULL |
Enrollment time |
The final entry table
The row name |
Data type |
Could be sky |
Explanation |
zzid |
num |
NOT NULL |
The well site numbering |
zzname |
varchar |
NOT NULL |
The well site title |
zzpump |
float |
NOT NULL |
The same day current production rate |
zztransport |
float |
NOT NULL |
The same day is the amount of adopting at present |
zzcyjzt |
varchar |
NOT NULL |
The oil pumper state |
zzqd |
varchar |
NOT NULL |
Be subordinate to sector |
zzdate |
datetime |
NOT NULL |
Enrollment time |
zzfull |
float |
NOT NULL |
How long canful |
zztem |
float |
NOT NULL |
Temperature |