Offshore stimulation operation dynamic monitoring optimization method based on data interface conversion
By using a multi-channel signal acquisition module and an adaptive transmission optimization of the LoRa subsystem, the problems of high wiring costs and signal distortion in traditional offshore oil and gas production enhancement operations have been solved, enabling efficient and reliable data monitoring and decision support.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-01
- Publication Date
- 2026-03-27
AI Technical Summary
Real-time monitoring of traditional offshore oil and gas production enhancement operations relies on 4–20mA and RS485 interfaces, which suffer from high cabling costs, susceptibility to damage, signal distortion, and insufficient monitoring reliability. Existing wireless solutions lack an overall closed-loop design, making it difficult to guarantee monitoring reliability and security.
A multi-channel signal acquisition module is adopted to synchronously acquire data through the main channel and redundant channels, calculate the interference index and perform signal compensation, generate structured data frames, and combine with the LoRa subsystem to perform adaptive data transmission, optimize channel quality and energy management.
It enables efficient and reliable data monitoring in complex marine environments, reduces cabling and maintenance costs, improves monitoring security and decision-making efficiency, and features heterogeneous interface adaptation, high robustness and energy self-balancing capability.
Smart Images

Figure CN121217779B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The application belongs to the field of data interface conversion, and particularly relates to a dynamic monitoring optimization method for offshore stimulation operation based on data interface conversion. BACKGROUND
[0002] Real-time monitoring of offshore oil and gas stimulation operation has long relied on traditional industrial interfaces such as 4-20mA and RS485, and field data is sent to the control room through wired mode. However, the platform space is limited, the equipment is scattered and the structure is complex, often accompanied by cross-deck, suspension and dense pipeline layout, which makes the traditional wiring installation and maintenance cost high and easy to be damaged; the ground potential difference in the common line cable, salt spray corrosion and strong electromagnetic field make the analog quantity easy to be distorted and the bus load to be reduced, resulting in frequent false alarms and missed alarms. The existing wireless replacement scheme focuses on a single link: either only analog-digital conversion is provided, or only the physical link is replaced, lacking overall closed-loop design from multi-source acquisition, anti-interference compensation, independent power supply to bandwidth-limited wireless transmission.
[0003] Under the battery power supply and low-power wide-area network communication environment, if all data are sent with equal weight, the key working condition parameters are easily lost when the channel fluctuates or the power is insufficient, and the reliability, safety and stimulation decision efficiency of monitoring are difficult to guarantee, so a new monitoring optimization technology that can consider heterogeneous interface access, high-robust signal processing, power self-management and dynamic scheduling transmission is urgently needed. SUMMARY
[0004] The purpose of the present application is to provide a dynamic monitoring optimization method for offshore stimulation operation based on data interface conversion, which solves the problems of the prior art in efficient production scheduling and safety protection.
[0005] The embodiment of the present application provides a dynamic monitoring optimization method for offshore stimulation operation based on data interface conversion, which comprises the following steps:
[0006] S1, a multi-channel signal acquisition module is deployed at a sea operation site, the multi-channel signal acquisition module is arranged in an analog channel and an RS485 channel respectively, original acquisition data are acquired, and an interference index of the analog channel and the RS485 channel is calculated based on the original acquisition data;
[0007] S2, data of the analog channel and the RS485 channel are respectively standardized to generate a compensated analog signal sequence and an effectiveness score of the RS485 channel at the current time, and are uniformly packaged into a structured data frame in a unified format;
[0008] S3, a channel state score is calculated based on the compensated analog signal sequence and the structured data frame, the channel state scores are arranged in descending order, and the top a channel, a high-priority uploading queue composed of the channel, and a target data set for transmission of the LoRa subsystem;
[0009] S4, inputting the high-priority uploading queue into the MCU for buffering and estimating channel quality, and adaptively adjusting data compression rate, redundancy overhead and sending interval in combination with real-time bandwidth balance to automatically reduce transmission power in a low-voltage state.
[0010] Further, the analog channel is composed of two parallel but functionally divided circuits, including a main channel and a redundant channel.
[0011] The main channel is used for reading a measured current signal stream, and the redundant channel is used for recording common-mode voltage changes in a channel environment.
[0012] The RS485 channel uses an RS485 special-purpose driver to convert multi-channel signal transmission into a TTL level for reading by the MCU. The MCU attempts to parse a specified number of data frames in each preset time window. If frame structure verification fails, CRC errors or no response, it is considered as data loss under interference influence. The RS485 address of each device is fixed, and the communication protocol supports complete data frame verification.
[0013] Further, the interference index of the analog channel and the RS485 channel is calculated based on the original collected data, specifically including:
[0014] The normalized difference value between the main sampling value and the redundant channel value is calculated for each analog channel to construct the interference intensity index of the analog channel.
[0015] For the RS485 channel, the interference intensity index of the RS485 channel is defined as the communication failure rate in the time window.
[0016] The S1 further includes:
[0017] All collected data is immediately buffered in the internal RAM of the MCU after sampling and is time-stamped. The data is cyclically buffered and cleared at a period of 5s to ensure real-time updating of the data during system operation and to avoid overflow or accumulation. The internal sampling control and buffer structure of the MCU are scheduled by the RTOS task management module to ensure that the high-priority channel sampling is executed first and to ensure that critical data is not affected by resource preemption.
[0018] Further, the S2 specifically includes:
[0019] Based on the interference index of the analog channel, the original collected data is subjected to interference weighting compensation based on the analog signal to generate a compensated analog signal sequence.
[0020] For the RS485 channel, a confidence score mechanism based on historical window weighting is introduced to generate the effectiveness score of the RS485 channel at the current time;
[0021] The compensated analog signal sequence and the effectiveness score are packaged as a structured data frame; the content of the structured data frame includes: channel number, data type, current effectiveness score, interference index, timestamp, and compensation flag.
[0022] Further, the data type is analog or digital.
[0023] Further, the channel state score is calculated as follows:
[0024] Based on the compensated analog signal sequence and the historical sliding mean and standard deviation, a state deviation term is calculated;
[0025] Based on the effectiveness score of the RS485 channel, a communication risk term is calculated; if it is an analog channel, it is set to 0;
[0026] A preset structure importance mask is introduced;
[0027] Based on the interference index of the analog channel and the RS485 channel, a nonlinear interference trend term is calculated;
[0028] According to the state deviation term, the communication risk term, the structure importance mask, and the nonlinear interference trend term, the channel state score is calculated.
[0029] Further, the LoRa subsystem uses Semtech SX1276 and is connected to the MCU through SPI.
[0030] Further, the S4 specifically includes:
[0031] Obtain the last period success rate sequence;
[0032] Based on the last period success rate sequence, the channel quality is calculated;
[0033] The MCU calculates the compression length and redundancy frame by frame to generate the equivalent load of each frame;
[0034] If the current battery voltage is less than the preset minimum battery voltage, set the transmission power to -2dBm through SPI and write an operation record; otherwise, keep 14dBm; the frame interval is driven backoff by the channel quality;
[0035] Generate a log after transmission is completed;
[0036] The MCU calculates the compression length and redundancy frame by frame to generate the equivalent load of each frame, specifically including: applying differential encoding to the floating point field, and keeping the integer field.
[0037] Further, the real-time bandwidth balance is obtained by the difference between the read registers REG_FIFO_TX_BASE_ADDR and REG_FIFO_TX_PTR.
[0038] Further, the last cycle success rate sequence is stored in a ring buffer, each sequence is obtained by the IRQFlags and CRC check judgment of the sent bytes / bytes to be sent; the battery voltage is sampled by the power supply ADC channel.
[0039] The beneficial technical effects of the present application are at least the following:
[0040] The present application constructs an integrated dynamic monitoring method for complex offshore working conditions: a master-redundant dual-channel parallel acquisition architecture is used on the end side, 4-20mA and RS485 signals are synchronously acquired, and a common-mode noise interference index is measured in real time; a difference-slope dual-factor static compensation model is used for online reconstruction of analog quantities, and a sliding confidence score is introduced for digital buses to realize low-power high-precision data recovery; the compensation results are packaged into a unified data frame inside the microprocessor, combined with historical fluctuations and equipment importance to calculate a state score, and a self-adaptive upload queue is generated by three-dimensional constraints of residual power, channel reliability and score value; the wireless link layer autonomously estimates the channel quality based on LoRa and dynamically adjusts the frame compression ratio, redundancy overhead and transmission interval according to the estimated value, and automatically reduces the power output in the low voltage state, thereby prioritizing the reliable arrival of key data under the condition of limited bandwidth and energy consumption. The present application forms a tightly coupled closed loop in the "acquisition-compensation-scheduling-transmission" links, has comprehensive advantages such as heterogeneous interface adaptation, high interference robustness, energy self-balancing and channel self-optimization, and can be directly deployed in various scenes of offshore stimulation operations, significantly reducing wiring and maintenance costs and improving monitoring safety and decision-making efficiency. BRIEF DESCRIPTION OF DRAWINGS
[0041] The present application is further described by the accompanying drawings, but the embodiments in the drawings do not constitute any limitation on the present application, and other drawings can be obtained by those skilled in the art without creative labor on the basis of the following drawings.
[0042] Figure 1 The present application is a flow chart of offshore stimulation operation dynamic monitoring optimization method based on data interface conversion. DETAILED DESCRIPTION
[0043] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference signs represent the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by reference to the drawings are exemplary and are only used to explain the present application, and cannot be understood as a limitation on the present application.
[0044] In one embodiment, as shown in Figure 1 A method for dynamic monitoring and optimization of offshore stimulation operation based on data interface conversion is provided, comprising the following steps:
[0045] S1, deploying a multi-channel signal acquisition module at the offshore operation site, the multi-channel signal acquisition module is arranged in an analog channel and an RS485 channel respectively to acquire original acquisition data, and an interference index of the analog channel and the RS485 channel is calculated based on the original acquisition data.
[0046] Specifically, this step aims to complete the synchronous acquisition of the heterogeneous sensor signals deployed at the offshore operation site, and extract the interference characteristics of each channel at the current time, providing a decision basis for subsequent signal compensation and scheduling strategy. Considering the large number of co-linearly laid instruments (such as pressure, temperature, liquid level sensors, etc.) on offshore platforms, as well as the grounding noise, crosstalk, and non-uniform interface of signal acquisition wiring, this step specially designs a data acquisition structure with a main channel + redundant channel synchronous acquisition mechanism as the core, supports simultaneous processing of analog signals (4-20mA) and digital RS485 communication signals, and realizes quantitative perception of various interferences.
[0047] The system hardware part adopts a multi-channel signal acquisition module, each analog channel is composed of two parallel but functionally divided circuits: the main channel is used to connect the target sensor and actually read the measurement current signal; the redundant channel adopts isolated input and no load, and only shares wiring and power reference with the main channel to record the common-mode voltage change under the channel environment. All analog signals are connected to a 16-bit ADC chip (such as TI ADS1115 series), configured in single-ended input mode, and the sampling frequency is set to 10 times per second, meeting the sampling needs of slowly changing physical quantities in offshore environments. Taking the liquid level sensor on a platform as an example, its output current is 4-20mA, which is converted to a 1-5V voltage signal through a 250Ω precision resistor, and input to the main channel ADC pin. At the same time, the redundant channel inputs the same resistor voltage but accesses an independent ADC input channel in parallel, constituting an interference comparison reference.
[0048] For the digital RS485 channel, an RS485 dedicated driver (such as MAX3485) is used to convert the signal transmission to TTL level for MCU reading. The MCU attempts to parse a specified number of data frames within each preset time window (such as 500ms), and if the frame structure check fails, the CRC error or no response is considered as data loss under interference. The RS485 address of each device is fixed, and the communication protocol supports complete data frame check, so the number of successful communications can be accurately counted.
[0049] In terms of interference feature extraction, the system calculates the normalized difference between the main sample value and the redundant channel value for each analog channel to construct an interference intensity index. :
[0050] ;
[0051] in, This represents the original collected data, indicating the first... The channel's main sampled signal represents the analog input at time [time]. The actual reading (in ADC value) comes from sensors such as pressure or temperature connected to the main channel. It is output as an independent data stream for each sensor and stored as a 16-bit signed integer with a time resolution of 0.1s. This is the reference level acquired by redundant channels at the same time, mainly reflecting fluctuations in environmental interference; It is a very small constant (e.g., 0.01) to prevent division by zero. This formula reflects the relative magnitude of the influence of external electrical interference on the signal. For example, in a certain liquid level channel, the main channel sampling value is 31250 (representing 3.75V), and the redundant channel is 31000 (approximately 3.72V). Then the current interference index is approximately 0.008, which is less than 1% of the interference magnitude.
[0052] For RS485 channels, the interference index is defined as the communication failure rate within that time window:
[0053] ;
[0054] in, The predetermined number of attempts (e.g., 5 attempts per 500ms). This indicates the number of data packets that were successfully returned and parsed. The MCU determines success or failure based on the CRC check result and caches the result in its internal status register. For example, if a temperature sensor attempts to communicate 5 times within 500ms and only responds successfully 3 times, the current interference strength is 0.4, indicating poor communication stability.
[0055] All acquired data is immediately cached in the MCU's internal RAM after sampling and timestamped. The data is cached and cleared in a 5-second cycle to ensure real-time data updates during system operation and prevent overflow or accumulation. The MCU's internal sampling control and caching structure is scheduled by the RTOS task management module, ensuring that high-priority channels (such as wellhead pressure) are sampled first, guaranteeing that critical data is not affected by resource contention.
[0056] Ultimately constitutes the interference index : Corresponding to the analog channel and RS485 channel respectively, using floating-point representation for use in subsequent static compensation models. Depend on , … constituted; wherein , which is the channel interference index referred to in the formula. Where the channel is an analog quantity interface, its interference index is calculated by the aforementioned analog quantity interference extraction formula ; when the channel is an RS485 interface, its interference index is calculated by the corresponding communication failure rate formula . The above and are uniformly numbered in the order of the channel when entering the subsequent steps , is the interference index calculated by the corresponding formula according to the channel type.
[0057] S2, respectively, standardize the data of the analog channel and the RS485 channel, generate the compensated analog signal sequence and the effectiveness score of the RS485 channel at the current time, and uniformly package them into a structured data frame in a unified format.
[0058] Specifically, in offshore production operations, equipment is usually deployed in a complex and highly interfering physical environment. Sensor wiring is often shared with power lines and signal lines in the same slot and ground, resulting in widespread interference of analog signals by common-mode voltage, environmental noise, etc. At the same time, although RS485 communication equipment is digital communication, it is also susceptible to data collision and reflection interference in a multi-device serial bus architecture, resulting in a decline in communication quality. Step one has extracted the analog quantity interference strength and RS485 communication stability indicators , this step will build a highly engineering-achievable and scenario-specific static signal compensation and structure packaging mechanism based on the above. The core is: 1) a robust compensation mechanism for analog quantities based on noise index weighting, 2) a data confidence quantization expression method for RS485, and 3) a unified packaging of all channel compensated data into a structured data frame for wireless dispatch, ensuring that the input basis for subsequent power perception dispatch strategies is uniform and effective.
[0059] The first part of this step is the interference weighted compensation of analog signals. Traditional current-type signal acquisition systems often use linear compensation models, i.e., subtracting the scaled interference from the original sample value, but this approach has the risk of error amplification in harsh interference changes and unstable data amplitude in offshore application scenarios. Therefore, the following innovative improved compensation model is designed in this invention:
[0060] ;
[0061] Where: is the static compensation coefficient of the first channel obtained by multi-point calibration during deployment; The disturbance response suppression factor configured for the system acts on , i.e. the current interference intensity change rate, to offset the non-linear disturbance caused by the sudden noise; The sliding differential approximation is obtained by the microprocessor: ; The compensated analog signal sequence , with a timestamp, can directly participate in the scheduling score;
[0062] This innovation introduces "interference slope" as a disturbance penalty regularization term, enabling the compensation model to have adaptive suppression capability for noise mutations;
[0063] This structure does not require a large computing power model, and only models the difference between the current and last interference index, making it easy to implement on a microprocessor side.
[0064] The second part is the confidence value and index score of the RS485 channel. Unlike the traditional 0 / 1 flag indicating whether the communication is successful, the invention introduces a confidence score mechanism based on historical window weighting, constructed as follows:
[0065] ;
[0066] Among them: is the effectiveness score of the RS485 channel at the current time (the higher the value, the higher the instability); is the sliding average of the communication failure rate in the last seconds (calculated by a fixed size FIFO window); is the instantaneous interference proportion weight, which can be set to 0.6-0.8 during deployment, indicating the dominant role of the current state in scoring; This method enables the scheduling logic to make more robust decisions based on "continuous instability" rather than "instantaneous failure" in the future, suitable for environments with lower fault tolerance in LoRa transmission.
[0067] The compensation result of the above analog quantity and the score result of RS485 are packaged into a structured data frame , which includes:
[0068] Channel number (uniquely numbered, analog channel prefix "M", RS485 channel prefix "R"); data type (analog / digital); current compensation value (or score value); interference index ; timestamp; whether to compensate flag (automatically marked by the system).
[0069] For example, channel 4 is a pressure transmitter, with a sampling value of 32300, an interference index of 0.07, a change rate of 0.02, and a , , then the compensated value is:
[0070] ;
[0071] The value is encapsulated as a standard data frame to the scheduling module.
[0072] Finally, all channels are unified in the format of the structured data frame , containing the compensated value, interference information, data type, timestamp, for subsequent packaging strategy generation.
[0073] S3, based on the compensated analog signal sequence and the structured data frame, calculate the channel state score, arrange the channel state score in descending order, select the channel with the top score to form a high-priority upload queue as the target data set for LoRa subsystem transmission.
[0074] Specifically, in the first two steps, the application has constructed a complete "multi-source signal interference awareness-compensation correction-structured packaging" process, successfully converting different types of analog and digital signals into data frames with unified structure, clear timing, and compensated data , and quantitatively describing the reliability of the data through interference intensity and communication effectiveness .
[0075] However, in the real scenario of offshore platforms, which are characterized by multi-source data-intensive, limited communication resources, and uneven device reliability, if data is uploaded in a static polling and average scheduling manner, a large amount of key information will be obscured by low-priority data, further reducing the intelligence and response efficiency of the overall platform operation. Therefore, the goal of this step is to identify the most representative or most urgent data channel at the current time under communication resource constraints, construct a scheduling scoring mechanism that integrates working condition deviation, historical stability, and channel characteristics, and dynamically generate a data upload task priority queue based on this mechanism.
[0076] Unlike general-purpose Internet of Things scheduling, this step fully combines the actual working condition characteristics and signal structure in the offshore oil and gas scenario, especially introducing the "historical health fluctuation memory" and "structure importance mask" mechanisms, and adding a nonlinear stability suppression term and a channel correlation coupling regularization term to the scoring model to improve the scheduling quality in the "high interference + low bandwidth + diversity task" environment of offshore platforms.
[0077] The core of this step is to establish a channel state score function This is used to measure the importance of the current channel across four dimensions: data value, anomaly severity, transmissibility, and system strategy. First, the system constructs the following innovative scheduling scoring function for each channel:
[0078] (6);
[0079] in: For channel The compensated data value; These are the historical moving average and standard deviation, respectively, reflecting their operating benchmark under normal conditions; The weighting coefficient for this channel represents its contribution to platform security or productivity (set during deployment or learned during platform runtime). Set the confidence score for RS485 channel communication; if it is an analog channel, set it to 0. This is a penalty coefficient for communication unreliability, used to reduce the scheduling priority of unstable channels; As a structural importance mask, configured by engineers or system structure diagrams, parameters such as wellhead pressure and main pump flow rate are marked. ; This is an amplification factor for the structural importance reward item; The current interference index, The product of the two is the rate of change of the disturbance exponent (using the sliding difference approximation), which constitutes the nonlinear disturbance term; The trend interference penalty coefficient represents the suppression of channels where "interference is rapidly worsening"; To prevent extremely small constants from being divided by zero, it is usually set to 0. .
[0080] in, This refers to the state deviation term; This is a communication risk item; For structural importance mask; This represents the nonlinear disturbance trend term.
[0081] Example: Channel For wellhead temperature sensors, set the current value. Historical average Standard deviation , , , , The system parameters are ,but
[0082] ;
[0083] After scoring is completed, all channels will be... Sort in descending order, the system selects the top-scoring results. Channel, composing the upload scheduling queue , representing the high-priority upload queue, containing the top data frames ordered by the scoring results , entering the LoRa transmission module and serving as the target data set for the next cycle of LoRa transmission. The scheduling module records each scheduling result and scoring data for subsequent system self-learning adjustment (not within the scope of the present step).
[0084] The present step outputs the following channel state scoring : for system recording, fault diagnosis, strategy verification, etc.
[0085] S4, inputting the high-priority upload queue into the MCU for buffering and estimating channel quality, and combining the real-time bandwidth balance to adaptively adjust the data compression rate, redundancy overhead, and transmission interval, and automatically reducing the transmission power in the low-voltage state.
[0086] Specifically, when the offshore node enters the present step, the MCU has buffered the high-priority data queue output in the previous stage . Each frame is encapsulated with the original byte length (frame header, number, data, and check fields are parsed by the frame description table); the LoRa subsystem uses Semtech SX1276, connected with the MCU through SPI. The real-time bandwidth balance is obtained by reading the difference between the registers REG_FIFO_TX_BASE_ADDR and REG_FIFO_TX_PTR; the success rate sequence of the previous cycle is stored in a ring buffer, and each is obtained through IRQFlags and CRC check determination of "bytes sent / bytes to be sent", while the battery voltage is sampled by the power supply ADC channel.
[0087] First, estimate the channel quality, considering both the average success rate and volatility:
[0088] ;
[0089] wherein is the channel quality estimation value of the current cycle, is the mean weight coefficient of the channel success rate, is the sliding window length used for channel quality estimation, is the channel volatility penalty factor; is the variance of the success rate sequence of the previous cycle:
[0090] When , if the window The success rate sequence is ,get This indicates that only 60% of the link is reliable.
[0091] Next, the MCU calculates the compressed length and redundancy frame by frame: differential encoding (4B→2B) is applied to floating-point fields, while integer fields are retained; the compressed length... , The compression ratio of the k-th data frame. This is the original byte length. To combat channel degradation, a variable is introduced... The adaptive redundancy compensation term uses a symbolic representation. (Avoiding step 3) conflict):
[0092] ;
[0093] in, This represents the actual equivalent number of bytes that the k-th data frame needs to be transmitted under the current channel conditions. Let k data frames be the actual equivalent number of bytes that need to be transmitted under the current channel conditions. This is the redundancy compensation coefficient;
[0094] In the example, based on the first data frame raw byte length B. Compression Ratio The compressed length of the first data frame is calculated, and then the redundancy compensation coefficient is used. The actual equivalent number of bytes required under the current channel conditions. B.
[0095] The MCU sequentially accumulates the actual equivalent transmission bytes required under the current channel conditions. Until the real-time bandwidth balance is exceeded For example, if 155B is accumulated in 13 frames and the limit is exceeded in 14 frames, then... The actual data queue is then sent. The remaining frames are retained for the next cycle.
[0096] Energy and pacing control are performed before launch to determine the power level. If the current battery voltage (7.2V), set the transmit power OutputPower to –2dBm via SPI and write the operation log; otherwise, maintain 14dBm. Frame interval backoff is driven by channel quality.
[0097] ;
[0098] in, actual sending time interval between two adjacent data packets, minimum sending interval allowed by the system, backoff amplification factor of the sending interval;
[0099] When , ms. MCU drives SX1276 to write FIFO frame by frame at this pace, and DIO0 interrupt returns the result to update in real time write , close the channel evaluation loop.
[0100] After the end of the period, generate a log: actual sending set (actual sending data queue) , equivalent load per frame (actual equivalent transmission bytes required under the current channel condition) , real-time bandwidth balance comparison, channel quality estimation value of the current period , actual sending time interval between two adjacent data packets used and power level .
[0101] Unless specifically stated otherwise, the relative steps, numerical expressions, and numerical values of the components and steps set forth in these embodiments do not limit the scope of the present application.
[0102] If the functions are realized in the form of software function units and sold or used as independent products, they can be stored in a non-volatile computer readable storage medium executable by a processor. Based on this understanding, the technical solutions of the present application essentially or the parts that contribute to the prior art or parts of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the system described in the various embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various media that can store program codes.
[0103] In the description of the present application, it should be noted that the positions or location relationships indicated by the terms "up", "down", etc. are based on the positions or location relationships shown in the drawings, or the positions or location relationships of the product in use. They are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the devices or elements referred to must have a particular orientation, be constructed and operated in a particular orientation, and therefore cannot be understood as limiting the present application.
[0104] In the description of the application, it also needs to be explained that, unless otherwise explicitly specified and limited, the terms "set", "install", "connect", "connect" should be understood broadly, for example, it can be fixedly connected, or it can be detachably connected, or integrally connected; it can be mechanically connected, or it can be electrically connected; it can be directly connected, or it can be indirectly connected through an intermediate medium, or it can be connected inside two elements. For those skilled in the art, the specific meaning of the above terms in the application can be understood according to the specific circumstances.
[0105] Finally, it should be pointed out that: the above embodiments are only used to illustrate the technical solutions of the application, and not to limit them; although the application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: it can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacement for part or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the application.
Claims
1. A method for dynamic monitoring and optimization of offshore production enhancement operations based on data interface conversion, characterized in that, The method includes: S1. Deploy a multi-channel signal acquisition module at the offshore operation site. The multi-channel signal acquisition module is arranged in the analog channel and the RS485 channel respectively to acquire raw acquisition data and calculate the interference index of the analog channel and the RS485 channel based on the raw acquisition data. S2. Standardize the data from the analog channel and the RS485 channel respectively to generate a compensated analog signal sequence and the validity score of the RS485 channel at the current time, and encapsulate them into a structured data frame with a unified format. S3. Calculate the status score for each channel based on the compensated analog signal sequence and the structured data frame, sort the channel status scores in descending order, and select the top-scoring channels. The channels are used to form a high-priority upload queue, which serves as the target data set for transmission by the LoRa subsystem. S4. Input the high-priority upload queue into the MCU for caching and estimate the channel quality. Combine the real-time bandwidth balance to adaptively adjust the data compression rate, redundancy overhead and transmission interval. Automatically reduce the transmission power in low voltage conditions. The analog channel consists of two parallel but functionally distinct circuits: a main channel and a redundant channel. The main channel is used to read the measured current signal flow, and the redundant channel is used to record the common-mode voltage changes under the channel environment. The calculation of the interference index between the analog channel and the RS485 channel based on the original acquired data specifically includes: For each analog channel, the normalized difference between the main sample value and the redundant channel value is calculated to construct the interference intensity index of the analog channel; For RS485 channels, the interference intensity index of RS485 channels is defined as the communication failure rate within the time window. S2 specifically includes: Based on the interference index of the analog channel, interference-weighted compensation is performed on the original acquired data based on analog signals to generate a compensated analog signal sequence. The specific calculation is as follows: ; in: For the first The static compensation coefficients of the channel are obtained through multi-point calibration during the deployment phase; The disturbance response suppression factor configured for the system acts on That is, the rate of change of the current interference intensity This is used to counteract the nonlinear disturbances caused by abrupt noise; Obtained by the microprocessor using the sliding difference approximation: ; Compensated analog signal sequence With timestamp; For the RS485 channel, a confidence scoring mechanism based on historical window weighting is introduced to generate a validity score for the RS485 channel at the current moment. The compensated analog signal sequence and validity score are encapsulated into a structured data frame; the structured data frame includes: channel number, data type, current validity score, interference index, timestamp, and whether compensation is required; The status scores for each channel are calculated as follows: The state deviation term is calculated based on the compensated analog signal sequence and the historical moving mean and standard deviation. The communication risk item is calculated based on the effectiveness score of the RS485 channel; if it is a simulated channel, it is set to 0. Introduce a pre-defined structural importance mask; The nonlinear interference trend term is calculated based on the interference index of the analog channel and the RS485 channel. The state score for each channel is calculated based on the state deviation term, communication risk term, structural importance mask, and nonlinear interference trend term.
2. The method for dynamic monitoring and optimization of offshore production enhancement operations based on data interface conversion according to claim 1, characterized in that, The RS485 channel uses a dedicated RS485 driver to convert multi-channel signal transmission into TTL level for MCU reading. The MCU attempts to parse a specified number of data frames within each preset time window. If the frame structure verification fails, there is a CRC error, or there is no response, it is considered as data loss due to interference. The RS485 address of each device is fixed, and the communication protocol supports data frame integrity verification.
3. The method for dynamic monitoring and optimization of offshore production enhancement operations based on data interface conversion according to claim 1, characterized in that, S1 further includes: All collected data is immediately cached in the MCU's internal RAM after sampling and timestamped. The data is cached and cleared in a 5-second cycle to ensure that the data is updated in real time during system operation and to avoid overflow or accumulation. The MCU's internal sampling control and caching structure is scheduled by the RTOS task management module to ensure that high-priority channel sampling is executed first and to ensure that critical data is not affected by resource preemption.
4. The method for dynamic monitoring and optimization of offshore production enhancement operations based on data interface conversion according to claim 1, characterized in that, The data type is either analog or digital.
5. The method for dynamic monitoring and optimization of offshore production enhancement operations based on data interface conversion according to claim 1, characterized in that, The LoRa subsystem uses a Semtech SX1276 and connects to the MCU via SPI.
6. The method for dynamic monitoring and optimization of offshore production enhancement operations based on data interface conversion according to claim 1, characterized in that, S4 specifically includes: Get the success rate sequence from the previous period; Calculate channel quality based on the success rate sequence of the previous cycle; The MCU calculates the compression length and redundancy frame by frame to generate the equivalent load for each frame. If the current battery voltage is less than the preset minimum battery voltage, the transmit power is set to -2dBm via SPI and the operation record is written; otherwise, it remains at 14dBm; the frame interval is backoff driven by the channel quality. A log will be generated after the transmission is complete; Specifically, the MCU calculates the compression length and redundancy frame by frame to generate an equivalent load for each frame, which includes applying differential encoding to floating-point fields and retaining integer fields.
7. The method for dynamic monitoring and optimization of offshore production enhancement operations based on data interface conversion according to claim 1, characterized in that, The real-time bandwidth balance is obtained by reading the difference between the registers REG_FIFO_TX_BASE_ADDR and REG_FIFO_TX_PTR.
8. The method for dynamic monitoring and optimization of offshore production enhancement operations based on data interface conversion according to claim 6, characterized in that, The success rate sequence of the previous cycle is stored in a circular buffer. Each sequence is obtained by determining the sent / should-be-sent bytes through IRQFlags and CRC check. The battery voltage is sampled by the power ADC channel.
Citation Information
Patent Citations
Offshore operation channel access method and system based on multipath transmission
CN117560789A
Double-channel intelligent command communication system for hydropower station
CN120567377A
Efficient photovoltaic inverter communication monitoring conversion method and system
CN120915415A