A method for real-time processing and interpretation of relative orientation measurement data from downhole total stations

By adopting the MVVM architecture and modular design, the problems of poor compatibility among multiple models, unstable communication, and inconvenient data management in underground mining surveying have been solved. Stable interaction, accurate processing, and reliable storage of multiple total stations have been achieved, improving the efficiency and data reliability of underground surveying.

CN123123380APending Publication Date: 2026-11-17CHINA UNIV OF MINING & TECH (BEIJING) +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611255604.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-18
Publication Date
2026-11-17

AI Technical Summary

Technical Problem

In underground mine surveying, there are problems such as poor compatibility between multiple models, unstable communication, insufficient accuracy of algorithm calculation, and inconvenient data management, which lead to unreliable, high-latency, and easily lost measurement data transmission.

Method used

Adopting an MVVM architecture and modular design, it integrates multi-instrument adaptation, Bluetooth dual-mode communication, intelligent algorithm calculation, and dual data storage to achieve stable interaction, accurate processing, and reliable storage of measurement data from multiple total station models.

Benefits of technology

It enables plug-and-play functionality for multiple total station models, ensures stable and reliable Bluetooth communication, and features low data transmission latency and low packet loss rate, ensuring data is not lost under extreme conditions and improving measurement efficiency and data reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure FT_1
    Figure FT_1
  • Figure FT_2
    Figure FT_2
  • Figure FT_3
    Figure FT_3
Patent Text Reader

Abstract

This invention relates to the field of mine surveying and data communication technology, and discloses a method for real-time processing and interpretation of relative orientation measurement data from underground total stations. It constructs a feature library of communication protocols for multiple total station models, achieves instrument protocol adaptation through an adapter mode, and parses the returned data into standard measurement data such as horizontal angles, vertical angles, and slope distances. A relative orientation coordinate system is established using the initial station and backsight direction, and continuous coordinate reduction is achieved through multi-station recursion, with coordinate transformation completed after obtaining known control points. Adjustment and accuracy evaluation are performed on the traverse measurement results. WAL logs and a Room database are used to store the original data and the solution results respectively, and anomaly recovery is supported. This invention is applicable to the real-time acquisition, processing, storage, and results management of data from underground total station traverse measurements in coal mines.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention discloses a real-time interaction and transmission system for underground mine surveying data applicable to multiple total station models, belonging to the field of mine surveying and data communication technology. Addressing problems such as unstable communication, poor compatibility among multiple instrument models, easy data loss, and insufficient algorithm calculation accuracy caused by the complex underground environment, this invention integrates four core technologies based on MVVM architecture and modular design: multi-instrument adaptation, Bluetooth dual-mode communication, intelligent algorithm calculation, and dual data storage. This enables stable interaction, accurate processing, and reliable storage of measurement data from multiple total station models. Specifically, it includes: adopting an adapter mode to adapt to the GeoCOM protocol of different total station models; developing a Bluetooth heartbeat monitoring and automatic reconnection mechanism to ensure communication continuity; designing traverse adjustment and error verification algorithms to improve data accuracy; and building a dual storage architecture of WAL logs and Room database to ensure no data loss. This system solves the technical pain points of high latency, weak compatibility, and easy data loss in underground surveying data transmission. It can be widely applied to underground mine traverse surveying, detail point surveying, and other scenarios, significantly improving measurement efficiency and data reliability, and providing core technical support for safe mine production. Background Technology

[0002] Underground mine surveying is a crucial link in mine development, resource extraction, and safe production. As a core surveying device, the real-time performance, accuracy, and reliability of the measurement data from the total station directly impact mine operation efficiency and safety. However, existing underground total station measurement data processing and transmission systems suffer from the following prominent technical problems:

[0003] (1) Poor compatibility among multiple models: Total stations of different brands and models use different communication protocols. Existing systems are mostly customized for a single model. Adding a new model requires large-scale modification of the core logic, resulting in weak scalability.

[0004] (2) Unstable underground communication: The underground space is narrow, electromagnetic interference is strong, and signal attenuation is severe. Traditional Bluetooth communication is prone to disconnection and transmission delay, and lacks an effective reconnection mechanism, which leads to measurement interruption.

[0005] (3) Insufficient accuracy of algorithm calculation: The existing system’s traverse measurement adjustment algorithm is simplified and does not take into account the error accumulation in the downhole environment, making it difficult to meet the requirements of high-precision operation in terms of measurement accuracy;

[0006] (4) Inconvenient data management: The raw data and the calculated data are stored together, lacking classification management and traceability mechanisms, and the export format is singular, which is not convenient for subsequent data processing and analysis.

[0007] Therefore, developing a real-time interaction and transmission system for total station measurement data with multi-model compatibility, stable communication, secure data storage, and accurate algorithm calculation has become an urgent need in the field of mining surveying. Summary of the Invention

[0008] (a) Technical problems to be solved

[0009] This invention aims to solve the problems of unreliable data transmission, untimely data upload, poor compatibility with multiple instrument models, and weak on-site visualization capabilities in existing technologies for downhole measurement, and provides a real-time interactive and visualization system for downhole measurement data applicable to multiple models of total stations.

[0010] (II) Technical Solution

[0011] This invention, based on the MVVM architecture and modular design principles, constructs a system comprising a multi-instrument adaptation module, a Bluetooth communication module, a breakpoint resume module, a real-time visualization module, a dual data storage module, and a UI interaction module. The specific technical solutions for each module are as follows:

[0012] 1) Multi-instrument adapter module: Adopting the adapter mode, defining a unified interface, and developing dedicated adapters for different models of total stations (such as Leica TZ12 / TS16, etc.) to achieve plug-and-play functionality for multiple models of equipment.

[0013] 2) Bluetooth communication module: includes a Bluetooth physical connection unit (based on SPP protocol), a heartbeat link maintenance unit, an automatic reconnection and status recovery unit, and a data packet verification and acknowledgment retransmission unit. It also supports transmission priority control.

[0014] 3) Resume upload module: Includes a local queued storage unit (SQLite storage, marking upload status), a network status monitoring unit, and an upload control unit. Data is temporarily stored locally during network outages, and automatically uploaded in a first-in-first-out order after network recovery, supporting resume upload and two-way confirmation.

[0015] 4) Real-time visualization module: This includes a tunnel design outline overlay display unit, a real-time deviation calculation and alarm unit, and a tunneling direction deviation indicator unit. Surveyors can view the comparison results between the measurement points and the design outline in real time on an explosion-proof mobile phone, and receive immediate feedback on over-excavation / under-excavation and directional deviation.

[0016] 5) Dual data storage module: The WAL log unit appends raw measurement data in real time, while the Room database unit uses transactional storage to process the data. Raw data is written to the log first, then calculated, and the calculation results are committed via transactions to ensure data consistency.

[0017] (III) Beneficial Effects

[0018] 1. Stable and reliable Bluetooth transmission: Through a triple mechanism of heartbeat keep-alive, automatic reconnection and confirmation retransmission, the reconnection success rate reaches 100%, the data transmission latency is ≤50ms, and the packet loss rate is <0.1%, making it suitable for complex underground environments.

[0019] 2. No blind spots in data upload: Through local queued storage and breakpoint resume technology, measurement data in network blind spots can be temporarily stored and automatically re-uploaded when entering the network coverage area, avoiding data loss.

[0020] 3. Strong compatibility with multiple models: The adapter mode supports mainstream total station models. Adding new models only requires developing a new adapter, resulting in low expansion costs.

[0021] 4. Data security and reliability: The dual storage architecture ensures that the original data is traceable in the event of a system crash or power outage, and the transactional storage of the processed data avoids inconsistencies. Attached Figure Description

[0022] Figure 1 Bluetooth communication module workflow diagram (connection → transmission and reception → monitoring → reconnection).

[0023] Figure 2 Workflow diagram of the breakpoint resume module.

[0024] Figure 3 : Dual data storage architecture diagram.

[0025] Figure 4 System timing diagram (taking traverse measurement as an example). Detailed Implementation

[0026] The present invention will now be described in further detail with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of the invention.

[0027] I. System Overall Architecture and Operating Environment

[0028] This embodiment takes total station traverse surveying during the tunneling process in a coal mine as a typical application scenario. The system is designed based on the MVVM layered architecture and consists of a data acquisition layer, a communication adaptation layer, an algorithm processing layer, a data persistence layer, and a user interaction layer. The layers are loosely coupled and coordinated through responsive data flow.

[0029] (1) Hardware operating environment: The data processing terminal adopts an industrial-grade mobile terminal with intrinsic safety certification for mining use, with an operating system of Android 10 or above, a built-in Bluetooth 5.0 or above communication module, OTG serial port expansion capability, and a storage capacity of not less than 64GB. The total station equipment establishes a data link with the terminal through a Bluetooth virtual serial port or a physical RS-232 serial port.

[0030] (2) Software development environment: The terminal software is developed based on Android SDK, the core logic is implemented in Java language, the database uses SQLite and WAL mode is enabled, the network communication module supports HTTP / HTTPS and MQTT protocol stack, and the coordinate transformation and adjustment calculation use high-precision floating-point arithmetic.

[0031] II. Construction of Communication Protocol Feature Library and Adaptive Adaptation Logic

[0032] To achieve seamless compatibility with both mainstream and non-mainstream total station models on the market, the system has built an extensible communication protocol feature library and designed an adaptive adapter loading mechanism based on feature matching.

[0033] (1) Abstract model of protocol feature library

[0034] The protocol feature library is stored in structured document format. Each configuration record corresponds to the communication protocol of a specific total station model and includes the following core attribute groups: Link layer parameters: baud rate, data bits (7 / 8 bits), stop bits (1 / 2 bits), and parity check. Frame structure descriptor: frame header identifier, frame trailer identifier (optional), frame length calculation method, parity field location, and algorithm identifier. Data field mapping table: defines the extraction rules for each measured physical quantity in the data frame, including field offset, field length, data encoding format (ASCII decimal / BCD code / IEEE 754 floating point), unit system, and sign bit processing rules. Command set template: command strings corresponding to standard measurement operations, including distance measurement commands, angle measurement commands, coordinate measurement commands, instrument status query commands, and expected response timeout thresholds for each command. Error code mapping table: the correspondence between the error codes returned by the instrument and readable error descriptions.

[0035] (2) Adaptive adapter loading mechanism

[0036] After the terminal establishes a physical connection with the total station, the system does not rely on the user to manually select the model, but instead initiates an adaptive identification process:

[0037] Step 1: Baud Rate Scan and Handshake. The system sequentially attempts several baud rate combinations with the highest statistical probability from the feature library. For each combination, a general query command (such as ASCII code "\r\n" or a binary status request frame) is sent, and the system listens for the returned data stream. If a response matching any known frame header feature is received within the timeout window, the current baud rate is locked.

[0038] Step 2: Model Feature Matching. The system extracts the frame header and several bytes following it from the response frame and matches them against the "frame header identifier" and "model feature regular expression" in each configuration record in the feature library. The matching algorithm uses multi-pattern string matching with a time complexity of O(n). Upon a match, the corresponding complete protocol configuration is loaded.

[0039] Step 3: Adapter Instantiation. Based on the matched configuration record, the system dynamically instantiates the corresponding data parser using reflection or the factory pattern. This parser implements a unified interface and returns standardized results.

[0040] (3) General data parsing process

[0041] Regardless of the proprietary protocol used by the underlying instruments, data parsing follows a unified pipeline:

[0042] Frame synchronization and verification: The frame start is located based on the frame header identifier, and the complete frame is extracted based on the frame length descriptor or frame tail identifier; the frame payload is calculated according to the configured verification algorithm and compared with the received verification field. If they do not match, the frame is discarded and a retransmission request is triggered.

[0043] Field extraction and semantic conversion: Traverse the data field mapping table, slice the original byte array by offset and length, and convert it to a numeric type according to the encoding format. For formats where the sign bit and the value are separate, merge them first and then apply the sign.

[0044] Standardized encapsulation: The parsed horizontal angle, vertical angle, slope distance, prism constant, instrument height, target height, and other information, along with timestamps, station identifiers, and data quality markers, are encapsulated into a unified format object within the system for consumption by downstream modules.

[0045] III. Dynamic Generation and Multi-Station Recursion of Relative Oriented Coordinate Systems

[0046] During underground tunnel excavation, the establishment of absolutely known control points often lags behind the construction progress. This invention employs a relative orientation coordinate system method, allowing measurement work to be carried out in advance even without known points.

[0047] (1) Mathematical definition of the initial coordinate system

[0048] Let the initial setup position of the total station be station S0, whose position in the absolute coordinate system is unknown. Select a fixed target point with clear visibility as the backsight orientation point P0. Establish a local coordinate system O-XYZ, with the instrument center at S0 as the origin O, the projection of the direction vector from S0 to P0 onto the horizontal plane as the positive X-axis, and the upward direction of the plumb line as the positive Z-axis, using the right-hand orthogonal rule. The basis vectors of this coordinate system are represented as follows:

[0049] Z-axis unit vector: k = (0, 0, 1), opposite to the gravity line;

[0050] X-axis unit vector: i = (cos(α0), sin(α0), 0), where α0 is the azimuth angle from S0 to P0. Since the X-axis is defined as this direction, α0 = 0, i = (1, 0, 0).

[0051] Y-axis unit vector: j = k × i = (0, 1, 0).

[0052] In this coordinate system, the formula for calculating the coordinates of the backsight orientation point P0 is:

[0053]

[0054] in, Slope distance It is either the zenith distance or the vertical angle (depending on the instrument settings; the system automatically converts it to a vertical angle). To ensure the height of the measuring instrument, The target prism height.

[0055] (2) Multi-station recursion and coordinate transfer

[0056] When the total station is moved to the next station S1, the coordinates of S1 in the established coordinate system are calculated by observing known points (such as backsight points S0 or P0) at S1 and using resection or polar coordinate methods. Thereafter, the coordinates of the foresight points observed from S1 can be directly reduced to the same coordinate system.

[0057] Suppose that the target point T is observed from station S_i, and the instrument measures the horizontal angle HA, vertical angle VA, and slope distance SD. Then the coordinates (X_T, Y_T, Z_T) of the target point T in a unified coordinate system satisfy:

[0058]

[0059]

[0060] Wherein, HA0 is the orientation azimuth of the station (i.e., the azimuth of the backsight direction in the coordinate system). The system automatically maintains the orientation parameters of each station, enabling seamless stitching of data from multiple stations.

[0061] (3) Rigid transformation connection of coordinate system

[0062] When the tunnel reaches a known control point with absolute coordinates within the mining area, the system collects the coordinate sequences of each station along the route in the relative coordinate system, as well as the coordinates of at least three evenly distributed common points in both coordinate systems. Using either the Bursa seven-parameter model or a two-dimensional four-parameter + elevation fitting model, and employing least squares adjustment to calculate the transformation parameters, all relative coordinate results are transformed to the target absolute coordinate system. When the transformation residuals exceed the limit, the system automatically removes gross errors and re-adjusts the system.

[0063] IV. Traverse Survey Adjustment and Accuracy Assessment

[0064] For traverse surveying tasks, the system automatically performs rigorous adjustment calculations after completing observations at all stations.

[0065] (1) Calculation of closure error

[0066] Angular closure error:

[0067]

[0068] Where n is the number of stations.

[0069] Coordinate closure error:

[0070]

[0071] Overall relative closure error:

[0072]

[0073] Where ΣD is the total length of the conductor.

[0074] (2) Adjustment model

[0075] The system supports two adjustment modes: equal-weighted adjustment and weighted adjustment based on distance / angle observation accuracy. The adjustment model employs either conditional or indirect adjustment, and the coefficient matrix of the normal equations is solved using Cholesky decomposition. After adjustment, the coordinate corrections for each station satisfy the least squares criterion.

[0076] (3) Accuracy assessment

[0077] After adjustment is completed, the system outputs the following accuracy indicators:

[0078] Unit weight error: σ0 = √(VᵀPV / r), where r is the number of redundant observations; weakest point position error: the square root of the maximum value of the diagonal elements of the cofactor matrix multiplied by σ0; coordinate errors of each station and parameters of the error ellipse.

[0079] V. Data Storage and Disaster Recovery Mechanism

[0080] The system adopts a two-tier storage architecture of "WAL log + transactional database" to ensure zero data loss under extreme operating conditions.

[0081] (1) WAL (Write-Ahead Log): Each raw byte stream received from the total station and each instruction sent is appended to a separate log file in real time. The log file is rolled over daily and archived using LZ4 compression.

[0082] (2) Room Database Persistence: The calculated structured data is persisted through the Room ORM framework. All write operations are encapsulated in methods annotated with @Transaction to ensure atomicity. The database table design follows the third normal form, including station tables, observation tables, adjustment result tables, task metadata tables, etc.

[0083] (3) Crash recovery: When the APP starts, it scans the original records in the WAL log that are not marked as "already entered into the database", re-executes the parsing and calculation process, fills the results into the database, and updates the log processing position. This mechanism ensures that measurement data will not be lost even if a sudden power outage or system crash occurs.

[0084] VI. Example of a complete system workflow

[0085] Taking a traverse survey involving 3 stations as an example, the working sequence of the above modules in series is as follows:

[0086] (1) Task creation and instrument connection: The surveyor creates a new survey task on the terminal and pairs the terminal with the total station via Bluetooth. The system automatically completes baud rate negotiation and protocol adapter loading, and starts heartbeat keep-alive after successful connection.

[0087] (2) Setting up the first station and orientation: After leveling and centering at station S1, aim at the backsight point P1 (which can be a temporary fixed mark) and trigger the measurement. The system automatically establishes a relative coordinate system with S1 as the origin and S1→P1 as the X-axis, and calculates the coordinates of P1 and stores them in the database.

[0088] (3) Forward sight measurement: Aim at the forward sight point T1 to trigger the measurement. The system analyzes the transmitted data in real time, calculates the coordinates of T1 using formulas, and displays them in both graphical and tabular views on the terminal interface.

[0089] (4) Station relocation and recursion: The total station is moved to S2 (i.e., the original T1 position), and orientation is performed using S1 as the backsight. The system automatically recognizes the station relocation operation and associates the S2 coordinates and orientation parameters with the current task context. Then, the foresight point T2 is observed, and the coordinates are calculated.

[0090] (5) Closure measurement and adjustment: Repeat the station relocation until the endpoint. If the endpoint is a known point, the system automatically calculates the closure error and performs adjustment; if it is a traverse branch, the accuracy is evaluated and the results are stored.

[0091] (6) Data export: Surveyors can choose to export all the coordinates of the survey points as CSV format, or generate a DXF exchange file containing the map frame for subsequent mining design software mapping.

Claims

1. A method for real-time processing and interpretation of relative orientation measurement data from a downhole total station, characterized in that, Includes the following: A communication protocol feature library is constructed, and the adapter pattern is used to achieve adaptive adaptation of multiple total station models. Through three steps, namely baud rate scanning and handshake, model feature matching and adapter instantiation, the total station model is automatically identified and the corresponding protocol configuration is loaded. The parsed measurement data is standardized and encapsulated. A relative orientation coordinate system is constructed, with the initial station S0 as the origin, the horizontal projection of the direction vector from S0 to the backsight point P0 as the positive X-axis, and the vertical line upward as the positive Z-axis, to establish a local coordinate system for the station. Through a multi-station recursive method, the observation data of subsequent stations are reduced to a unified coordinate system. When the tunnel is connected to a known control point, a rigid coordinate system transformation is used to convert the relative coordinate results to an absolute coordinate system. Perform traverse adjustment and accuracy assessment, calculate angular closure error, coordinate closure error and total relative closure error, support two modes: equal weight adjustment and weighted adjustment, and output unit weight mean error, weakest point position mean error and error ellipse parameters; The system employs a dual storage architecture of WAL logs and Room database. The WAL logs are appended to the raw measurement data in real time, while the Room database stores the processed data in transactions. In the event of a system crash, the data is automatically recovered by scanning the WAL log records that have not been entered into the database.

2. The method for constructing a communication protocol feature library according to claim 1, employing an adapter pattern to achieve adaptive adaptation for multiple total station models, is characterized in that... It includes the following steps: Step 1: Construct a communication protocol feature library. Each record contains link layer parameters (baud rate, data bits, stop bits, parity check), frame structure descriptor, data field mapping table, instruction set template, and error code mapping table. Step 2: Baud rate scanning and handshake - The system sequentially attempts the baud rate combination with the highest statistical probability, sends a general query command, listens for the returned data stream, and locks the baud rate after receiving a response that matches the known frame header characteristics within the timeout window; Step 3: Model feature matching - Extract the frame header and immediately following bytes of the response frame, and compare them with the feature library using a multi-pattern string matching algorithm with a time complexity of O(n). If a match is found, load the complete protocol configuration. Step 4: Adapter Instantiation - Based on the matched configuration, the corresponding data parser is dynamically instantiated using the factory pattern. This process performs frame synchronization and verification, field extraction and semantic conversion, and standardization encapsulation pipeline, outputting a unified format object containing information such as horizontal angle, vertical angle, slant distance, instrument height, and target height.

3. The method for constructing a relative orientation coordinate system according to claim 1, which uses a multi-station recursive approach to reduce observation data to a unified coordinate system, is characterized in that... It includes the following steps: Step 1: With the initial station S0 as the origin O, the Z-axis unit vector k=(0,0,1) is opposite to the gravity line, the X-axis unit vector i=(1,0,0) points in the direction from S0 to the backsight point P0, and the Y-axis unit vector j=k×i, establish the local coordinate system of the initial station; Step 2: In the initial coordinate system, the coordinates of the backsight orientation point P0 are calculated from the slope distance SD0, the zenith distance VA0, the instrument height iS0, and the prism height tP; Step 3: After the total station is moved to the next station S1, the coordinates of S1 in the established coordinate system are calculated by resection or polar coordinate method; the target point T is observed from station S_i, and the coordinates of the target point are calculated by the measured horizontal angle HA, vertical angle VA, and slope distance SD according to the coordinate increment formula. The system automatically maintains the orientation parameters of each station to achieve seamless splicing of multiple stations. Step 4: After the tunnel is connected to the known control points, use at least three common points, employ the Bursa seven-parameter model or the two-dimensional four-parameter + elevation fitting model, and calculate the transformation parameters using least squares adjustment to transform the relative coordinate results to the absolute coordinate system; when the transformation residuals exceed the limit, automatically remove gross errors and re-adjust.

4. The dual storage architecture of WAL logs and Room database as described in claim 1, ensuring the security and reliability of measurement data, is characterized in that... It includes the following steps: Step 1: WAL Write-Ahead Log - Each raw byte stream received from the total station and each command sent is appended to an independent log file in real time in the format of [timestamp]|DIR|HEX_DATA. The log is rolled over daily and archived using LZ4 compression. Step 2: Room Database Persistence - The calculated structured data is persisted using the Room ORM framework with @Transaction method. The database follows the third normal form design and includes a station table, observation table, adjustment result table, and task metadata table. Step 3: Crash Recovery - When the APP starts, it scans the WAL log for original records that are not marked as being entered into the database, re-executes the parsing and calculation process, fills the results into the database and updates the log processing position, ensuring that measurement data is not lost in the event of a sudden power outage or system crash.

5. The method according to claim 1, characterized in that, The Bluetooth communication module includes: The system features a Bluetooth physical connection unit based on the SPP protocol; a heartbeat link maintenance unit that sends a heartbeat command every 5 seconds, triggering reconnection if there is no response after 3 consecutive attempts; an automatic reconnection and state recovery unit that reconnects using an exponential backoff strategy of 1s→3s→5s; and a data packet verification and acknowledgment retransmission unit that uses a CRC check plus ACK confirmation mechanism, retransmitting a maximum of 3 times. The system boasts a 100% reconnection success rate, data transmission latency of no more than 50ms, and a packet loss rate of less than 0.1%.