Visual underwater sensor network simulation method

By combining multi-carrier MFSK water acoustic communication algorithm and visual interface, the problem of lack of visualization of underwater sensor network simulation software is solved, and development efficiency and communication performance are improved.

CN120343608AActive Publication Date: 2025-07-18HAINAN SHUIZHISHENG MARINE TECH CO LTD

Patent Information

Application Number
CN202510827668.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-20
Publication Date
2025-07-18
Estimated Expiration
2045-06-20

AI Technical Summary

Technical Problem

The existing underwater sensor network simulation software lacks a visual interface, which leads to developers being familiar with the NS2 framework, low development efficiency, and cumbersome data processing for multiple simulation experiments.

Method used

The multi-carrier MFSK water acoustic communication algorithm is used to calculate the bit error rate BER, and the network simulation results are displayed through the visual interface. The OTcl automatic generation module and QcustomPlot are used to visualize the network simulation results, and the network simulation is combined with the Aqua-Sim simulator.

Benefits of technology

It improves the system band utilization and communication rate, provides a good human-computer interaction interface, improves development efficiency, and simplifies network performance evaluation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120343608A_ABST
    Figure CN120343608A_ABST
Patent Text Reader

Abstract

The invention provides a visual underwater sensor network simulation method, and relates to the technical field of underwater sensor networks, and the method comprises the steps: configuring network simulation parameters which comprise topological structure parameters, channel parameters and simulation parameters; inputting the channel parameters into an underwater acoustic calculation tool to generate an underwater acoustic multipath channel for simulation; the bit error rate BER of the multi-carrier MFSK underwater acoustic communication algorithm under the underwater acoustic multipath channel condition is calculated, and the bit error rate BER is input into the OTcl script; performing network simulation on the configured OTcl script by using an underwater network simulator; and displaying a network simulation result through a visual interface. The underwater sensor network simulation result can be displayed through the visual interface, the defect that current NS2-based underwater sensor network simulation software does not have a visual interface is overcome, a good man-machine interaction interface can be provided for a user, the development efficiency is improved, and the user is helped to better evaluate the performance of the underwater sensor network.
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 sensor networks, and in particular, to a visualization method for underwater sensor network simulation. Background Art

[0002] With the increasing depletion of land resources, humans have paid more attention to ocean resources, and ocean resources have become a new development hotspot. The ocean area accounts for 70% of the total area of the earth. More and more countries have begun to explore the laws and resources of the ocean, making the important position of ocean development in the civilian and military fields more highly recognized. Building an underwater sensor network is a very difficult task. Designing an underwater sensor network with high reliability, large throughput, low power consumption, and short transmission delay requires considering large-scale hardware and software resources. The equipment is relatively complex and the test cost is relatively high. In contrast, underwater sensor network simulation has the advantages of low cost for constructing network devices, flexibility and reliability, and can easily construct even large-scale networks. Using simulation software can avoid the heavy and focus on the key aspects to improve efficiency. Through network simulation software, the sensor network model can be quickly configured and reconstructed, and it is easier to compare the performance improvements of sensor network protocols and network algorithms.

[0003] The mainstream underwater sensor network simulation software is a network simulator developed based on NS2 and adapted to the underwater acoustic channel. However, none of the above simulators has a visualization interface. Developers and users of network protocols need to be familiar with the NS2 framework when conducting network protocol simulation. The OTcl simulation scripts written for network simulation have strong syntax regularity and no integrated development environment, and errors are not easy to find, resulting in a large amount of repetitive work for researchers and very low development efficiency. In addition, when researchers evaluate the performance of network protocols and algorithms, in order to make the results more accurate, they generally need to use the simulator to conduct multiple simulation experiments on the same simulation scenario of the same protocol and process the data of each simulation experiment. Such a mechanically repetitive process also wastes the time and energy of researchers. Therefore, it is of practical significance to achieve visualization in the process of underwater sensor network simulation. Summary of the Invention

[0004] The purpose of the present invention is to provide a visualization method for underwater sensor network simulation to solve the defect that the existing underwater sensor network simulation software based on NS2 has no visualization interface.

[0005] To achieve the above invention purpose, the technical solution provided by the first aspect of the present invention is as follows: A visualization method for underwater sensor network simulation, the method includes: Configuring network simulation parameters, where the network simulation parameters include topology structure parameters, channel parameters, and simulation parameters; Input the channel parameters into the underwater acoustic calculation tool to generate an underwater acoustic multi-path channel for simulation; Calculate the bit error rate BER of the multi-carrier MFSK underwater acoustic communication algorithm under the condition of the underwater acoustic multi-path channel, and input the bit error rate BER into the OTcl script; Use the underwater network simulator to perform network simulation on the OTcl script with the configured settings; Display the network simulation results through the visualization interface.

[0006] Furthermore, before inputting the bit error rate BER into the OTcl script, according to the user's network simulation requirements, an OTcl script is automatically generated by the OTcl automatic generation module, which specifically includes the following operations: Create an empty OTcl script; Obtain the user's simulation requirement input information through the interface control; Judge whether the user's simulation requirements have been processed; If the user's simulation requirements have not been processed, search for the program block corresponding to the user's simulation requirements in the OTcl script library; Write the searched program block into the empty OTcl script.

[0007] Furthermore, when configuring the topology structure parameters, perform the following operations: The user configures the topology structure parameters through the topology control; Obtain the topology structure parameters in the topology control; Call the OTcl script automatic generation module to generate the OTcl topology structure code and write it into the empty OTcl script.

[0008] Furthermore, input the channel parameters into the underwater acoustic calculation tool to generate an underwater acoustic multi-path channel for simulation, which specifically includes the following operations: Write the channel parameters into the env environment configuration file; Obtain the channel parameters through the OTcl script and set them as the label control values for display in the visualization interface; Import the sound speed profile SSP data file and write it into the env environment configuration file; Execute the env environment configuration file through the underwater acoustic calculation tool to generate an underwater acoustic multi-path channel file with the extension arr.

[0009] Furthermore, the transmitting part of the multi-carrier MFSK underwater acoustic communication algorithm includes a cyclic redundancy check module, a scrambling module, a Hadamard mapping module, an interleaving module, a random phase interference module, a bit data mapping frequency point module, an IFFT modulation module, and a peak-to-average ratio suppression module.

[0010] Further, the receiving part of the multi - carrier MFSK underwater acoustic communication algorithm includes a synchronization module, a Doppler estimation and compensation module, a de - random phase module, an interleaving - deinterleaving module, a Hadamard sequence decision module, an interference module, and a cyclic redundancy check module.

[0011] Further, the network simulation results are displayed through a visualization interface, specifically by calling a third - party component QcustomPlot to realize the visualization of the network simulation results.

[0012] Further, after the network simulation is completed, the playback of the network simulation process is realized through a simulation playback module, which specifically includes the following operations: Obtain the network simulation result file with the extension name nam; Create a Qprocess process to run the Nam software, and process the network simulation result file through the Nam software; The Nam software displays the network simulation process in an animated form.

[0013] A second aspect of the present invention provides a computer program product, including a computer program, which when executed by a processor, implements the steps of the method described in the first aspect.

[0014] A third aspect of the present invention provides a computer device, including a memory, a processor, and a computer program stored on the memory, where the processor executes the computer program to implement the steps of the method described in the first aspect.

[0015] Compared with the prior art, the beneficial effects of the present invention are as follows: (1) The present invention uses the multi - carrier MFSK underwater acoustic communication algorithm to calculate the bit error rate BER under the condition of an underwater acoustic multipath channel. By combining multi - carrier and MFSK technologies, the system's frequency - band utilization rate, communication rate, and anti - multipath ability are all significantly improved; (2) The present invention can display the underwater sensor network simulation results through a visualization interface, solving the defect that the current underwater sensor network simulation software based on NS2 has no visualization interface, providing a good human - machine interaction interface for users, improving the development efficiency, and helping users better evaluate the performance of the underwater sensor network. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are only the preferred embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0017] Figure 1It is a schematic diagram of the overall process of a visualization underwater sensor network simulation method provided by an embodiment of the present invention.

[0018] Figure 2 It is a schematic block diagram of the transmitting part of a multi - carrier MFSK underwater acoustic communication algorithm provided by an embodiment of the present invention.

[0019] Figure 3 It is a schematic block diagram of the receiving part of a multi - carrier MFSK underwater acoustic communication algorithm provided by an embodiment of the present invention.

[0020] Figure 4 It is a schematic diagram of the process of automatically generating an OTcl script provided by an embodiment of the present invention.

[0021] Figure 5 It is a schematic diagram of the process of configuring topology structure parameters provided by an embodiment of the present invention.

[0022] Figure 6 It is a schematic diagram of the process of generating an underwater acoustic multi - path channel provided by an embodiment of the present invention.

[0023] Figure 7 It is a schematic diagram of the process of replaying the network simulation provided by an embodiment of the present invention. Detailed implementation manners

[0024] The principles and features of the present invention are described below with reference to the accompanying drawings. The listed embodiments are only used to explain the present invention and are not used to limit the scope of the present invention.

[0025] Refer to Figure 1 , this embodiment provides a visualization underwater sensor network simulation method, and the method includes the following steps: S101. Configure network simulation parameters, where the network simulation parameters include topology structure parameters, channel parameters, and simulation parameters.

[0026] S102. Input the channel parameters into an underwater acoustic calculation tool to generate an underwater acoustic multi - path channel for simulation.

[0027] In this embodiment, the underwater acoustic calculation tool uses Bellhop. Bellhop is an underwater acoustic calculation tool based on the ray acoustic model and is used to implement underwater acoustic channel model simulation.

[0028] S103. Calculate the bit error rate BER of the multi - carrier MFSK underwater acoustic communication algorithm under the condition of the underwater acoustic multi - path channel, and input the bit error rate BER into the OTcl script.

[0029] In this embodiment, the multi - carrier MFSK underwater acoustic communication algorithm includes a transmitting part and a receiving part.

[0030] Among them, the transmitting part includes a redundancy check module, a scrambling module, a Hadamard mapping module, an interleaving module, a random phase interference module, a bit data mapping frequency point module, an IFFT modulation module, and a peak-to-average ratio suppression module. Each module is encapsulated into a library function using C++ to complete the corresponding functions. The block diagram implemented by the transmitting part is as shown in Figure 2 shown. The communication system uses MFSK modulation, and the data frame structure consists of frame synchronization, preamble, 12 MFSK symbols, and postamble. Each data frame fixedly transmits 12 MFSK symbols. Each MFSK symbol contains 6 Hadamard codes, and each Hadamard code carries 5 bits of information. Therefore, the total number of encoded bits transmitted per frame is 360. Using channel coding with a code rate of 1 / 2, the number of bits per frame before coding is 180. After deducting the CRC and the added 0s, the total number of effective data bits that can be transmitted in k frames is n = 180*k - 21 (n = 180*k - 16 - 5).

[0031] Exemplarily, to further improve communication reliability, a repetition coding can be performed, and then the communication rate is halved. The number of bits per frame before coding is 90. After deducting the CRC and the added 0s, the total number of effective data bits that can be transmitted in k frames is n = 90*k - 21.

[0032] The encoding and modulation process includes the following steps: (1) Pad 0s at the end of the input data to make the total length 2139.

[0033] (2) Calculate the CRC16 checksum, and add the 16-bit checksum to the end of the data. The total length of the data becomes 2155.

[0034] (3) Scramble the data (including the checksum) with a pseudo-random sequence.

[0035] (4) To make the dual K-code encoder return to the 0 state after each encoding, 5 zero bits are padded to ensure that the last 5-bit combination is all 0s. The total length becomes 2160 bits.

[0036] (5) Split the data into 432 5-bit combinations.

[0037] (6) Perform dual K-code encoding to generate 864 5-bit combinations.

[0038] (7) Interleave in units of 5-bit combinations.

[0039] Use Hadamard(20,5)-OOK-IFFT for modulation to obtain 12 data frames, including 144 symbols.

[0040] Refer to Figure 3, the receiving part of the multi - carrier MFSK underwater acoustic communication algorithm includes a synchronization module, a Doppler estimation and compensation module, a de - random phase module, an interleaving - deinterleaving module, a Hadamard sequence decision module, an interference module, and a cyclic redundancy check module. The system functions are realized by encapsulating each functional module into a function. During the receiving process, synchronization is the prerequisite for information transmission, and the quality of synchronization affects the performance of the communication system. The synchronization module realizes synchronization through data stream packet header synchronization, rough synchronization and fine synchronization of data frame headers and tails.

[0041] By combining multi - carrier technology with MFSK technology, the multi - carrier MFSK underwater acoustic communication algorithm significantly improves the system's frequency - band utilization rate, communication rate, and anti - multipath ability. OTcl is an object - oriented scripting language that extends features such as classes, objects, inheritance, and polymorphism on the basis of Tcl's procedural syntax, and is suitable for building complex system models. Scripts are directly run by the interpreter, and can be tested immediately after adjusting parameters without recompiling. Developers can focus on the algorithm logic rather than the underlying implementation.

[0042] S104. Use the underwater network simulator to perform network simulation on the configured OTcl script.

[0043] In this embodiment, the underwater network simulator uses the Aqua - Sim simulator. In this step, the underwater network simulator realizes loop simulation based on the OTcl script, and automatically changes the network load value inside the software.

[0044] S105. Display the network simulation results through the visualization interface.

[0045] Refer to Figure 4 , before inputting the bit error rate BER into the OTcl script, according to the user's network simulation requirements, an OTcl script is automatically generated by the OTcl automatic generation module, which specifically includes the following operations: S201. Create an empty OTcl script.

[0046] S202. Obtain the user's simulation requirement input information through the interface control.

[0047] S203. Determine whether the user's simulation requirements have been processed.

[0048] S204. If the user's simulation requirements have not been processed, search for the program block corresponding to the user's simulation requirements in the OTcl script library.

[0049] S205. Write the searched program block into the empty OTcl script.

[0050] If the user's simulation requirements have been processed, end this operation.

[0051] As a possible implementation, referring to Figure 5 , when configuring the topology structure parameters, perform the following operations: S301. The user configures the topology structure parameters through the topology control.

[0052] After the user completes the configuration of the topology structure parameters, click the control button to trigger the button.click() signal to determine the completion of the configuration.

[0053] S302. Obtain the topology structure parameters in the topology control.

[0054] In this implementation, after the button.click() signal is triggered, enter the slot function, and obtain the topology structure parameters in the topology control by calling the TableWidget class member function item(int, int) -> Text().

[0055] S303. Call the OTcl script automatic generation module to generate the OTcl topology structure code and write it into an empty OTcl script.

[0056] In this step, call the OTcl script automatic generation module to generate the OTcl topology structure code according to the topology structure parameters obtained in step S302, write it into the OTcl script, and then end this operation.

[0057] As another possible implementation, referring to Figure 6 , input the channel parameters into the underwater acoustic calculation tool to generate the underwater acoustic multipath channel for simulation, specifically including the following operations: S401. Write the channel parameters into the env environment configuration file.

[0058] In this step, first open the env environment configuration file, then obtain the channel parameters input by the user and write them into the env environment configuration file, or obtain the channel parameters from the OTcl script and write them into the env environment configuration file.

[0059] S402. Obtain the channel parameters through the OTcl script and set them as the label control values to display in the visualization interface.

[0060] S403. Import the sound speed profile SSP data file and write it into the env environment configuration file; S404. Execute the env environment configuration file through the underwater acoustic calculation tool to generate the underwater acoustic multipath channel file with the extension arr.

[0061] In this step, the underwater network simulator calls the Linux C function system() to call Bellhop. Bellhop executes the env environment configuration file to generate an underwater acoustic multipath channel file with the extension arr, and ends this operation after generating the file.

[0062] As another possible implementation, the network simulation results are displayed through a visualization interface, specifically by calling the third-party component QcustomPlot to achieve the visualization of network simulation results. QCustomPlot is a small third-party chart library for Qt, which supports static / dynamic curves, bar charts, candlestick charts, spectrograms, etc., and is easy to use. In this implementation, network performance metrics are plotted through QcustomPlot, including the average end-to-end delay, throughput, packet loss rate, and the curves of energy consumption of each node varying with network load, so as to intuitively present the results integrally to the user.

[0063] As another possible implementation, after completing the network simulation, the playback of the network simulation process is also realized through the simulation playback module, referring to Figure 7 , which specifically includes the following steps: S501. Obtain the network simulation result file with the extension nam.

[0064] In this implementation, after the network simulation ends, a network simulation result file with the extension nam is output.

[0065] S502. Create a Qprocess process to run the Nam software, and process the network simulation result file through the Nam software.

[0066] S503. The Nam software displays the network simulation process in the form of an animation.

[0067] In this implementation, the simulation playback module can realize the playback of the movement trajectory of mobile nodes in the form of an animation, which is convenient for users to intuitively view the change of the topological structure of the simulation process.

[0068] Another embodiment of the present invention also provides a computer program product, including a computer program, which when executed by a processor, implements the method described in the foregoing method embodiments.

[0069] Another embodiment of the present invention also provides a computer device, including a memory, a processor, and a computer program stored on the memory, and the processor executes the computer program to implement the method described in the foregoing method embodiments.

[0070] The foregoing are only the preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the protection scope of the present invention.

Claims

1. A visualization method for underwater sensor network simulation, characterized in that The method includes: Configuring network simulation parameters, where the network simulation parameters include topology structure parameters, channel parameters, and simulation parameters; Inputting the channel parameters into an underwater acoustic calculation tool to generate an underwater acoustic multipath channel for simulation; Calculating the bit error rate BER of the multi-carrier MFSK underwater acoustic communication algorithm under the condition of the underwater acoustic multipath channel, and inputting the bit error rate BER into an OTcl script; Using an underwater network simulator to perform network simulation on the configured OTcl script; Displaying the network simulation results through a visualization interface.

2. The visualization method for underwater sensor network simulation according to claim 1, characterized in that, Before inputting the bit error rate BER into the OTcl script, according to the user's network simulation requirements, an OTcl script is automatically generated by an OTcl automatic generation module, which specifically includes the following operations: Creating an empty OTcl script; Obtaining user simulation requirement input information through interface controls; Judging whether the user's simulation requirements have been processed; If the user's simulation requirements have not been processed, searching for program blocks corresponding to the user's simulation requirements in the OTcl script library; Writing the searched program blocks into the empty OTcl script.

3. A visualization method for underwater sensor network simulation according to claim 2, characterized in that When configuring the topology structure parameters, the following operations are performed: The user configures the topology structure parameters through topology controls; Obtaining the topology structure parameters in the topology controls; Invoking the OTcl script automatic generation module to generate OTcl topology structure code and writing it into the empty OTcl script.

4. A visualization method for underwater sensor network simulation according to claim 1, characterized in that, Inputting the channel parameters into an underwater acoustic calculation tool to generate an underwater acoustic multipath channel for simulation, which specifically includes the following operations: Writing the channel parameters into an env environment configuration file; Obtaining the channel parameters through an OTcl script and setting them as the values of label controls for display in the visualization interface; Importing a sound speed profile SSP data file and writing it into the env environment configuration file; Executing the env environment configuration file through the underwater acoustic calculation tool to generate an underwater acoustic multipath channel file with the extension arr.

5. A visualization method for underwater sensor network simulation according to claim 1, characterized in that The transmitting part of the multi-carrier MFSK underwater acoustic communication algorithm includes a cyclic redundancy check module, a scrambling module, a Hadamard mapping module, an interleaving module, a random phase interference module, a bit data mapping frequency point module, an IFFT modulation module, and a peak-to-average power ratio suppression module.

6. A visualization method for underwater sensor network simulation according to claim 5, characterized in that, The receiving part of the multi-carrier MFSK underwater acoustic communication algorithm includes a synchronization module, a Doppler estimation and compensation module, a de-random phase module, a de-interleaving module, a Hadamard sequence decision module, an interference module, and a cyclic redundancy check module.

7. A visualization method for underwater sensor network simulation according to claim 1, characterized in that, The display of the network simulation results through the visualization interface is specifically realized by calling a third-party component QcustomPlot for the visualization of the network simulation results.

8. A visualization method for underwater sensor network simulation according to claim 1, characterized in that, After the network simulation is completed, the playback of the network simulation process is realized through a simulation playback module, which specifically includes the following operations: Obtaining a network simulation result file with the extension nam; Creating a Qprocess process to run the Nam software and processing the network simulation result file through the Nam software; The Nam software displays the network simulation process in an animated form.

9. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, the steps of the method according to any one of claims 1-8 are implemented.

10. A computer device, comprising a memory, a processor, and a computer program stored on the memory, characterized in that, The processor executes the computer program to implement the steps of the method according to any one of claims 1-8.

Citation Information

Patent Citations

  • Underwater acoustic OFDM-MFSK channel equalization method based on virtual time reversal mirror

    CN107454024A

  • Multi-node comprehensive simulation system and method

    CN111314166A

  • Underwater sensor network visual simulation system based on Linux

    CN114021364A

  • System and method for providing emulation as a service framework for communication networks

    EP4072102A1

  • Multi carrier frequency modulation spread spectrum communication system

    US10491261B1

Cited By

  • Underwater acoustic communication signal level simulation evaluation method, device and equipment

    CN122339601A

  • Prediction compensation type opportunistic routing forwarding timing control method for mobile underwater wireless sensor network

    CN122496886A

  • A prediction compensation type opportunity routing forwarding timing control method for mobile underwater wireless sensor networks

    CN122496886B