Position indicating acoustic beacon mode setting and data reading method, medium and system
Mode setting and data reading are carried out through serial communication with underwater acoustic equipment, which solves the problems of low efficiency of underwater acoustic beacon mode replacement and equipment redundancy in the existing technology, and realizes fast and efficient underwater test preparation and equipment manage.
Patent Information
- Application Number
- CN202410706721.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-03
- Publication Date
- 2024-10-18
AI Technical Summary
The existing underwater acoustic beacon mode replacement efficiency is low, and the equipment is redundant and wasteful, which cannot meet the needs of different test scenarios.
Provides a position-indicating acoustic beacon mode setting and data reading method and system, which performs mode setting and data reading through serial communication and position-indicating acoustic processor, synchronous control equipment and high-precision synchronous clock source, supporting multiple signal formats And cycle settings, record equipment working parameters and logs.
It achieves fast and efficient signal mode setting and data reading, reduces test preparation time, avoids equipment redundancy, and improves the efficiency and accuracy of underwater tests.
Smart Images

Figure CN118795409A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of underwater acoustic equipment, and relates to a method, medium and system for setting a position-indicating acoustic beacon mode and reading data. The system communicates with a position-indicating acoustic processor, a synchronous control device and a high-precision synchronous clock source, and is used to set the working parameters of the position-indicating acoustic processor, the synchronous control device and the high-precision synchronous clock source, and record the equipment working parameters and equipment working log. Background Art
[0002] Underwater positioning is of great significance in the fields of deep-sea resource development. Compared with land, the marine environment is much more special and complex. The electromagnetic waves commonly used on land will be severely attenuated in the seawater medium, and the propagation distance is shortened by several orders of magnitude compared with the land environment. Modern detection and communication technologies based on electromagnetic waves are also powerless in the face of the sea. Sound waves are the only signal form that can propagate over long distances underwater with weak attenuation, and sound waves have gradually become the main carrier of information transmission in the ocean. Therefore, acoustic positioning and navigation technology has become a powerful tool for underwater target positioning and navigation.
[0003] Underwater acoustic beacons are an important component of the acoustic positioning system and a key factor in determining the accuracy of the acoustic positioning system. They are an important support for ensuring the safe and autonomous navigation of underwater combat weapons, accurately discovering and attacking targets, and effectively implementing enemy-friendly confrontation. The working principle of underwater acoustic beacons for underwater positioning is: the beacon is loaded into the underwater submersible, and a synchronous clock system is installed on the beacon and the receiving system. The beacon transmits signals according to the set synchronization period. When the receiving system receives the signal transmitted by the beacon, the submersible equipped with the beacon is accurately positioned according to the delay measurement results.
[0004] The position-indicating acoustic beacon achieves the purpose of indicating position by emitting synchronous position-indicating signals. Different formats of position-indicating signals are required for different test scenarios. There are two main ways to change the current position-indicating signal mode: one is to change the signal parameters in the underlying code according to the test requirements before each test. This method not only wastes time and manpower but is also inefficient; the other is to equip fixed beacons for different test scenarios. Although this method saves the time for modification, debugging and inspection before the test, it also has the problem of equipment redundancy and waste.
[0005] Therefore, it is necessary to provide a position-indicating acoustic beacon mode setting and data reading system, which can provide multiple modes of position-indicating signal formats and confirm the completion of mode setting and synchronization time setting by data reading. It can be used to set the working parameters of the position-indicating acoustic processor, synchronous control equipment and high-precision synchronous clock source, and record the equipment working parameters and equipment work log. Summary of the invention
[0006] The purpose of the present invention is to overcome the deficiencies of the prior art and to provide a method, medium and system for setting a position-indicating acoustic beacon mode and reading data.
[0007] According to a first aspect, the present invention provides a method for setting a position-indicating acoustic beacon mode and reading data, comprising respectively setting a mode and reading data for a position-indicating acoustic processor, a synchronous control device, and a high-precision synchronous clock source.
[0008] The method for setting the mode and reading the data of the position-indicating acoustic processor comprises the following steps:
[0009] Step 1: Initialize the serial port number and baud rate assigned to the position-indicating acoustic processor. After completion, open the communication serial port for communicating with the position-indicating acoustic processor.
[0010] Step 2: Send a self-test command to the position-indicating acoustic processor, wait for the position-indicating acoustic processor to perform self-test, respond to the self-test status after the position-indicating acoustic processor completes the self-test, analyze the self-test status, and execute step 3 if the position-indicating acoustic processor works normally, otherwise close the serial port and inspect and maintain the position-indicating acoustic processor;
[0011] Step 3: Set the cycle parameters. Complete the settings in the cycle setting item in the communication window of the position indicating acoustic processor. If the cycle to be set is one of 1s, 2s, 4s, 6s, 10s, 15s, 20s, 30s, and 60s, select "Common cycle" and cycle value to set it; if the cycle to be set is other cycles, select "Continuous cycle" and cycle value to set it;
[0012] Step 4: Send a cycle setting command to the position indicating acoustic processor, wait for the position indicating acoustic processor to respond, and the position indicating acoustic processor completes the cycle setting response after updating the cycle;
[0013] Step 5: Read the cycle parameters, send a cycle reading command to the position-indicating acoustic processor, the position-indicating acoustic processor responds with the current cycle parameters, the software receives the cycle reading response, parses the response instruction, and displays the cycle result after parsing;
[0014] Step 6. Set the signal format parameters. First, set the depth modulation parameters. In the depth setting item in the communication window of the position indicating acoustic processor, select any one of the "1, 2, 3" modes as needed; then set the signal format. The signal consists of 7 pulses, and each pulse has several signals to choose from: the first pulse is hyperbolic frequency modulation. Select any one of the "1, 2, 3, 4" modes according to its pulse width, starting frequency, and ending frequency requirements; the second pulse is a CW signal. Select any one of the "1, 2, 3, 4, 5, 6" modes according to its pulse width, frequency, and frequency control word requirements; the third pulse is a CW signal. Select any one of the "1, 2, 3, 4, 5, 6" modes according to its pulse width, frequency, and frequency control word requirements. Any one; the fourth pulse is a CW signal, and any one of the "1, 2, 3, 4, 5" modes is selected according to its pulse width, frequency, and frequency control word requirements; the fifth pulse is a CW signal, and any one of the "1, 2, 3, 4" modes is selected according to its pulse width, frequency, and frequency control word requirements; the sixth pulse is consistent with the first pulse; the seventh pulse is hyperbolic frequency modulation, and any one of the "1, 2, 3, 4" modes is selected according to its pulse width, starting frequency, and ending frequency requirements; the pulse width, starting frequency, and ending frequency of the first pulse and the seventh pulse are different, and the pulse width, frequency, and frequency control word of the second pulse, the third pulse, the fourth pulse, and the fifth pulse are different;
[0015] Step 7: Send a command to set the signal format to the position indicating acoustic processor, and wait for the position indicating acoustic processor to respond and receive a signal mode setting response;
[0016] Step 8: Read the signal format parameters, send a signal format reading command to the position indicating acoustic processor, receive and display the signal format reading response.
[0017] The method for setting the mode and reading the data of the synchronous control device comprises the following steps:
[0018] Step 1: Initialize according to the serial port number assigned to the synchronous control device and the set baud rate. After completion, open the communication serial port for communicating with the synchronous control device;
[0019] Step 2: Set the synchronization cycle parameters, send a synchronization cycle mode setting instruction to the synchronization control device, wait for the synchronization control device to respond and receive a response;
[0020] Step 3: Set the clock source parameters (GPS or BeiDou can be selected), send a command to set the clock source to the synchronization control device, and wait for the synchronization control device to respond and receive a response;
[0021] Step 4: Read the synchronization time, send a synchronization time reading command to the synchronization control device, receive the synchronization time reading response and display it;
[0022] Step 5: Record the synchronization time and write the read synchronization time into a text file for saving the synchronization time;
[0023] The method for setting the mode and reading data of a high-precision synchronous clock source comprises the following steps:
[0024] Step 1: Initialize the serial port number and baud rate assigned to the high-precision synchronous clock source. After completion, open the communication serial port for communicating with the high-precision synchronous clock source.
[0025] Step 2: Set the synchronization output cycle parameters, send a command to set the synchronization output cycle to the high-precision synchronization clock source, and wait for the high-precision synchronization clock source to respond and receive a response;
[0026] Step 3: Read the working status parameters of the high-precision synchronous clock source, parse the received working status information of the high-precision synchronous clock source, and display the working status parameters obtained by parsing (including battery remaining, NPPS frequency, positioning validity status, synchronization status, fault information-receiver, fault information-atom, fault information-battery) in the interface. The working status update frequency is 1Hz.
[0027] According to a second aspect, the present invention provides a computer storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method for setting a position-indicating acoustic beacon mode and reading data of the present invention.
[0028] According to a third aspect, the present invention provides a position-indicating acoustic beacon mode setting and data reading system. According to the demand analysis of the position-indicating acoustic beacon mode setting and data reading, the system includes a synchronous control computer, adopts a layered architecture, and is divided into four subsystems: a data layer subsystem, a persistence layer subsystem, a business layer subsystem, and a presentation layer subsystem.
[0029] The data layer subsystem includes serial communication commands and responses between the three devices, namely, the position indicating acoustic processor, the synchronous control device, and the high-precision synchronous clock source, and also includes local data files.
[0030] The continuous layer subsystem includes a serial port data receiving and sending and data processing communication module, and the communication module uses a serial port to communicate with the three devices of the position indicating acoustic processor, the synchronous control device, and the high-precision synchronous clock source. There are two data streams transmitted when communicating with the three devices of the position indicating acoustic processor, the synchronous control device, and the high-precision synchronous clock source, respectively, the control command stream (including self-test command, cycle reading command, signal format setting command, synchronous cycle setting command, clock source setting command, synchronous time reading command, synchronous output cycle setting command), and the command response data stream (including self-test response, cycle reading response, signal format setting response, synchronous cycle setting response, clock source setting response, synchronous time reading response, synchronous output cycle setting response, and high-precision synchronous clock source working status response).
[0031] The business layer subsystem includes a software logic function module, which includes five submodules, namely, the initialization submodule, the communication submodule with the position indicating acoustic processor, the communication submodule with the synchronous control device, the communication submodule with the high-precision synchronous clock source, and the recording submodule. The detailed function design of each submodule is as follows:
[0032] (1) The function of the initialization submodule is to complete parameter initialization and display and control software system initialization. The parameters mainly include the baud rate of the serial port (the serial port for communicating with the position display acoustic processor, the serial port for communicating with the synchronous control device, and the serial port for communicating with the high-precision synchronous clock source), serial port number initialization, and command initialization. The initialization of the display and control software system mainly includes software interface initialization and control initialization.
[0033] (2) The functions of the communication submodule are: to set the signal format, period, and depth modulation parameters of the position indicating acoustic processor through serial port 1 (serial port for communicating with the position indicating acoustic processor), to control the self-test of the position indicating acoustic processor, and to receive and display the self-test results.
[0034] (3) The functions of the submodule for communicating with the synchronous control device are: sending synchronization cycle parameters to the synchronous control device through serial port 2 (serial port for communicating with the synchronous control device); receiving the synchronization start time of the synchronous control device through serial port 2; reading the synchronization time through serial port 2 and displaying it.
[0035] (4) The functions of the submodule for communicating with the high-precision synchronous clock source are: setting the synchronization pulse period output by the high-precision synchronous clock source through serial port 3 (serial port for communicating with the high-precision synchronous clock source), and querying the current working status parameters of the high-precision synchronous clock source through serial port 3.
[0036] (5) The functions of the recording submodule are: recording the communication work log between the position-indicating acoustic beacon mode setting and the data reading software and the position-indicating acoustic processor, synchronous control equipment, and high-precision synchronous clock source, recording the working parameters of each device, and saving the work log and working parameters to the local computer.
[0037] The presentation layer subsystem includes a graphical user interface, in which the user can complete serial port control, cycle setting, signal format setting, synchronization cycle setting, clock source setting, and high-precision synchronization clock source synchronization output cycle setting through the operation buttons in the interface.
[0038] The beneficial effects of the present invention include:
[0039] The present invention can perform signal mode setting, high-precision timekeeping, and important data reading. It can communicate with a position-indicating acoustic processor, set the signal format (multiple modes), cycle, and depth modulation parameters of the position-indicating acoustic processor, control the self-test of the position-indicating acoustic processor, and receive and display the self-test results; it can communicate with a synchronous control device, set the synchronous pulse cycle output by the synchronous control device, and read the absolute synchronization start time output by the synchronous control device; it can communicate with a high-precision synchronous clock source, set the synchronous pulse cycle output by the high-precision synchronous clock source, and query the current state parameters of the high-precision synchronous clock source. The position-indicating acoustic beacon mode setting and data reading system of the present invention has certain engineering practical value for the normal development of underwater tests of position-indicating acoustic beacons. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 :Flowchart for mode setting and data reading of the position indicating acoustic processor.
[0041] Figure 2 : Flowchart for mode setting and data reading of synchronous control equipment.
[0042] Figure 3 :Mode setting and data reading flow chart for high-precision synchronous clock source.
[0043] Figure 4 : Software architecture design diagram for position indicating acoustic beacon mode setting and data reading.
[0044] Figure 5 : Overall block diagram of the software structure for setting the position acoustic beacon mode and reading data.
[0045] Figure 6 : Definition of serial port communication address between software and position indicating acoustic processor.
[0046] Figure 7 : Serial port communication protocol between software and synchronous control equipment.
[0047] Figure 8:Flowchart of the position acoustic beacon mode setting and data reading software. DETAILED DESCRIPTION
[0048] Example 1
[0049] See also Figure 1-Figure 3 , a method for setting a position-indicating acoustic beacon mode and reading data, comprising the following steps:
[0050] The flow chart of mode setting and data reading for the position indicating acoustic processor is as follows: Figure 1 As shown, the following steps are included:
[0051] Step 1: Initialize according to the serial port number assigned to the position-indicating acoustic processor and the set baud rate. After completion, open the communication serial port for communicating with the position-indicating acoustic processor.
[0052] Step 2: Send a self-test command to the position indicating acoustic processor and wait for the position indicating acoustic processor to perform self-test. After the position indicating acoustic processor completes the self-test, it will respond to the self-test status and analyze the self-test status. If the position indicating acoustic processor works normally, proceed to step 3. Otherwise, close the serial port and inspect and maintain the position indicating acoustic processor.
[0053] Step 3. Set the cycle parameters and complete the settings in the cycle setting item in the communication window of the position indicating acoustic processor. If the cycle to be set is one of 1s, 2s, 4s, 6s, 10s, 15s, 20s, 30s, and 60s, select "Common cycle" and the cycle value in turn to set it; if the cycle to be set is other cycles, select "Continuous cycle" and the cycle value in turn to set it.
[0054] Step 4: Send a set cycle command to the position-indicating acoustic processor, wait for the position-indicating acoustic processor to respond, and the position-indicating acoustic processor completes the cycle setting response after updating the cycle.
[0055] Step 5: Read the cycle parameters and send a cycle read command to the position indicating acoustic processor. The position indicating acoustic processor responds with the current cycle parameters. The software receives the cycle read response, parses the response instruction, and displays the parsed cycle result.
[0056] Step 6. Set the signal format parameters. First, set the depth modulation parameters. In the depth setting item in the communication window of the position indicating acoustic processor, select any one of the "1, 2, 3" modes as needed; then set the signal format. The signal consists of 7 pulses, and each pulse has several signals to choose from: the first pulse is hyperbolic frequency modulation. Select any one of the "1, 2, 3, 4" modes according to its pulse width, starting frequency, and ending frequency requirements; the second pulse is a CW signal. Select any one of the "1, 2, 3, 4, 5, 6" modes according to its pulse width, frequency, and frequency control word requirements; the third pulse is a CW signal. Select any one of the "1, 2, 3, 4, 5, 6" modes according to its pulse width, frequency, and frequency control word requirements. Any one; the fourth pulse is a CW signal, and any one of the "1, 2, 3, 4, 5" modes is selected according to its pulse width, frequency, and frequency control word requirements; the fifth pulse is a CW signal, and any one of the "1, 2, 3, 4" modes is selected according to its pulse width, frequency, and frequency control word requirements; the sixth pulse is consistent with the first pulse; the seventh pulse is hyperbolic frequency modulation, and any one of the "1, 2, 3, 4" modes is selected according to its pulse width, starting frequency, and ending frequency requirements; the pulse width, starting frequency, and ending frequency of the first pulse and the seventh pulse are different, and the pulse width, frequency, and frequency control word of the second pulse, the third pulse, the fourth pulse, and the fifth pulse are different;
[0057] Step 7: Send a command to set the signal format to the position indicating acoustic processor, and wait for the position indicating acoustic processor to respond and receive a signal mode setting response.
[0058] Step 8: Read the signal format parameters, send a signal format reading command to the position indicating acoustic processor, receive and display the signal format reading response.
[0059] The flow chart of mode setting and data reading for synchronous control equipment is as follows: Figure 2 As shown, the following steps are included:
[0060] Step 1: Initialize according to the serial port number assigned to the synchronous control device and the set baud rate. After completion, open the communication serial port for communicating with the synchronous control device.
[0061] Step 2: Set the synchronization cycle parameters, send a synchronization cycle mode setting instruction to the synchronization control device, and wait for the synchronization control device to respond and receive a response.
[0062] Step 3: Set the clock source parameters (GPS or BeiDou can be selected), send a command to set the clock source to the synchronization control device, and wait for the synchronization control device to respond and receive a response.
[0063] Step 4: Read the synchronization time, send a synchronization time read command to the synchronization control device, receive the synchronization time read response and display it.
[0064] Step 5: Record the synchronization time and write the read synchronization time into a text file that stores the synchronization time.
[0065] The flow chart of mode setting and data reading for high-precision synchronous clock source is as follows: Figure 3 As shown, the following steps are included:
[0066] Step 1: Initialize the serial port number and baud rate assigned to the high-precision synchronous clock source. After completion, open the communication serial port for communicating with the high-precision synchronous clock source.
[0067] Step 2: Set the synchronization output cycle parameters, send a command to set the synchronization output cycle to the high-precision synchronization clock source, wait for the high-precision synchronization clock source to respond and receive a response
[0068] Step 3: Read the working status parameters of the high-precision synchronous clock source, parse the received working status information of the high-precision synchronous clock source, and display the working status parameters obtained by parsing (battery remaining, NPPS frequency, positioning validity status, synchronization status, fault information-receiver, fault information-atom, fault information-battery) in the interface. The working status update frequency is 1Hz.
[0069] Example 2
[0070] See also Figure 4-Figure 8 , a position-indicating acoustic beacon mode setting and data reading system. According to the demand analysis of position-indicating acoustic beacon mode setting and data reading, the system includes a synchronous control computer, adopts a layered architecture, and is divided into four subsystems: data layer subsystem, persistence layer subsystem, business layer subsystem and presentation layer subsystem. Figure 4 shown.
[0071] The data layer subsystem includes serial communication commands and responses between the three devices, namely, the position indicating acoustic processor, the synchronous control device, and the high-precision synchronous clock source, and also includes local data files.
[0072] The continuous layer subsystem includes a serial port data receiving and sending and data processing communication module, and the communication module uses a serial port to communicate with the three devices of the position indicating acoustic processor, the synchronous control device, and the high-precision synchronous clock source. There are two data streams transmitted when communicating with the three devices of the position indicating acoustic processor, the synchronous control device, and the high-precision synchronous clock source, respectively, the control command stream (including self-test command, cycle reading command, signal format setting command, synchronous cycle setting command, clock source setting command, synchronous time reading command, synchronous output cycle setting command), and the command response data stream (including self-test response, cycle reading response, signal format setting response, synchronous cycle setting response, clock source setting response, synchronous time reading response, synchronous output cycle setting response, and high-precision synchronous clock source working status response).
[0073] The business layer subsystem includes a software logic function module, which includes five submodules, namely, an initialization submodule, a communication submodule with a position indicating acoustic processor, a communication submodule with a synchronous control device, a communication submodule with a high-precision synchronous clock source, and a recording submodule. Figure 5 The detailed functional design of each submodule is as follows:
[0074] (1) The function of the initialization submodule is to complete parameter initialization and display and control software system initialization. The parameters mainly include the baud rate of the serial port (the serial port for communicating with the position display acoustic processor, the serial port for communicating with the synchronous control device, and the serial port for communicating with the high-precision synchronous clock source), serial port number initialization, and command initialization. The initialization of the display and control software system mainly includes software interface initialization and control initialization.
[0075] (2) The functions of the communication submodule are: to set the signal format, period, and depth modulation parameters of the position indicating acoustic processor through serial port 1 (serial port for communicating with the position indicating acoustic processor), to control the self-test of the position indicating acoustic processor, and to receive and display the self-test results.
[0076] (3) The functions of the submodule for communicating with the synchronous control device are: sending synchronization cycle parameters to the synchronous control device through serial port 2 (serial port for communicating with the synchronous control device); receiving the synchronization start time of the synchronous control device through serial port 2; reading the synchronization time through serial port 2 and displaying it.
[0077] (4) The functions of the submodule for communicating with the high-precision synchronous clock source are: setting the synchronization pulse period output by the high-precision synchronous clock source through serial port 3 (serial port for communicating with the high-precision synchronous clock source), and querying the current working status parameters of the high-precision synchronous clock source through serial port 3.
[0078] (5) The functions of the recording submodule are: recording the communication work log between the position-indicating acoustic beacon mode setting and the data reading software and the position-indicating acoustic processor, synchronous control equipment, and high-precision synchronous clock source, recording the working parameters of each device, and saving the work log and working parameters to the local computer.
[0079] The presentation layer subsystem includes a graphical user interface, in which the user can complete serial port control, cycle setting, signal format setting, synchronization cycle setting, clock source setting, and high-precision synchronization clock source synchronization output cycle setting through the operation buttons in the interface.
[0080] The communication protocols of each subsystem are as follows:
[0081] (a) Communication protocol with the position-indicating sound processor
[0082] The serial communication address with the position indicating acoustic processor is defined as follows: Figure 6shown.
[0083] (1) The protocol for software to write data to a specific address is: "wm0x00000X, 0x00000000;", all in the form of a string, where "X" in "wm0x00000X" represents the address bit, the write signal format value is 0, and the write cycle value is 1.
[0084] (2) The write data return protocol received by the software is: after sending the write data, it should receive the "wm1;" string returned by the position indicating sound processor.
[0085] (3) The protocol used by the software to read data from a specific address is: "rm0x00000X;", all in the form of a string, where "X" in "wm0x000000" represents the address bit, the read signal format value is 0, the read cycle value is 1, and the read self-test response value is a.
[0086] (4) The read data return protocol received by the software is: "rm:ad0x00000X,dt0x00000000;", all in the form of a string, where "X" in "wm0x000000" represents the address bit, the read signal format value is 0, the read cycle value is 1, and the read self-test response value is a.
[0087] (b) Communication protocol with synchronous control equipment
[0088] The serial port communication address with the step control device is defined as follows: Figure 7 shown.
[0089] (1) The protocol for writing data to the software synchronous control device is: 0xAA01NNX1X2X3FF, with a fixed length of 7 bytes, where 0xAA is the start byte; 0x01 is the default communication address ID; 0xNN is the function code; 0xX1X2 are the parameter low bit and parameter high bit respectively; 0xX3 is the XOR check bit, which is obtained by XOR operation from the start byte to the parameter low byte; and 0xFF is the end byte.
[0090] (2) The write data return protocol received by the software is: 0xBB01NNYYMMDDHHmmSSX3FF, with a fixed length of 11 bytes, where 0xBB is the start byte; 0x01 is the default communication address ID; 0xNN is the function code; 0xYYMMDDHHmmSS are the year, month, day, hour, minute, and second bytes of the parameters respectively; 0xX3 is the XOR check bit, which is obtained by XOR operation from the start byte to the low byte of the parameter; and 0xFF is the end byte.
[0091] (3) Function code and corresponding parameter definitions:
[0092] 0x01: Set the synchronous output period of the synchronous control device. The corresponding parameter is 1 to 60, and 1s can be adjusted continuously.
[0093] 0x02: Set the clock source selection of the synchronous control device. The corresponding parameters are 0 to 2, which represent GPS, internal clock, and external synchronization respectively.
[0094] 0x03: Read the synchronization start time of the synchronization control device, no parameters, the default value is 0x0000.
[0095] (c) Communication protocol with high-precision synchronous clock source
[0096] (1) The software sets the synchronization output period parameter command: "set npps_period x", where x can take values of 1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, or 60.
[0097] (2) The software query command for the working status of the high-precision synchronous clock source is: "display status".
[0098] (3) The software receives the working status reply: “$TSYJ,AAA,BB,C,D,XXX*”, where $TSYJ is the data frame header; AAA is the battery remaining capacity, if the remaining capacity is 100%, then fill in 100; BB is the periodic signal; C is the valid positioning status, the valid value is A, and the invalid value is V; D is the synchronization status; XXX is the fault information; * is the end of the data frame.
[0099] The main cycle process of the position-indicating acoustic beacon mode setting and data reading system of the present invention is:
[0100] like Figure 8 As shown, the system communicates with the position-indicating acoustic processor, the synchronous control device and the high-precision synchronous clock source, and is used to set the working parameters of the position-indicating acoustic processor, the synchronous control device and the high-precision synchronous clock source, and record the equipment working parameters and equipment working log.
[0101] The method for using the position-indicating acoustic beacon mode setting and data reading system of the present invention includes:
[0102] S1. Start the software, the software completes initialization, and displays the software human-computer interaction interface;
[0103] S2. Select the device that needs to communicate and open the corresponding communication serial port;
[0104] S2.1. Choose to open the serial port for communication with the position indicating acoustic processor, click "Open Serial Port" in the corresponding position, and the indicator light will light up after the serial port is successfully opened;
[0105] S2.1.1. Click the "Self-test" button to send the self-test command "rm0x00000a;" to the position-indicating acoustic processor. Wait for the 32-bit data to be replied, and parse the returned data: convert the returned data into decimal data, and then divide the decimal data by 65536. If the quotient is 0, the self-test fails, otherwise the self-test succeeds.
[0106] S2.1.2. After setting the cycle parameters, click the "Set Cycle" button to send the cycle setting command "wm0x000001, 0xNNNNNNNN;" to the position indicating acoustic processor to complete the cycle setting, where "NNNNNNNN" is the result data of converting the decimal number of the set cycle parameter (s) × sampling rate – 1 into hexadecimal. For example, 1s cycle and 10MHz sampling rate are: 1×10000000-1=9999999. After converting 9999999 into hexadecimal, the result is 0x0098967f. At this time, the cycle setting instruction sent is "wm0x000001, 0x0098967f;".
[0107] S2.1.3, read cycle, click the "read cycle" button, send the cycle setting command "rm0x000001;" to the position indicating acoustic processor to complete the cycle reading to confirm whether the cycle setting is successful;
[0108] S2.3.4. After setting the depth and signal format, click the "Set Signal Format Button" to send the periodic setting command "wm0x000000, 0xNNNNNNNN;" to the position indicating acoustic processor to complete the signal format setting, where "NNNNNNNN" is the set signal format. If the first pulse selects signal 1, the second pulse selects signal 2, the third pulse selects signal 3, the fourth pulse selects signal 4, the fifth pulse selects signal 1, the sixth pulse is consistent with the first pulse, the seventh pulse selects signal 2, and the depth coefficient parameter is 1, then send "wm0x000000, 0x12341121;"
[0109] S2.1.5. Read the signal format. Click the "Read Signal Format" button to send the cycle setting command "rm0x000000;" to the position indicating acoustic processor to complete the signal format reading to confirm whether the signal format setting is successful.
[0110] S2.1.6, determine whether to close the serial port communicating with the position indicating acoustic processor, if it needs to be closed, jump to step S3, otherwise repeat steps S2.1.2 to S2.1.5;
[0111] S2.2. Select to open the serial port for communication with the synchronous control device, click "Open Serial Port" in the corresponding position, and the indicator light will light up after the serial port is successfully opened;
[0112] S2.2.1. After setting the synchronization cycle parameters, click the "Set Synchronization Cycle" button and send the synchronization cycle setting command "AA0101X1X2X3FF" to the synchronization control device to complete the synchronization cycle mode setting;
[0113] S2.2.2. After setting the clock source parameters, click the "Set Clock Source" button and send the clock source setting command "AA010200X2X3FF" to the synchronous control device to complete the clock source mode setting;
[0114] S2.2.3. Read the synchronization start time of the synchronization control device, click the "Read Synchronization Time" button, and send the synchronization start time read command "AA01030000X3FF" to the synchronization control device;
[0115] S2.2.4, determine whether to close the serial port communicating with the synchronous control device, if it needs to be closed, jump to step S3, otherwise repeat steps S2.2.1 to S2.2.3;
[0116] S2.3. Select to open the serial port for communication with the high-precision synchronous clock source, click "Open Serial Port" in the corresponding position, and the indicator light will light up after the serial port is successfully opened;
[0117] S2.3.1. After setting the synchronization output period parameters, click the "Set Synchronization Output Period" button and send the synchronization output period setting command "set npps_period x" to the high-precision synchronization clock source to complete the synchronization output period mode setting;
[0118] S2.3.2. Read the working status and parse the received “$TSYJ,AAA,BB,C,D,XXX*”, and display the battery remaining, NPPS frequency, positioning validity status, synchronization status, and fault information on the interface.
[0119] S2.3.3, determine whether to close the serial port communicating with the high-precision synchronous clock source, if it needs to be closed, jump to step S3, otherwise repeat steps S2.3.1 to S2.3.2;
[0120] S3, determine whether to close the software, if necessary, close the software, otherwise repeat step S2.
Claims
1. A method for setting a position-indicating acoustic beacon mode and reading data, characterized in that: include: (1) Setting the mode and reading the data of the position indicating acoustic processor; (2) Setting the mode and reading the data of the synchronous control device; (3) Setting the mode and reading the data of the high-precision synchronous clock source; The mode setting and data reading of the position-indicating acoustic processor includes: setting the synchronization signal format, cycle, and depth modulation parameters of the position-indicating acoustic processor; controlling the position-indicating acoustic processor to perform self-test and receiving and displaying the self-test results; The mode setting and data reading of the position indicating acoustic processor includes: communicating with the synchronization control device, setting the synchronization pulse period output by the synchronization control device, and reading the synchronization start absolute time output by the synchronization control device; The mode setting and data reading of the high-precision synchronous clock source include: communicating with the high-precision synchronous clock source, setting the synchronization pulse period output by the high-precision synchronous clock source, and querying and displaying the current state parameters of the high-precision synchronous clock source.
2. The method for setting the position-indicating acoustic beacon mode and reading data according to claim 1, characterized in that: The method for setting the mode and reading the data of the position-indicating acoustic processor comprises the following steps: S11 initializes the serial port number assigned to the position-indicating acoustic processor and the set baud rate, and after completion, opens the communication serial port for communicating with the position-indicating acoustic processor; S12 sends a self-test command to the position-indicating acoustic processor, waits for the position-indicating acoustic processor to perform self-test, responds to the self-test after the self-test is completed, analyzes the self-test response, and executes S13 if the position-indicating acoustic processor works normally, otherwise closes the serial port and performs inspection and maintenance on the position-indicating acoustic processor; S13 sets the cycle parameters. Complete the settings in the cycle setting item in the communication window of the position indicating acoustic processor. If the cycle to be set is one of 1s, 2s, 4s, 6s, 10s, 15s, 20s, 30s, and 60s, select "Common cycle" and cycle value in sequence to set it; if the cycle to be set is other cycles, select "Continuous cycle" and cycle value in sequence to set it; S14 sends a cycle setting command to the position indicating acoustic processor, waits for the position indicating acoustic processor to respond, and the position indicating acoustic processor completes the cycle setting response after updating the cycle; S15 reads the cycle parameters and sends a cycle reading command to the position indicating acoustic processor. The position indicating acoustic processor responds with the current cycle parameters. The software receives the cycle reading response, analyzes the response instruction, and displays the analyzed cycle result. S16 sets the signal format parameters. First, set the depth modulation parameters. In the depth setting item in the communication window of the position indicating acoustic processor, select any one of the "1, 2, 3" modes according to the needs; then set the signal format. The signal consists of 7 pulses, and each pulse has several signals to choose from: the first pulse is hyperbolic frequency modulation, select any one of the "1, 2, 3, 4" modes according to its pulse width, starting frequency, and ending frequency requirements; the second pulse is a CW signal, select any one of the "1, 2, 3, 4, 5, 6" modes according to its pulse width, frequency, and frequency control word requirements; the third pulse is a CW signal, select any one of the "1, 2, 3, 4, 5, 6" modes according to its pulse width, frequency, and frequency control word requirements any one of the "1, 2, 3" modes; the fourth pulse is a CW signal, and any one of the "1, 2, 3, 4, 5" modes is selected according to its pulse width, frequency, and frequency control word requirements; the fifth pulse is a CW signal, and any one of the "1, 2, 3, 4" modes is selected according to its pulse width, frequency, and frequency control word requirements; the sixth pulse is consistent with the first pulse; the seventh pulse is hyperbolic frequency modulation, and any one of the "1, 2, 3, 4" modes is selected according to its pulse width, starting frequency, and ending frequency requirements; the pulse width, starting frequency, and ending frequency of the first pulse and the seventh pulse are different, and the pulse width, frequency, and frequency control word of the second to fifth pulses are different; S17 sends a command to set the signal format to the position indicating acoustic processor, and waits for the position indicating acoustic processor to respond and receive a signal mode setting response; S18 reads the signal format parameters, sends a signal format reading command to the position indicating acoustic processor, receives a signal format reading response and displays it.
3. The method for setting the position-indicating acoustic beacon mode and reading data according to claim 1, characterized in that: The method for setting the mode and reading data of the synchronous control device comprises the following steps: S21 performs initialization according to the serial port number assigned to the synchronous control device and the set baud rate, and after completion, opens the communication serial port for communicating with the synchronous control device; S22 sets synchronization cycle parameters, sends a synchronization cycle mode setting instruction to the synchronization control device, waits for the synchronization control device to respond and receives a response; S23 sets clock source parameters, sends a command to set the clock source to the synchronous control device, waits for the synchronous control device to respond and receives a response; the clock source is GPS or Beidou; S24 reads the synchronization time, sends a synchronization time reading command to the synchronization control device, receives a synchronization time reading response and displays it; S25 records the synchronization time, and writes the read synchronization time into a text file for storing the synchronization time.
4. The method for setting the position-indicating acoustic beacon mode and reading data according to claim 1, characterized in that: The method for setting the mode and reading data of the high-precision synchronous clock source comprises the following steps: S31 initializes the serial port number assigned to the high-precision synchronous clock source and the set baud rate, and after completion, opens the communication serial port for communicating with the high-precision synchronous clock source; S32 sets the synchronization output cycle parameters, sends a command to set the synchronization output cycle to the high-precision synchronization clock source, and waits for the high-precision synchronization clock source to respond and receive a response; S33 reads the working status parameters of the high-precision synchronous clock source, parses the received working status information of the high-precision synchronous clock source, and displays the working status parameters obtained by the analysis in the interface. The working status parameters include battery remaining, NPPS frequency, positioning validity status, synchronization status, fault information-receiver, fault information-atom and fault information-battery; the working status update frequency is 1Hz.
5. A computer storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method for setting the position-indicating acoustic beacon mode and reading data as described in any one of claims 1 to 4 are implemented.
6. A position-indicating acoustic beacon mode setting and data reading system, characterized in that: The system comprises a synchronous control computer, wherein the synchronous control computer contains the computer storage medium as claimed in claim 5.
7. A position-indicating acoustic beacon mode setting and data reading system, characterized in that: The system includes a synchronous control computer, wherein the synchronous control computer contains a functional module for implementing the method for setting the position-indicating acoustic beacon mode and reading data as described in any one of claims 1 to 4, wherein the functional module adopts a layered architecture, including a data layer subsystem, a persistence layer subsystem, a business layer subsystem, and a presentation layer subsystem, a total of four layers of subsystems; The data layer subsystem includes serial communication commands and responses between the position indicating acoustic processor, the synchronous control device, and the high-precision synchronous clock source, and also includes local data files; The continuous layer subsystem also includes a serial port data receiving and sending and data processing communication module, and the communication module uses a serial port to communicate with the three devices of the position indicating acoustic processor, the synchronous control device, and the high-precision synchronous clock source; The business layer subsystem includes a software logic function module, which includes five submodules, namely, an initialization submodule, a communication submodule with a position indicating acoustic processor, a communication submodule with a synchronous control device, a communication submodule with a high-precision synchronous clock source, and a recording submodule; The presentation layer subsystem includes a graphical user interface, in which the user can complete serial port control, cycle setting, signal format setting, synchronization control device synchronization cycle setting, clock source setting, and high-precision synchronization clock source synchronization output cycle setting through operation buttons in the interface.
8. The position-indicating acoustic beacon mode setting and data reading system according to claim 7, characterized in that: The continuous layer subsystem also includes a serial port data receiving and sending and data processing communication module, and the communication module uses a serial port to communicate with the three devices of the position indicating acoustic processor, the synchronous control device, and the high-precision synchronous clock source; there are two data streams transmitted when communicating with the three devices of the position indicating acoustic processor, the synchronous control device, and the high-precision synchronous clock source, namely the control command stream and the command response data stream.
9. The position-indicating acoustic beacon mode setting and data reading system according to claim 8, characterized in that: The control command stream includes a self-test command, a cycle reading command, a signal format setting command, a synchronization cycle setting command, a clock source setting command, a synchronization time reading command and a synchronization output cycle setting command; The command response data stream includes self-test response, cycle reading response, signal format setting response, synchronization cycle setting response, clock source setting response, synchronization time reading response, synchronization output cycle setting response and high-precision synchronization clock source working status response.
10. The position-indicating acoustic beacon mode setting and data reading system according to claim 7, characterized in that: Each submodule of the business layer subsystem also includes: (1) Initialization submodule: complete parameter initialization and display and control software system initialization; the parameters mainly include the baud rate and serial port number initialization of serial port 1 for communicating with the position indicating acoustic processor, serial port 2 for communicating with the synchronous control device, and serial port 3 for communicating with the high-precision synchronous clock source, and command initialization; the display and control software system initialization mainly includes software interface initialization and control initialization; (2) Communication submodule with the position indicating acoustic processor: through serial port 1 for communicating with the position indicating acoustic processor, the signal format, period, and depth modulation parameters of the position indicating acoustic processor are set, the position indicating acoustic processor is controlled to self-check, and the self-check results are received and displayed; (3) Submodule for communicating with the synchronous control device: sending synchronization cycle parameters to the synchronous control device through serial port 2 for communicating with the synchronous control device; receiving the synchronization start time of the synchronous control device through serial port 2; reading the synchronization time through serial port 2 and displaying it; (4) Submodule for communicating with high-precision synchronous clock source: sets the synchronous pulse period output by the high-precision synchronous clock source through serial port 3 for communicating with the high-precision synchronous clock source, and queries and displays the current working status parameters of the high-precision synchronous clock source through serial port 3; (5) Recording submodule: records the communication work log between the position-indicating acoustic beacon mode setting and the data reading software and the position-indicating acoustic processor, synchronous control equipment, and high-precision synchronous clock source; records the working parameters of each device; and saves the work log and working parameters to the local computer.
Citation Information
Patent Citations
Self-adaptive trigger synchronization control device
CN103092257A
Synthetic aperture sonar and underwater positioning system synchronization control method and device
CN105137438A
Active and passive underwater locating beacon system
CN110174638A
Underwater synchronous sound position indication beacon signal generation method
CN117724032A
