Summary of the invention
In view of this, the object of the present invention is to provide a kind of oil field data transmission system and method thereof, to reduce data transmission power consumption, improve message transmission rate, improve the reliability of transfer of data; Overcome the defect that in prior art, wireless data acquisition system transmission power consumption is high, transmission rate is little.
For achieving the above object, the invention provides a kind of oil field data transmission system, comprise wireless self-organization network and WIFI network, described wireless self-organization network comprises wireless transmitter, remote control unit and network adapter, described WIFI network comprises network adapter, wireless router and server
Described wireless transmitter, for receiving the beacon frame of described remote control unit transmission to add described wireless self-organization network and to set up clock synchronous with adjacent described remote control unit, described beacon frame comprises timestamp, and described clock synchronous comprises data period and beacon periods; Described data are also sent to described remote control unit by described wireless self-organization network by the data period image data in described clock synchronous;
Described remote control unit, sends described beacon frame for the beacon periods in described clock synchronous to described wireless transmitter; Connect with adjacent described network adapter, and be sent to described network adapter in the data that described wireless transmitter sends by described data period by described wireless self-organization network;
Described network adapter, becomes data message for the described data encapsulation sent by described remote control unit, and described data message is sent to described wireless router by described WIFI network;
Described wireless router, is sent to described server for the described data described network adapter sent.
Preferably, described wireless transmitter comprises:
Receiving element, for receiving the described beacon frame that described remote control unit sends, described beacon frame comprises timestamp;
Network sets up unit, for the described beacon frame scanning described remote control unit around received according to described receiving element, sets up network be connected with adjacent described remote control unit;
Clock synchronous sets up unit, for the described timestamp in the described beacon frame that receives according to described receiving element, calibrates the clock of described wireless transmitter, to set up clock synchronous with described remote control unit;
Transmitting element, for sending described data to described remote control unit at described data period when having described data to send;
Beacon frame judging unit, whether correct for judging the described beacon frame that described receiving element receives;
Count value increases unit, for fail count value being increased by 1 when described judging unit judges described beacon frame mistake;
Timer setting unit, judge that described fail count value correctly resets by described beacon frame or described transmitting element to send described data to described remote control unit or after described data period does not have described data to send for being not more than predetermined value or described beacon frame judging unit in described fail count value, timer is set, enters resting state to make described wireless transmitter.
Preferably, described remote control unit comprises:
Timer setting unit, for arranging the timer of described remote control unit, to carry out the switching of described data period and described beacon periods according to described timer;
Beacon frame information unit, sends described beacon frame for the beacon periods in described clock synchronous to described wireless transmitter;
Receiving element, for receiving the described data that described wireless transmitter sends at described data period;
Transmitting element, is sent to described network adapter for the described data received by described receiving element.
Preferably,
Described wireless router, the downlink data message also for being sent by described server is sent to described network adapter by described WIFI network;
Described network adapter, the downlink data message also for being sent by described WIFI network by described wireless router is descapsulated into downlink data, and described downlink data is sent to described remote control unit;
Described remote control unit, also for receiving the described downlink data of described network adapter transmission and described downlink data being sent to described wireless transmitter;
Described wireless transmitter, also for receiving the described downlink data that described remote control unit is sent by described wireless self-organization network, to gather described data according to described downlink data.
A kind of oil field data transmission method, described method adopts wireless self-organization network and WIFI network, described wireless self-organization network comprises wireless transmitter, remote control unit and network adapter, and described WIFI network comprises network adapter, wireless router and server, and described method comprises:
The beacon frame that described wireless transmitter sends according to the described remote control unit received adds described wireless self-organization network, and set up clock synchronous with adjacent described remote control unit, described beacon frame comprises timestamp, and described clock synchronous comprises data period and beacon periods;
Described data are also sent to described remote control unit by described wireless self-organization network by the data period image data of described wireless transmitter in described clock synchronous;
Described remote control unit and adjacent described network adapter connect, and are sent to described network adapter in the data that described wireless transmitter sends by described data period by described wireless self-organization network;
The described data encapsulation that described wireless transmitter sends by described network adapter becomes data message, and described data message is sent to described wireless router by described WIFI network;
The described data that described network adapter sends by described wireless router are sent to described server.
Preferably, the beacon frame that described wireless transmitter sends according to the described remote control unit received adds described wireless self-organization network, and sets up clock synchronous with adjacent described remote control unit, comprising:
Described wireless transmitter receives the described beacon frame that described remote control unit sends, and described beacon frame comprises timestamp;
Described wireless transmitter, according to described beacon frame scanning described remote control unit around, is set up network with adjacent described remote control unit and is connected;
Described wireless transmitter, according to the described timestamp in described beacon frame, calibrates the clock of described wireless transmitter, to set up clock synchronous with described remote control unit.
Preferably, described data are also sent to described remote control unit by described wireless self-organization network by the data period image data of described wireless transmitter in described clock synchronous, comprising:
Described wireless transmitter is at described data period and send described data to described remote control unit when having described data to send.
Preferably, described method also comprises:
Described wireless transmitter judges that whether the described beacon frame that described remote control unit sends is correct;
Fail count value is increased by 1 when judging described beacon frame mistake by described wireless transmitter;
Described wireless transmitter is not more than predetermined value or described beacon frame in described fail count value and correctly described fail count value is reset or sent to described remote control unit described data or after described data period does not have described data to send, timer is set, enters resting state to make described wireless transmitter.
Preferably, the described data sent by described wireless transmitter at described data period are sent to described network adapter by described wireless self-organization network, comprising:
Described remote control unit arranges the timer of described remote control unit, to carry out the conversion of described data period and described beacon periods according to described timer;
The beacon periods of described remote control unit in described clock synchronous, sends described beacon frame to described wireless transmitter;
Described remote control unit receives the described data of described wireless transmitter transmission at described data period;
The described data that described receiving element receives by described remote control unit are sent to described network adapter.
Preferably, described method also comprises:
The downlink data message that described server sends by described wireless router is sent to described network adapter by described WIFI network;
The downlink data message that described wireless router is sent by described WIFI network is descapsulated into downlink data by described network adapter, and described downlink data is sent to described remote control unit;
Described remote control unit receives the described downlink data of described network adapter transmission and described downlink data is sent to described wireless transmitter;
Described wireless transmitter receives the described downlink data that described remote control unit is sent by described wireless self-organization network, to gather described data according to described downlink data.
The embodiment of the present invention, wireless self-organization network and WIFI network two layer network architecture is adopted to complete transfer of data, the low-frequency range wireless mode that wireless self-organization network can adopt carries out transfer of data, compared with existing transmission technology, greatly reduces transmission power consumption, transmission range is farther; Adopt clock synchronous to carry out transfer of data between wireless transmitter and remote control unit, at data period, wireless transmitter only just transmits data when there being transfer of data, does not have just to be switched to resting state during transfer of data, reduce further transmission power consumption; Possess redundant link between wireless transmitter and remote control unit and between remote control unit and network adapter, improve the reliability of transfer of data.
Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
As shown in Figure 1, for the structural representation of embodiment of the present invention oil field data transmission system, comprise: wireless self-organization network 101 and WIFI network 102, wherein, wireless self-organization network 101 comprises wireless transmitter 103, remote control unit 104 and network adapter 105, and WIFI network 102 comprises network adapter 105, wireless router 106 and server 107.
Particularly, the 470MHz frequency range wireless self-organization network agreement for field use scene can be adopted, be the Zigbee protocol of 2.4GHz relative to frequency range, the wireless self-organization network that the embodiment of the present invention adopts has low in energy consumption, the advantage such as loss is little, long transmission distance.
It should be noted that, in this oil field data transmission system between wireless transmitter 103 and remote control unit 104,470MHz frequency range low-consumption wireless link communication between remote control unit 104 and network adapter 105, can be used.Wireless transmitter 103, remote control unit 104, network adapter 105 run ad hoc network agreement, form ad hoc deployed wireless networks 102, wireless transmitter 103 can be connected from any remote control unit 104 that main separation is adjacent with it, and remote control unit 104 can establish a communications link from the arbitrary network adapter 105 that main separation is adjacent with it, namely wireless transmitter 103 and remote control unit 104 all have the function of self-healing.When in network during certain remote control unit 104 fault, the wireless transmitter 103 be attached thereto can be connected to the remote control unit 104 of other normal work automatically; When in network, certain network adapter 105 breaks down, the remote control unit 104 be attached thereto can be connected to other network adapter 105 normally worked.This self-organizing of wireless self-organization network 101, self-healing feature, can avoid the problem that cannot communicate that equipment component fault causes, ensure that the reliability of network, greatly improve data transmission success.
Wireless transmitter 103, for receiving the beacon frame of remote control unit 104 transmission to add wireless self-organization network 101 and to set up clock synchronous with adjacent remote control unit 102, wherein beacon frame comprises timestamp, and clock synchronous comprises data period and beacon periods; Data period in clock synchronous, data are also sent to remote control unit 102 by wireless self-organization network 101 by wireless transmitter 103 image data.
Particularly, wireless transmitter 103 according to the clock of the timestamp calibration in beacon frame self, can realize the clock synchronous with remote control unit 104;
Particularly, this beacon frame can also comprise: the address of network configuration information, downlink data, control command information and remote control unit 104, the wireless transmitter 103 not adding wireless self-organization network can according to the network configuration information scanning ambient network in beacon frame, find remote control unit 104, then add network request according to network configuration information to remote control unit 104 transmission, join in wireless self-organization network 101; Downlink data in beacon frame or control command information, can drive wireless transmitter 103 initiatively to extract data, realizes downlink data and control command issues, and facilitates Long-distance Control and configuration.
Particularly, wireless transmitter 103 can comprise:
Receiving element, for receiving the beacon frame that remote control unit 104 sends, beacon frame comprises timestamp;
Network sets up unit, for the beacon frame scanning remote control unit 104 around received according to receiving element, sets up network be connected with adjacent remote control unit 104;
Clock synchronous sets up unit, and for the timestamp in the beacon frame according to receiving element reception, the clock of calibrating wireless transmitter 103, to set up clock synchronous with remote control unit 104;
Transmitting element, for sending data to remote control unit 104 at data period when having data to send;
Beacon frame judging unit, whether correct for judging the beacon frame that receiving element receives;
Count value increases unit, during for judging beacon frame mistake at judging unit, fail count value is increased by 1;
Timer setting unit, judge that fail count value correctly resets by beacon frame or transmitting element sends data or after data period does not have data to send to remote control unit 104 for being not more than predetermined value or beacon frame judging unit in fail count value, timer is set, enters resting state to make wireless transmitter 103.
It should be noted that, wireless transmitter can comprise polytype, as load wireless transmitter, oil pressure wireless transmitter, casing pressure wireless transmitter, displacement wireless transmitter, wellhead temperature wireless transmitter, electric current wireless transmitter, voltage wireless transmitter, electrical power wireless transmitter etc.
As shown in Figure 3, for the structural representation of embodiment of the present invention wireless transmitter, wireless transmitter can comprise: transducer 201, signal conditioning circuit 202, microcontroller 203, memory 204, radio-frequency module 205, power module 206, battery 207 and voltage stabilizing circuit 208
Wireless transmitter 103 gathers the physical parameter such as oil pressure, casing pressure, displacement, wellhead temperature, electric current, voltage, electrical power of oil pumper, by transducer 201, physical parameter can be converted to faint voltage signal; Carry out the process such as shaping, filtering, amplification by signal conditioning circuit 202 pairs of voltage signals, obtain good analog signal, and analog signal is input to microcontroller 203; The analog signal of microcontroller 203 to input carries out A/D conversion, obtain binary digital signal, digital signal is stored in memory 204 by microcontroller 203, digital signal is carried out data processing and correction by microcontroller 203 together with historical data, and last result is sent to remote control unit 104 by radio-frequency module 205.
Wherein, power module 206 can adopt polymerization lithium battery power supply, and battery 207 can be powered for modules, provides suitable voltage by voltage stabilizing circuit 208 to modules, and modules can adopt chip and the circuit of low-power consumption.
Remote control unit 104, sends beacon frame for the beacon periods in clock synchronous to wireless transmitter 103; Connect with adjacent network adapter 105, and be sent to network adapter 105 in the data that wireless transmitter 103 sends by data period by wireless self-organization network 101.
Particularly, remote control unit 104 can comprise:
Timer setting unit, for arranging the timer of remote control unit 104, to carry out the conversion of data period and beacon periods according to timer;
Beacon frame information unit, sends beacon frame for the beacon periods in clock synchronous to wireless transmitter 103;
Receiving element, for receiving the data that wireless transmitter 103 sends at data period;
Transmitting element, the data for being received by receiving element are sent to network adapter 105.
It should be noted that, remote control unit 104 possesses the function of low-power consumption self-organizing network, and it is arranged in the control cubicle on oil pumper side, and adopt Power supply, a remote control unit 104 installed by every mouthful of oil well.Remote control unit 104 is responsible for the data retransmission of wireless transmitter 103 that is attached thereto to network adapter 105.Distance between wireless transmitter 103 and remote control unit 104 is very near, and usually within 10 meters, therefore, wireless transmitter 103 can use very low transmitting power to send data, thus reduces power consumption, extends the service time of battery.Remote control unit 104 can also set up communication link from the network adapter 105 that main separation signal is best, when the network adapter 105 used breaks down, remote control unit 104 can rediscover and select the network adapter 105 of normal work to access, improve the reliability of network, guarantee reliable data transmission.
Network adapter 105, becomes data message for the data encapsulation sent by remote control unit 104, and data message is sent to wireless router 106 by WIFI network 102.
Particularly, the data encapsulation that remote control unit 104 sends can be become the data message of TCP/IP form by network adapter, and the data message of TCP/IP form is sent to wireless router 106 by WIFI network 102.
Redundant link is possessed between wireless transmitter and remote control unit and between remote control unit and network adapter, when local remote control unit fault, the wireless transmitter running MANET agreement can be connected to other adjacent remote control unit and communicate, simultaneously, when local network adapter fails, remote control unit can be connected to other adjacent network adapter and communicate, and avoids the network interruption in data transmission procedure, improves the reliability of transfer of data.
Wireless router 106, the data for network adapter 105 being sent are sent to server 107.
Server 107 can realize the storage of data, management, analysis and display.
It should be noted that, wireless router 106 can realize the bridge joint between Ethernet and WIFI network 102, realizes the intercommunication mutually between two networks.
At data period, remote control unit 104 and network adapter 105 are in data receiving state always, and wireless transmitter 103 is according to the data collection cycle preset, periodically can sends data to remote control unit 104, also can send data to remote control unit 104 by single.Wireless transmitter 103 arranges a timer, when the timer times out, start to prepare to send data to remote control unit 104, remote control unit 104 adopts based on the carrier sense competed, conflict avoidance CSMA/CA media access mechanism, whether active detecting channel is idle, if the free time, sends data, and after remote control unit 104 receives data, feedback is replied, and by data retransmission to network adapter 105, network adapter 105 upload the data to server 107 again.
It should be noted that,
Wireless router 106, the downlink data message that server 107 can also be used for send is sent to network adapter 105 by WIFI network;
Network adapter 105, the downlink data message that can also be used for wireless router 106 is sent by WIFI network 102 is descapsulated into downlink data, and downlink data is sent to remote control unit 104;
Remote control unit 104, can also be used for receiving downlink data that network adapter 105 sends and downlink data is sent to wireless transmitter 103;
Wireless transmitter 103, can also be used for receiving the downlink data that remote control unit 104 is sent by wireless self-organization network 101, with according to downlink data image data.
Particularly, server 107 sends downlink data to wireless transmitter 103 can carry out at data period, and downlink data can be down order or configuration information herein.
It should be noted that, this oil field data transmission system can also comprise:
Wireless video server and handheld terminal, wireless video server inside can integrated video collection and compression module, WIFI network interface card, ICP/IP protocol stack, the image of collection can be become data flow according to H.264 standard compression, and send the data to network adapter 105 according to ICP/IP protocol, be finally transmitted to server; Handheld terminal has wireless network card and Web browser, can be connected to network adapter 105, remote access and logon server 107, realizes coordinating and control system equipment at Oil Field, conveniently administers and maintains.
It should be noted that, network adapter 105 can have a MANET module, two wireless WIFI module, and WIFI module that one of them is wireless is used for communicating with wireless router 106; WIFI module that another is wireless as focus, for by wireless video server and handheld terminal access WIFI network 102; And MANET module runs MANET agreement, for communicating with remote control unit 104.Isomorphic net-works between two wireless network cards in network adapter 105, only needs to carry out data retransmission, and belongs to isomery lattice between WIFI network 102 and wireless self-organization network 101, need the reconstruct carrying out Frame, mutually forwards after conversion.Particularly, network adapter 105 receives the data that remote control unit 104 sends, and extracts the load data in data, then load data is packaged into TCP/IP data message, data message is sent to wireless router 106; In addition, network adapter 105 can receive the downlink data that wireless router 106 sends, and extracts the load data in downlink data, load data is packaged into the data format of MANET agreement, be sent to remote control unit 104.
The oil field data transmission system of the embodiment of the present invention, wireless self-organization network and WIFI network two layer network architecture is adopted to complete transfer of data, wireless self-organization network adopts the low-frequency range wireless mode of 470MHz to carry out transfer of data, compared with existing transmission technology, greatly reduce transmission power consumption, transmission range is farther; Adopt clock synchronous to carry out transfer of data between wireless transmitter and remote control unit, at data period, wireless transmitter only just transmits data when there being transfer of data, does not have just to be switched to resting state during transfer of data, reduce further transmission power consumption; Possess redundant link between wireless transmitter and remote control unit and between remote control unit and network adapter, improve the reliability of transfer of data; Wireless video server and handheld terminal can be connected in WIFI network by network adapter, can realize the transfer of data of the multiple business such as sensing data, video, the more convenient configuration to oil field equipment and management.
Correspondingly, the embodiment of the present invention provides a kind of oil field data transmission method, as shown in Figure 3, it is the schematic flow sheet of the method, the method adopts wireless self-organization network and WIFI network, wireless self-organization network comprises wireless transmitter, remote control unit and network adapter, and WIFI network comprises network adapter, wireless router and server, and the method comprises the following steps:
Step 301: the beacon frame that wireless self-organization network sends according to the remote control unit received adds wireless self-organization network, and set up clock synchronous with adjacent remote control unit, this beacon frame comprises timestamp, and this clock synchronous comprises data period and beacon periods;
Particularly, the beacon frame that wireless transmitter sends according to the remote control unit received adds wireless self-organization network, and sets up clock synchronous with adjacent remote control unit, comprising:
Wireless transmitter receives the beacon frame that remote control unit sends, and beacon frame comprises timestamp;
Wireless transmitter, according to beacon frame scanning remote control unit around, is set up network with adjacent remote control unit and is connected;
Particularly, wireless transmitter, according to beacon frame scanning remote control unit around, can be set up network and is connected by the remote control unit the strongest with adjacent wireless signal;
Wireless transmitter, according to the timestamp in beacon frame, calibrates the clock of self, to set up clock synchronous with remote control unit;
Step 302: data are also sent to remote control unit by wireless self-organization network by the data period image data of wireless transmitter in clock synchronous;
Particularly, can comprise the following steps:
Step 401: carry out initialization after wireless transmitter powers on;
Step 402: wireless transmitter receives the beacon frame that remote control unit sends, selects according to the network configuration information in beacon frame the remote control unit that wireless signal is the strongest, and application connects with it, adds wireless self-organization network;
Step 403: wireless transmitter judges which be in clock synchronous period, if data period, then carry out step 404; If beacon periods, then carry out step 406;
Step 404: wireless transmitter has judged whether that data send, if so, then performs step 405; If not, then step 411 is performed;
Step 405: wireless transmitter sends data to remote control unit;
Step 406: wireless transmitter receives the beacon frame that remote control unit sends;
Step 407: wireless transmitter judges that whether the beacon frame received is correct, if so, then performs step 408; If not, then step 409 is performed;
Step 408: fail count value resets by wireless transmitter, and carry out clock alignment, fail count value represents the number of times of the beacon frame mistake that wireless transmitter receives;
Step 409: fail count value is added 1 by wireless transmitter;
Step 410: wireless transmitter judges whether fail count value is greater than predetermined value, this predetermined value can be 3 or 5, if so, then carry out step 402; If not, then carry out step 411;
Step 411: wireless transmitter enters resting state, resets timer.
Known by foregoing description, wireless transmitter can select the good remote control unit of signal in communication range to connect, when local remote control unit breaks down, wireless transmitter can select other remote control unit in communication range to connect, make to possess redundant link between wireless transmitter and remote control unit, ensure that the reliability of transfer of data; Wireless transmitter and remote control unit set up clock synchronous, only send data to remote control unit at data period when having data to send, enter resting state, greatly can save data transmission power consumption when not having data to send.
Step 303: remote control unit and adjacent network adapter connect, and at data period, the data that wireless transmitter sends are sent to network adapter by wireless self-organization network;
It should be noted that, the method can also comprise:
Remote control unit sends beacon frame to wireless transmitter;
Particularly, the method can comprise:
Step 501: carry out initialization after remote control unit powers on;
Step 502: after remote control unit initialization completes, selects idle channel, sends beacon frame to wireless transmitter;
Step 503: remote control unit judges self to be in which in clock synchronous period, if data period, then carry out step 504; If beacon periods, then carry out step 508;
Step 504: self is switched to accepting state by remote control unit, and overtime timer is set;
Step 505: remote control unit judges whether to receive data, if so, then carry out step 506; If not, then continue to perform step 505;
Step 506: the data retransmission that wireless transmitter sends by remote control unit is to network adapter;
Step 507: remote control unit judges that whether self clock is overtime, if so, then performs step 503; If not, then step 505 is performed;
Step 508: beacon sequence number to wireless transmitter broadcast beacon frame, and is added 1 by remote control unit;
Step 509: self is switched to accepting state by remote control unit, wait-receiving mode data;
Step 510: remote control unit arranges new timestamp section overtime timer, if timer expiry, then performs step 503.
According to foregoing description, remote control unit sends beacon frame to wireless transmitter, make wireless transmitter and remote control unit set up clock synchronous, employing clock synchronous realizes the transfer of data between wireless transmitter and remote control unit, may save transmission power consumption; Remote control unit can be selected the network adapter in communication range and connect with it, when local network adapter fails, remote control unit can be selected other network adapter in communication range and connect with it, ensure that the reliability of transfer of data.
Step 304: the data encapsulation that remote control unit sends is become data message by network adapter, and data message is sent to wireless router by WIFI network;
Particularly, the data encapsulation that remote control unit sends can be become TCP/IP data message by network adapter, and TCP/IP data message is sent to wireless router by WIFI network.
Step 305: the data message that network adapter sends is sent to server by wireless router.
It should be noted that, the method can also comprise:
The downlink data message that server sends is sent to network adapter by WIFI network by wireless router;
The downlink data message that wireless router is sent by WIFI network is descapsulated into downlink data by network adapter, and downlink data is sent to remote control unit;
Remote control unit receives the downlink data of network adapter transmission and downlink data is sent to wireless transmitter;
Wireless transmitter receives the downlink data that sent by wireless self-organization network of remote control unit, with according to downlink data image data.
It should be noted that, the method can also comprise:
Video data is transferred to network adapter by WIFI network by wireless video server, realizes the transmission of video data, and particularly, wireless video server carries out alternately according to http protocol and network adapter;
Handheld terminal is connected to network adapter by WIFI network, remote access and logon server, realizes coordinating and control system equipment at Oil Field, conveniently administers and maintains.
It should be noted that, server sends downlink data to wireless transmitter and wireless transmitter sends in the process of reply data to server, and can adopt the interaction flow between source and destination, reciprocal process as shown in Figure 6.When source 601 needs to operate destination 602, claim frame in claim frame, then is sent to destination 602 by the content package that will operate, and after destination 602 receives claim frame, whether checking data makes mistakes, if made mistakes, abandons data; If correct, then resolution data, obtains the content that will operate, after executable operations result, result is returned to source 601.
The downlink data that server sends to wireless transmitter and wireless transmitter send reply data to server, adopt the form of claim frame and acknowledgement frame.
In embodiments of the present invention, claim frame can comprise frame head, version number, function code, frame length, transmitter identification number, load, check code etc.Frame head length can be 2 bytes, and content is as hexadecimal 0x60,0x60; Version number's length can be 1 byte, and content is the version sequence number of Current protocol; Function code length can be 1 byte, and content is the function sequence number of this operation, and the function declaration that some function codes are corresponding has been shown in table 1; Length field can be 2 bytes, and for identifying the length of whole claim frame, this length field can store according to small end form, and low byte is front, and high byte is rear; Transmitter identification number length can 8 bytes, altogether 64bit, and be used for identifying concrete wireless transmitter, the home address of 64bit can identify multiple wireless transmitter; Load is the real data that server or wireless transmitter send, and its length can be unfixed; Whether check code can adopt parity check, make mistakes for the content verifying whole claim frame in transmitting procedure, and its length is 2 bytes, can store by small end.
Table 1
Function code |
Function declaration |
0x50 |
Open, stop single wireless transmitter |
0x51 |
Single wireless change transmitter parameter is set |
0x52 |
Read single wireless change transmitter parameter |
0x53 |
Single wireless change transmitter is asked to send a real time data |
0x54 |
Single wireless change transmitter is asked to send real time data with specific period |
0x55 |
Ask the merit diagram data of single wireless change transmitter |
0x56 |
Single wireless change transmitter is asked to send an electrical quantity certificate |
0x70 |
When remote control unit is to server request school |
0x71 |
Remote control unit sends transmitter ad hoc network topology structure to server |
Acknowledgement frame can comprise: frame head, version number, function code, frame length, transmitter identification number, error code, check code etc., wherein frame head, version number, function code, frame length, transmitter identification number and check code can adopt the form of claim frame as above, and error code is used to indicate the result of this operation, feed back to source, to process accordingly, the length of error code can be 1 byte, and some error codes and corresponding error description have been shown in table 2.
Table 2
Error code |
Error description |
0x00 |
Successful operation |
0x01 |
The function code of nonrecognition |
0x02 |
Do not support this function |
0x03 |
Operation is rejected |
0x04 |
Operation does not run succeeded |
It should be noted that, the data sent from wireless transmitter to server and the downlink data sent from server to wireless transmitter all can adopt the form of claim frame; The setting initiatively issued from server, controling parameters, need wireless transmitter reply this setting, controling parameters whether success time, wireless transmitter can adopt the form of acknowledgement frame to send data, with announcement server; From the single request of data that server initiatively issues, need to reply real time data according to request rule after wireless transmitter receives these data, server can select synchronous or asynchronous implement; When the request wireless transmitter issued from server periodically sends real time data, request wireless transmitter dwelling period sends data, after wireless transmitter receives these data, only need to start periodically to send data or dwelling period transmission data, without the need to being replied the request of server itself according to server request.
The oil field data transmission system of the embodiment of the present invention and method thereof, wireless self-organization network and WIFI network two layer network architecture is adopted to complete transfer of data, wireless self-organization network adopts the low-frequency range procotol of 470MHz to carry out transfer of data, compared with existing transmission technology, greatly reduce transmission power consumption, transmission range is farther; Adopt clock synchronous to carry out transfer of data between wireless transmitter and remote control unit, at data period, wireless transmitter only just transmits data when there being transfer of data, does not have just to be switched to resting state during transfer of data, reduce further transmission power consumption; Possess redundant link between wireless transmitter and remote control unit and between remote control unit and network adapter, improve the reliability of transfer of data; Wireless video server and handheld terminal can be connected in WIFI network by network adapter, can realize the transfer of data of the multiple business such as sensing data, video, the more convenient configuration to oil field equipment and management.
The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.