CN105592119B - Communication method and device of network equipment - Google Patents

Communication method and device of network equipment Download PDF

Info

Publication number
CN105592119B
CN105592119B CN201410579036.XA CN201410579036A CN105592119B CN 105592119 B CN105592119 B CN 105592119B CN 201410579036 A CN201410579036 A CN 201410579036A CN 105592119 B CN105592119 B CN 105592119B
Authority
CN
China
Prior art keywords
data
communication
wireless
wellhead
instrument
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.)
Active
Application number
CN201410579036.XA
Other languages
Chinese (zh)
Other versions
CN105592119A (en
Inventor
李清辉
龚仁彬
蒋能记
李群
苏伟
柴永柴
刘�英
华磊
李金诺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Petrochina Co Ltd
Original Assignee
Petrochina Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Petrochina Co Ltd filed Critical Petrochina Co Ltd
Priority to CN201410579036.XA priority Critical patent/CN105592119B/en
Publication of CN105592119A publication Critical patent/CN105592119A/en
Application granted granted Critical
Publication of CN105592119B publication Critical patent/CN105592119B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The invention discloses a communication method and a communication device of network equipment. Wherein, the method comprises the following steps: setting wireless sensors of at least two network devices to adopt the same communication parameters, wherein the communication parameters comprise: wireless communication technology, wireless communication mode, protocol stack rule of wireless communication technology, application layer communication protocol, data communication memory address; the network devices of the wireless sensors with the same communication parameters are adopted for mutual communication, wherein the network devices of the wireless sensors are enabled to communicate with each other through unified setting of the communication parameters of the wireless sensors of the network devices. The invention solves the problems that remote terminal equipment produced by different manufacturers in the Internet of things in the prior art cannot be interconnected, intercommunicated and interchanged and has high maintenance cost.

Description

Communication method and device of network equipment
Technical Field
The present invention relates to the field of information technologies, and in particular, to a communication method and apparatus for a network device.
Background
At present, the internet of things is in a starting development stage in the global scope, real-time mastering, accurate management and scientific decision-making targets of the physical world pursued by the technology of the internet of things are the source and the foundation of changing the enterprise and market pursuing management breakthrough, benefit improvement and outstanding safety, and a wireless sensor network is a multi-hop self-organizing network formed by a plurality of wireless sensor nodes deployed in a monitoring area in a wireless communication mode; the wireless sensor network application obtains more and more applications due to the multiple advantages of no need of land acquisition wiring, flexible deployment, rapid debugging, system starting, simple maintenance, implementation and maintenance cost saving and the like. In 2012, over 100 billion wireless connection devices were on the market; by 2020, the number of terminals accessing the internet of things worldwide will reach 500 hundred million. The application of the wireless sensor network is the general trend of the future construction of the internet of things. The wireless sensor network equipment relates to remote terminal wireless instrument equipment and remote terminal wireless control equipment for an oil field. The wireless meter device includes: wireless load, wireless pressure, wireless temperature, wireless parameter, wireless moisture analyzer, etc. wireless control device includes: a wireless wellhead controller (RTU), a wireless wellhead control unit, a wireless multi-well centralized Repeater (RTU), etc.
How to ensure the high efficiency, stability and easy management of the wireless sensor network construction result; the convenience of upgrading and maintaining is ensured; the construction and operation and maintenance costs are effectively controlled, and the interconnection and intercommunication of the wireless sensors are the core. Due to the inherent characteristics of the sensors, the domestic sensors belong to different industries and departments, and no department is available to systematically and integrally study the development problems of the domestic sensors from the foundation and the national level, so that the sensors have no rules and can be recycled in the aspects of overall planning, reasonable layout, classification guidance, important division of labor, application implementation, standard formulation, industrial layout, talent culture, policy making and the like. The research and development system, the product system, the industrial system, the market system, the standard system and other aspects of the sensor are not really in reality.
Because of the popularization of wireless communication technology, domestic wireless sensor production enterprises are numerous, the enterprise scale is generally small, at present, in the industry range of China oil and gas share companies, oil and gas production Internet of things wireless sensor network equipment manufacturers are hundreds of families, the related wireless communication technologies have no industry uniform communication protocol, equipment among different production enterprises, products of the same wireless communication technology cannot be interconnected, intercommunicated and interchanged, the same wireless sensor network equipment production enterprise adopts the same communication technology, and the high-efficiency development of industry Internet of things construction is restricted because the wireless communication module suppliers are different and cannot be interconnected, intercommunicated and interchanged. The interconnection and interchange method of the short-distance wireless sensor network equipment in the construction of the oil and gas production Internet of things is researched and determined, and related application layer protocols for data communication connection, transmission and storage of the short-distance wireless sensor network are formulated, so that the method becomes a problem to be solved urgently in the construction of the oil and gas production Internet of things in the industry.
Aiming at the problems that remote terminal equipment produced by different manufacturers in the Internet of things in the prior art cannot be interconnected, intercommunicated and interchanged and has high maintenance cost, an effective solution is not provided at present.
Disclosure of Invention
The invention mainly aims to provide a communication method and a communication device of network equipment, and aims to solve the problems that remote terminal equipment produced by different manufacturers in the Internet of things cannot be interconnected, intercommunicated and interchanged and the maintenance cost is high.
In order to achieve the above object, according to an aspect of an embodiment of the present invention, there is provided a communication method of a network device. The communication method of the network equipment comprises the following steps: setting wireless sensors of at least two network devices to adopt the same communication parameters, wherein the communication parameters comprise: wireless communication technology, wireless communication mode, protocol stack rule of wireless communication technology, application layer communication protocol, data communication memory address; the network devices of the wireless sensors with the same communication parameters are adopted for mutual communication, wherein the network devices of the wireless sensors are enabled to be communicated with each other through unified setting of the communication parameters of the wireless sensors of the network devices.
In order to achieve the above object, according to another aspect of the embodiments of the present invention, there is provided a communication apparatus of a network device. The communication device of the network equipment according to the present invention includes: the setting module is used for setting that the wireless sensors of at least two network devices adopt the same communication parameters, and the communication parameters comprise: wireless communication technology, wireless communication mode, protocol stack rule of wireless communication technology, application layer communication protocol, data communication memory address; the communication module is used for performing mutual communication by adopting the network devices of the wireless sensors with the same communication parameters, wherein the network devices of the wireless sensors are enabled to perform mutual communication by uniformly setting the communication parameters of the wireless sensors of the network devices.
According to the embodiment of the invention, the wireless sensors of at least two network devices adopt the same communication parameters, and the communication parameters comprise: wireless communication technology, wireless communication mode, protocol stack rule of wireless communication technology, application layer communication protocol, data communication memory address; the network devices of the wireless sensors with the same communication parameters are adopted for mutual communication, the problems that remote terminal devices produced by different manufacturers in the Internet of things cannot be interconnected, intercommunicated and exchanged and the maintenance cost is high are solved, and the effects that the network devices of the wireless sensors can be mutually connected and the application of the wireless sensors is efficient, stable and easy to manage are achieved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments of the invention and, together with the description, serve to explain the invention and not to limit the invention. In the drawings:
fig. 1 is a flowchart of a communication method of a network device according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a single well communication mode according to an embodiment of the present invention.
Fig. 3 is a schematic diagram of a first communication mode of a multi-well cluster according to an embodiment of the invention.
Fig. 4 is a schematic diagram of a communication mode two of a multi-well cluster according to an embodiment of the invention.
FIG. 5 is a timing diagram of a conventional data acquisition according to an embodiment of the present invention;
FIG. 6 is a timing diagram of transmission control of meter parameter readings according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of the transmission control timing sequence of the integrated load displacement indicator according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of a transmission control timing sequence for indicator diagram acquisition according to an embodiment of the present invention;
FIG. 9 is a schematic diagram of a transmission control timing sequence for coulomb data collection according to an embodiment of the invention;
FIG. 10 is a schematic diagram of a transmission control timing sequence for specialized data acquisition according to an embodiment of the present invention; and
fig. 11 is a schematic diagram of a communication device of a network device according to an embodiment of the present invention.
Detailed Description
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present invention will be described in detail below with reference to the embodiments with reference to the attached drawings.
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged under appropriate circumstances in order to facilitate the description of the embodiments of the invention herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The embodiment of the invention provides a communication method of network equipment.
Fig. 1 is a flowchart of a communication method of a network device according to an embodiment of the present invention. As shown in fig. 1, the communication method of the network device includes the following steps:
step S102, setting the wireless sensors of at least two network devices to adopt the same communication parameters, wherein the communication parameters comprise: wireless communication technology, wireless communication mode, protocol stack rules of the wireless communication technology, application layer communication protocol, data communication memory address.
Specifically, in step S102, the communication parameters of the wireless sensors of the network device are set in a unified manner. The wireless communication technology, the wireless communication mode, the protocol stack rule of the wireless communication technology, the application layer communication protocol and the data communication storage address of the network equipment are set in a unified mode.
And step S104, adopting the network devices of the wireless sensors with the same communication parameters to carry out mutual communication.
In the above step S102 and step S104, the communication parameters of the wireless sensors of the network devices are set uniformly, so that the network devices of the wireless sensors communicate with each other.
In practical application, taking oil and gas production internet of things in the oil and gas industry as an example, the interconnection and intercommunication interchange method for building the short-distance wireless sensor network equipment mainly comprises the following steps: the method comprises the steps of wireless communication technology selection, wireless communication mode formulation, wireless communication technology protocol stack specification, industry wireless sensor network equipment data communication application layer protocol formulation and data communication storage address specification unification of network control equipment of industry wireless sensors. After the standard unification is established, the wireless sensors can communicate with each other.
The steps give out a complete standardized design and implementation method of the system for interconnection and interchange of the wireless sensor network equipment of the oil and gas production Internet of things, and a data communication protocol of the application layer of the wireless sensor network equipment is made according to the application requirements of the industry, so that the problems that the short-distance wireless sensor network equipment of different production enterprises used in the construction of the oil and gas production Internet of things cannot be interconnected, interchanged and upgraded and maintained, the construction, operation and maintenance costs are high and the like are solved, and the high efficiency, stability and easy management of the application are ensured.
Preferably, in the above embodiments of the present application, the wireless communication technology includes: the network communication technology of ZigBee and WIA-PA wireless sensor based on IEEE 802.15.4.
The ZigBee is a wireless sensor network communication protocol based on IEEE802.15.4 specification. Ieee802.15.4 has two physical layers, each of which can operate in two different frequency ranges: 868/915MHz and 2.4GHz, and the physical layer of higher frequency (2.4GHz) is adopted in the ZigBee wireless communication protocol.
The physical layer specifies the mechanical, electrical, functional and process characteristics of the communication device to establish, maintain and tear down connections of the physical link. Specifically, the mechanical characteristics specify the specification and size, the number of pins, the arrangement of the connectors, and the like required for network connection; electrical characteristics dictate the magnitude of signal levels on the line, impedance matching, transmission rate, distance limitations, etc., when transmitting a bit stream (bit) over a physical connection; the functional characteristics refer to that each signal is firstly allocated with an exact signal meaning, namely the function of each line between the DTE and the DCE is defined; the process characteristics define a set of operation procedures for bit stream (bit) transmission using signal lines, which refer to the series of actions of both DTE and DCE on each circuit when establishing, maintaining, and exchanging information of a physical connection. At this level, the unit of data is called a bit (bit).
The wireless module initialization requirements of the wireless sensor are as follows: the initialization includes selecting the mode of operation of the module and setting of corresponding communication parameters, etc. The basic parameters of the radio module are shown in table 1:
table 1:
Figure GDA0002237593030000051
Figure GDA0002237593030000061
in addition, the data link layer establishes a data link between adjacent nodes based on the bit stream service provided by the physical layer, provides error-free transmission of data frames (frames) on a channel through error control, and performs a series of operations on each circuit.
The data link layer provides reliable transmission over unreliable physical media. The role of this layer includes: physical address addressing, framing of data, flow control, error detection of data, retransmission, etc. In this layer, a unit of data is called a Frame (Frame).
The ZigBee wireless communication module has two working modes, namely an API mode and an AT command mode. The module defaults to an API mode (Application Programming Interface), the API mode requires that data communication on the serial port is explained according to a certain command frame structure, and the module ignores data which do not conform to the command frame structure.
The API mode may be implemented with AP commands in the AT command state. When the parameter of the AP is 1, it is the API mode.
In the API mode (AP ═ 1), each Frame of the serial Data Frame is composed of 4 fields, which are StartDelimiter, Length, Frame Data, and Checksum, respectively, where the Frame Data is divided into an API Identifier field and an Identifier-specific Data field. The specific meanings are shown in Table 2.
Table 2:
Figure GDA0002237593030000071
the check is to add the contents of the "Frame Data" field one by one and keep the sum of only one byte, excluding the header and length (1-3B), and then add the value of Checksum, if the result of the addition is equal to 0xFF, the check is correct.
When the API command code is 0x11, the command code is a ZigBee meter data sending request with 64-bit address; after receiving the Data transmission request frame, the module will transmit the content of the "RF Data" field in the Data frame to the Destination Address specified by "Destination Address (DH, DL)". The frame structure of the data transmission request is shown in the table.
Table 3:
Figure GDA0002237593030000081
Figure GDA0002237593030000091
as in the example above: and sending data to a coordinator (the 64-bit address is 0x0), and using a complete ZigBee serial port data transmission addressing mode, wherein endpoint of a source and a target is 0xE8, Cluster ID is 0x0011, and Profile ID is 0x 1857.
When the ZigBee management function and other specifications are not used, a default value of 0x1857 is suggested.
When the module completes an API command (command code 0x11) for data transmission, if ACK is not disabled, the module will return a transmission status frame with API command code 0x8B, as defined in table 1, regardless of successful transmission.
Table 1:
Figure GDA0002237593030000092
Figure GDA0002237593030000111
received data frame format
After receiving the data in the air, the wireless module packs the data according to the frame structure definition and then sends the data to the serial port, and the frame structure of the received data is shown in a table.
Table 5:
Figure GDA0002237593030000112
Figure GDA0002237593030000121
Figure GDA0002237593030000131
as in the example above: a meter device has a 64-bit address of 0x0013A20040522BAA and a 16-bit address of 0x7D84 for broadcasting "RxData" data to the remote RTU. The source and target end point of the sent complete ZigBee serial port data addressing is 0xE8, the Cluster ID is 0x0011, and the Profile ID is 0xC 105. And if the wireless module AO at the RTU receiving end is set to be 1, the state frame above is output from the RTU serial port.
In practical application, taking an oil and gas production internet of things in the oil and gas industry as an example, wherein the wireless sensor network communication technology selection is the primary basic content for the industry to select and develop wireless sensor network construction, and based on the application requirements of the oil field wireless communication technology, such as large-scale networking, explosion prevention, industrial-level safety, stability, adaptability to severe environment, reliability, anti-interference capability, easiness in installation and management, low power consumption, power supply modes of a route and terminal equipment, battery life and the like, the advantages and the disadvantages of the corresponding communication technology are considered. Especially considering both aspects of data security level, standard patent citation. Finally, the ZigBee and WIA-PA wireless sensor network communication technology based on IEEE802.15.4 is selected to meet the application requirements of different areas in the industry.
Preferably, in the above embodiments of the present application, the wireless communication mode includes: single well communication mode, the communication mode of the set of multiple wells, wherein, single well communication mode includes: a wellhead controller for wireless instruments in the communication network and for wellhead data acquisition, processing and control equipment; .
In practical application, taking an oil and gas production internet of things in the oil and gas industry as an example, wherein a wireless communication mode is formulated, the wireless communication mode needs to be formulated aiming at the technical characteristics of wireless communication, the wireless sensor is a foundation for interconnection and intercommunication and interoperability in the industry, the communication mode is formulated to relate to the deployment and installation design of acquisition control equipment of an oil field well (wellhead) field, and the production well layout of each oil and gas field site is wired according to the characteristics of oil and gas exploration and development and considering whether the site pressure, the temperature, the electrical parameters and the indicator diagram data can be conveniently and quickly acquired; flexibility in implementing a start-stop control function; expandability of well site well number, acquisition control function and the like; the two wireless communication modes of a single-well communication mode and a multi-well centralized communication mode are established by using the factors of safety, maintainability, economy, system stability and the like after the wireless communication mode is put into use.
Specifically, in the single-well communication mode, as shown in fig. 2, the wireless meter (Fn) is an endpoint device in a communication network, such as a wireless load-displacement integrated indicator, a wireless pressure, a wireless temperature, a wireless electric quantity, a wireless torque, a wireless water content meter, and the like. The wireless instrument is in a dormant state at ordinary times, and is sent to a wellhead controller (RTU) after periodically awakening collected data. The well head controller (RTU) is well head data acquisition, processing and control equipment, can upload processing results through communication equipment, and receive central control room instruction control scene, for example the beam-pumping unit opens and stops etc..
The communication modes of the multi-well set communication are divided into two modes, one is shown in fig. 3: the direct transmission mode of the wellhead control unit: the wellhead control unit is wellhead data acquisition, processing and control equipment, and can upload processing results to a multi-well centralized relay unit (RTU) through communication equipment and upload data to a central control room through the RTU. And a multi-well integrated repeater unit (RTU) receives a central control room instruction, and then reaches a wellhead control unit through communication, so as to control the site, such as starting and stopping of the pumping unit. Multi-well trunked Repeater (RTU) routing mode: the wellhead control unit 1, the wellhead control unit n and the multi-well centralized repeater (RTU can directly communicate within a visual range of 150-300 m, and the wellhead control unit 2 and the multi-well centralized Repeater (RTU) are blocked and cannot directly communicate with each other, and through the routing function of ZigBee Pro or WIA protocol, data of the wellhead control unit 2 are routed through the control unit 1, and the data are uploaded into the multi-well centralized Repeater (RTU).
The second communication mode of the multi-well set is shown in fig. 4: the wireless instrument is an endpoint device in a ZigBee or WIA network and can be a wireless load, a wireless pressure, a wireless temperature and other instruments. The wireless instrument is in a dormant state at ordinary times, and is sent to the RTU after periodically awakening collected data. The multi-well integrated repeater is well head data acquisition, processing and field display equipment, and uploads the processing result. The coordinator in the ZigBee network can build a wellhead instrument and a route into the own network. The wellhead routing unit ZigBee and WIA route only take charge of the relay communication of data of a wellhead instrument, if the wellhead instrument is closer to the RTU, the data can be directly transmitted to the RTU without passing through the route, and if the wellhead instrument is farther from the RTU, the data can be transmitted to the RTU through the route, and the routes in the same network can be communicated with each other. The wellhead routing needs long-term power supply work, can be formed by an electric parameter module or other unit function modules with additional ZigBee and WIA routing modules, is in charge of collecting various electric quantity parameters of the wellhead, and can also be used as a communication node routing, so that the cost is saved. In addition, the multi-well centralized repeater can meet the instrument communication requirement of at least 5 wells.
Preferably, in the above embodiments of the present application, the acquisition control timing sequence is formulated for data communication types, where the data communication types at least include any one or more of the following types: conventional data acquisition, instrument parameter reading, indicator diagram data acquisition, electric quantity diagram data acquisition and special data acquisition.
Under the condition of adopting conventional data acquisition, after receiving conventional data, the wellhead controller/wellhead control unit sends a conventional response, finishes the communication and enables the instrument to enter a dormant state;
under the condition of reading the instrument parameters, after receiving the conventional data, the wellhead controller/wellhead control unit sends an instrument parameter reading command, the instrument returns the instrument parameters and enters dormancy, and the wellhead controller/wellhead control unit does not respond to the instrument parameter data;
under the condition of adopting indicator diagram data acquisition, after a wellhead controller/wellhead control unit receives conventional data of an instrument, an indicator diagram acquisition command is sent to a wireless load sensor and a wireless displacement sensor, after the instrument receives the indicator diagram acquisition command, an indicator diagram is acquired, and after the indicator diagram acquisition command is finished, wireless displacement data blocks are transmitted to the wellhead controller/wellhead control unit in groups;
under the condition of adopting electric quantity diagram data acquisition, after a wellhead controller/wellhead control unit receives conventional data of an instrument, sending a diagram acquisition command to an integrated wireless load displacement indicator, simultaneously sending the electric quantity diagram acquisition command to an electric quantity module, entering a diagram acquisition and diagram data transmission process, after the diagram acquisition and data transmission process, sending an electric quantity diagram data reading command to the electric quantity module by the wellhead controller/wellhead control unit, forming electric quantity diagram data by the electric quantity module according to the electric quantity diagram data reading command, and transmitting data blocks to the wellhead controller/wellhead control unit in a grouping manner;
under the condition of adopting special data acquisition, after the wellhead controller/wellhead control unit receives the conventional data of the wireless special sensor, a special data acquisition command is sent to the instrument, the data is acquired by using the acquisition command, and the acquired data is grouped according to data blocks and is transmitted to the wellhead controller/wellhead control unit.
Specifically, a basic communication process and a data acquisition control time sequence of each data communication type are worked out according to five data communication type requirements such as conventional data acquisition, instrument parameter reading, indicator diagram data acquisition, electric quantity diagram data acquisition and special data acquisition. The above is described in detail below:
in the acquisition control sequence, the basic communication process is as follows: the wireless instrument adopts the modes of dormancy, awakening, data sending, command receiving, execution and dormancy in sequence. The basic communication process is as follows: the instrument is periodically dormant and awakened, and after awakening, the instrument actively sends conventional data to a wellhead controller (RTU)/wellhead control unit, wherein the awakening time can be set within the range of 1 s-30 min. The wellhead controller (RTU)/wellhead control unit is preferably adapted to actively wake up the instrumentation for less than 10 seconds. The wellhead controller (RTU)/wellhead control unit generates command response (the response carries control command information) to control the operation of the instrument. The meter executes a command of a wellhead controller (RTU)/wellhead control unit and generates response data, and then goes to sleep. And (3) receiving the response data of the instrument by a wellhead controller (RTU)/a wellhead control unit, and ending a communication process without responding.
The transmission control timing of the conventional data acquisition shown in fig. 5 is explained as follows: and after receiving the conventional data, a wellhead controller (RTU)/wellhead control unit sends a conventional response, ends the communication and enables the instrument to enter a dormant state. The regular response data includes the meter sleep time, and the meter sleeps according to the time interval. During conventional data communication, if a wellhead controller (RTU)/wellhead control unit has no response, the instrument does not perform retransmission processing and directly enters a dormant state. The conventional data is basic process data such as pressure, temperature, load, displacement, torque, rotating speed, water content, instantaneous flow and the like.
As shown in fig. 6, in the transmission control sequence of reading the meter parameter, after receiving the conventional data, the wellhead controller (RTU)/wellhead control unit sends a command to read the meter parameter, the meter returns the meter parameter and enters a sleep mode, and the wellhead controller (RTU)/wellhead control unit does not respond to the meter parameter data.
The transmission control timing sequence and the acquisition timing sequence of the integrated load displacement indicator shown in fig. 7 are explained as follows: and when a wellhead controller (RTU)/wellhead control unit receives conventional data of the instrument, sending an indicator diagram acquisition command to the integrated load displacement indicator, wherein the command comprises information such as synchronization time, acquisition points and the like. And after the instrument receives the indicator diagram acquisition command, acquiring the indicator diagram. After the power diagram collection is finished, the data blocks are grouped and transmitted to a wellhead controller (RTU)/wellhead control unit. During the process of transmitting the indicator diagram data, the wellhead controller (RTU)/wellhead control unit responds to each group of data. If there is no response, the meter will perform retransmission processing on the group of data, and the retransmission number may be 3.
As shown in fig. 8, the transmission control sequence of indicator diagram acquisition (wireless displacement, wireless load) takes wireless displacement, wireless load indicator diagram acquisition as an example, and the acquisition sequence is described as follows: and after receiving the conventional data of the instrument, a wellhead controller (RTU)/wellhead control unit sends a diagram acquisition command to the wireless load sensor and the wireless displacement sensor, wherein the command comprises information such as synchronization time, acquisition point number and the like. And after the instrument receives the indicator diagram acquisition command, acquiring the indicator diagram. And after the indicator diagram acquisition is finished, grouping and transmitting the wireless displacement data blocks to a wellhead controller (RTU)/wellhead control unit. In the wireless displacement data transmission process, a wellhead controller (RTU)/wellhead control unit responds to each group of data. If there is no response, the meter will perform retransmission processing on the group of data, and the retransmission number may be 3. After the wireless displacement data transmission is finished, a wellhead controller (RTU)/wellhead control unit sends a wireless load data reading command to enter a load data transmission process.
As shown in fig. 9, the transmission control sequence of the electricity quantity diagram data acquisition is described as follows: after a wellhead controller (RTU)/wellhead control unit receives conventional data of the instrument, a diagram acquisition command is sent to the integrated wireless load displacement indicator (or wireless load and wireless displacement sensor), meanwhile, an electric quantity diagram acquisition command is sent to the electric quantity module (the command comprises information such as synchronization time and acquisition points), a diagram acquisition and diagram data transmission process is started, and at the moment, the electric quantity module also synchronously acquires electric quantity diagram data. And after the indicator diagram acquisition and data transmission process is finished, a wellhead controller (RTU)/wellhead control unit sends an indicator diagram data reading command to the electric quantity module. After receiving a data reading command of a wellhead controller (RTU)/a wellhead control unit, the electric quantity module forms electric quantity map data and transmits the data blocks to the wellhead controller (RTU)/the wellhead control unit in a grouping mode. In the process of transmitting the data of the electric quantity diagram, a wellhead controller (RTU)/a wellhead control unit responds to each group of data; if no response exists, the instrument retransmits the group of data, and the retransmission times are 3 times.
As shown in fig. 10, the transmission control timing of the special data acquisition is described as follows: and after receiving the conventional data of the wireless special sensor, a wellhead controller (RTU)/wellhead control unit sends a special data acquisition command to the instrument, wherein the command comprises information such as acquisition intervals, acquisition points and the like. Wireless special sensor: for example, instruments or devices using wireless communication technology, such as a water content analyzer and a working fluid level, generally collect a large amount of data. And after receiving the acquisition command, the instrument starts to acquire data. After the data acquisition is finished, the data blocks are grouped and transmitted to a wellhead controller (RTU)/wellhead control unit. In the data block transmission process, a wellhead controller (RTU)/wellhead control unit responds to each group of data; if no response exists, the instrument retransmits the group of data, and the retransmission times are 3 times.
Preferably, in the foregoing embodiment of the present application, the protocol stack specification content of the protocol stack rule of the wireless communication technology includes: defining a pin definition of a physical module in a physical layer; defining a communication protocol following ZigBee or WIA-PA communication technology at a link layer and a network layer; an application layer protocol is defined at the application layer for the wireless communication mode.
In practical application, taking the internet of things for oil and gas production in the oil and gas industry as an example, each communication technology protocol stack is based on a standard 7-layer Open System Interconnection (OSI) model, but different manufacturers of each communication technology cannot use a chip or a wireless communication module for each other (a wireless sensor is composed of a sensor and a wireless transmission module). The protocol stack specification of the wireless communication technology is to provide an open standard to realize interconnection, intercommunication, mixing, interchange, replacement and the like among wireless communication modules, so that manufacturers using the wireless communication modules can have more choices, monopoly of supply is avoided, the supply safety of the wireless communication equipment is improved, and the repeated development brought by replacing the communication modules can be avoided. For the same communication technology, the protocol stack specification content comprises: the pin definition of the physical module is clarified in the physical layer, so that the wireless communication modules can be interchanged and compatible physically; a specific protocol which needs to follow the ZigBee or WIA-PA communication technology is specified from a link layer and a network layer, an application layer protocol, namely application logic, is defined in an application layer according to a wireless communication mode applied by the industry, and the storage, the processing, the communication sequence among devices in the system and the like of data from where to where, how to store, and the like are realized; each module manufacturer of the application logic needs to develop, has a difference of good and bad according to the development level, has a great influence on the use effect, and needs to standardize, unify, scientific and reasonable protocol stack application layer protocols of the wireless communication technology.
Preferably, in the above embodiments of the present application, for the ZigBee communication technology, a ZigBee PRO is used as a network layer standard in a network layer.
In practical application, taking the oil and gas production internet of things in the oil and gas industry as an example, the ZigBee PRO is definitely used as a network layer standard in a network layer for the ZigBee communication technology.
Preferably, in the foregoing embodiment of the present application, the data communication storage address includes: the system comprises a remote terminal unit system attribute data storage address, an oil well operation acquisition control data storage address table, a gas well remote terminal unit data storage address, a water source well remote terminal unit data storage address, a historical data storage address and an extraction and injection metering station remote terminal unit data storage address.
In practical application, taking an oil and gas production internet of things in the oil and gas industry as an example, an industry wireless sensor network control device (remote terminal unit control device storage address) data communication storage address is formulated: the data storage addresses of the control equipment of different manufacturers in different periods are different greatly, so that the control equipment is not convenient to interconnect, communicate and use, the function integration and the performance improvement of the oil-gas production Internet of things monitoring system are influenced, and the informatization application level and the industrialization application scale of the oil-gas field are restricted. Unifying standard well and station control equipment data storage standards; the method has the advantages of improving the interconnection, intercommunication and interoperability degree among instruments, equipment and systems, facilitating the establishment of monitoring centers of all levels of oil and gas field production, realizing large-scale centralized management and remote control, improving production efficiency, optimizing production organization modes and improving development management level and comprehensive benefits of oil and gas fields. The formulated data communication storage address of the industry wireless sensor network control equipment mainly comprises a remote terminal unit system attribute data storage address, an oil well operation acquisition control data storage address table (an oil well indicator diagram data storage address, an oil well function parameter control instruction storage address and a historical data storage address), a gas well remote terminal unit data storage (a system attribute data storage address, a gas well operation acquisition control data storage address, a gas well function parameter control instruction storage address and a historical data storage address), a water source well remote terminal unit data storage (a system attribute data storage address, a water source well operation acquisition control data storage address and a water source well function parameter control instruction storage address), a historical data storage address and an injection metering station remote terminal unit data storage (an injection metering station system attribute data storage address, a water source well function parameter control instruction storage address, a historical data storage address and an injection, The method comprises the following steps of running an acquisition control data storage address of an injection and production metering station, acquiring a water distribution unit data acquisition storage address of the injection and production metering station, acquiring a measurement acquisition control data storage address of the injection and production metering station, a functional parameter control instruction storage address of the injection and production metering station, a historical data storage address, historical data supplementary transmission (historical data storage capacity, RTU historical data storage requirement), other wells, and station yard (factory) remote terminal unit data storage address coding principles.
Preferably, in the foregoing embodiment of the present application, the application layer communication protocol is a handshake protocol between wireless sensors, where the wireless sensors include: the wireless instrument device, the wireless communication device and the wireless controller.
In practical application, taking an oil and gas production internet of things in the oil and gas industry as an example, a data communication application layer protocol of an industrial wireless sensor network device is formulated, wireless sensor manufacturers need to develop a wireless communication application layer protocol of an instrument, a wireless communication module and a controller, namely a handshake protocol, so that a final use product can be formed. Therefore, a uniform wireless sensor communication application layer protocol is formed according to the industrial characteristics, and is a key ring for the acquisition control construction of the Internet of things; the interconnection, intercommunication and interoperability degree among instruments, equipment and systems of various manufacturers can be improved, and the technical and business barriers caused by the fact that the construction of the Internet of things is restricted by human factors are avoided; the method is beneficial to building a benign factory entry and exit mechanism; and the construction unit has enough application initiative right to the equipment manufacturer.
Preferably, in the foregoing embodiment of the present application, the application layer communication protocol includes: the system comprises a data communication protocol, an instrument configuration protocol, an instrument calibration protocol, a communication protocol between a wellhead control unit (RTU) and a multi-well integrated Repeater (RTU), a network ID and a communication channel generation protocol between the wireless instrument device and the RTU, wherein the application layer communication protocol is used for ensuring the mutual communication of wireless sensors.
In practical application, an oil and gas production internet of things in the oil and gas industry is taken as an example, wherein an interconnection interchange application layer communication protocol of short-distance wireless sensor network equipment is built in the oil and gas production internet of things, which is called as an a11-GRM protocol (wireless instrument communication protocol of china oil and gas production internet of things system, g (gateway) represents a gateway, r (rtu) represents a remote terminal unit, and m (meter) represents an instrument) for short. The method mainly comprises the following steps: the system comprises an instrument and wellhead controller (RTU) data communication protocol, an instrument configuration protocol, an instrument calibration protocol, an RTU and multi-well integrated Repeater (RTU) communication protocol, a network ID and communication channel generation protocol and the like.
The instrument configuration protocol and the instrument calibration protocol only stipulate that the instrument needs to have configuration and calibration functions in consideration of the technical maturity at present so as to meet the standard and unified requirements on the communication mode and the data format between the instrument and the configuration equipment and between the instrument and the calibration equipment in the future.
Preferably, in the above embodiments of the present application, the data communication protocol between the wireless instrument device and the wellhead controller RTU is used to define the data frame composition and format of communication between the wireless instrument device and the wellhead controller RTU, and further define the data frame format and write-reply frame format of communication during conventional data acquisition, instrument parameter reading, indicator diagram data acquisition, electric quantity diagram data acquisition, and special data acquisition of the instrument between the wireless instrument device and the wellhead controller RTU.
Specifically, a data communication protocol between the instrument and a wellhead controller (RTU) specifies a data frame structure and a basic format of communication between the instrument and the wellhead controller (RTU), and specifies a data frame format of five types of communication between the instrument and the wellhead controller (RTU), such as instrument conventional data acquisition, instrument parameter reading, indicator diagram data acquisition, electric quantity diagram data acquisition, special data acquisition and the like, and a corresponding Remote Terminal Unit (RTU) write response frame format.
In practical application, taking an oil and gas production internet of things in the oil and gas industry as an example, a data frame format and a write response frame format of communication during instrument conventional data acquisition, instrument parameter reading, indicator diagram data acquisition, electric quantity diagram data acquisition and special data acquisition between a wireless instrument device and a wellhead controller RTU are defined. The method aims to describe the format of the collected data packet (frame), how the data packet (frame) from the meter to the Remote Terminal Unit (RTU) is transmitted, received and responded, and what the content of each communication data packet (frame) is, so as to ensure the interconnection, intercommunication and interoperability of the wireless sensor equipment. Meanwhile, the self characteristics of each oil field are considered, the definition content of the protocol is basic, each type of data frame has enough expandable capacity, each oil field can be completely defined according to the characteristics of the production process, interconnection and intercommunication are not influenced, and the wireless sensor equipment manufacturer can conveniently meet the requirements of each oil field by simply modifying.
Preferably, in the above embodiments of the present application, a communication protocol between the wellhead control unit and the multi-well centralized relay RTU is used to define a communication rule for data communication between the wellhead control unit and the multi-well centralized relay RTU, a data conversion rule of the multi-well centralized relay RTU, and a rule adopted by the multi-well centralized relay RTU to acquire a wireless address of the wellhead control unit RTU.
In practical application, taking the oil and gas production internet of things in the oil and gas industry as an example, wherein,
the communication protocol between the wellhead control unit and the multi-well centralized Repeater (RTU) specifies the basic requirements of data communication between the wellhead control unit and the multi-well centralized Repeater (RTU), the data conversion specification of the multi-well centralized Repeater (RTU), and the specification of the multi-well centralized Repeater (RTU) for acquiring the wireless address of the wellhead control unit (RTU). The problem of host computer system through multiwell concentrated joint control ware (RTU) and well head control unit data communication is mainly solved.
The network ID and channel number generation protocol stipulates the generation and writing method of the network ID number and the network channel number, and ensures that all devices in a wireless sensor network are formed under the same gateway and have the same ID number and the same communication channel, so that data collision is not generated between networks.
The embodiment of the invention also provides a communication device of the network equipment. The apparatus can realize its function by a communication method of a network device. It should be noted that the communication apparatus of the network device in the embodiment of the present invention may be used to execute the communication method of the network device provided in the embodiment of the present invention, and the communication method of the network device in the embodiment of the present invention may also be executed by the communication apparatus of the network device provided in the embodiment of the present invention.
In the embodiment of the invention, a ZigBee communication technology and a WIA-PA communication technology are borrowed; the IEEE802.15.4 protocol stack. The method provides a complete standardized design and implementation method for the interconnection, intercommunication and interchange of the wireless sensor network equipment of the oil and gas production Internet of things, sets a data communication mode of the wireless sensor network equipment, an application layer data communication protocol and a data storage address of remote terminal unit control equipment according to the application requirements of the industry, and solves the problems that the short-distance wireless sensor network equipment of different production enterprises used in the construction of the oil and gas production Internet of things cannot be interconnected, intercommunicated and interchanged, the upgrading and maintenance are difficult, and the construction, operation and maintenance costs are high. The method has the difficulty that according to the industrial application requirements and the equipment interconnection and intercommunication interoperability requirements, the data communication mode, the application layer communication protocol and the data storage address content of the remote terminal unit control equipment of the industrial wireless sensor network equipment are reasonably formulated; ensure the application to be efficient, stable and easy to manage.
Fig. 11 is a schematic diagram of a communication device of a network device according to an embodiment of the present invention. As shown in fig. 11, the apparatus may include: a setting module 202 and a communication module 204.
The setting module 202 is configured to set that the wireless sensors of at least two network devices use the same communication parameters, where the communication parameters include: wireless communication technology, wireless communication mode, protocol stack rules of the wireless communication technology, application layer communication protocol, data communication memory address.
Specifically, the setting module 202 sets communication parameters of wireless sensors of the network device in a unified manner. The wireless communication technology, the wireless communication mode, the protocol stack rule of the wireless communication technology, the application layer communication protocol and the data communication storage address of the network equipment are set in a unified mode.
And the communication module 204 is used for performing mutual communication by adopting network devices of the wireless sensors with the same communication parameters.
Through the setting module 202 and the communication module 204, the communication between the network devices of the wireless sensors is realized through the unified setting of the communication parameters of the wireless sensors of the network devices.
In practical application, taking oil and gas production internet of things in the oil and gas industry as an example, the interconnection and intercommunication interchange method for building the short-distance wireless sensor network equipment mainly comprises the following steps: the method comprises the steps of wireless communication technology selection, wireless communication mode formulation, wireless communication technology protocol stack specification, industry wireless sensor network equipment data communication application layer protocol formulation and data communication storage address specification unification of network control equipment of industry wireless sensors. After the standard unification is established, the wireless sensors can communicate with each other.
The steps give out a complete standardized design and implementation method of the system for interconnection and interchange of the wireless sensor network equipment of the oil and gas production Internet of things, and a data communication protocol of the application layer of the wireless sensor network equipment is made according to the application requirements of the industry, so that the problems that the short-distance wireless sensor network equipment of different production enterprises used in the construction of the oil and gas production Internet of things cannot be interconnected, interchanged and upgraded and maintained, the construction, operation and maintenance costs are high and the like are solved, and the high efficiency, stability and easy management of the application are ensured.
The wireless communication technology comprises the following steps: ZigBee and WIA-PA wireless sensor network communication technology based on IEEE 802.15.4.
Specifically, in practical application, taking the oil and gas production internet of things in the oil and gas industry as an example, wherein the wireless sensor network communication technology selection is the primary basic content for the industry to select and develop wireless sensor network construction, and based on the application requirements of the oil field wireless communication technology, such as large-scale networking, explosion prevention, industrial-level safety, stability, adaptability to severe environments, reliability, anti-interference capability, easiness in installation and management, low power consumption, power supply modes of a route and terminal equipment, battery life and the like, the advantages and the disadvantages of the corresponding communication technology are considered. Especially considering both aspects of data security level, standard patent citation. Finally, the ZigBee and WIA-PA wireless sensor network communication technology based on IEEE802.15.4 is selected to meet the application requirements of different areas in the industry.
The wireless communication modes include: the system comprises a single-well communication mode, a multi-well centralized communication mode and a multi-well centralized routing communication mode.
In practical application, taking an oil and gas production internet of things in the oil and gas industry as an example, wherein a wireless communication mode is formulated, the wireless communication mode needs to be formulated aiming at the technical characteristics of wireless communication, the wireless sensor is a foundation for interconnection and intercommunication and interoperability in the industry, the communication mode is formulated to relate to the deployment and installation design of acquisition control equipment of an oil field well (wellhead) field, and the production well layout of each oil and gas field site is wired according to the characteristics of oil and gas exploration and development and considering whether the site pressure, the temperature, the electrical parameters and the indicator diagram data can be conveniently and quickly acquired; flexibility in implementing a start-stop control function; expandability of well site well number, acquisition control function and the like; the safety, maintainability, economy, system stability and other factors after being put into use formulate three wireless communication modes of a single-well communication mode, a multi-well integrated communication mode and a multi-well integrated routing communication mode
An acquisition control time sequence is set according to data communication types, wherein the data communication types at least comprise any one or more of the following types: conventional data acquisition, instrument parameter reading, indicator diagram data acquisition, electric quantity diagram data acquisition and special data acquisition.
Specifically, a basic communication process and a data acquisition control time sequence of each data communication type are worked out according to five data communication type requirements such as conventional data acquisition, instrument parameter reading, indicator diagram data acquisition, electric quantity diagram data acquisition and special data acquisition.
The protocol stack specification content of the protocol stack rule of the wireless communication technology comprises: defining a pin definition of a physical module in a physical layer; defining a communication protocol following ZigBee or WIA-PA communication technology at a link layer and a network layer; an application layer protocol is defined at the application layer for the wireless communication mode.
In practical application, taking the internet of things for oil and gas production in the oil and gas industry as an example, each communication technology protocol stack is based on a standard 7-layer Open System Interconnection (OSI) model, but different manufacturers of each communication technology cannot use a chip or a wireless communication module for each other (a wireless sensor is composed of a sensor and a wireless transmission module). The protocol stack specification of the wireless communication technology is to provide an open standard to realize interconnection, intercommunication, mixing, interchange, replacement and the like among wireless communication modules, so that manufacturers using the wireless communication modules can have more choices, monopoly of supply is avoided, the supply safety of the wireless communication equipment is improved, and the repeated development brought by replacing the communication modules can be avoided. For the same communication technology, the protocol stack specification content comprises: the pin definition of the physical module is clarified in the physical layer, so that the wireless communication modules can be interchanged and compatible physically; a specific protocol which needs to follow the ZigBee or WIA-PA communication technology is specified from a link layer and a network layer, an application layer protocol, namely application logic, is defined in an application layer according to a wireless communication mode applied by the industry, and the storage, the processing, the communication sequence among devices in the system and the like of data from where to where, how to store, and the like are realized; each module manufacturer of the application logic needs to develop, has a difference of good and bad according to the development level, has a great influence on the use effect, and needs to standardize, unify, scientific and reasonable protocol stack application layer protocols of the wireless communication technology.
For the ZigBee communication technology, a ZigBee PRO is used as a network layer standard in a network layer.
In practical application, taking the oil and gas production internet of things in the oil and gas industry as an example, aiming at the ZigBee communication technology, the ZigBeePRO is definitely used as the network layer standard in the network layer.
The data communication memory address comprises: the system comprises a remote terminal unit system attribute data storage address, an oil well operation acquisition control data storage address table, a gas well remote terminal unit data storage address, a water source well remote terminal unit data storage address, a historical data storage address and an extraction and injection metering station remote terminal unit data storage address.
In practical application, taking an oil and gas production internet of things in the oil and gas industry as an example, an industry wireless sensor network control device (remote terminal unit control device storage address) data communication storage address is formulated: the data storage addresses of the control equipment of different manufacturers in different periods are different greatly, so that the control equipment is not convenient to interconnect, communicate and use, the function integration and the performance improvement of the oil-gas production Internet of things monitoring system are influenced, and the informatization application level and the industrialization application scale of the oil-gas field are restricted. Unifying standard well and station control equipment data storage standards; the method has the advantages of improving the interconnection, intercommunication and interoperability degree among instruments, equipment and systems, facilitating the establishment of monitoring centers of all levels of oil and gas field production, realizing large-scale centralized management and remote control, improving production efficiency, optimizing production organization modes and improving development management level and comprehensive benefits of oil and gas fields.
The formulated data communication storage address of the industry wireless sensor network control equipment mainly comprises a remote terminal unit system attribute data storage address, an oil well operation acquisition control data storage address table (an oil well indicator diagram data storage address, an oil well function parameter control instruction storage address and a historical data storage address), a gas well remote terminal unit data storage (a system attribute data storage address, a gas well operation acquisition control data storage address, a gas well function parameter control instruction storage address and a historical data storage address), a water source well remote terminal unit data storage (a system attribute data storage address, a water source well operation acquisition control data storage address and a water source well function parameter control instruction storage address), a historical data storage address and an injection metering station remote terminal unit data storage (an injection metering station system attribute data storage address, a water source well function parameter control instruction storage address, a historical data storage address and an injection, The method comprises the following steps of running an acquisition control data storage address of an injection and production metering station, acquiring a water distribution unit data acquisition storage address of the injection and production metering station, acquiring a measurement acquisition control data storage address of the injection and production metering station, a functional parameter control instruction storage address of the injection and production metering station, a historical data storage address, historical data supplementary transmission (historical data storage capacity, RTU historical data storage requirement), other wells, and station yard (factory) remote terminal unit data storage address coding principles.
The application layer communication protocol is a handshake protocol between wireless sensors, wherein the wireless sensors comprise: the wireless instrument device, the wireless communication device and the wireless controller.
In practical application, taking an oil and gas production internet of things in the oil and gas industry as an example, a data communication application layer protocol of an industrial wireless sensor network device is formulated, wireless sensor manufacturers need to develop a wireless communication application layer protocol of an instrument, a wireless communication module and a controller, namely a handshake protocol, so that a final use product can be formed. Therefore, a uniform wireless sensor communication application layer protocol is formed according to the industrial characteristics, and is a key ring for the acquisition control construction of the Internet of things; the interconnection, intercommunication and interoperability degree among instruments, equipment and systems of various manufacturers can be improved, and the technical and business barriers caused by the fact that the construction of the Internet of things is restricted by human factors are avoided; the method is beneficial to building a benign factory entry and exit mechanism; and the construction unit has enough application initiative right to the equipment manufacturer.
The application layer communication protocol comprises the following steps: the system comprises a data communication protocol, an instrument configuration protocol, an instrument calibration protocol, a communication protocol between a wellhead control unit (RTU) and a multi-well integrated Repeater (RTU), a network ID and a communication channel generation protocol between the wireless instrument device and the RTU, wherein the application layer communication protocol is used for ensuring the mutual communication of wireless sensors.
In practical application, an oil and gas production internet of things in the oil and gas industry is taken as an example, wherein an interconnection interchange application layer communication protocol of short-distance wireless sensor network equipment is built in the oil and gas production internet of things, which is called as an a11-GRM protocol (wireless instrument communication protocol of china oil and gas production internet of things system, g (gateway) represents a gateway, r (rtu) represents a remote terminal unit, and m (meter) represents an instrument) for short. The method mainly comprises the following steps: the system comprises an instrument and wellhead controller (RTU) data communication protocol, an instrument configuration protocol, an instrument calibration protocol, an RTU and multi-well integrated Repeater (RTU) communication protocol, a network ID and communication channel generation protocol and the like.
The instrument configuration protocol and the instrument calibration protocol only stipulate that the instrument needs to have configuration and calibration functions in consideration of the technical maturity at present so as to meet the standard and unified requirements on the communication mode and the data format between the instrument and the configuration equipment and between the instrument and the calibration equipment in the future.
The data communication protocol between the wireless instrument device and the wellhead controller RTU is used for defining the data frame composition and format of communication between the wireless instrument device and the wellhead controller RTU, and also defining the data frame format and the write response frame format of communication during instrument conventional data acquisition, instrument parameter reading, indicator diagram data acquisition, electric quantity diagram data acquisition and special data acquisition between the wireless instrument device and the wellhead controller RTU.
Specifically, a data communication protocol between the instrument and a wellhead controller (RTU) specifies a data frame structure and a basic format of communication between the instrument and the wellhead controller (RTU), and specifies a data frame format of five types of communication between the instrument and the wellhead controller (RTU), such as instrument conventional data acquisition, instrument parameter reading, indicator diagram data acquisition, electric quantity diagram data acquisition, special data acquisition and the like, and a corresponding Remote Terminal Unit (RTU) write response frame format.
In practical application, taking an oil and gas production internet of things in the oil and gas industry as an example, a data frame format and a write response frame format of communication during instrument conventional data acquisition, instrument parameter reading, indicator diagram data acquisition, electric quantity diagram data acquisition and special data acquisition between a wireless instrument device and a wellhead controller RTU are defined. The method aims to describe the format of the collected data packet (frame), how the data packet (frame) from the meter to the Remote Terminal Unit (RTU) is transmitted, received and responded, and what the content of each communication data packet (frame) is, so as to ensure the interconnection, intercommunication and interoperability of the wireless sensor equipment. Meanwhile, the self characteristics of each oil field are considered, the definition content of the protocol is basic, each type of data frame has enough expandable capacity, each oil field can be completely defined according to the characteristics of the production process, interconnection and intercommunication are not influenced, and the wireless sensor equipment manufacturer can conveniently meet the requirements of each oil field by simply modifying.
The communication protocol between the wellhead control unit and the multi-well centralized repeater RTU is used for defining a communication rule of data communication between the wellhead control unit and the multi-well centralized repeater RTU, a data conversion rule of the multi-well centralized repeater RTU and a rule adopted by the multi-well centralized repeater RTU for acquiring a wireless address of the wellhead control unit RTU.
In practical application, taking the oil and gas production internet of things in the oil and gas industry as an example, wherein,
the communication protocol between the wellhead control unit and the multi-well centralized Repeater (RTU) specifies the basic requirements of data communication between the wellhead control unit and the multi-well centralized Repeater (RTU), the data conversion specification of the multi-well centralized Repeater (RTU), and the specification of the multi-well centralized Repeater (RTU) for acquiring the wireless address of the wellhead control unit (RTU). The problem of host computer system through multiwell concentrated joint control ware (RTU) and well head control unit data communication is mainly solved.
The network ID and channel number generation protocol stipulates the generation and writing method of the network ID number and the network channel number, and ensures that all devices in a wireless sensor network are formed under the same gateway and have the same ID number and the same communication channel, so that data collision is not generated between networks.
In the embodiment of the invention, a ZigBee communication technology and a WIA-PA communication technology are borrowed; the IEEE802.15.4 protocol stack. The method provides a complete standardized design and implementation method for the interconnection, intercommunication and interchange of the wireless sensor network equipment of the oil and gas production Internet of things, sets a data communication mode of the wireless sensor network equipment, an application layer data communication protocol and a data storage address of remote terminal unit control equipment according to the application requirements of the industry, and solves the problems that the short-distance wireless sensor network equipment of different production enterprises used in the construction of the oil and gas production Internet of things cannot be interconnected, intercommunicated and interchanged, the upgrading and maintenance are difficult, and the construction, operation and maintenance costs are high. The method has the difficulty that according to the industrial application requirements and the equipment interconnection and intercommunication interoperability requirements, the data communication mode, the application layer communication protocol and the data storage address content of the remote terminal unit control equipment of the industrial wireless sensor network equipment are reasonably formulated; ensure the application to be efficient, stable and easy to manage.
The embodiment of the invention provides a communication method and a device of network equipment, and aims to provide an interconnection and interchange method of short-distance wireless sensor network equipment suitable for oil and gas production Internet of things construction in the petroleum and gas industry, and a related protocol standard for data communication connection, transmission and storage of a short-distance wireless sensor network is worked out, so that the problems that the short-distance wireless sensor network equipment of different production enterprises used in the construction of the oil and gas production Internet of things cannot be interconnected and interchanged, the upgrading and maintenance are difficult, the construction and operation and maintenance costs are high and the like are solved, and the high efficiency, stability and easy management of application are ensured.
The data communication protocol of the application layer is unified in the whole industry, the communication times are increased and the power consumption is increased by considering compatibility, but the whole planning is beneficial to hardware software upgrading, the longitudinal transmission of information, the convenient compatibility of new technology popularization, and the compatibility and the technical expansibility are good. Meanwhile, for equipment manufacturers, the initial compliance with the standard, the increase of communication times, the increase of power consumption and other factors may increase the cost, but the communication technical protocol standard unified in the industry can provide a reference basis for product research and development of each manufacturer, continuously improve the conformity of the product to the standard protocol, and avoid economic loss caused by low-level repeated research and development; meanwhile, the method is beneficial to continuously promoting the perfection of protocols and interfaces and reducing the manufacturing cost of research and development and sensor equipment.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a mobile terminal, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (4)

1. A communication method of a network device, comprising:
setting wireless sensors of at least two network devices to adopt the same communication parameters, wherein the communication parameters comprise: wireless communication technology, wireless communication mode, protocol stack rule of wireless communication technology, application layer communication protocol, data communication memory address;
adopting the network devices of the wireless sensors with the same communication parameters to carry out mutual communication;
the network equipment of the wireless sensor is communicated with each other by uniformly setting communication parameters of the wireless sensor of the network equipment;
wherein the wireless communication technology comprises: a network communication technology of ZigBee and WIA-PA wireless sensor;
wherein the wireless communication mode comprises: a single well communication mode, a multi-well centralized communication mode,
wherein the single-well communication mode comprises: a wellhead controller for wireless instruments in the communication network and for wellhead data acquisition, processing and control equipment;
the multi-well centralized communication mode comprises the following steps: a direct transmission mode of a wellhead control unit and a routing mode of a multi-well centralized repeater, wherein,
the wellhead control unit direct transmission mode comprises: the multi-well integrated relay is used for receiving a control command of a central control room and transmitting the control command to the wellhead control unit;
the multi-well trunking repeater routing mode comprises: the system comprises at least one first wellhead control unit which is in direct communication with a multi-well centralized repeater, a second wellhead control unit cannot be in direct communication with the multi-well centralized repeater, and data of the second wellhead control unit are uploaded to the multi-well centralized repeater through a routing function of a ZigBee or WIA protocol;
wherein, before the network devices employing the wireless sensors having the same communication parameters communicate with each other, the method further comprises:
setting an acquisition control time sequence aiming at data communication types, wherein the data communication types at least comprise any one or more of the following types: acquiring conventional data, reading instrument parameters, acquiring indicator diagram data, acquiring electric quantity diagram data and acquiring special data;
under the condition of adopting the conventional data acquisition, the wellhead controller/the wellhead control unit sends a conventional response after receiving the conventional data, finishes the communication and enables the instrument to enter a dormant state;
under the condition of reading the instrument parameters, the wellhead controller/the wellhead control unit sends an instrument parameter reading command after receiving conventional data, the instrument returns the instrument parameters and enters dormancy, and the wellhead controller/the wellhead control unit does not respond to the instrument parameter data;
under the condition of acquiring the indicator diagram data, after the wellhead controller/the wellhead control unit receives conventional data of an instrument, indicator diagram acquisition commands are sent to a wireless load sensor and a wireless displacement sensor, after the instrument receives the indicator diagram acquisition commands, indicator diagrams are acquired, and wireless displacement data blocks are transmitted to the wellhead controller/the wellhead control unit in groups after the indicator diagram acquisition is finished;
under the condition of acquiring the electricity quantity diagram data, after the wellhead controller/the wellhead control unit receives conventional data of the instrument, sending an indicator diagram acquisition command to the integrated wireless load displacement indicator, simultaneously sending the electricity quantity diagram acquisition command to an electricity quantity module, entering an indicator diagram acquisition and indicator diagram data transmission process, after the indicator diagram acquisition and data transmission process, sending an electricity quantity diagram data reading command to the electricity quantity module by the wellhead controller/the wellhead control unit, forming electricity quantity diagram data by the electricity quantity module according to the electricity quantity diagram data reading command, and transmitting data blocks to the wellhead controller/the wellhead control unit in a grouping manner;
under the condition of adopting the special data acquisition, after the wellhead controller/the wellhead control unit receives the conventional data of the wireless special sensor, a special data acquisition command is sent to the instrument, the data is acquired by using the acquisition command, and the acquired data is grouped according to data blocks and is transmitted to the wellhead controller/the wellhead control unit;
wherein the data communication memory address comprises: the system comprises a remote terminal unit system attribute data storage address, an oil well operation acquisition control data storage address, a gas well remote terminal unit data storage address, a water source well remote terminal unit data storage address, a historical data storage address and an extraction and injection metering station remote terminal unit data storage address;
wherein the application layer communication protocol is a handshake protocol between the wireless sensors, wherein the wireless sensors include: the wireless instrument device, the wireless communication device and the wireless controller;
wherein the application layer communication protocol comprises: a data communication protocol, an instrument configuration protocol, an instrument calibration protocol, a communication protocol between the wellhead control unit and the multi-well integrated relay, a network ID and a communication channel generation protocol between the wireless instrument device and the wellhead controller, wherein the application layer communication protocol is used for ensuring the mutual communication of the wireless sensors;
the data communication protocol between the wireless instrument device and the wellhead controller is used for defining the composition and format of data frames communicated between the wireless instrument device and the wellhead controller, and also defining the format of data frames communicated during conventional instrument data acquisition, instrument parameter reading, indicator diagram data acquisition, electric quantity diagram data acquisition and special data acquisition and the format of write response frames between the wireless instrument device and the wellhead controller;
the communication protocol between the wellhead control unit and the multi-well integrated repeater is used for defining a communication rule of data communication between the wellhead control unit and the multi-well integrated repeater, a data conversion rule of the multi-well integrated repeater and a rule adopted by the multi-well integrated repeater for acquiring a wireless address of the wellhead control unit;
the generation protocol of the network ID and the communication channel specifies the generation and writing of a network ID number and a network channel number;
wherein, the protocol stack specification content of the protocol stack rule of the wireless communication technology comprises: defining a communication protocol following the ZigBee or WIA-PA communication technology at a link layer and a network layer; wherein the link layer is further configured to generate the data frame, wherein the data frame comprises: the data sending method comprises the steps of sending a data sending request frame and receiving a data frame, wherein the data sending request frame is used for indicating that a designated field is sent to a destination address; the receive data frame is used to instruct transmission of the received data to the wellhead controller.
2. The method of claim 1, wherein the protocol stack specification content of the protocol stack rules of the wireless communication technology comprises: defining a pin definition of a physical module in a physical layer; an application layer protocol is defined at an application layer for the wireless communication mode.
3. Method according to claim 2, characterized in that for the ZigBee communication technology ZigBee PRO is used at the network layer as network layer standard.
4. A communication apparatus of a network device, comprising:
the setting module is used for setting that the wireless sensors of at least two network devices adopt the same communication parameters, and the communication parameters comprise: wireless communication technology, wireless communication mode, protocol stack rule of wireless communication technology, application layer communication protocol, data communication memory address;
the communication module is used for adopting the network equipment of the wireless sensors with the same communication parameters to carry out mutual communication;
the network equipment of the wireless sensor is communicated with each other by uniformly setting communication parameters of the wireless sensor of the network equipment;
wherein the wireless communication technology comprises: a network communication technology of ZigBee and WIA-PA wireless sensor;
wherein the wireless communication mode comprises: a single well communication mode, a multi-well centralized communication mode,
wherein the single-well communication mode comprises: a wellhead controller for wireless instruments in the communication network and for wellhead data acquisition, processing and control equipment;
the multi-well centralized communication mode comprises the following steps: a direct transmission mode of a wellhead control unit and a routing mode of a multi-well centralized repeater, wherein,
the wellhead control unit direct transmission mode comprises: the multi-well integrated relay is used for receiving a control command of a central control room and transmitting the control command to the wellhead control unit;
the multi-well trunking repeater routing mode comprises: the system comprises at least one first wellhead control unit which is in direct communication with a multi-well centralized repeater, a second wellhead control unit cannot be in direct communication with the multi-well centralized repeater, and data of the second wellhead control unit are uploaded to the multi-well centralized repeater through a routing function of a ZigBee or WIA protocol;
before the network devices using the wireless sensors with the same communication parameters perform mutual communication, the method further includes:
setting an acquisition control time sequence aiming at data communication types, wherein the data communication types at least comprise any one or more of the following types: acquiring conventional data, reading instrument parameters, acquiring indicator diagram data, acquiring electric quantity diagram data and acquiring special data;
under the condition of adopting the conventional data acquisition, the wellhead controller/the wellhead control unit sends a conventional response after receiving the conventional data, finishes the communication and enables the instrument to enter a dormant state;
under the condition of reading the instrument parameters, the wellhead controller/the wellhead control unit sends an instrument parameter reading command after receiving conventional data, the instrument returns the instrument parameters and enters dormancy, and the wellhead controller/the wellhead control unit does not respond to the instrument parameter data;
under the condition of acquiring the indicator diagram data, after the wellhead controller/the wellhead control unit receives conventional data of an instrument, indicator diagram acquisition commands are sent to a wireless load sensor and a wireless displacement sensor, after the instrument receives the indicator diagram acquisition commands, indicator diagrams are acquired, and wireless displacement data blocks are transmitted to the wellhead controller/the wellhead control unit in groups after the indicator diagram acquisition is finished;
under the condition of acquiring the electricity quantity diagram data, after the wellhead controller/the wellhead control unit receives conventional data of the instrument, sending an indicator diagram acquisition command to the integrated wireless load displacement indicator, simultaneously sending the electricity quantity diagram acquisition command to an electricity quantity module, entering an indicator diagram acquisition and indicator diagram data transmission process, after the indicator diagram acquisition and data transmission process, sending an electricity quantity diagram data reading command to the electricity quantity module by the wellhead controller/the wellhead control unit, forming electricity quantity diagram data by the electricity quantity module according to the electricity quantity diagram data reading command, and transmitting data blocks to the wellhead controller/the wellhead control unit in a grouping manner;
under the condition of adopting the special data acquisition, after the wellhead controller/the wellhead control unit receives the conventional data of the wireless special sensor, a special data acquisition command is sent to the instrument, the data is acquired by using the acquisition command, and the acquired data is grouped according to data blocks and is transmitted to the wellhead controller/the wellhead control unit;
wherein the data communication memory address comprises: the system comprises a remote terminal unit system attribute data storage address, an oil well operation acquisition control data storage address, a gas well remote terminal unit data storage address, a water source well remote terminal unit data storage address, a historical data storage address and an extraction and injection metering station remote terminal unit data storage address;
wherein the application layer communication protocol is a handshake protocol between the wireless sensors, wherein the wireless sensors include: the wireless instrument device, the wireless communication device and the wireless controller;
wherein the application layer communication protocol comprises: a data communication protocol, an instrument configuration protocol, an instrument calibration protocol, a communication protocol between the wellhead control unit and the multi-well integrated relay, a network ID and a communication channel generation protocol between the wireless instrument device and the wellhead controller, wherein the application layer communication protocol is used for ensuring the mutual communication of the wireless sensors;
the data communication protocol between the wireless instrument device and the wellhead controller is used for defining the composition and format of data frames communicated between the wireless instrument device and the wellhead controller, and also defining the format of data frames communicated during conventional instrument data acquisition, instrument parameter reading, indicator diagram data acquisition, electric quantity diagram data acquisition and special data acquisition and the format of write response frames between the wireless instrument device and the wellhead controller;
the communication protocol between the wellhead control unit and the multi-well integrated repeater is used for defining a communication rule of data communication between the wellhead control unit and the multi-well integrated repeater, a data conversion rule of the multi-well integrated repeater and a rule adopted by the multi-well integrated repeater for acquiring a wireless address of the wellhead control unit;
the generation protocol of the network ID and the communication channel specifies the generation and writing of a network ID number and a network channel number;
wherein, the protocol stack specification content of the protocol stack rule of the wireless communication technology comprises: defining a communication protocol following the ZigBee or WIA-PA communication technology at a link layer and a network layer; wherein the link layer is further configured to generate the data frame, wherein the data frame comprises: the data sending method comprises the steps of sending a data sending request frame and receiving a data frame, wherein the data sending request frame is used for indicating that a designated field is sent to a destination address; the receive data frame is used to instruct transmission of the received data to the wellhead controller.
CN201410579036.XA 2014-10-24 2014-10-24 Communication method and device of network equipment Active CN105592119B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410579036.XA CN105592119B (en) 2014-10-24 2014-10-24 Communication method and device of network equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410579036.XA CN105592119B (en) 2014-10-24 2014-10-24 Communication method and device of network equipment

Publications (2)

Publication Number Publication Date
CN105592119A CN105592119A (en) 2016-05-18
CN105592119B true CN105592119B (en) 2020-02-14

Family

ID=55931330

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410579036.XA Active CN105592119B (en) 2014-10-24 2014-10-24 Communication method and device of network equipment

Country Status (1)

Country Link
CN (1) CN105592119B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107544418A (en) * 2017-09-30 2018-01-05 中国石油天然气股份有限公司 Stand storehouse data-acquisition system and method
CN108200198A (en) * 2018-02-05 2018-06-22 四川灵通电讯有限公司 Internet of Things Network Communication trunking and its application process
CN108668382A (en) * 2018-05-18 2018-10-16 深圳市华奥通通信技术有限公司 A kind of communication means and communication system of Random Communication time interval
CN111698103B (en) * 2019-03-12 2022-11-04 中国石油天然气股份有限公司 Method and system for unified configuration and calibration of wireless sensor equipment
CN111132058B (en) * 2019-11-22 2021-07-27 国网江苏省电力有限公司电力科学研究院 Data transmission method based on transmission line sensing network and sensing network thereof
CN112866047A (en) * 2019-11-27 2021-05-28 中国石油天然气股份有限公司 Wireless data detection device
CN111145524B (en) * 2020-01-06 2021-03-30 山东潍微科技股份有限公司 Method for avoiding same frequency interference of acquisition system of LoRa wireless meter
CN111694301A (en) * 2020-05-25 2020-09-22 五邑大学 Vehicle head direction detection system, vehicle head direction detection method and storage medium
CN112671895B (en) * 2020-12-22 2023-06-02 蘑菇物联技术(深圳)有限公司 Control method, device, terminal and computer readable storage medium for equipment
CN115426293A (en) * 2021-05-31 2022-12-02 中国石油天然气股份有限公司 Oil-gas equipment interconnection and intercommunication detection method and device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102438336A (en) * 2012-01-12 2012-05-02 刘硕 Novel IOT (internet of things) system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7242294B2 (en) * 2003-09-17 2007-07-10 Agilent Technologies, Inc System and method for using mobile collectors for accessing a wireless sensor network

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102438336A (en) * 2012-01-12 2012-05-02 刘硕 Novel IOT (internet of things) system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
物联网建设中无线传感器网络(短距离无线)通信的几个关键因素——以油气生产物联网的的井(口)场数据无线通信为例;刘清辉等;《信息系统工程》;20140320;全文 *

Also Published As

Publication number Publication date
CN105592119A (en) 2016-05-18

Similar Documents

Publication Publication Date Title
CN105592119B (en) Communication method and device of network equipment
CN101854281B (en) Internet-of-things system of building electric device
CN201732467U (en) Multi-point and multi-type data acquisition system based on wireless sensor network
CN201796269U (en) Building electric equipment networking system
CN104660682A (en) OPC data acquisition and monitoring intelligent terminal based on TD-LTE
CN204598011U (en) A kind of OPC data acquisition and monitoring intelligent terminal based on TD-LTE
CN106982222A (en) The multi-protocol data cut-in method and device that can configure under a kind of industrial 4.0 environment
CN104486783A (en) Multi-state wireless gateway system for multi-state wireless monitoring network and control method
CN103763187A (en) IP gateway of EnOcean and KNX and communication network and method
CN102420859A (en) Data acquisition system based on wireless sensing network and virtual apparatus technology
CN103929377A (en) Wired network and wireless network combined dispatching method and system and related devices
CN104301906A (en) Method for relay communication between gateways of wireless sensor network
CN201754092U (en) Agricultural greenhouse temperature and humidity monitoring system based on Zigbee network
Li-min et al. Design of monitoring system for coal mine safety based on wireless sensor network
CN101431348A (en) Household wireless network system and its communication method
CN203840366U (en) Intelligent gateway equipment supporting single-serial-port multi-protocol and single-network-port multi-platform modes
CN108833218A (en) The network system and its method for building up of multi-variable air conditioning unit
CN102325190A (en) Central air-conditioner charging data transmission network and manager
Onibonoje et al. Digimesh-based design of a wireless monitoring network for environmental factors affecting granary system
Pankratev et al. Wireless data transfer technologies in a decentralized system
CN112822174A (en) Intelligent data acquisition module, data acquisition box and data acquisition method
CN202565473U (en) Monitoring system based on wireless sensor network
CN204666186U (en) Based on the storage environment monitoring system of wireless network
CN103826333A (en) Device and method capable of carrying out wireless data communication with various wired access equipment
CN202206429U (en) Central air-conditioning charging data transmission network and manager

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant