Search

CN-122001737-A - Application multistage communication method, device and medium based on same message body

CN122001737ACN 122001737 ACN122001737 ACN 122001737ACN-122001737-A

Abstract

The invention provides an application multistage communication method, device and medium based on the same message body, and belongs to the field of oil and gas exploration and development. The method comprises the steps of 1, establishing a message body, 2, establishing a message receiving and sending service, and 3, carrying out multistage communication of the message based on the message body. By establishing the message body, each application (or process) can commonly transmit the message based on the message body, and each application (or process) can not only receive the message of other applications (or processes) but also send the message to other applications (or processes), and the multi-level message communication is formed between the applications (or processes) in the processing and interpretation integrated platform. The usability of the earthquake processing platform is greatly improved, the time of data processing is further shortened, the timeliness of the data processing is improved, and the earthquake processing platform is used for the exploration and development service of conventional oil gas and coal bed gas.

Inventors

  • ZHAO DEMING
  • PANG RUI
  • HUANG SHAOHUA

Assignees

  • 中国石油化工股份有限公司
  • 中石化石油物探技术研究院有限公司

Dates

Publication Date
20260508
Application Date
20241107

Claims (10)

  1. 1. An application-level communication method based on the same message body, comprising: Step 1, establishing a message body; step2, establishing a receiving and transmitting service of the message; and 3, carrying out multi-stage communication of the message based on the message body.
  2. 2. The method of claim 1, wherein the message body comprises a message header, an application (or process) that needs to send the message, an id and type of an application (or process) that receives the message, and a combination of multiple message items.
  3. 3. The method of claim 2, wherein the message item contains a name, a type, a message unique identification id, specific information to be transmitted or received.
  4. 4. The method of claim 1, wherein the message body is accessed in a Json file format.
  5. 5. The method according to claim 1, wherein step 2, the specific operations of establishing a message receiving and sending service include: an application (or a process) sets a message sending service center and a receiving center, namely a server and a client, in a socket mode; the server and the client respectively establish connection with the message body.
  6. 6. A method according to claim 5, wherein the server is configured to parse messages sent by other applications (or processes), forward the messages to the other applications (or processes) in time, and lock the messages when forwarding them, thereby preventing modification or processing of new messages.
  7. 7. The method of claim 5, wherein the client is responsible for sending messages to a server; When the client sends the message, the message is sent to the corresponding server according to the service ip and the service port of the server.
  8. 8. An application-level communication device based on the same message body, comprising: A first establishing unit, configured to establish a message body; the second building unit is used for building a receiving and sending service of the message; And the multi-stage communication unit is used for carrying out multi-stage communication of the message based on the message body.
  9. 9. The apparatus of claim 8, wherein the message body comprises a message header, an application (or process) that needs to send a message, an id and type of an application (or process) that receives a message, and a combination of a plurality of message items.
  10. 10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores at least one program executable by a computer, which when executed by the computer, causes the computer to perform the steps in the same message body based application multistage communication method according to any of claims 1-7.

Description

Application multistage communication method, device and medium based on same message body Technical Field The invention belongs to the field of oil and gas exploration and development, and particularly relates to an application multistage communication method, device and medium based on the same message body. Background Along with the increasing requirements of oil and gas exploration on the seismic exploration technology, the seismic processing interpretation platform is required to be difficult to meet the actual production requirement by a single means, so that the processing platform is required to integrate the characteristic functions of seismic imaging, multi-wave processing interpretation, pre-stack interpretation processing, construction modeling, seismic forward modeling and the like, integrate advanced software functions of future-oriented automatic and intelligent seismic processing interpretation method technologies, develop automatic processing, global interpretation and the like, and construct a seismic processing interpretation professional application software system which can adapt to the seismic exploration production application requirements of different exploration areas in China, so as to form a competitive software platform. The application requirements of the seismic processing interpretation platform need to support multi-user multi-scenario multi-disciplinary application coordination of different users, a plurality of application scenarios, geological engineering oil reservoirs and the like, and particularly comprise multi-disciplinary multi-data interaction linkage of seismic prestack data, post-stack data, near-surface model data, speed model data, logging data, borehole geological data, well-connection profile data, well-seismic calibration data, seismic horizon data, sedimentary interval data, reservoir characterization data and the like, multi-application scenario linkage of linkage between gathers and profiles, linkage between profiles and planes, linkage between well data and seismic data, graphical monitoring linkage of processing procedures and the like, and all linkage needs communication for transmitting some necessary information, wherein the communication can be inter-thread, inter-process and even inter-node communication. At present, mature earthquake processing interpretation platforms exist at home and abroad, but as the requirements of platform processing interpretation integration are more and more urgent, various coordination applications are more and more involved, the difficulty of multi-user multi-scene multi-subject communication is increased, and a reliable, flexible and easy-to-use communication mechanism is needed to coordinate linkage among various application scenes. Therefore, there is a need to develop a multi-level communication method to improve the convenience of the integrated application of platform processing and interpretation. Disclosure of Invention The invention aims to solve the problems in the prior art and provide an application multistage communication method, device and medium based on the same message body, which can improve the convenience of integrated application of platform processing and interpretation and improve the operation fluency of an earthquake processing and interpretation platform. The invention is realized by the following technical scheme: in a first aspect of the present invention, there is provided an application multi-level communication method based on the same message body, including: Step 1, establishing a message body; step2, establishing a receiving and transmitting service of the message; and 3, carrying out multi-stage communication of the message based on the message body. The invention further improves that: The message body includes a message header, an application (or process) that needs to send the message, an id and type of an application (or process) that receives the message, and a combination of multiple message items. The invention further improves that: The message item contains a name, a type, a message unique identification id, specific information that needs to be sent or received. The invention further improves that: the message body is accessed in a Json file format. The invention further improves that: Step 2, establishing a receiving and sending service of the message, wherein the specific operations comprise: an application (or a process) sets a message sending service center and a receiving center, namely a server and a client, in a socket mode; the server and the client respectively establish connection with the message body. The invention further improves that: The server is used for analyzing the messages sent by other applications (or processes), forwarding the messages to other applications (or processes) in time, and locking is needed when the messages are forwarded, so that new messages are prevented from being modified or processed. The invention further improves that: the client i