Method for efficiently processing communication data of underwater acquisition equipment

By using multi-threaded architecture and communication protocols to process data packets in underwater acquisition equipment, the problem of low data processing efficiency in the existing technology is solved, and efficient and accurate processing and storage of data is achieved, adapting to high-speed data transmission and high-algorithm calculations need.

CN118890397APending Publication Date: 2024-11-01ROBOTICS RESEARCH CENTER OF YUYAO CITY +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410809934.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-11-01

AI Technical Summary

Technical Problem

In the communication of existing underwater collection equipment, unpacking and packing technologies are inefficient, resulting in problems with inconsistent time during data reception and processing, especially when high data transmission rates and large algorithm calculation volume.

Method used

Adopting a multi-threaded architecture, a communication protocol is formulated to mark packets with packet header and packet tail, and processing packets separately through acquisition threads, computing threads and storage threads, real-time scanning, verification, timestamp and GPS coordinate binding is achieved to ensure the data packets. Accurate processing and storage.

Benefits of technology

It greatly shortens the data processing link, improves the reliability and timeliness of data, adapts to different data upload frequencies and algorithm inversion speed, and ensures effective scheduling of host computer resources and real-time acquisition, processing, presentation and storage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118890397A_ABST
    Figure CN118890397A_ABST
Patent Text Reader

Abstract

The invention discloses an efficient processing method for communication data of underwater acquisition equipment, and the method specifically comprises the following steps: formulating a communication protocol, and determining a packet header and a packet tail of a data packet; communication is established, and uploaded original data is received and stored in a data cache region; the acquisition thread scans the data cache region in real time according to a formulated communication protocol, intercepts a data packet and adds the data packet into a calculation data queue; the calculation thread scans the calculation data queue in real time, performs algorithm calculation on the data packets according to the time sequence of the data packets, presents the data packets, and adds calculation results into a result queue; and the storage thread scans the result queue in real time and stores the processed data packet in a database. Compared with a traditional single-thread processing mode, high-efficiency data circulation under multiple threads greatly shortens a single-packet processing link, single-packet receiving time serves as a timestamp and coordinates to bind whole-packet data, and reliability and timeliness of the data are guaranteed. The method adapts to different data uploading frequencies, different data packet sizes, different algorithm inversion speeds and different acquisition navigational speeds, and the upper computer effectively schedules resources to perform real-time acquisition, processing, presentation and storage.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of underwater equipment communication, and in particular to a method for efficiently processing communication data of underwater acquisition equipment. Background Art

[0002] When underwater data acquisition equipment is currently performing tasks underwater, real-time data transmission and control are essential. Efficient communication and software system architecture can ensure the real-time transmission of seabed environmental data, status information of data acquisition equipment, and control instructions, ensuring the smooth progress of the task. Usually, when high data transmission rates or low latency are required, wired connections may be used, such as connecting to a ground station via a network cable Socket communication. Underwater data acquisition equipment provides information such as underwater equipment attitude, depth, ADC data, etc., combined with GPS positioning and algorithm processing to complete the task.

[0003] Existing underwater data acquisition equipment usually uses Socket communication to collect raw signal data, collects raw data by splicing, stores and displays the results after algorithm processing, and continues to process the next frame of data. However, the technology of unpacking and splicing is slightly bloated and inefficient, and is not suitable for stable and high-speed data reception and processing. At the same time, when the algorithm has a large amount of calculation and takes a long time, the superposition of the two will cause the defects of inconsistent data collection time, results, and navigation coordinates. Summary of the invention

[0004] The purpose of the present invention is to provide a method for efficiently processing communication data of underwater acquisition equipment to overcome the deficiencies in the prior art.

[0005] To achieve the above object, the present invention provides the following technical solutions: The present application discloses a method for efficiently processing communication data of underwater acquisition equipment, which specifically comprises the following steps: S1. Develop a communication protocol and determine the header and tail of the data packet; S2, establish communication, receive uploaded raw data and store it in the data buffer area; S3, the acquisition thread scans the data buffer in real time according to the communication protocol of step S1, intercepts the data packet and adds it to the calculation data queue; S4, the computing thread scans the computing data queue in real time, performs algorithm calculations on the data packets and presents them according to the time sequence of the data packets, and adds the calculation results to the result queue; S5. The storage thread scans the result queue in real time and stores the processed data packets in the database.

[0006] Preferably, in step S1, a universal identifier is used as the header and the tail of the data packet.

[0007] Preferably, in step S1, identifiers 01CB and BB41 are used as the header and the tail of the data packet.

[0008] Preferably, in step S2, socket communication, RS485 communication or RS232 communication is adopted.

[0009] Preferably, step S3 specifically includes the following sub-steps: S31, the collection thread performs real-time scanning of the data buffer area according to the communication protocol of step S1 to determine whether there is a packet header or a packet tail; if so, proceed to step S32; S32. According to the existing packet header and packet tail, intercept the data packet and perform data verification; if the verification is abnormal, discard the data packet; if the verification is correct, bind the data packet with a timestamp and GPS coordinates, and add it to the calculation data queue.

[0010] Preferably, the data verification in step S32 includes determining whether the length of the data packet is abnormal and whether the check bit is abnormal.

[0011] Preferably, step S4 specifically includes the following sub-steps: S41, the computing thread scans the computing data queue in real time to determine whether there is a data packet bound with a timestamp and GPS coordinates; if so, proceed to step S42; S42, according to the time sequence of the data packets, the algorithm is calculated for the data packets and presented to the host computer UI interface, and the calculation results are bound to the same timestamp and GPS coordinates as the data packets and added to the result queue.

[0012] Beneficial effects of the present invention: Compared with the traditional single-thread processing mode (data reception-unpacking and sticking-algorithm calculation-interface display-result storage), the processing link of a single packet is greatly shortened, and the single packet reception time is used as the timestamp and coordinate binding of the entire packet data to ensure the reliability and timeliness of the data. Adapting to different data upload frequencies, different data packet sizes, different algorithm inversion speeds, and different acquisition speeds, the host computer effectively dispatches resources for real-time acquisition, processing, presentation, and storage.

[0013] The features and advantages of the present invention will be described in detail through embodiments in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 It is the Socket interaction processing method of the present invention; Figure 2 It is a data packet extraction method of the acquisition thread of the present invention; Figure 3 It is the calculation thread calculation processing method of the present invention; Figure 4It is a flow chart of a method for efficiently processing communication data of underwater acquisition equipment according to the present invention. DETAILED DESCRIPTION

[0015] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention is further described in detail below through the accompanying drawings and embodiments. However, it should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the scope of the present invention. In addition, in the following description, the description of known structures and technologies is omitted to avoid unnecessary confusion of the concept of the present invention.

[0016] See also Figure 1 The present invention provides an efficient and stable processing method for underwater acquisition equipment communication data in a high-speed and large-volume scenario to solve the deficiencies in the existing underwater acquisition equipment communication technology. The entire solution needs to be run based on the host computer multi-threaded architecture, which includes the following steps: 1. Formulate a complete communication protocol, using identifiers 01CB and BB41 as the header and tail of the entire package; step 2. Establish socket communication, receive all uploaded data from the client and store them in the data buffer area, process them with an independent sub-thread, and monitor subsequent data immediately after storing them, without performing logical processing to avoid blocking information reception; step 3. Establish an acquisition thread , scan the buffer area in real time, obtain the complete packet header and tail, intercept and verify, timestamp and bind GPS coordinates to the data that meets the standard, and add it to the calculation data queue; step 4, establish a calculation thread, scan the calculation data queue in real time, when there is complete original data bound with timestamp and coordinates, extract it (time priority), perform algorithm calculation on the whole package data and present it to the host computer UI interface, and bind the calculation results with the same timestamp to add them to the result queue; step 5, the storage thread scans the result queue in real time, and stores the processed data in the database. One-to-one correspondence is achieved through timestamp and coordinate position.

[0017] The embodiment of the present invention provides a method for efficiently processing communication data of underwater acquisition equipment, which specifically includes the following steps: S1. Develop a communication protocol and determine the header and tail of the data packet; S2, establish communication, receive uploaded raw data and store it in the data buffer area; S3, the acquisition thread scans the data buffer in real time according to the communication protocol of step S1, intercepts the data packet and adds it to the calculation data queue; S4, the computing thread scans the computing data queue in real time, performs algorithm calculations on the data packets and presents them according to the time sequence of the data packets, and adds the calculation results to the result queue; S5. The storage thread scans the result queue in real time and stores the processed data packets in the database; one-to-one correspondence is achieved through timestamps and coordinate positions.

[0018] In a feasible embodiment, in step S1, the universal identifier is used as the header and the tail of the data packet; specifically, the identifiers 01CB and BB41 are used as the header and the tail of the data packet.

[0019] In a feasible embodiment, step S2 uses socket communication, RS485 communication or RS232 communication. Figure 1 , which is the Socket interaction processing method of the present invention; See also Figure 2 In a feasible embodiment, step S3 specifically includes the following sub-steps: S31, the collection thread performs real-time scanning of the data buffer area according to the communication protocol of step S1 to determine whether there is a packet header or a packet tail; if so, proceed to step S32; S32. According to the existing packet header and packet tail, intercept the data packet and perform data verification; if the verification is abnormal, discard the data packet; if the verification is correct, bind the data packet with a timestamp and GPS coordinates, and add it to the calculation data queue.

[0020] Specifically, the data verification in step S32 includes determining whether the length of the data packet is abnormal and whether the check bit is abnormal.

[0021] See also Figure 3 In a feasible embodiment, step S4 specifically includes the following sub-steps: S41, the computing thread scans the computing data queue in real time to determine whether there is a data packet bound with a timestamp and GPS coordinates; if so, proceed to step S42; S42, according to the time sequence of the data packets, the algorithm is calculated for the data packets and presented to the host computer UI interface, and the calculation results are bound to the same timestamp and GPS coordinates as the data packets and added to the result queue.

[0022] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modification, equivalent substitution or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for efficiently processing communication data of underwater acquisition equipment, characterized in that: The specific steps include: S1. Develop a communication protocol and determine the header and tail of the data packet; S2, establish communication, receive uploaded raw data and store it in the data buffer area; S3, the acquisition thread scans the data buffer in real time according to the communication protocol of step S1, intercepts the data packet and adds it to the calculation data queue; S4, the computing thread scans the computing data queue in real time, performs algorithm calculations on the data packets and presents them according to the time sequence of the data packets, and adds the calculation results to the result queue; S5. The storage thread scans the result queue in real time and stores the processed data packets in the database.

2. A method for efficiently processing communication data of underwater acquisition equipment according to claim 1, characterized in that: In step S1, the universal identifier is used as the header and the tail of the data packet.

3. A method for efficiently processing communication data of underwater acquisition equipment according to claim 2, characterized in that: In step S1, identifiers 01CB and BB41 are used as the header and trailer of the data packet.

4. A method for efficiently processing communication data of underwater acquisition equipment according to claim 1, characterized in that: In step S2, socket communication, RS485 communication or RS232 communication is adopted.

5. The method for efficiently processing communication data of underwater acquisition equipment according to claim 1, characterized in that: Step S3 specifically includes the following sub-steps: S31, the collection thread performs real-time scanning of the data buffer area according to the communication protocol of step S1 to determine whether there is a packet header or a packet tail; if so, proceed to step S32; S32, intercepting the data packet and performing data verification according to the existing packet header and packet tail; if the verification is abnormal, discarding the data packet; If the verification is correct, the data packet is timestamped and bound to the GPS coordinates and added to the calculation data queue.

6. A method for efficiently processing communication data of underwater acquisition equipment according to claim 5, characterized in that: The data verification in step S32 includes determining whether the length of the data packet is abnormal and whether the check bit is abnormal.

7. The method for efficiently processing communication data of underwater acquisition equipment according to claim 1, characterized in that: Step S4 specifically includes the following sub-steps: S41, the computing thread scans the computing data queue in real time to determine whether there is a data packet bound with a timestamp and GPS coordinates; if so, proceed to step S42; S42, according to the time sequence of the data packets, the algorithm is calculated for the data packets and presented to the host computer UI interface, and the calculation results are bound to the same timestamp and GPS coordinates as the data packets and added to the result queue.