CN116866971A - Network communication maintenance method and device of ad hoc network equipment and intelligent equipment - Google Patents

Network communication maintenance method and device of ad hoc network equipment and intelligent equipment Download PDF

Info

Publication number
CN116866971A
CN116866971A CN202310861457.0A CN202310861457A CN116866971A CN 116866971 A CN116866971 A CN 116866971A CN 202310861457 A CN202310861457 A CN 202310861457A CN 116866971 A CN116866971 A CN 116866971A
Authority
CN
China
Prior art keywords
end node
ship end
hoc network
node
connection state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310861457.0A
Other languages
Chinese (zh)
Inventor
全子厚
陈黄悦
李汕
彭辉庭
刘拓
余勇
刘克东
戚景远
侯柏丞
何英生
丘思建
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Yunzhou Intelligence Technology Ltd
Original Assignee
Zhuhai Yunzhou Intelligence Technology Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhuhai Yunzhou Intelligence Technology Ltd filed Critical Zhuhai Yunzhou Intelligence Technology Ltd
Priority to CN202310861457.0A priority Critical patent/CN116866971A/en
Publication of CN116866971A publication Critical patent/CN116866971A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • H04W40/20Communication route or path selection, e.g. power-based or shortest path routing based on geographic position or location
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/24Connectivity information management, e.g. connectivity discovery or connectivity update
    • H04W40/246Connectivity information discovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/24Connectivity information management, e.g. connectivity discovery or connectivity update
    • H04W40/248Connectivity information update
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/24Connectivity information management, e.g. connectivity discovery or connectivity update
    • H04W40/28Connectivity information management, e.g. connectivity discovery or connectivity update for reactive routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/04Large scale networks; Deep hierarchical networks
    • H04W84/08Trunked mobile radio systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The present application relates to the field of unmanned trunking communication technologies, and in particular, to a method and an apparatus for maintaining network communication of an ad hoc network device, and an intelligent device. Applied to a shore end node in an ad hoc network, the method comprises the following steps: sending a topology information request instruction to each ship end node in the ad hoc network; monitoring first topology information fed back by each ship end node in the ad hoc network aiming at the topology information request instruction; determining the connection state of each ship end node in the ad hoc network according to the monitoring result of the first topology information; and maintaining network communication of each ship end node in the ad hoc network based on the connection state. The method can avoid the dead halt of the ship-end ad hoc network equipment caused by overlarge communication pressure as much as possible, and effectively maintain the stability of the network communication of the ad hoc network equipment.

Description

Network communication maintenance method and device of ad hoc network equipment and intelligent equipment
Technical Field
The present application relates to the field of unmanned trunking communication technologies, and in particular, to a method and an apparatus for maintaining network communication of an ad hoc network device, and an intelligent device.
Background
The unmanned ship is a miniature water surface platform with autonomy, and has wide development prospect in the military field and the civil field. The unmanned ship working on the water surface needs to realize real-time communication with the shore end and return real-time information of the unmanned ship state so as to realize command issuing, data monitoring, evidence collection and the like by the shore end.
The self-networking equipment is important communication equipment of the unmanned ship, and can realize various complex networking modes such as decentralization, support point-to-multipoint, chain relay, hybrid network and the like. Because the ad hoc network equipment is mounted on the unmanned ship, when the unmanned ship moves on the sea surface to exceed the maximum communication distance, the ad hoc network equipment mounted on the unmanned ship is in a weak connection state, the time for processing request data in the weak connection state is long, and under the condition that the previous request is not processed, the shore end or other ad hoc network equipment sends the next request again, so that the dead time of the ship end ad hoc network equipment due to the overlarge communication pressure is easily caused, and the network communication stability of the ad hoc network equipment is poor.
How to effectively maintain the stability of the network communication of the ad hoc network equipment and avoid the dead halt of the ship-end ad hoc network equipment caused by overlarge communication pressure is a problem to be solved currently.
Disclosure of Invention
In view of the above, the embodiments of the present application provide a method, an apparatus, and an intelligent device for maintaining network communication of an ad hoc network device, which can avoid a dead halt of the ship end ad hoc network device due to an excessive communication pressure as much as possible, and effectively maintain stability of network communication of the ad hoc network device.
A first aspect of an embodiment of the present application provides a method for maintaining network communication of an ad hoc network device, applied to a shore end node in an ad hoc network, where the method includes:
Sending a topology information request instruction to each ship end node in the ad hoc network;
monitoring first topology information fed back by each ship end node in the ad hoc network aiming at the topology information request instruction;
determining the connection state of each ship end node in the ad hoc network according to the monitoring result of the first topology information;
and maintaining network communication of each ship end node in the ad hoc network based on the connection state.
In a possible implementation manner of the first aspect, the determining, according to the monitoring result of the first topology information, a connection state of each ship end node in the ad hoc network includes:
if the first topology information fed back by the ship end node is monitored in the first time length range, determining that the ship end node is in a strong connection state;
if the first topology information fed back by the ship end node is monitored within the second duration range, determining that the ship end node is in a weak connection state; the minimum value of the second time length range is larger than the maximum value of the first time length range;
and if the first topology information fed back by the ship end node is not monitored within the second duration range, determining that the ship end node is in an offline state.
In a possible implementation manner of the first aspect, the maintaining network communication of each ship end node in the ad hoc network based on the connection state includes:
if the ship end node is in a strong connection state, carrying out network communication with the ship end node based on the strong connection state;
and if the ship end node is in a weak connection state, indicating the ship end node to update the route.
In a possible implementation manner of the first aspect, the instructing the terminating node to update the route if the terminating node is in a weak connection state includes:
a distance signal-to-noise ratio request instruction is sent to a target ship end node, wherein the target ship end node is a ship end node in a weak connection state, and the distance signal-to-noise ratio request instruction is used for acquiring the distance between the target ship end node and other ship end nodes in the ad hoc network and the signal-to-noise ratio information;
determining an optimal link of the ship end node in the weak connection state based on the acquired distance and signal-to-noise ratio information;
and sending a route update instruction to the ship end node in the weak connection state, wherein the route update instruction is used for indicating the ship end node in the weak connection state to update a route according to the optimal link.
In a possible implementation manner of the first aspect, after the sending a route update instruction to the end node in the weak connection state, the method further includes:
re-sending the topology information request instruction to the target ship end node;
monitoring second topology information fed back by the target ship end node aiming at the retransmitted topology information request instruction;
determining the current connection state of the target ship end node according to the monitoring result of the second topology information;
and if the current connection state of the target ship end node is changed into a strong connection state, carrying out network communication with the target ship end node based on the strong connection state.
In a possible implementation manner of the first aspect, the sending a topology information request instruction to each ship end node in the ad hoc network includes:
acquiring a first node information list, wherein the first node information list comprises node information of all ship end nodes in an initial ad hoc network;
based on the first node information list, sending a topology information request instruction to each ship end node in the ad hoc network;
based on the connection state, maintaining network communication of each ship end node in the ad hoc network, including:
Constructing an initial network topology graph according to the node information in the first node information list, wherein the initial network topology graph comprises initial topological relations between the shore end nodes and all ship end nodes in the ad hoc network;
determining a connection state identifier corresponding to the ship end node based on the connection state;
acquiring a target topological relation according to the first topological information fed back by each ship end node, wherein the target topological relation comprises the topological relation among the ship end nodes in the ad hoc network;
updating the initial network topology graph according to the connection state identification and the target topology relationship to obtain a target network topology graph;
based on the target network topology, network communications are maintained with each of the ship end nodes within the ad hoc network.
In a possible implementation manner of the first aspect, the method further includes:
when the connection state of the ship end nodes is in an offline state, acquiring a second node information list, wherein the second node information list comprises the node information of each ship end node in the current ad hoc network;
and refreshing the target network topological graph according to the node information in the second node information list.
A second aspect of an embodiment of the present application provides a network communication maintenance apparatus for an ad hoc network device, applied to a shore end node in an ad hoc network, the apparatus including:
the information request unit is used for sending topology information request instructions to all ship end nodes in the ad hoc network;
the monitoring unit is used for monitoring first topology information fed back by each ship end node in the ad hoc network aiming at the topology information request instruction;
the state determining unit is used for determining the connection state of each ship end node in the ad hoc network according to the monitoring result of the first topology information;
and the communication maintenance unit is used for maintaining network communication of each ship end node in the ad hoc network based on the connection state.
A third aspect of the embodiment of the present application provides an intelligent device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the steps of the network communication maintenance method of an ad hoc network device according to the first aspect of the embodiment of the present application are implemented when the processor executes the computer program.
A fourth aspect of the embodiments of the present application provides a computer readable storage medium storing a computer program which, when executed by a processor, implements the steps of the network communication maintenance method of an ad hoc network device as provided in the first aspect of the embodiments of the present application.
A fifth aspect of the embodiments of the present application provides a computer program product, which when run on a terminal device, causes the terminal device to perform the steps of the network communication maintenance method of an ad hoc network device according to the first aspect of the embodiments of the present application.
In the embodiment of the application, the shore end node monitors the first topology information fed back by each ship end node in the ad hoc network aiming at the topology information request instruction by sending the topology information request instruction to each ship end node in the ad hoc network, then determines the connection state of each ship end node in the ad hoc network in time according to the monitoring result of the first topology information, and then maintains the network communication of each ship end node in the ad hoc network based on the connection state. According to the scheme of the application, the network communication of each ship end node can be maintained in time after the communication state is determined, so that the phenomenon that the network communication of the self-networking equipment is stable due to the fact that the communication pressure of the ship end node equipment is overlarge as a result of continuously sending a request to the ship end node can be avoided.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments or the description of the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of an implementation of a method for maintaining network communication of an ad hoc network device according to an embodiment of the present application;
fig. 2 is a flowchart of a specific implementation of sending a topology information request instruction in the ad hoc network topology information optimization method according to an embodiment of the present application;
fig. 3 is a flowchart of a specific implementation of determining a connection state in a network communication maintenance method of an ad hoc network device according to an embodiment of the present application;
fig. 4 is a flowchart of a specific implementation of maintaining network communications of each ship end node in an ad hoc network in a network communication maintenance method of an ad hoc network device according to an embodiment of the present application;
fig. 4.1 is a schematic diagram of a scenario for connection of a ship end node in the ad hoc network topology information optimization method according to the embodiment of the present application;
fig. 5 is a flowchart of another implementation of maintaining network communications of each ship end node in an ad hoc network in a method for maintaining network communications of an ad hoc network device according to an embodiment of the present application;
fig. 5.1 is a flowchart of a specific implementation of indicating the update route of the ship end node in the method for maintaining network communication of an ad hoc network device according to an embodiment of the present application;
fig. 6 is a flowchart of still another implementation of maintaining network communications of each ship end node in the ad hoc network in the method for maintaining network communications of an ad hoc network device according to an embodiment of the present application;
Fig. 7 is a flowchart of a specific implementation of refreshing the target network topology in the ad hoc network topology information optimization method according to an embodiment of the present application;
fig. 8 is a block diagram of a network communication maintenance device of an ad hoc network device according to an embodiment of the present application;
fig. 9 is a schematic diagram of an intelligent device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular device structures, techniques, etc. in order to provide a thorough understanding of embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
Furthermore, the terms "first," "second," "third," and the like in the description of the present specification and in the appended claims, are used for distinguishing between descriptions and not necessarily for indicating or implying a relative importance.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
It should be understood that the embodiments of the method of the present application provide a method for maintaining network communication of an ad hoc network device, which is suitable for various intelligent devices that need to be maintained by network communication, and may specifically be an ad hoc network device carried by a shore end node in an unmanned ship cluster ad hoc network communication. The ad hoc network device can specifically comprise intelligent devices such as a server, a tablet computer, a notebook computer, a desktop computer and the like.
An exemplary description of a method for maintaining network communication of an ad hoc network device according to the present application is provided below with reference to a specific embodiment.
Fig. 1 shows an implementation flow of a network communication maintenance method of an ad hoc network device according to an embodiment of the present application, where an execution end of the embodiment of the present application may be an intelligent device. The method flow may include the following steps S101 to S104.
Step S101: and sending a topology information request instruction to each ship end node in the ad hoc network.
The topology information request instruction is used for requesting topology information from each ship end node. The topology information includes routing and location information of the ship end nodes.
In some embodiments, the topology information request instruction further carries a data type required by the shore end node. The topology information request instruction is also used for indicating the ship end node to send the information corresponding to the data type.
In the embodiment of the application, the shore end nodes send topology information request instructions to all ship end nodes in the ad hoc network in batches.
As a possible implementation manner of the present application, fig. 2 shows a specific implementation flow of sending a topology information request instruction to each ship end node in an ad hoc network in the method provided by the embodiment of the present application, which is described in detail below:
s201: and acquiring a first node information list, wherein the first node information list comprises node information of all ship end nodes in the initial ad hoc network.
In this embodiment, the shore end node sends an information request to the local back end, obtains information of all the ship end nodes in the ad hoc network, and constructs a first node information list based on the information of the ship end nodes.
Illustratively, the shore ad hoc network device sends an "at≡dsonipnn=3" instruction to the local back end to obtain node information of all ship end nodes networked with the shore, and generates a first node information list. The first node information list includes an SN number and an IP address of the ship end node.
In this embodiment, at≡dsonipnn=0 represents off, at≡dsonipnn=1 represents on, at≡dsonipnn=2 represents acquiring only on-network node SN information, and at≡dsonipnn=3 represents acquiring on-network node SN and IP address.
S202: and sending a topology information request instruction to each ship end node in the ad hoc network based on the first node information list.
In a possible implementation manner, the shore end node uses the IP address of the ship end node in the first node information list as a request address, establishes an iFrame source-spanning communication window for each ship end node in the first node information list in turn, and sends a topology information request instruction to each ship end node in the ad hoc network based on the iFrame source-spanning communication window.
Illustratively, the shore end node sequentially sends a "getTopo" instruction to the ship end node through the postMessage, and the "getTopo" instruction instructs the ship end node to acquire own route and longitude and latitude information, and feeds back the route and longitude and latitude information to the shore end node.
Step S102: and monitoring first topology information fed back by each ship end node in the ad hoc network aiming at the topology information request instruction.
And the shore end node monitors topology information fed back by each ship end node in the ad hoc network based on the sending time of the topology information request instruction.
Step S103: and determining the connection state of each ship end node in the ad hoc network according to the monitoring result of the first topology information.
The connection state of the ship end node comprises a strong connection state, a weak connection state and an off-line state, wherein the strong connection state refers to a state that the connection signal strength or the response speed is higher than or equal to a preset threshold value, and the weak connection state refers to a state that the connection signal strength or the response speed is lower than the preset threshold value. The monitoring result comprises response time of the ship end node, namely time of the ship end node responding to the topology information request instruction.
As a possible implementation manner of the present application, fig. 3 shows a specific implementation flow of determining a connection state of each ship end node in the ad hoc network according to the monitoring result of the first topology information in the method embodiment provided by the embodiment of the present application, which is described in detail below:
a1: and if the first topology information fed back by the ship end node is monitored in the first time range, determining that the ship end node is in a strong connection state. The first time period may range from 1 second to 10 seconds.
A2: if the first topology information fed back by the ship end node is monitored within the second duration range, determining that the ship end node is in a weak connection state; the minimum value of the second time length range is larger than the maximum value of the first time length range. The minimum value of the second time length range is larger than the maximum value of the first time length range. The second duration range is greater than 10 seconds but less than or equal to 30 seconds.
A3: and if the first topology information fed back by the ship end node is not monitored within the second duration range, determining that the ship end node is in an offline state.
Illustratively, if topology information sent by the ship end node is monitored within 10 seconds, determining that the ship end node is in a strongly connected state; if topology information sent by the ship end node is monitored within more than 10 seconds but within 30 seconds, determining that the ship end node is in a weak connection state; if the topology information sent by the ship end node is not monitored within 30 seconds, the ship end node is determined to be in an offline state.
Step S104: and maintaining network communication of each ship end node in the ad hoc network based on the connection state.
In the embodiment of the application, the network communication of each ship end node in the ad hoc network is maintained according to the connection state, so that the stability of the network communication of the ad hoc network equipment is enhanced.
As a possible implementation manner of the present application, fig. 4 shows a specific implementation flow of maintaining network communications of each ship end node in the ad hoc network based on the connection state in the method embodiment provided by the embodiment of the present application, which is described in detail below:
b1: and constructing an initial network topology graph according to the node information in the first node information list, wherein the initial network topology graph comprises initial topological relations between the shore end nodes and all ship end nodes in the ad hoc network.
The initial network topology diagram only comprises the connection relation between the shore end nodes and the ship end nodes.
B2: and determining a connection state identifier corresponding to the ship end node based on the connection state. The corresponding connection state identifiers of different types are different. For example, 001 identifies a strongly connected state, 002 identifies a weakly connected state, and 000 identifies an offline state.
B3: and acquiring a target topological relation according to the first topological information fed back by each ship end node, wherein the target topological relation comprises the topological relation among the ship end nodes in the ad hoc network. The same vessel end node may be communicatively connected to one or more other vessel end nodes.
In one possible implementation manner, according to the routing position information of each ship end node, the corresponding position of each ship end node and the connection relation between the ship end nodes are displayed on a visual map.
B4: and updating the initial network topology graph according to the connection state identification and the target topology relationship to obtain a target network topology graph.
In this embodiment, according to the target topology relationship, a specific connection relationship between a shore end node and a ship end node in the initial network topology is updated, for example, a transit node between the shore end node and the ship end node is added, and a ship end node connection status identifier is added in the initial network topology.
B5: based on the target network topology, network communications are maintained with each of the ship end nodes within the ad hoc network.
In this embodiment, as shown in fig. 4.1, the solid line represents a strong connection and the broken line represents a weak connection. The shore ends are strongly connected with the ship end (1) and the ship end (2), which means that the communication quality is better, and the communication quality between the shore ends and the ship end (3) is poor. By defining the connection state of the ship end nodes and the specific connection relation between the ship end nodes and the shore end nodes in the network topology diagram, the shore end nodes can accurately learn the conditions of the ship end nodes, and the reliability of network communication maintenance of all the ship end nodes in the ad hoc network can be improved.
As a possible implementation manner of the present application, fig. 5 shows a specific implementation flow of maintaining network communications of each ship end node in the ad hoc network based on the connection state in the method embodiment provided by the embodiment of the present application, which is described in detail below:
c1: and if the ship end node is in a strong connection state, carrying out network communication with the ship end node based on the strong connection state.
C2: and if the ship end node is in a weak connection state, indicating the ship end node to update the route.
In the embodiment of the application, for the ship end node in a strong connection state, the ship end node and the shore end node are normally communicated, and the shore end node can continuously send a request to the ship end node. For a ship end node in a weak connection state, this means that the ship end node is not completely disconnected from a shore end node, and communication can be performed, but the communication is unstable. To avoid dead halt of the ship end node in the weak connection state caused by excessive communication pressure, the shore end node indicates the ship end node in the weak connection state to update the route.
As a possible implementation manner of the present application, fig. 5.1 shows a specific implementation flow of the update route of the end node if the end node is in a weak connection state, which is described in detail below:
d1: and sending a distance signal-to-noise ratio request instruction to a target ship end node, wherein the target ship end node is a ship end node in a weak connection state, and the distance signal-to-noise ratio request instruction is used for acquiring the distance between the target ship end node and other ship end nodes in the ad hoc network and the signal-to-noise ratio information.
In this embodiment, according to the position information of the target ship end node, the distance between the target ship end node and the shore end node is determined, and the signal-to-noise ratio information of the shore end node and all the ship end nodes can be obtained by sending a "ddtctype=1" instruction to the "/boafrm/formDRPRMonitor" interface at the rear end of the host machine by the shore end node, and then the signal-to-noise ratio information corresponding to the target ship end node is screened out from the signal-to-noise ratio information according to the connection state.
D2: and determining the optimal link of the ship end node in the weak connection state based on the acquired distance and signal-to-noise ratio information.
The ship end node may be connected to the shore end node by various other ship end node transit connections, and there may be more than one communication link between the ship end node and the shore end node. The shore end node can determine an optimal link for the ship end node according to the topological connection relation of the ship end node and the position information of the ship end node. The optimal link refers to a link with relatively optimal signal strength among a plurality of communication links between the ship end node and the shore end node.
In this embodiment, the distances and signal-to-noise ratio information between the target ship end node and the rest ship end nodes in the ad hoc network are compared, if the distances are close (the distance difference is within the preset distance difference range), the signal strength with high signal-to-noise ratio is better, and if the signal-to-noise ratio is close (the signal-to-noise ratio difference is within the preset signal-to-noise ratio difference range), the signal strength is better when the distances are close. If the distance and the signal-to-noise ratio are not similar, the link with higher signal-to-noise ratio is preferably selected as the optimal link.
D3: and sending a route update instruction to the ship end node in the weak connection state, wherein the route update instruction is used for indicating the ship end node in the weak connection state to update a route according to the optimal link.
In the embodiment of the application, in order to ensure that all the ship end nodes in the ad hoc network can stably communicate, the shore end node indicates an update route to the ship end node in a weak connection state, and the communication signal strength of the ship end node and the shore end node is improved through the update route so as to ensure the normal communication of the ship end node.
As a possible implementation manner of the present application, as shown in fig. 6, after the sending a route update instruction to the end node in the weak connection state, the method further includes:
E1: and re-sending the topology information request instruction to the target ship end node.
E2: and monitoring second topology information fed back by the target ship end node aiming at the retransmitted topology information request instruction. The second topology information includes the location and routing information of the ship end node after updating the route.
E3: and determining the current connection state of the target ship end node according to the monitoring result of the second topology information. The determination of the connection state refers to the foregoing steps A1-A3, and is not described here in detail.
E4: and if the current connection state of the target ship end node is changed into a strong connection state, carrying out network communication with the target ship end node based on the strong connection state.
When the ship end node changes to a strong connection state, the ship end node is in normal communication with the shore end node, and the shore end node can continue to send requests to the ship end node.
As a possible implementation manner of the present application, as shown in fig. 7, the method for maintaining network communication of an ad hoc network device provided by the embodiment of the present application further includes:
f1: and when the connection state of the ship end nodes is in an offline state, acquiring a second node information list, wherein the second node information list comprises the node information of each ship end node in the current ad hoc network.
In this embodiment, when the connection state of the ship end nodes is in an offline state, the shore end nodes send information requests to the local back end again, acquire information of all the ship end nodes in the ad hoc network again, and construct a second node information list based on the acquired information of the ship end nodes again.
F2: and refreshing the target network topological graph according to the node information in the second node information list.
Illustratively, when the connection state of the ship end node is in an offline state, an "at≡dsonipnn=3" instruction is retransmitted to acquire node information and refresh a topology map.
In this embodiment, by re-acquiring node information, re-determining nodes in the ad hoc network, and refreshing the network topology, the accuracy of the network topology can be improved, and the accuracy of the optimization of the ad hoc network topology can be improved.
In the embodiment of the application, the shore end node monitors the first topology information fed back by each ship end node in the ad hoc network aiming at the topology information request instruction by sending the topology information request instruction to each ship end node in the ad hoc network, then determines the connection state of each ship end node in the ad hoc network in time according to the monitoring result of the first topology information, and then maintains the network communication of each ship end node in the ad hoc network based on the connection state. According to the scheme of the application, the network communication of each ship end node can be maintained in time after the communication state is determined, so that the phenomenon that the network communication of the self-networking equipment is stable due to the fact that the communication pressure of the ship end node equipment is overlarge as a result of continuously sending a request to the ship end node can be avoided.
It should be understood that the sequence numbers of the steps in the foregoing embodiments do not mean the order of execution, and the execution order of the processes should be determined by the functions and the internal logic, and should not be construed as limiting the implementation process of the embodiments of the present application.
Fig. 8 is a block diagram of a network communication maintenance device of an ad hoc network device according to an embodiment of the present application, and for convenience of explanation, only the portions related to the embodiment of the present application are shown.
Referring to fig. 8, the apparatus is applied to a smart device, and the apparatus includes: an information requesting unit 81, a monitoring unit 82, a status determining unit 83, a communication maintaining unit 84, wherein:
an information request unit 81, configured to send a topology information request instruction to each ship end node in the ad hoc network;
the monitoring unit 82 is configured to monitor first topology information fed back by each ship end node in the ad hoc network for the topology information request instruction;
a state determining unit 83, configured to determine a connection state of each ship end node in the ad hoc network according to the monitoring result of the first topology information;
a communication maintenance unit 84, configured to maintain network communication of each ship end node in the ad hoc network based on the connection status.
As a possible embodiment of the present application, the above-described state determining unit 83 includes:
the first state determining module is used for determining that the ship end node is in a strong connection state if the first topology information fed back by the ship end node is monitored in a first time length range;
the second state determining module is used for determining that the ship end node is in a weak connection state if the first topology information fed back by the ship end node is monitored within a second duration range; the minimum value of the second time length range is larger than the maximum value of the first time length range;
and the third state determining module is used for determining that the ship end node is in an offline state if the first topology information fed back by the ship end node is not monitored within the second duration range.
As a possible embodiment of the present application, the communication maintenance unit 84 includes:
the first communication module is used for carrying out network communication with the ship end node based on the strong connection state if the ship end node is in the strong connection state;
and the second communication module is used for indicating the ship end node to update the route if the ship end node is in a weak connection state.
As a possible embodiment of the present application, the second communication module includes:
The target information acquisition sub-module is used for sending a distance signal-to-noise ratio request instruction to a target ship end node, wherein the target ship end node is a ship end node in a weak connection state, and the distance signal-to-noise ratio request instruction is used for acquiring the distance between the target ship end node and other ship end nodes in the ad hoc network and the signal-to-noise ratio information;
an optimal link determining sub-module, configured to determine an optimal link of the ship end node in a weak connection state based on the obtained distance and signal-to-noise ratio information;
and the route update instruction sub-module is used for sending a route update instruction to the ship end node in the weak connection state, wherein the route update instruction is used for instructing the ship end node in the weak connection state to update the route according to the optimal link.
As a possible embodiment of the present application, the second communication module further includes:
a request resending sub-module, configured to resend the topology information request instruction to the target ship end node;
the topology information monitoring sub-module is used for monitoring second topology information fed back by the target ship end node aiming at the retransmitted topology information request instruction;
the current state determining submodule is used for determining the current connection state of the target ship end node according to the monitoring result of the second topology information;
And the target communication sub-module is used for carrying out network communication with the target ship end node based on the strong connection state if the current connection state of the target ship end node is changed into the strong connection state.
As a possible embodiment of the present application, the above-mentioned information requesting unit 81 includes:
the first list acquisition module is used for acquiring a first node information list, wherein the first node information list comprises node information of all ship end nodes in the initial ad hoc network;
and the information request unit module is used for sending a topology information request instruction to each ship end node in the ad hoc network based on the first node information list.
The communication maintenance unit 84 includes:
the initial topology construction module is used for constructing an initial network topology graph according to the node information in the first node information list, wherein the initial network topology graph comprises initial topology relations between the shore end nodes and ship end nodes in the ad hoc network;
the first identification determining module is used for determining a connection state identification corresponding to the ship end node based on the connection state;
the target topological relation acquisition module is used for acquiring a target topological relation according to the first topological information fed back by each ship end node, wherein the target topological relation comprises the topological relation among the ship end nodes in the ad hoc network;
The target topology establishing module is used for updating the initial network topology graph according to the connection state identification and the target topology relationship to obtain a target network topology graph;
and the network communication maintenance module is used for maintaining network communication with all ship end nodes in the ad hoc network based on the target network topological graph.
As a possible implementation manner of the present application, the network communication maintenance device of the above-mentioned ad hoc network device further includes:
a second list obtaining unit, configured to obtain a second node information list when the connection state of the ship end nodes is in an offline state, where the second node information list includes node information of each ship end node in the current ad hoc network;
and the topology map refreshing unit is used for refreshing the target network topology map according to the node information in the second node information list.
In the embodiment of the application, the shore end node monitors the first topology information fed back by each ship end node in the ad hoc network aiming at the topology information request instruction by sending the topology information request instruction to each ship end node in the ad hoc network, then determines the connection state of each ship end node in the ad hoc network in time according to the monitoring result of the first topology information, and then maintains the network communication of each ship end node in the ad hoc network based on the connection state. According to the scheme of the application, the network communication of each ship end node can be maintained in time after the communication state is determined, so that the phenomenon that the network communication of the self-networking equipment is stable due to the fact that the communication pressure of the ship end node equipment is overlarge as a result of continuously sending a request to the ship end node can be avoided.
The embodiment of the present application also provides a computer readable storage medium storing a computer program, where the computer program when executed by a processor implements the steps of a network communication maintenance method of any one of the ad hoc network devices shown in fig. 1 to 7.
The embodiment of the application also provides an intelligent device, which comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the steps of the network communication maintenance method of any one of the self-networking devices shown in fig. 1 to 7 are realized when the processor executes the computer program.
The embodiment of the present application also provides a computer program product, which when run on a terminal device, causes the terminal device to perform the steps of implementing a network communication maintenance method of any one of the ad hoc network devices as shown in fig. 1 to 7.
Fig. 9 is a schematic diagram of an intelligent device according to an embodiment of the present application. As shown in fig. 9, the smart device 9 of this embodiment includes: a processor 90, a memory 91 and a computer program 92 stored in said memory 91 and executable on said processor 90. The processor 90, when executing the computer program 92, implements the steps in the embodiments of the network communication maintenance method of the respective ad hoc network devices described above, such as steps S101 to S104 shown in fig. 1. Alternatively, the processor 90, when executing the computer program 92, performs the functions of the modules/units of the apparatus embodiments described above, such as the functions of the units 71-74 shown in fig. 7.
The computer program 92 may be divided into one or more modules/units, which are stored in the memory 91 and executed by the processor 90 to complete the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions describing the execution of the computer program 92 in the smart device 9.
The processor 90 may be a central processing unit (Central Processing Unit, CPU), other general purpose processor, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 91 may be an internal storage unit of the smart device 9, such as a hard disk or a memory of the smart device 9. The memory 91 may also be an external storage device of the Smart device 9, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the Smart device 9. Further, the memory 91 may also include both an internal storage unit and an external storage device of the smart device 9. The memory 91 is used for storing the computer program and other programs and data required by the smart device. The memory 91 may also be used for temporarily storing data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, the specific names of the functional units and modules are only for distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above device may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another apparatus, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the computer readable medium may include content that is subject to appropriate increases and decreases as required by jurisdictions in which such content is subject to legislation and patent practice, such as in certain jurisdictions in which such content is not included as electrical carrier signals and telecommunication signals.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (10)

1. A method for maintaining network communications of an ad hoc network device, the method being applied to a shore end node in an ad hoc network, the method comprising:
sending a topology information request instruction to each ship end node in the ad hoc network;
monitoring first topology information fed back by each ship end node in the ad hoc network aiming at the topology information request instruction;
determining the connection state of each ship end node in the ad hoc network according to the monitoring result of the first topology information;
and maintaining network communication of each ship end node in the ad hoc network based on the connection state.
2. The method of claim 1, wherein determining the connection status of each ship end node in the ad hoc network according to the monitoring result of the first topology information comprises:
If the first topology information fed back by the ship end node is monitored in the first time length range, determining that the ship end node is in a strong connection state;
if the first topology information fed back by the ship end node is monitored within the second duration range, determining that the ship end node is in a weak connection state; the minimum value of the second time length range is larger than the maximum value of the first time length range;
and if the first topology information fed back by the ship end node is not monitored within the second duration range, determining that the ship end node is in an offline state.
3. The method of claim 1, wherein maintaining network communications for each ship end node within the ad hoc network based on the connection status comprises:
if the ship end node is in a strong connection state, carrying out network communication with the ship end node based on the strong connection state;
and if the ship end node is in a weak connection state, indicating the ship end node to update the route.
4. The method of claim 3, wherein the instructing the end node to update the route if the end node is in a weakly connected state comprises:
a distance signal-to-noise ratio request instruction is sent to a target ship end node, wherein the target ship end node is a ship end node in a weak connection state, and the distance signal-to-noise ratio request instruction is used for acquiring the distance between the target ship end node and other ship end nodes in the ad hoc network and the signal-to-noise ratio information;
Determining an optimal link of the ship end node in the weak connection state based on the acquired distance and signal-to-noise ratio information;
and sending a route update instruction to the ship end node in the weak connection state, wherein the route update instruction is used for indicating the ship end node in the weak connection state to update a route according to the optimal link.
5. The method of claim 4, further comprising, after said sending a route update instruction to said end-of-ship node in a weakly connected state:
re-sending the topology information request instruction to the target ship end node;
monitoring second topology information fed back by the target ship end node aiming at the retransmitted topology information request instruction;
determining the current connection state of the target ship end node according to the monitoring result of the second topology information;
and if the current connection state of the target ship end node is changed into a strong connection state, carrying out network communication with the target ship end node based on the strong connection state.
6. The method as claimed in any one of claims 1 to 5, wherein said sending topology information request instructions to each of the end nodes in the ad hoc network comprises:
Acquiring a first node information list, wherein the first node information list comprises node information of all ship end nodes in an initial ad hoc network;
based on the first node information list, sending a topology information request instruction to each ship end node in the ad hoc network;
based on the connection state, maintaining network communication of each ship end node in the ad hoc network, including:
constructing an initial network topology graph according to the node information in the first node information list, wherein the initial network topology graph comprises initial topological relations between the shore end nodes and all ship end nodes in the ad hoc network;
determining a connection state identifier corresponding to the ship end node based on the connection state;
acquiring a target topological relation according to the first topological information fed back by each ship end node, wherein the target topological relation comprises the topological relation among the ship end nodes in the ad hoc network;
updating the initial network topology graph according to the connection state identification and the target topology relationship to obtain a target network topology graph;
based on the target network topology, network communications are maintained with each of the ship end nodes within the ad hoc network.
7. The method of claim 6, wherein the method further comprises:
When the connection state of the ship end nodes is in an offline state, acquiring a second node information list, wherein the second node information list comprises the node information of each ship end node in the current ad hoc network;
and refreshing the target network topological graph according to the node information in the second node information list.
8. A network communication maintenance apparatus for an ad hoc network device, the apparatus being applied to a shore end node in an ad hoc network, the apparatus comprising:
the information request unit is used for sending topology information request instructions to all ship end nodes in the ad hoc network;
the monitoring unit is used for monitoring first topology information fed back by each ship end node in the ad hoc network aiming at the topology information request instruction;
the state determining unit is used for determining the connection state of each ship end node in the ad hoc network according to the monitoring result of the first topology information;
and the communication maintenance unit is used for maintaining network communication of each ship end node in the ad hoc network based on the connection state.
9. A smart device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor, when executing the computer program, implements the steps of the network communication maintenance method of an ad hoc network device according to any one of claims 1 to 7.
10. A computer readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the steps of the network communication maintenance method of an ad hoc network device according to any one of claims 1 to 7.
CN202310861457.0A 2023-07-13 2023-07-13 Network communication maintenance method and device of ad hoc network equipment and intelligent equipment Pending CN116866971A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310861457.0A CN116866971A (en) 2023-07-13 2023-07-13 Network communication maintenance method and device of ad hoc network equipment and intelligent equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310861457.0A CN116866971A (en) 2023-07-13 2023-07-13 Network communication maintenance method and device of ad hoc network equipment and intelligent equipment

Publications (1)

Publication Number Publication Date
CN116866971A true CN116866971A (en) 2023-10-10

Family

ID=88233796

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310861457.0A Pending CN116866971A (en) 2023-07-13 2023-07-13 Network communication maintenance method and device of ad hoc network equipment and intelligent equipment

Country Status (1)

Country Link
CN (1) CN116866971A (en)

Similar Documents

Publication Publication Date Title
EP2519037B1 (en) Method and network for sharing sensor data among mobile terminals
CN109450664B (en) Data cooperative processing method and device based on block chain P2P network
CN112468372B (en) Method and device for detecting equipment state in power line communication network
CN110808948B (en) Remote procedure calling method, device and system
CN109121096B (en) Method and apparatus for determining broadcast nodes in a mesh network
CN111132257B (en) C-V2X communication method and device
CN111148176B (en) Routing method and device for wireless ad hoc network
CN111884875A (en) Offline device determination method and device
CN108667640B (en) Communication method and device, and network access system
CN116866971A (en) Network communication maintenance method and device of ad hoc network equipment and intelligent equipment
CN111385117B (en) Method, device and system for alarming
CN109788075B (en) Private network system, data acquisition method and edge server
CN112866013B (en) Network configuration method, device and system
CN113595828B (en) Software defined network topology detection method and system
WO2007102096A1 (en) Message distribution in a communication network
CN113612636A (en) Software defined network topology discovery method and system
CN110493141B (en) Route forwarding transmission control method, device, equipment and storage medium
CN116962280A (en) Ad hoc network topology information optimization method, system, intelligent device and storage medium
CN113059569A (en) Multi-terminal interaction method, device and system
CN116366499B (en) Data transmission method, device, electronic equipment and medium
CN112822105A (en) Path planning method and device and data transmission system
CN114866170B (en) Wireless network ad hoc network method and system
CN117240851B (en) Data distribution method, device, equipment and storage medium
CN110519339B (en) Device connection method, device, system and storage medium
CN111865776B (en) Path creation method, device, system and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination