[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

WO2023273241A1 - Networking communication method and system, and node device, storage medium and electronic device - Google Patents

Networking communication method and system, and node device, storage medium and electronic device Download PDF

Info

Publication number
WO2023273241A1
WO2023273241A1 PCT/CN2021/141101 CN2021141101W WO2023273241A1 WO 2023273241 A1 WO2023273241 A1 WO 2023273241A1 CN 2021141101 W CN2021141101 W CN 2021141101W WO 2023273241 A1 WO2023273241 A1 WO 2023273241A1
Authority
WO
WIPO (PCT)
Prior art keywords
node device
node
message
receiving
information
Prior art date
Application number
PCT/CN2021/141101
Other languages
French (fr)
Chinese (zh)
Inventor
徐小明
Original Assignee
广州慧睿思通科技股份有限公司
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 广州慧睿思通科技股份有限公司 filed Critical 广州慧睿思通科技股份有限公司
Publication of WO2023273241A1 publication Critical patent/WO2023273241A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/12Shortest path evaluation
    • H04L45/122Shortest path evaluation by minimising distances, e.g. by selecting a route with minimum of number of hops
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or 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

Definitions

  • the present disclosure generally relates to the computer field, and more specifically relates to a networking communication method, system, node device, storage medium and electronic device.
  • the walkie-talkie is a common communication device in daily life.
  • the communication process of the walkie-talkie because the communication distance of the walkie-talkie is limited, if the distance between the walkie-talkies exceeds the communication distance, the communication cannot be carried out. Therefore, ad hoc networks emerged as the times require.
  • the goal of ad hoc networks is to achieve fast, accurate, and efficient networking. It is required to find accurate and available routing information in the shortest possible time and be able to adapt to rapid changes in network topology.
  • each node in the ad hoc network cannot know the connection relationship of other nodes, and if a key node is disconnected, effective communication cannot be performed.
  • the present disclosure relates to a network communication method, which is applied to a first node device, and the method includes: when sending a message to a second node device in the same network, the local route of the first node device Filling the node information in the table into the message; and determining a receiving node device according to the node information in the local routing table of the first node device, and sending the message to the receiving node device, so that the The receiving node device performs the following operations until the receiving node device is the second node device: when the receiving node device is the third node device in the same network, the local routing table of the receiving node device The node information of the received node device is added to the message, and the next node device is determined according to the node information in the local routing table of the receiving node device, the updated message is sent to the next node device, and the The next node device described above is determined as the new receiving node device.
  • the node information includes adjacent node devices and corresponding hop values, where the hop value is the number of hops from the adjacent node devices to the second node device, according to the first
  • the node information in the local routing table of a node device determines the receiving node device includes: determining the node device with the smallest hop value from the adjacent node devices of the first node device; determining the node device with the smallest hop value from the node device with the smallest hop value determining the node device with the highest signal strength; and determining the determined node device with the highest signal strength as the receiving node device.
  • filling the node information of the first node device into the message or supplementing the node information of the receiving node device into the message includes: writing the node information into the In the node information flag bit of the above message.
  • the message is a GPS short message
  • the source address flag and the target address flag in the GPS short message each occupy 1 byte
  • the node information flag occupies at most 8 bytes .
  • the method further includes: filling the node address of the first node device into the sending address flag of the message, so that the receiving node device Filling the node address of the receiving node device into the receiving address set flag bit of the message to form the transmission path information of the message.
  • the networking mode of the networking is narrowband communication ad hoc network.
  • the narrowband communication ad hoc network includes at least two node devices, each node device sends broadcast tokens in turn, and the node device that receives the broadcast token sends the broadcast token
  • the source address information and the hop value are stored in the local routing table, wherein the hop value is the number of hops from the node device sending the broadcast token to the second node device.
  • the present disclosure relates to a network communication method, which is applied to a receiving node device.
  • the method includes: receiving a message sent by a first node device in the same network; the message is sent by the first node device to the same sent by the second node device in the networking, the message includes the node information in the local routing table of the first node device; perform the following operations on the receiving node device until the receiving node device is the first node device
  • Two-node device when the receiving node device is the third node device in the same network, add the node information in the local routing table of the receiving node device to the message, and according to the information of the receiving node device
  • the node information in the local routing table determines the next node device, and sends the updated message to the next node device, so that the next node device is determined as a new receiving node device.
  • the node information includes a hop value of an adjacent node, where the hop value is the number of hops from the adjacent node device to the second node device, and the The node information in the local routing table determines the next node device, including: determining the node device with the smallest hop value from the adjacent node devices of the receiving node device; determining the node device with the smallest hop value from the node device with the smallest hop value The node device with the highest signal strength; determining the determined node device with the highest signal strength as the receiving node device.
  • adding node information in the local routing table of the receiving node device to the message includes: writing the node information into a node information flag bit of the message.
  • the message is a GPS short message
  • the source address flag and the target address flag in the GPS short message each occupy 1 byte
  • the node information flag occupies at most 8 bytes .
  • the message further includes the node address of the first node device in the sending address flag; the method further includes: after receiving the message, sending the node address of the receiving node device to The node address is filled into the receiving address set flag bit of the message to form the transmission path information of the message.
  • the networking mode of the networking is narrowband communication ad hoc network.
  • the narrowband communication ad hoc network includes at least two node devices, each node device sends broadcast tokens in turn, and the node device that receives the broadcast token sends the broadcast token
  • the source address information and the hop value are stored in the local routing table, wherein the hop value is the number of hops from the node device sending the broadcast token to the second node device.
  • the present disclosure also relates to a first node device, which includes: a first filling unit configured to, when sending a message to a second node device in the same network, add the local routing table of the first node device to Fill in the node information in the message; and, the determining unit is configured to determine the receiving node device according to the node information in the local routing table of the first node device, and send the message to the receiving node device, so that the receiving node device performs the following operations until the receiving node device is the second node device: when the receiving node device is the third node device in the same network, the receiving node device The node information in the local routing table of the receiving node device is added to the message, and the next node device is determined according to the node information in the local routing table of the receiving node device, and the updated message is sent to the next node device device, and determine the next node device as a new receiving node device.
  • a first filling unit configured to, when sending a message to a second no
  • the node information includes adjacent node devices and corresponding hop values, where the hop value is the number of hops from the adjacent node devices to the second node device
  • the determining unit includes: The first determination module is configured to determine the node device with the smallest hop value from the adjacent node devices of the first node device; the second determination module is configured to determine the node device with the smallest hop value from the node devices with the smallest hop value a node device with the highest signal strength; and a third determining module configured to determine the determined node device with the highest signal strength as the receiving node device.
  • the first node device is further configured to: when filling the node information of the first node device into the message or adding the node information of the receiving node device to the message , write the node information into the node information flag bit of the message.
  • the message is a GPS short message
  • the source address flag and the target address flag in the GPS short message each occupy 1 byte
  • the node information flag occupies at most 8 bytes .
  • the first node device further includes: a second filling unit, configured to fill the node address of the first node into the sending address flag of the message, so that the After receiving the message, the receiving node fills the node address of the receiving node into the receiving address set flag of the message, so as to form the transmission path information of the message.
  • a second filling unit configured to fill the node address of the first node into the sending address flag of the message, so that the After receiving the message, the receiving node fills the node address of the receiving node into the receiving address set flag of the message, so as to form the transmission path information of the message.
  • the networking mode of the networking is narrowband communication ad hoc network.
  • the narrowband communication ad hoc network includes at least two nodes, and each node sends a broadcast token in turn, and the node that receives the broadcast token sends the source address information in the broadcast token to and the hop value are stored in the local routing table, wherein the hop value is the number of hops from the node sending the broadcast token to the second node.
  • the present disclosure also relates to a receiving node device, which includes: a receiving unit configured to receive a message sent by a first node device in the same network; the message is sent by the first node device to a node in the same network Sent by the second node device, the message includes node information in the local routing table of the first node device; the processing unit is configured to perform the following operations on the receiving node device until the receiving node device is the Second node device: when the receiving node device is the third node device in the same network, add the node information in the local routing table of the receiving node device to the message, and according to the receiving node device The node information in the local routing table determines the next node device, and sends the updated message to the next node device, so that the next node device is determined as a new receiving node device.
  • the node information includes a hop value of an adjacent node, the hop value is the number of hops from the adjacent node device to the second node device
  • the processing unit includes: a first determination A module configured to determine the node device with the smallest hop value from the adjacent node devices of the receiving node device; a second determination module configured to determine the node device with the largest signal strength from the node devices with the smallest hop value A node device; a third determining module configured to determine the determined node device with the highest signal strength as the receiving node device.
  • the processing unit includes: a writing module configured to write the node information into a node information flag bit of the message.
  • the message is a GPS short message
  • the source address flag and the target address flag in the GPS short message each occupy 1 byte
  • the node information flag occupies at most 8 bytes .
  • the message further includes the node address of the first node in the sending address flag; the device further includes: a filling unit configured to, after receiving the message, send the The node address of the receiving node is filled into the receiving address set flag bit of the message to form the transmission path information of the message.
  • the networking mode of the networking is narrowband communication ad hoc network.
  • the narrowband communication ad hoc network includes at least two nodes, and each node sends a broadcast token in turn, and the node that receives the broadcast token sends the source address information in the broadcast token to and the hop value are stored in the local routing table, wherein the hop value is the number of hops from the node sending the broadcast token to the second node.
  • the present disclosure also relates to a storage medium, in which a computer program is stored, wherein the computer program is configured to execute the networking communication method of the present disclosure when running.
  • the present disclosure also relates to electronic equipment, which includes a memory and a processor, the memory is configured to store a computer program, and the processor is configured to execute the above-mentioned networking communication method through the computer program.
  • the present disclosure also relates to a networked communication system, which includes the first node device of the present disclosure and the receiving node device of the present disclosure.
  • the present disclosure adopts the method of filling the message with the node information in the local routing table of the first node device when sending the message to the second node device in the same network; and Determine the receiving node device according to the node information in the local routing table of the first node device, and send the message to the receiving node device, so that the receiving node device performs the following operations until the receiving node device
  • the second node device when the receiving node device is a third node device in the same network, add the node information in the local routing table of the receiving node device to the message, and according to the The method of determining the next node device according to the node information in the local routing table of the receiving node device, sending the updated message to the next node device, and determining the next node device as a new receiving node device , because in the above method, when sending a message between node devices in the same network, the node information of the receiving node device will be written into the message, and the receiving node device will be determined according
  • FIG. 1 is a flowchart of a networking communication method provided by an embodiment of the present disclosure
  • FIG. 2 is a schematic diagram of a network topology of a networking communication method provided by an embodiment of the present disclosure
  • FIG. 3 is a schematic diagram of sending a broadcast token in a networking communication method provided by an embodiment of the present disclosure
  • FIG. 4 is a schematic diagram of time slots of a networking communication method provided by an embodiment of the present disclosure.
  • FIG. 5 is a flowchart of a networking communication method provided by an embodiment of the present disclosure.
  • FIG. 6 is a flowchart of a networking communication method provided by an embodiment of the present disclosure.
  • FIG. 7 is a schematic diagram of configuring routing information and forwarding information of a networking communication method provided by an embodiment of the present disclosure
  • FIG. 8 is a schematic diagram of a local routing table of a networking communication method provided by an embodiment of the present disclosure.
  • FIG. 9 is a flowchart of a networking communication method provided by an embodiment of the present disclosure.
  • FIG. 10 is a schematic structural diagram of a first node device provided by an embodiment of the present disclosure.
  • FIG. 11 is a schematic structural diagram of a receiving node device provided by an embodiment of the present disclosure.
  • FIG. 12 is a schematic structural diagram of a networking communication system provided by an embodiment of the present disclosure.
  • Fig. 13 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.
  • the present disclosure relates to a networking communication method, which is applied to a first node device, as shown in FIG. 1 , the above method includes:
  • S104 Determine a receiving node device according to the node information in the local routing table of the first node device, and send the message to the receiving node device, so that the receiving node device performs the following operations until the receiving
  • the node device is the second node device: when the receiving node device is the third node device in the same network, the node information in the local routing table of the receiving node device is added to the message, and according to The node information in the local routing table of the receiving node device determines the next node device, sends the updated message to the next node device, and determines the next node device as a new receiving node device .
  • the same network can be a network formed by multiple mobile communication terminals.
  • Each mobile communication terminal among multiple mobile communication terminals can be used as a node, and its location can be moved.
  • the mobile communication terminal may be a mobile phone, a tablet computer, a walkie-talkie, and the like.
  • the communication distance of the mobile communication terminal is limited, and the distance between two mobile communication terminals is too far, beyond the direct communication distance (the direct communication distance of the walkie-talkie is 5 kilometers), then they can communicate by setting up the same network. It can be understood that, when the first node device can directly send the message to the second node device, the second node device receives the message and acquires the node information in the message.
  • the first node device is different from the second node device
  • the third node device is different from the first node device and the second node device, that is, the first node device, the second node device and the third node device are respectively different node devices.
  • a total of 6 walkie-talkies from A to F are taken as an example, as shown in FIG. 2 .
  • Fig. 2 is an optional network topology diagram.
  • the node device is assumed to be a walkie-talkie, and the circle is the coverage of the walkie-talkie, that is, the effective direct communication distance.
  • B, C, D are within the coverage of A
  • A, D, E are within the coverage of C
  • C, D, F are within the coverage of E
  • E are within the coverage of F
  • E are within the coverage of F
  • E F are within the coverage of A out of coverage.
  • the distance between A and F is too far beyond the direct communication distance, therefore, the communication between A and F can be realized through an ad hoc network.
  • Fig. 3 is a schematic diagram of transmitting broadcast tokens according to time sequence.
  • SLOT1 is time slot 1
  • SLOT2 is time slot 2.
  • Node A broadcasts data in time slot 1, sends A's broadcast token in time slot 2, and B, C, D, E, and F all send broadcast tokens in time slot 2.
  • Nodes A to F send broadcast tokens in different time slots 2, and each sending once is a period, so as to realize the networking in this way.
  • FIG. 4 is a schematic diagram of a node A device broadcasting a GPS short message in time slot 1.
  • FIG. 4 in time slot 1 of different frames, PRE_CSBK1, PRE_CSBK2, GPS DATA_HEADER, GPS DATA_BLOCK and GPS DATA_Lastblock are broadcast in sequence.
  • the message may be a GPS short message, further a GPS short message in the DMR protocol. It can be understood that the message may also be other messages than the GPS short message.
  • the first node device may send communication data to the second node device through the receiving node device.
  • the first node device may send the location information of the first node device to the second node device.
  • the node information of the first node device may be filled into the address information, and the message is sent to the receiving node device.
  • the receiving node device fills the node information of the receiving node device into the location information.
  • the node address of the receiving node device is filled in the location information, and any receiving node device can be selected to forward the location information.
  • the location information is forwarded by the receiving node device to the second node device.
  • the node information includes adjacent node devices and corresponding hop values, where the hop value is the number of hops from the adjacent node devices to the second node device.
  • the determining the receiving node device according to the node information in the local routing table of the first node device includes:
  • the node device with the smallest hop value can be determined first, and then the node device with the highest signal strength can be determined as the first node device receiving node device.
  • the above-mentioned hop value indicates the number of hops from the adjacent node device to the second node device.
  • the number of hops refers to the number of forwarding node devices required for a node device to reach a second node device.
  • Node device F to node device A needs to be forwarded by node devices E and D, so the number of hops from node device F to node device A is 2.
  • the hop value represents the minimum number of hops from the neighboring node device to the second node device.
  • the adjacent node devices are other node devices within the communication coverage of a certain node device.
  • the adjacent node devices of node device A are node devices within the coverage of node device A B, C, D, that is, node devices B, C, and D are adjacent node devices of node device A.
  • filling the node information of the first node device into the message or supplementing the node information of the receiving node device into the message includes: writing the node information into the In the node information flag bit of the above message.
  • the message is a GPS short message
  • the source address flag and the target address flag in the GPS short message each occupy 1 byte
  • the node information flag occupies at most 8 bytes .
  • the GPS short message when the node address is filled in the GPS short message, the GPS short message includes an active address flag and a target address flag, and the source address flag and the target address flag in this embodiment
  • the size of each occupies one byte of the GPS short message, and the node information flag of the node occupies at most 8 bytes of the GPS short message.
  • the source address flag and the target address flag respectively account for 3 bytes, and the source address flag and the target address flag each account for 1 byte in the present embodiment byte
  • the source address flag and the target address flag each occupy 3 bytes
  • the source address flag and the target address flag each occupy 1 byte
  • One or more bytes can be arbitrarily selected to record node information, that is, as a node information flag.
  • 8 bytes can be fully utilized, and 2 bytes are used as a group to record the node addresses of the two adjacent node devices with the highest signal strength under the corresponding hop value.
  • the first 2 bytes in PRE_CSBK1 are used as The node address flag bits of two node devices with high signal strength with a hop count of 1
  • the last 2 bytes in PRE_CSBK1 are used as the node address flag bits of two node devices with a high signal strength with a hop count of 2, occupying a total of 4 byte
  • the first 2 bytes in PRE_CSBK2 in the GPS short message are used as the node address flags of two node devices with high signal strength with a hop count of 3
  • the last 2 bytes in PRE_CSBK2 are used as the two node devices with a hop count of 4
  • the node address flag bit of the node device with high signal strength occupies 4 bytes in total.
  • the above method also includes:
  • the node address of the first node device may be filled in the sending address flag of the message, and the node address of the receiving node device may be filled in the receiving address set flag of the message.
  • the address information filled in the receiving address set flag bit of the message forms the transmission path information of the message.
  • the networking manner of the networking is a narrowband communication ad hoc network.
  • communication between the walkie-talkies is achieved through a narrowband communication ad hoc network.
  • the narrowband communication ad hoc network includes at least two node devices, each node device sends broadcast tokens in turn, and the node device that receives the broadcast token sends the broadcast token
  • the source address information and the hop value are stored in the local routing table, wherein the hop value is the number of hops from the node device sending the broadcast token to the second node device.
  • the description will be made in conjunction with the network topology in FIG. 2 above.
  • Six nodes from A to F form an ad hoc network.
  • node A can communicate with node E and node F. Since the distance between A and E or between A and F is too far beyond the direct communication distance, it can be forwarded through other nodes.
  • the communication information may be a Global Positioning System (Global Positioning System, GPS for short) short message. Define PRE_CSBK frame to deliver local route when transmitting GPS short message.
  • This embodiment defines the first PRE_CSBK frame (PRE_CSBK_1), including Target address (target address), Source address (source address), Jump 1 (the node address of the node whose jump value is 1), Jump 2 (the jump value is 2
  • the node address of the node define the second PRE_CSBK frame (PRE_CSBK_2), including Target address (target address), Source address (source address), Jump 3 (the node address of the node whose jump value is 3), Jump 4 ( The node address of the node whose hop value is 4).
  • the length of the Target address and the Source address is 3 bytes.
  • this embodiment there is only one byte (the number of nodes in the group is controlled at ⁇ 256), and the 4 bytes that are vacated are used for Fill in the Jump address.
  • this embodiment defines DATA_HEADER to transfer the forwarding relationship.
  • This embodiment defines the Forward Num field position in the DATA_HEADER as the number of forwarding times; the length of Destination (target address) and Source address (source address) is defined as one byte (the number of nodes in the group is controlled at ⁇ 256), and the empty ones
  • the 4 bytes are used to fill in the Jump address.
  • the 4 bytes are used to sequentially record the node addresses of the forwarding receiving nodes.
  • Table 1 is a table for configuring PRE_CSBK_1 in this embodiment.
  • the length of the target address Target address and the source address Source address is one byte, that is, 8 bits, and the next 4 bytes are respectively filled with the node addresses of the two nodes with the highest signal strength in the first hop Jump1 and the node addresses of the two nodes with the highest signal strength of the second jump Jump2.
  • the source address is F as an example.
  • Table 2 is a table for configuring PRE_CSBK_2 in this embodiment. As shown in Table 2, the length of the target address Target address and the source address Source address is one byte, namely 8 bits, and the remaining 4 bytes are respectively filled in the node addresses and The node addresses of the two nodes with the highest signal strength in the second hop Jump3.
  • the source address is F as an example.
  • Tables 3 to 5 are tables for configuring the DATA_HEADER of node F, node E, and node D in this embodiment.
  • the source address is F as an example, indicating that the message of node F is forwarded through node E and node D in turn.
  • Destination and Source are each 1 byte, and the remaining 4 bytes respectively record the node addresses of the nodes from the first hop to the fourth hop.
  • F sends location information to A in Table 4, the first hop is recorded as the node address of E, in Table 5, the first hop is recorded as the node address of E, and the second hop is recorded as the node address of D.
  • nodes A to F establish a network topology as shown in FIG. 2 , each node sends a broadcast token to establish a connection in the sequence shown in FIG. 3 , and each node sends GPS location information.
  • the routing information of each node is carried in PRE_CSBK, and the forwarding information is carried in DATA_HEADER. With the spread of the whole network, each node knows the location and connection relationship of other nodes, and automatically identifies the optimal path when forwarding messages.
  • the processing steps after receiving the GPS location information of node F are as follows:
  • the path will be dynamically adjusted according to the routing of each node, for example: F->E->D->A, when node D goes offline for some reason, node E will re-select the path, F- >E->C->A, to ensure reliable communication.
  • node E If the node E does not receive the heartbeat wave of the node D within the cycle period, it is judged that the node D cannot be forwarded.
  • the steps for node E to reselect the path are as follows: node E checks the routing table and finds that node C can reach node A after 0 hops; E sends a broadcast token (heartbeat wave) to node C and requests forwarding; node E sends the GPS location of node F The information is sent to node C.
  • the present disclosure also relates to a networking communication method, which is applied to a receiving node device, as shown in FIG. 9 , the method includes:
  • S902. Receive a message sent by a first node device in the same network; the message is sent by the first node device to a second node device in the same network, and the message includes the message of the first node device node information in the local routing table; and
  • S904. Perform the following operation on the receiving node device until the receiving node device is the second node device: when the receiving node device is the third node device in the same network, set the receiving node device The node information in the local routing table is added to the message, and the next node device is determined according to the node information in the local routing table of the receiving node device, and the updated message is sent to the next node device , so that the next node device is determined as a new receiving node device.
  • the same network can be a network formed by multiple mobile communication terminals.
  • Each mobile communication terminal among multiple mobile communication terminals can be used as a node, and its location can be moved.
  • the mobile communication terminal may be a mobile phone, a tablet computer, a walkie-talkie, and the like.
  • the communication distance of mobile communication terminals is limited. For example, if the distance between two mobile communication terminals is too far to exceed the direct communication distance (for example, the direct communication distance of a walkie-talkie is 5 kilometers), they can communicate by forming the same network. It can be understood that, when the first node device can directly send the message to the second node device, the second node device receives the message and acquires the node information in the message.
  • Fig. 2 is an optional network topology diagram.
  • the node device is assumed to be a walkie-talkie, and the circle is the coverage of the walkie-talkie, that is, the effective direct communication distance.
  • B, C, D are within the coverage of A
  • A, D, E are within the coverage of C
  • C, D, F are within the coverage of E
  • E are within the coverage of F
  • E, F are within the coverage of A out of coverage.
  • There is communication between C and D (not shown in the figure), and communication between C and E (not shown in the figure).
  • the distance between A and F is too far beyond the direct communication distance, therefore, the communication between A and F can be realized through an ad hoc network.
  • Fig. 3 is a schematic diagram of transmitting broadcast tokens according to time sequence.
  • SLOT1 is time slot 1
  • SLOT2 is time slot 2.
  • Node A broadcasts data in time slot 1, sends A's broadcast token in time slot 2, and B, C, D, E, and F all send broadcast tokens in time slot 2.
  • Nodes A to F send broadcast tokens in different time slots 2, and each sending once is a period, so as to realize the networking in this way.
  • Fig. 4 is a schematic diagram of an optional A-node device broadcasting a GPS short message in time slot 1.
  • PRE_CSBK1, PRE_CSBK2, GPS DATA_HEADER, GPS DATA_BLOCK and GPS DATA_Lastblock are broadcast in sequence.
  • the message may be a GPS short message, further a GPS short message in the DMR protocol. It can be understood that the message may also be other messages than the GPS short message.
  • the first node device may send communication data to the second node device through the receiving node device.
  • the first node device may send the location information of the first node device to the second node device.
  • the node information of the first node device may be filled into the address information, and the message is sent to the receiving node device.
  • the receiving node device fills the node information of the receiving node device into the location information.
  • the node address of the receiving node device is filled in the location information, and any receiving node device can be selected to forward the location information.
  • the location information is forwarded by the receiving node device to the second node device.
  • the above method can ensure that each node device can communicate effectively during the communication process, and avoid the problem that each node device cannot know the connection relationship of other nodes and cannot effectively communicate.
  • the present disclosure also relates to a first node device 1000 for implementing the above-mentioned networking communication method.
  • the first node device 1000 includes:
  • the first filling unit 1002 is configured to fill in the node information in the local routing table of the first node device into the message when sending the message to the second node device in the same networking;
  • the determining unit 1004 is configured to determine a receiving node device according to node information in the local routing table of the first node device, and send the message to the receiving node device, so that the receiving node device performs the following operations, Until the receiving node device is the second node device: when the receiving node device is the third node device in the same network, add the node information in the local routing table of the receiving node device to the message , and determine the next node device according to the node information in the local routing table of the receiving node device, send the updated message to the next node device, and determine the next node device as the new receiving node device.
  • the present disclosure also relates to the receiving node device 1100 for implementing the above-mentioned networking communication method.
  • the receiving node equipment includes:
  • the receiving unit 1102 is configured to receive a message sent by a first node device in the same network; the message is sent by the first node device to a second node device in the same network, and the message includes the first Node information in the local routing table of a node device;
  • the processing unit 1104 is configured to perform the following operation on the receiving node device until the receiving node device is the second node device: when the receiving node device is a third node device in the same network, the The node information in the local routing table of the receiving node device is added to the message, and the next node device is determined according to the node information in the local routing table of the receiving node device, and the updated message is sent to the The next node device, so that the next node device is determined as a new receiving node device.
  • the present disclosure also relates to an electronic device 1300 for implementing the above-mentioned networking communication method.
  • the electronic device may include a memory 1301 and a processor 1302.
  • the memory is configured to store a computer program
  • the processor is configured to execute the grouping of the present disclosure through the computer program. steps in the network communication method or the embodiment of the network communication method of the present disclosure.
  • the present disclosure also relates to a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, wherein the computer program is configured to execute the steps in the embodiments of the networking communication method of the present disclosure during operation.
  • the present disclosure also relates to a networked communication system 1200, which includes the first node device 1000 of the present disclosure and the receiving node device 1100 of the present disclosure.
  • the storage medium may include: a flash disk, a read-only memory (Read-Only Memory, ROM), a random access device (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
  • the integrated units in the above embodiments are realized in the form of software function units and sold or used as independent products, they can be stored in the above computer-readable storage medium.
  • the essence of the technical solution disclosed in this disclosure or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of software products, and the computer software products are stored in storage media.
  • Several instructions are included to make one or more computer devices (which may be personal computers, servers or network devices, etc.) execute all or part of the steps of the methods described in the various embodiments of the present disclosure.
  • the disclosed client may be implemented in other ways.
  • the device embodiments described above are only illustrative, for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components can be combined or can be Integrate into another system, or some features may be ignored, or not implemented.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of units or modules may be in electrical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

Landscapes

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

Abstract

Disclosed in the present application are a networking communication method and system, and a node device, a storage medium and an electronic device. The method comprises: when a message is sent to a second node device in the same network, filling the message with node information from a local routing table of a first node device; and determining a receiving node device according to the node information from the local routing table of the first node device, and sending the message to the receiving node device, so that the receiving node device executes the following operations until the receiving node device is the second node device: when the receiving node device is a third node device in the same network, supplementing the message with node information from a local routing table of the receiving node device, determining the next node device according to the node information from the local routing table of the receiving node device, sending the updated message to the next node device, and determining the next node device as a new receiving node device.

Description

组网通信方法、系统、节点设备、存储介质和电子设备Networking communication method, system, node device, storage medium and electronic device

相关申请的引用References to related applications

本公开要求于2021年6月29日向中华人民共和国国家知识产权局提交的申请号为202110725787.8,发明名称为“组网通信方法、系统、节点设备、存储介质和电子设备”的发明专利申请的全部权益,并通过引用的方式将其全部内容并入本公开。This disclosure requires the application number of 202110725787.8 submitted to the State Intellectual Property Office of the People's Republic of China on June 29, 2021, and the invention title is "networking communication method, system, node equipment, storage medium and electronic equipment". interests, and the entire contents of which are incorporated into this disclosure by reference.

领域field

本公开大体上涉及计算机领域,更具体地涉及组网通信方法、系统、节点设备、存储介质和电子设备。The present disclosure generally relates to the computer field, and more specifically relates to a networking communication method, system, node device, storage medium and electronic device.

背景background

对讲机是日常常见的通信设备,在对讲机进行通信的过程中,由于对讲机的通信距离有限,因此,如果对讲机间的距离超过了通信距离,则无法进行通信。因此,自组网应运而生,自组网的目标是实现快速、准确和高效的组网,要求在尽可能短的时间内查找到准确可用的路由信息,并能适应网络拓扑的快速变化。The walkie-talkie is a common communication device in daily life. During the communication process of the walkie-talkie, because the communication distance of the walkie-talkie is limited, if the distance between the walkie-talkies exceeds the communication distance, the communication cannot be carried out. Therefore, ad hoc networks emerged as the times require. The goal of ad hoc networks is to achieve fast, accurate, and efficient networking. It is required to find accurate and available routing information in the shortest possible time and be able to adapt to rapid changes in network topology.

概述overview

在相关技术中,如果组建自组网,则在自组网中,各个节点无法知晓其他节点的连接关系,如果一个关键节点断线则会导致无法进行有效的通信。In related technologies, if an ad hoc network is established, each node in the ad hoc network cannot know the connection relationship of other nodes, and if a key node is disconnected, effective communication cannot be performed.

第一方面,本公开涉及组网通信方法,其应用于第一节点设备,所述方法包括:在向同一组网中的第二节点设备发送消息时,将所述第一节点设备的本地路由表中的节点信息填入到所述消息中;以及根据所述第一节点设备的本地路由表中的节点信息确定接收节点设备,并将所述消息发送给所述接收节点设备,以使所述接收节点设备执行如下操作,直到所述接收节点设备为所述第二节点设备:在所述接收节点设备为同一组网中第三节点设备时,将所述接收节点设备的本地路由表中的节点信息补充到所述消息中,并根据所述接收节点设备的本地路由表中的节点信息确定下一个节点设备,将更新后的所述消息发送给所述下一个节点设备,并将所述下一个节点设备确定为新的接收节点设备。In a first aspect, the present disclosure relates to a network communication method, which is applied to a first node device, and the method includes: when sending a message to a second node device in the same network, the local route of the first node device Filling the node information in the table into the message; and determining a receiving node device according to the node information in the local routing table of the first node device, and sending the message to the receiving node device, so that the The receiving node device performs the following operations until the receiving node device is the second node device: when the receiving node device is the third node device in the same network, the local routing table of the receiving node device The node information of the received node device is added to the message, and the next node device is determined according to the node information in the local routing table of the receiving node device, the updated message is sent to the next node device, and the The next node device described above is determined as the new receiving node device.

在某些实施方案中,所述节点信息包括相邻节点设备及对应的跳数值,所述跳数值为所述相邻节点设备到达所述第二节点设备的跳数,所述根据所述第一节点设备的本地路由表中的节点信息确定接收节点设备包括:从所述第一节点设备的相邻节点设备中确定出所述跳数值最小的节点设备;从所述跳数值最小的节点设备中确定出信号强度最大的节点设备;以及将确定出的所述信号强度最大的节点设备确定为所述接收节点设备。In some implementations, the node information includes adjacent node devices and corresponding hop values, where the hop value is the number of hops from the adjacent node devices to the second node device, according to the first The node information in the local routing table of a node device determines the receiving node device includes: determining the node device with the smallest hop value from the adjacent node devices of the first node device; determining the node device with the smallest hop value from the node device with the smallest hop value determining the node device with the highest signal strength; and determining the determined node device with the highest signal strength as the receiving node device.

在某些实施方案中,将所述第一节点设备的节点信息填入到所述消息或者将所述接收节点设备的节点信息补充到所述消息中包括:将所述节点信息写入到所述消息的节点信息标志位中。In some embodiments, filling the node information of the first node device into the message or supplementing the node information of the receiving node device into the message includes: writing the node information into the In the node information flag bit of the above message.

在某些实施方案中,所述消息为GPS短消息,所述GPS短消息中 的源地址标志位和目标地址标志位各占1个字节,所述节点信息标志位至多占8个字节。In some embodiments, the message is a GPS short message, the source address flag and the target address flag in the GPS short message each occupy 1 byte, and the node information flag occupies at most 8 bytes .

在某些实施方案中,所述方法还包括:将所述第一节点设备的节点地址填入到所述消息的发送地址标志位中,以使所述接收节点设备在接收到所述消息后将所述接收节点设备的节点地址填入到所述消息的接收地址集标志位中,以形成所述消息的传输路径信息。In some embodiments, the method further includes: filling the node address of the first node device into the sending address flag of the message, so that the receiving node device Filling the node address of the receiving node device into the receiving address set flag bit of the message to form the transmission path information of the message.

在某些实施方案中,所述组网的组网方式为窄带通信自组网。In some embodiments, the networking mode of the networking is narrowband communication ad hoc network.

在某些实施方案中,所述窄带通信自组网包括至少两个节点设备,每一个节点设备依次发送广播令牌,由接收到所述广播令牌的节点设备将所述广播令牌中的源地址信息和跳数值保存到本地路由表中,其中,所述跳数值为发送所述广播令牌的节点设备到达所述第二节点设备的跳数。In some implementations, the narrowband communication ad hoc network includes at least two node devices, each node device sends broadcast tokens in turn, and the node device that receives the broadcast token sends the broadcast token The source address information and the hop value are stored in the local routing table, wherein the hop value is the number of hops from the node device sending the broadcast token to the second node device.

第二方面,本公开涉及组网通信方法,其应用于接收节点设备,所述方法包括:接收同一组网中的第一节点设备发送的消息;所述消息为所述第一节点设备向同一组网中的第二节点设备发送的,所述消息包括所述第一节点设备的本地路由表中的节点信息;对所述接收节点设备执行如下操作,直到所述接收节点设备为所述第二节点设备:在所述接收节点设备为同一组网中第三节点设备时,将所述接收节点设备的本地路由表中的节点信息补充到所述消息中,并根据所述接收节点设备的本地路由表中的节点信息确定下一个节点设备,将更新后的所述消息发送给所述下一个节点设备,以使所述下一个节点设备确定为新的接收节点设备。In a second aspect, the present disclosure relates to a network communication method, which is applied to a receiving node device. The method includes: receiving a message sent by a first node device in the same network; the message is sent by the first node device to the same sent by the second node device in the networking, the message includes the node information in the local routing table of the first node device; perform the following operations on the receiving node device until the receiving node device is the first node device Two-node device: when the receiving node device is the third node device in the same network, add the node information in the local routing table of the receiving node device to the message, and according to the information of the receiving node device The node information in the local routing table determines the next node device, and sends the updated message to the next node device, so that the next node device is determined as a new receiving node device.

在某些实施方案中,所述节点信息包括相邻节点的跳数值,所述跳数值为所述相邻节点设备到达所述第二节点设备的跳数,所述根据所述接收节点设备的本地路由表中的节点信息确定下一个节点设备,包括:从所述接收节点设备的相邻节点设备中确定出所述跳数值最小的节点设备;从所述跳数值最小的节点设备中确定出信号强度最大的节点设备;将确定出的所述信号强度最大的节点设备确定为所述接收节点设备。In some implementations, the node information includes a hop value of an adjacent node, where the hop value is the number of hops from the adjacent node device to the second node device, and the The node information in the local routing table determines the next node device, including: determining the node device with the smallest hop value from the adjacent node devices of the receiving node device; determining the node device with the smallest hop value from the node device with the smallest hop value The node device with the highest signal strength; determining the determined node device with the highest signal strength as the receiving node device.

在某些实施方案中,将所述接收节点设备的本地路由表中的节点信息补充到所述消息中包括:将所述节点信息写入到所述消息的节点信息标志位中。In some implementations, adding node information in the local routing table of the receiving node device to the message includes: writing the node information into a node information flag bit of the message.

在某些实施方案中,所述消息为GPS短消息,所述GPS短消息中的源地址标志位和目标地址标志位各占1个字节,所述节点信息标志位至多占8个字节。In some embodiments, the message is a GPS short message, the source address flag and the target address flag in the GPS short message each occupy 1 byte, and the node information flag occupies at most 8 bytes .

在某些实施方案中,所述消息还包括在发送地址标志位中的所述第一节点设备的节点地址;所述方法还包括:在接收到所述消息后,将所述接收节点设备的节点地址填入到所述消息的接收地址集标志位中,以形成所述消息的传输路径信息。In some implementations, the message further includes the node address of the first node device in the sending address flag; the method further includes: after receiving the message, sending the node address of the receiving node device to The node address is filled into the receiving address set flag bit of the message to form the transmission path information of the message.

在某些实施方案中,所述组网的组网方式为窄带通信自组网。In some embodiments, the networking mode of the networking is narrowband communication ad hoc network.

在某些实施方案中,所述窄带通信自组网包括至少两个节点设备,每一个节点设备依次发送广播令牌,由接收到所述广播令牌的节点设备将所述广播令牌中的源地址信息和跳数值保存到本地路由表中,其中,所述跳数值为发送所述广播令牌的节点设备到达所述第二节点设备的跳数。In some implementations, the narrowband communication ad hoc network includes at least two node devices, each node device sends broadcast tokens in turn, and the node device that receives the broadcast token sends the broadcast token The source address information and the hop value are stored in the local routing table, wherein the hop value is the number of hops from the node device sending the broadcast token to the second node device.

第三方面,本公开还涉及第一节点设备,其包括:第一填入单元,配置为在向同一组网中的第二节点设备发送消息时,将所述第一节点设备的本地路由表中的节点信息填入到所述消息中;以及,确定单元,配置为根据所述第一节点设备的本地路由表中的节点信息确定接收节点设备,并将所述消息发送给所述接收节点设备,以使所述接收节点 设备执行如下操作,直到所述接收节点设备为所述第二节点设备:在所述接收节点设备为同一组网中第三节点设备时,将所述接收节点设备的本地路由表中的节点信息补充到所述消息中,并根据所述接收节点设备的本地路由表中的节点信息确定下一个节点设备,将更新后的所述消息发送给所述下一个节点设备,并将所述下一个节点设备确定为新的接收节点设备。In a third aspect, the present disclosure also relates to a first node device, which includes: a first filling unit configured to, when sending a message to a second node device in the same network, add the local routing table of the first node device to Fill in the node information in the message; and, the determining unit is configured to determine the receiving node device according to the node information in the local routing table of the first node device, and send the message to the receiving node device, so that the receiving node device performs the following operations until the receiving node device is the second node device: when the receiving node device is the third node device in the same network, the receiving node device The node information in the local routing table of the receiving node device is added to the message, and the next node device is determined according to the node information in the local routing table of the receiving node device, and the updated message is sent to the next node device device, and determine the next node device as a new receiving node device.

在某些实施方案中,所述节点信息包括相邻节点设备及对应的跳数值,所述跳数值为所述相邻节点设备到达所述第二节点设备的跳数,所述确定单元包括:第一确定模块,配置为从所述第一节点设备的相邻节点设备中确定出所述跳数值最小的节点设备;第二确定模块,配置为从所述跳数值最小的节点设备中确定出信号强度最大的节点设备;以及第三确定模块,配置为将确定出的所述信号强度最大的节点设备确定为所述接收节点设备。In some implementations, the node information includes adjacent node devices and corresponding hop values, where the hop value is the number of hops from the adjacent node devices to the second node device, and the determining unit includes: The first determination module is configured to determine the node device with the smallest hop value from the adjacent node devices of the first node device; the second determination module is configured to determine the node device with the smallest hop value from the node devices with the smallest hop value a node device with the highest signal strength; and a third determining module configured to determine the determined node device with the highest signal strength as the receiving node device.

在某些实施方案中,所述第一节点设备还配置为:在将所述第一节点设备的节点信息填入到所述消息或者将所述接收节点设备的节点信息补充到所述消息时,将所述节点信息写入到所述消息的节点信息标志位中。In some embodiments, the first node device is further configured to: when filling the node information of the first node device into the message or adding the node information of the receiving node device to the message , write the node information into the node information flag bit of the message.

在某些实施方案中,所述消息为GPS短消息,所述GPS短消息中的源地址标志位和目标地址标志位各占1个字节,所述节点信息标志位至多占8个字节。In some embodiments, the message is a GPS short message, the source address flag and the target address flag in the GPS short message each occupy 1 byte, and the node information flag occupies at most 8 bytes .

在某些实施方案中,所述第一节点设备还包括:第二填入单元,用于将所述第一节点的节点地址填入到所述消息的发送地址标志位中,以使所述接收节点在接收到所述消息后将所述接收节点的节点地址填入到所述消息的接收地址集标志位中,以形成所述消息的传输路径信息。In some implementations, the first node device further includes: a second filling unit, configured to fill the node address of the first node into the sending address flag of the message, so that the After receiving the message, the receiving node fills the node address of the receiving node into the receiving address set flag of the message, so as to form the transmission path information of the message.

在某些实施方案中,所述组网的组网方式为窄带通信自组网。In some embodiments, the networking mode of the networking is narrowband communication ad hoc network.

在某些实施方案中,所述窄带通信自组网包括至少两个节点,每一个节点依次发送广播令牌,由接收到所述广播令牌的节点将所述广播令牌中的源地址信息和跳数值保存到本地路由表中,其中,所述跳数值为发送所述广播令牌的节点到达所述第二节点的跳数。In some embodiments, the narrowband communication ad hoc network includes at least two nodes, and each node sends a broadcast token in turn, and the node that receives the broadcast token sends the source address information in the broadcast token to and the hop value are stored in the local routing table, wherein the hop value is the number of hops from the node sending the broadcast token to the second node.

第四方面,本公开还涉及接收节点设备,其包括:接收单元,配置为接收同一组网中的第一节点设备发送的消息;所述消息为所述第一节点设备向同一组网中的第二节点设备发送的,所述消息包括所述第一节点设备的本地路由表中的节点信息;处理单元,配置为对所述接收节点设备执行如下操作,直到所述接收节点设备为所述第二节点设备:在所述接收节点设备为同一组网中第三节点设备时,将所述接收节点设备的本地路由表中的节点信息补充到所述消息中,并根据所述接收节点设备的本地路由表中的节点信息确定下一个节点设备,将更新后的所述消息发送给所述下一个节点设备,以使所述下一个节点设备确定为新的接收节点设备。In a fourth aspect, the present disclosure also relates to a receiving node device, which includes: a receiving unit configured to receive a message sent by a first node device in the same network; the message is sent by the first node device to a node in the same network Sent by the second node device, the message includes node information in the local routing table of the first node device; the processing unit is configured to perform the following operations on the receiving node device until the receiving node device is the Second node device: when the receiving node device is the third node device in the same network, add the node information in the local routing table of the receiving node device to the message, and according to the receiving node device The node information in the local routing table determines the next node device, and sends the updated message to the next node device, so that the next node device is determined as a new receiving node device.

在某些实施方案中,所述节点信息包括相邻节点的跳数值,所述跳数值为所述相邻节点设备到达所述第二节点设备的跳数,所述处理单元包括:第一确定模块,配置为从所述接收节点设备的相邻节点设备中确定出所述跳数值最小的节点设备;第二确定模块,配置为从所述跳数值最小的节点设备中确定出信号强度最大的节点设备;第三确定模块,配置为将确定出的所述信号强度最大的节点设备确定为所述接收节点设备。In some implementations, the node information includes a hop value of an adjacent node, the hop value is the number of hops from the adjacent node device to the second node device, and the processing unit includes: a first determination A module configured to determine the node device with the smallest hop value from the adjacent node devices of the receiving node device; a second determination module configured to determine the node device with the largest signal strength from the node devices with the smallest hop value A node device; a third determining module configured to determine the determined node device with the highest signal strength as the receiving node device.

在某些实施方案中,所述处理单元包括:写入模块,配置为将所述节点信息写入到所述消息的节点信息标志位中。In some implementations, the processing unit includes: a writing module configured to write the node information into a node information flag bit of the message.

在某些实施方案中,所述消息为GPS短消息,所述GPS短消息中 的源地址标志位和目标地址标志位各占1个字节,所述节点信息标志位至多占8个字节。In some embodiments, the message is a GPS short message, the source address flag and the target address flag in the GPS short message each occupy 1 byte, and the node information flag occupies at most 8 bytes .

在某些实施方案中,所述消息还包括在发送地址标志位中的所述第一节点的节点地址;所述装置还包括:填入单元,配置为在接收到所述消息后,将所述接收节点的节点地址填入到所述消息的接收地址集标志位中,以形成所述消息的传输路径信息。In some embodiments, the message further includes the node address of the first node in the sending address flag; the device further includes: a filling unit configured to, after receiving the message, send the The node address of the receiving node is filled into the receiving address set flag bit of the message to form the transmission path information of the message.

在某些实施方案中,所述组网的组网方式为窄带通信自组网。In some embodiments, the networking mode of the networking is narrowband communication ad hoc network.

在某些实施方案中,所述窄带通信自组网包括至少两个节点,每一个节点依次发送广播令牌,由接收到所述广播令牌的节点将所述广播令牌中的源地址信息和跳数值保存到本地路由表中,其中,所述跳数值为发送所述广播令牌的节点到达所述第二节点的跳数。In some embodiments, the narrowband communication ad hoc network includes at least two nodes, and each node sends a broadcast token in turn, and the node that receives the broadcast token sends the source address information in the broadcast token to and the hop value are stored in the local routing table, wherein the hop value is the number of hops from the node sending the broadcast token to the second node.

第五方面,本公开还涉及存储介质,该存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行本公开的组网通信方法。In a fifth aspect, the present disclosure also relates to a storage medium, in which a computer program is stored, wherein the computer program is configured to execute the networking communication method of the present disclosure when running.

第六方面,本公开还涉及电子设备,其包括存储器和处理器,所述存储器配置为存储计算机程序,所述处理器配置为通过所述计算机程序执行上述的组网通信方法。In a sixth aspect, the present disclosure also relates to electronic equipment, which includes a memory and a processor, the memory is configured to store a computer program, and the processor is configured to execute the above-mentioned networking communication method through the computer program.

第七方面,本公开还涉及组网通信系统,其包括本公开的第一节点设备和本公开的接收节点设备。In a seventh aspect, the present disclosure also relates to a networked communication system, which includes the first node device of the present disclosure and the receiving node device of the present disclosure.

在某些实施方案中,本公开采用了在向同一组网中的第二节点设备发送消息时,将所述第一节点设备的本地路由表中的节点信息填入到所述消息中;以及根据所述第一节点设备的本地路由表中的节点信息确定接收节点设备,并将所述消息发送给所述接收节点设备,以使所述接收节点设备执行如下操作,直到所述接收节点设备为所述第二节点设备:在所述接收节点设备为同一组网中第三节点设备时,将所述接收节点设备的本地路由表中的节点信息补充到所述消息中,并根据所述接收节点设备的本地路由表中的节点信息确定下一个节点设备,将更新后的所述消息发送给所述下一个节点设备,并将所述下一个节点设备确定为新的接收节点设备的方法,由于在上述方法中,在同一组网中的节点设备之间发送消息时,会将接收节点设备的节点信息写入到消息中,以及根据本地路由表中的节点信息确定接收节点设备,从而实现了在各个节点设备之间准确进行通信的目的,进而解决了组网通信过程中各个节点设备无法知晓其他节点设备的连接关系从而无法有效通信的技术问题。In some embodiments, the present disclosure adopts the method of filling the message with the node information in the local routing table of the first node device when sending the message to the second node device in the same network; and Determine the receiving node device according to the node information in the local routing table of the first node device, and send the message to the receiving node device, so that the receiving node device performs the following operations until the receiving node device For the second node device: when the receiving node device is a third node device in the same network, add the node information in the local routing table of the receiving node device to the message, and according to the The method of determining the next node device according to the node information in the local routing table of the receiving node device, sending the updated message to the next node device, and determining the next node device as a new receiving node device , because in the above method, when sending a message between node devices in the same network, the node information of the receiving node device will be written into the message, and the receiving node device will be determined according to the node information in the local routing table, thus The purpose of accurate communication between each node device is realized, and then the technical problem that each node device cannot know the connection relationship of other node devices during the networking communication process and cannot communicate effectively.

附图简要说明Brief description of the drawings

此处所说明的附图用来提供对本公开的进一步理解,构成本公开的一部分,本公开的示意性实施例及其说明用于解释本公开,并不构成对本公开的不当限定。在附图中:The drawings described here are used to provide a further understanding of the present disclosure, and constitute a part of the present disclosure. The schematic embodiments of the present disclosure and their descriptions are used to explain the present disclosure, and do not constitute improper limitations to the present disclosure. In the attached picture:

图1为本公开一实施例提供的组网通信方法的流程图;FIG. 1 is a flowchart of a networking communication method provided by an embodiment of the present disclosure;

图2为本公开一实施例提供的组网通信方法的网络拓扑示意图;FIG. 2 is a schematic diagram of a network topology of a networking communication method provided by an embodiment of the present disclosure;

图3为本公开一实施例提供的组网通信方法的发送广播令牌的示意图;FIG. 3 is a schematic diagram of sending a broadcast token in a networking communication method provided by an embodiment of the present disclosure;

图4为本公开一实施例提供的组网通信方法的时隙示意图;FIG. 4 is a schematic diagram of time slots of a networking communication method provided by an embodiment of the present disclosure;

图5为本公开一实施例提供的组网通信方法的流程图;FIG. 5 is a flowchart of a networking communication method provided by an embodiment of the present disclosure;

图6为本公开一实施例提供的组网通信方法的流程图;FIG. 6 is a flowchart of a networking communication method provided by an embodiment of the present disclosure;

图7为本公开一实施例提供的组网通信方法的配置路由信息和转发信息的示意图;FIG. 7 is a schematic diagram of configuring routing information and forwarding information of a networking communication method provided by an embodiment of the present disclosure;

图8为本公开一实施例提供的组网通信方法的本地路由表的示意图;FIG. 8 is a schematic diagram of a local routing table of a networking communication method provided by an embodiment of the present disclosure;

图9为本公开一实施例提供的组网通信方法的流程图;FIG. 9 is a flowchart of a networking communication method provided by an embodiment of the present disclosure;

图10为本公开一实施例提供的第一节点设备的结构示意图;FIG. 10 is a schematic structural diagram of a first node device provided by an embodiment of the present disclosure;

图11为本公开一实施例提供的接收节点设备的结构示意图;FIG. 11 is a schematic structural diagram of a receiving node device provided by an embodiment of the present disclosure;

图12为本公开一实施例提供的组网通信系统的结构示意图;以及FIG. 12 is a schematic structural diagram of a networking communication system provided by an embodiment of the present disclosure; and

图13为本公开一实施例提供的电子设备的结构示意图。Fig. 13 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.

详述detail

为了使本技术领域的人员更好地理解本公开方案,下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本公开一部分的实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本公开保护的范围。In order to enable those skilled in the art to better understand the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only It is an embodiment of a part of the present disclosure, but not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts shall fall within the protection scope of the present disclosure.

需要说明的是,本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本公开的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first" and "second" in the specification and claims of the present disclosure and the above drawings are used to distinguish similar objects, but not necessarily used to describe a specific sequence or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion, for example, a process, method, system, product or device comprising a sequence of steps or elements is not necessarily limited to the expressly listed instead, may include other steps or elements not explicitly listed or inherent to the process, method, product or apparatus.

本公开涉及组网通信方法,其应用于第一节点设备,如图1所示,上述方法包括:The present disclosure relates to a networking communication method, which is applied to a first node device, as shown in FIG. 1 , the above method includes:

S102,在向同一组网中的第二节点设备发送消息时,将所述第一节点设备的本地路由表中的节点信息填入到所述消息中;以及S102. When sending a message to a second node device in the same network, fill in the node information in the local routing table of the first node device into the message; and

S104,根据所述第一节点设备的本地路由表中的节点信息确定接收节点设备,并将所述消息发送给所述接收节点设备,以使所述接收节点设备执行如下操作,直到所述接收节点设备为所述第二节点设备:在所述接收节点设备为同一组网中第三节点设备时,将所述接收节点设备的本地路由表中的节点信息补充到所述消息中,并根据所述接收节点设备的本地路由表中的节点信息确定下一个节点设备,将更新后的所述消息发送给所述下一个节点设备,并将所述下一个节点设备确定为新的接收节点设备。S104. Determine a receiving node device according to the node information in the local routing table of the first node device, and send the message to the receiving node device, so that the receiving node device performs the following operations until the receiving The node device is the second node device: when the receiving node device is the third node device in the same network, the node information in the local routing table of the receiving node device is added to the message, and according to The node information in the local routing table of the receiving node device determines the next node device, sends the updated message to the next node device, and determines the next node device as a new receiving node device .

在某些实施方案中,同一组网可以为多个移动通信终端组成的网络。多个移动通信终端中每一个移动通信终端可以作为一个节点,位置可以移动。移动通信终端可以为手机、平板电脑、对讲机等。移动通信终端的通信距离有限,两个移动通信终端的距离太远,超出直接通信距离(对讲机的直接通信距离为5千米),则可以通过组建同一组网的方式进行通信。可以理解的是,当第一节点设备可直接将所述消息发送给第二节点设备时,第二节点设备接收所述消息,并获取所述消息中的节点信息。In some embodiments, the same network can be a network formed by multiple mobile communication terminals. Each mobile communication terminal among multiple mobile communication terminals can be used as a node, and its location can be moved. The mobile communication terminal may be a mobile phone, a tablet computer, a walkie-talkie, and the like. The communication distance of the mobile communication terminal is limited, and the distance between two mobile communication terminals is too far, beyond the direct communication distance (the direct communication distance of the walkie-talkie is 5 kilometers), then they can communicate by setting up the same network. It can be understood that, when the first node device can directly send the message to the second node device, the second node device receives the message and acquires the node information in the message.

需要说明的是,第一节点设备区别于第二节点设备,第三节点设备为区别于第一节点设备和第二节点设备,即第一节点设备、第二节点设备及第三节点设备分别为不同的节点设备。It should be noted that the first node device is different from the second node device, and the third node device is different from the first node device and the second node device, that is, the first node device, the second node device and the third node device are respectively different node devices.

在某些实施方案中,以A到F共6个对讲机为例,如图2所示。 图2为一种可选的网络拓扑图。图2中,节点设备假设为对讲机,圆圈为对讲机的覆盖范围,也就是有效的直接通信距离。B、C、D在A的覆盖范围内,A、D、E在C的覆盖范围内,C、D、F在E的覆盖范围内,E在F的覆盖范围内,E、F在A的覆盖范围之外。C和D之间可连通(图中未示),C和E之间可连通(图中未示)。A和F之间的距离太远,超出了直接通信距离,因此,可以通过自组网实现A和F之间的通信。In some embodiments, a total of 6 walkie-talkies from A to F are taken as an example, as shown in FIG. 2 . Fig. 2 is an optional network topology diagram. In Figure 2, the node device is assumed to be a walkie-talkie, and the circle is the coverage of the walkie-talkie, that is, the effective direct communication distance. B, C, D are within the coverage of A, A, D, E are within the coverage of C, C, D, F are within the coverage of E, E are within the coverage of F, E, F are within the coverage of A out of coverage. There is communication between C and D (not shown in the figure), and communication between C and E (not shown in the figure). The distance between A and F is too far beyond the direct communication distance, therefore, the communication between A and F can be realized through an ad hoc network.

图3为一种按照时序传输广播令牌的示意图。图3中,SLOT1为时隙1,SLOT2为时隙2。A节点在时隙1广播数据,在时隙2发送A的广播令牌,B、C、D、E、F均在时隙2发送广播令牌。节点A到F在不同的时隙2发送广播令牌,各发送一次为一个周期,以此方式实现组网。Fig. 3 is a schematic diagram of transmitting broadcast tokens according to time sequence. In FIG. 3 , SLOT1 is time slot 1, and SLOT2 is time slot 2. Node A broadcasts data in time slot 1, sends A's broadcast token in time slot 2, and B, C, D, E, and F all send broadcast tokens in time slot 2. Nodes A to F send broadcast tokens in different time slots 2, and each sending once is a period, so as to realize the networking in this way.

图4为一种A节点设备在时隙1广播GPS短消息的示意图。图4中,在不同帧的时隙1,依次广播PRE_CSBK1、PRE_CSBK2、GPS DATA_HEADER、GPS DATA_BLOCK和GPS DATA_Lastblock。FIG. 4 is a schematic diagram of a node A device broadcasting a GPS short message in time slot 1. FIG. In Figure 4, in time slot 1 of different frames, PRE_CSBK1, PRE_CSBK2, GPS DATA_HEADER, GPS DATA_BLOCK and GPS DATA_Lastblock are broadcast in sequence.

在某些实施方案中,消息可以为GPS短消息,进一步为DMR协议中的GPS短消息。可以理解的是,消息也可以为除GPS短消息以外的其他消息。In some embodiments, the message may be a GPS short message, further a GPS short message in the DMR protocol. It can be understood that the message may also be other messages than the GPS short message.

在某些实施方案中,第一节点设备和第二节点设备之间进行通信时,第一节点设备可以通过接收节点设备向第二节点设备发送通信数据。第一节点设备可以向第二节点设备发送第一节点设备的位置信息。在发送位置信息时,可以将第一节点设备的节点信息填入到地址信息中,将消息发送给接收节点设备。接收节点设备将接收节点设备的节点信息填入到位置信息中。接收节点设备可以有多个,任意一个接收节点设备可以被用于转发第一节点设备的位置信息。将接收节点设备的节点地址填入到位置信息中,可以选择任意一个接收节点设备转发位置信息。由接收节点设备将位置信息转发给第二节点设备。In some embodiments, when communication is performed between the first node device and the second node device, the first node device may send communication data to the second node device through the receiving node device. The first node device may send the location information of the first node device to the second node device. When sending the location information, the node information of the first node device may be filled into the address information, and the message is sent to the receiving node device. The receiving node device fills the node information of the receiving node device into the location information. There may be multiple receiving node devices, and any receiving node device may be used to forward the location information of the first node device. The node address of the receiving node device is filled in the location information, and any receiving node device can be selected to forward the location information. The location information is forwarded by the receiving node device to the second node device.

通过本实施例,通过上述方法,从而可以保证各个节点设备在通信过程中可以有效的通信,避免出现各个节点设备无法知晓其他节点的连接关系从而无法有效通信的问题。Through this embodiment, through the above method, it can ensure that each node device can communicate effectively during the communication process, and avoid the problem that each node device cannot know the connection relationship of other nodes and cannot effectively communicate.

在某些实施方案中,所述节点信息包括相邻节点设备及对应的跳数值,所述跳数值为所述相邻节点设备到达所述第二节点设备的跳数。如图5所示,所述根据所述第一节点设备的本地路由表中的节点信息确定接收节点设备包括:In some implementations, the node information includes adjacent node devices and corresponding hop values, where the hop value is the number of hops from the adjacent node devices to the second node device. As shown in FIG. 5, the determining the receiving node device according to the node information in the local routing table of the first node device includes:

S502,从所述第一节点设备的相邻节点设备中确定出所述跳数值最小的节点设备;S502. Determine the node device with the smallest hop value from the adjacent node devices of the first node device;

S504,从所述跳数值最小的节点设备中确定出信号强度最大的节点设备;以及S504. Determine the node device with the highest signal strength from the node devices with the smallest hop value; and

S506,将确定出的所述信号强度最大的节点设备确定为所述接收节点设备。S506. Determine the determined node device with the highest signal strength as the receiving node device.

在某些实施方案中,由于第一节点设备的相邻节点设备可以有多个,因此,可以先确定出跳数值最小的节点设备,然后从中确定出信号强度最大的节点设备作为第一节点设备的接收节点设备。上述的跳数值表示相邻节点设备到达所述第二节点设备的跳数。而跳数指一个节点设备到达第二节点设备所需要的转发节点设备的数量。节点设备F到节点设备A需要经过节点设备E、D的转发,则节点设备F到节点设备A的跳数为2。在某些实施方案中,跳数值表示相邻节设备到达第二节点设备的最少跳数。可以理解的是,相邻节点设备为某一节点设备的通信覆盖范围内的其他节点设备,以图2的示例为例,节点设备A的相邻节点设备为节点设备A覆盖范围内的节点设备B、C、D, 即节点设备B、C、D为节点设备A的相邻节点设备。通过将相邻节点设备中的跳数值最小及信号强度最大的节点设备作为接收节点设备,相当于选择了消息传输的最优路径,实现了快速可靠地传输消息。In some embodiments, since the first node device can have multiple adjacent node devices, the node device with the smallest hop value can be determined first, and then the node device with the highest signal strength can be determined as the first node device receiving node device. The above-mentioned hop value indicates the number of hops from the adjacent node device to the second node device. The number of hops refers to the number of forwarding node devices required for a node device to reach a second node device. Node device F to node device A needs to be forwarded by node devices E and D, so the number of hops from node device F to node device A is 2. In some embodiments, the hop value represents the minimum number of hops from the neighboring node device to the second node device. It can be understood that the adjacent node devices are other node devices within the communication coverage of a certain node device. Taking the example in FIG. 2 as an example, the adjacent node devices of node device A are node devices within the coverage of node device A B, C, D, that is, node devices B, C, and D are adjacent node devices of node device A. By using the node device with the smallest hop value and the largest signal strength among adjacent node devices as the receiving node device, it is equivalent to selecting the optimal path for message transmission, and realizing fast and reliable message transmission.

在某些实施方案中,将所述第一节点设备的节点信息填入到所述消息或者将所述接收节点设备的节点信息补充到所述消息中包括:将所述节点信息写入到所述消息的节点信息标志位中。In some embodiments, filling the node information of the first node device into the message or supplementing the node information of the receiving node device into the message includes: writing the node information into the In the node information flag bit of the above message.

在某些实施方案中,所述消息为GPS短消息,所述GPS短消息中的源地址标志位和目标地址标志位各占1个字节,所述节点信息标志位至多占8个字节。In some embodiments, the message is a GPS short message, the source address flag and the target address flag in the GPS short message each occupy 1 byte, and the node information flag occupies at most 8 bytes .

在某些实施方案中,在将节点地址填入到GPS短消息中时,GPS短消息中包括有源地址标志位和目标地址标志位,本实施例中的源地址标志位和目标地址标志位的大小各占GPS短消息的一个字节,而节点的节点信息标志位至多占GPS短消息的8个字节。现有的GPS短消息中,在GPS短消息的PRE _CSBK1中源地址标志位和目标地址标志位各占3个字节,本实施例中源地址标志位和目标地址标志位各占1个字节,在GPS短消息的PRE_CSBK1中源地址标志位和目标地址标志位各占3个字节,本实施例中源地址标志位和目标地址标志位各占1个字节,而其余8个字节中可任意选取1个或多个字节用于记录节点信息,即作为节点信息标志位。具体实现时,可充分利用8个字节,并以2字节为一组,分别记录对应跳数值下信号强度最大的两个相邻节点设备的节点地址,比如将PRE_CSBK1中前2字节作为跳数为1的两个信号强度大的节点设备的节点地址标志位,将PRE_CSBK1中后2字节作为跳数为2的两个信号强度大的节点设备的节点地址标志位,共占4个字节;将GPS短消息中PRE_CSBK2中的前2字节作为跳数为3的两个信号强度大的节点设备的节点地址标志位,将PRE_CSBK2中后2字节作为跳数为4的两个信号强度大的节点设备的节点地址标志位,共占4个字节。通过以上方法,实现了节点信息的记录,在传输GPS短消息时,可获取上一节点设备(发送节点设备)的路由信息。 In some embodiments, when the node address is filled in the GPS short message, the GPS short message includes an active address flag and a target address flag, and the source address flag and the target address flag in this embodiment The size of each occupies one byte of the GPS short message, and the node information flag of the node occupies at most 8 bytes of the GPS short message. In the existing GPS short message, in the PRE_CSBK1 of the GPS short message, the source address flag and the target address flag respectively account for 3 bytes, and the source address flag and the target address flag each account for 1 byte in the present embodiment byte, in the PRE_CSBK1 of the GPS short message, the source address flag and the target address flag each occupy 3 bytes, and in the present embodiment, the source address flag and the target address flag each occupy 1 byte, and the remaining 8 One or more bytes can be arbitrarily selected to record node information, that is, as a node information flag. In the specific implementation, 8 bytes can be fully utilized, and 2 bytes are used as a group to record the node addresses of the two adjacent node devices with the highest signal strength under the corresponding hop value. For example, the first 2 bytes in PRE_CSBK1 are used as The node address flag bits of two node devices with high signal strength with a hop count of 1, the last 2 bytes in PRE_CSBK1 are used as the node address flag bits of two node devices with a high signal strength with a hop count of 2, occupying a total of 4 byte; the first 2 bytes in PRE_CSBK2 in the GPS short message are used as the node address flags of two node devices with high signal strength with a hop count of 3, and the last 2 bytes in PRE_CSBK2 are used as the two node devices with a hop count of 4 The node address flag bit of the node device with high signal strength occupies 4 bytes in total. Through the above method, the record of the node information is realized, and the routing information of the previous node device (sending node device) can be obtained when the GPS short message is transmitted.

在某些实施方案中,如图6所示,上述方法还包括:In some embodiments, as shown in Figure 6, the above method also includes:

S602,将所述第一节点设备的节点地址填入到所述消息的发送地址标志位中,以使所述接收节点设备在接收到所述消息后将所述接收节点设备的节点地址填入到所述消息的接收地址集标志位中,以形成所述消息的传输路径信息。S602. Fill the node address of the first node device into the sending address flag of the message, so that the receiving node device fills in the node address of the receiving node device after receiving the message into the receiving address set flag bit of the message to form the transmission path information of the message.

在某些实施方案中,可以将第一节点设备的节点地址填入到消息的发送地址标志位中,将接收节点设备的节点地址填入到消息的接收地址集标志位中。被填入到消息的接收地址集标志位中的地址信息形成了消息的传输路径信息。作为一种可选的示例,所述组网的组网方式为窄带通信自组网。In some embodiments, the node address of the first node device may be filled in the sending address flag of the message, and the node address of the receiving node device may be filled in the receiving address set flag of the message. The address information filled in the receiving address set flag bit of the message forms the transmission path information of the message. As an optional example, the networking manner of the networking is a narrowband communication ad hoc network.

在某些实施方案中,通过窄带通信自组网实现对讲机之间的通信。In some embodiments, communication between the walkie-talkies is achieved through a narrowband communication ad hoc network.

在某些实施方案中,所述窄带通信自组网包括至少两个节点设备,每一个节点设备依次发送广播令牌,由接收到所述广播令牌的节点设备将所述广播令牌中的源地址信息和跳数值保存到本地路由表中,其中,所述跳数值为发送所述广播令牌的节点设备到达所述第二节点设备的跳数。In some implementations, the narrowband communication ad hoc network includes at least two node devices, each node device sends broadcast tokens in turn, and the node device that receives the broadcast token sends the broadcast token The source address information and the hop value are stored in the local routing table, wherein the hop value is the number of hops from the node device sending the broadcast token to the second node device.

结合上述图2的网络拓扑进行说明。A到F六个节点组成自组网。六个节点中A节点可以和E节点、F节点进行通信。由于A与E或者A与F的距离太远,超出了直接通信距离,因此,可以通过其他节点进行转发。本实施例中,通信信息可以为全球定位系统(Global Positioning System,简称为GPS)短消息。利用传递GPS短消息时定义 PRE_CSBK帧传递本地路由。本实施例定义第一个PRE_CSBK帧(PRE_CSBK_1),包括了Target address(目标地址)、Source address(源地址)、Jump 1(跳数值为1的节点的节点地址)、Jump 2(跳数值为2的节点的节点地址),定义第二个PRE_CSBK帧(PRE_CSBK_2),包括了Target address(目标地址)、Source address(源地址)、Jump 3(跳数值为3的节点的节点地址)、Jump 4(跳数值为4的节点的节点地址)。在DMR协议中Target address和Source address长度都是3个字节,本实施例中改为只有一个字节(将群组内的节点数控制在<256),空出来的4个字节用于填写Jump地址。此外,利用传递GPS短消息时,本实施例定义DATA_HEADER来传递转发关系。本实施例定义DATA_HEADER中Forward Num字段位置为转发次数;定义Destination(目标地址)和Source address(源地址)长度都是一个字节(将群组内的节点数控制在<256),空出来的4个字节用于填写Jump地址,在一种具体的实施方式中,该4个字节用于依次记录转发的接收节点的节点地址。The description will be made in conjunction with the network topology in FIG. 2 above. Six nodes from A to F form an ad hoc network. Among the six nodes, node A can communicate with node E and node F. Since the distance between A and E or between A and F is too far beyond the direct communication distance, it can be forwarded through other nodes. In this embodiment, the communication information may be a Global Positioning System (Global Positioning System, GPS for short) short message. Define PRE_CSBK frame to deliver local route when transmitting GPS short message. This embodiment defines the first PRE_CSBK frame (PRE_CSBK_1), including Target address (target address), Source address (source address), Jump 1 (the node address of the node whose jump value is 1), Jump 2 (the jump value is 2 The node address of the node), define the second PRE_CSBK frame (PRE_CSBK_2), including Target address (target address), Source address (source address), Jump 3 (the node address of the node whose jump value is 3), Jump 4 ( The node address of the node whose hop value is 4). In the DMR protocol, the length of the Target address and the Source address is 3 bytes. In this embodiment, there is only one byte (the number of nodes in the group is controlled at <256), and the 4 bytes that are vacated are used for Fill in the Jump address. In addition, when transferring GPS short messages, this embodiment defines DATA_HEADER to transfer the forwarding relationship. This embodiment defines the Forward Num field position in the DATA_HEADER as the number of forwarding times; the length of Destination (target address) and Source address (source address) is defined as one byte (the number of nodes in the group is controlled at <256), and the empty ones The 4 bytes are used to fill in the Jump address. In a specific implementation manner, the 4 bytes are used to sequentially record the node addresses of the forwarding receiving nodes.

表1是本实施例配置PRE_CSBK_1的表。如表1中,将目标地址Target address和源地址Source address的长度为一个字节,即8位,其后4个字节分别填入第一跳Jump1的两个信号强度最大的节点的节点地址和第二跳Jump2的两个信号强度最大的节点的节点地址。此处以源地址为F为例。Table 1 is a table for configuring PRE_CSBK_1 in this embodiment. As shown in Table 1, the length of the target address Target address and the source address Source address is one byte, that is, 8 bits, and the next 4 bytes are respectively filled with the node addresses of the two nodes with the highest signal strength in the first hop Jump1 and the node addresses of the two nodes with the highest signal strength of the second jump Jump2. Here, the source address is F as an example.

表1Table 1

Figure PCTCN2021141101-appb-000001
Figure PCTCN2021141101-appb-000001

表2是本实施例配置PRE_CSBK_2的表。如表2中,将目标地址Target address和源地址Source address的长度为一个字节,即8位,其余4个字节分别填入第一跳Jump3的两个信号强度最大的节点的节点地址和第二跳Jump3的两个信号强度最大的节点的节点地址。此处以源地址为F为例。Table 2 is a table for configuring PRE_CSBK_2 in this embodiment. As shown in Table 2, the length of the target address Target address and the source address Source address is one byte, namely 8 bits, and the remaining 4 bytes are respectively filled in the node addresses and The node addresses of the two nodes with the highest signal strength in the second hop Jump3. Here, the source address is F as an example.

表2Table 2

Figure PCTCN2021141101-appb-000002
Figure PCTCN2021141101-appb-000002

表3到表5分别为本实施例配置节点F、节点E和节点D的DATA_HEADER的表,本示例以源地址为F为例,表示节点F的消息依次经过节点E和节点D进行转发。如表3所示,将Destination和Source分别为1个字节,其余4个字节分别记录第一跳到第四跳的节点的节点地址。在F向A发送位置信息时,表4中,第一跳记录为E的节点地址,表5中,第一跳记录为E的节点地址,第二跳记录为D的节点地址。Tables 3 to 5 are tables for configuring the DATA_HEADER of node F, node E, and node D in this embodiment. In this example, the source address is F as an example, indicating that the message of node F is forwarded through node E and node D in turn. As shown in Table 3, Destination and Source are each 1 byte, and the remaining 4 bytes respectively record the node addresses of the nodes from the first hop to the fourth hop. When F sends location information to A, in Table 4, the first hop is recorded as the node address of E, in Table 5, the first hop is recorded as the node address of E, and the second hop is recorded as the node address of D.

表3table 3

Figure PCTCN2021141101-appb-000003
Figure PCTCN2021141101-appb-000003

表4Table 4

Figure PCTCN2021141101-appb-000004
Figure PCTCN2021141101-appb-000004

表5table 5

Figure PCTCN2021141101-appb-000005
Figure PCTCN2021141101-appb-000005

在某些实施方案中,节点A到节点F建立如图2所示的网络拓扑,各个节点如图3所示的时序发送广播令牌建立连接,各个节点发送GPS位置信息。在PRE_CSBK中携带各个节点的路由信息,DATA_HEADER携带转发信息,随着全网传播,各节点之间都获知到了其他节点的位置及其连接关系,在转发消息时自动识别最优路径。In some embodiments, nodes A to F establish a network topology as shown in FIG. 2 , each node sends a broadcast token to establish a connection in the sequence shown in FIG. 3 , and each node sends GPS location information. The routing information of each node is carried in PRE_CSBK, and the forwarding information is carried in DATA_HEADER. With the spread of the whole network, each node knows the location and connection relationship of other nodes, and automatically identifies the optimal path when forwarding messages.

如以节点F为例,节点F将路由信息、转发信息配置到PRE_CSBK、DATA_HEADER中的步骤如下:Taking node F as an example, the steps for node F to configure routing information and forwarding information in PRE_CSBK and DATA_HEADER are as follows:

1.获取F本地路由信息和转发信息;1. Obtain F local routing information and forwarding information;

2.在PRE_CSBK_1、PRE_CSBK_2、DATA_HEADER配置节点F的本地路由信息和转发信息,配置后信息如图7所示;2. Configure the local routing information and forwarding information of node F in PRE_CSBK_1, PRE_CSBK_2, and DATA_HEADER. The information after configuration is shown in Figure 7;

3.确定在时隙1发送PRE_CSBK_1、PRE_CSBK_2、DATA_HEADER、DATA_Block、DATA_Lastblock,即发送GPS短消息。3. Make sure to send PRE_CSBK_1, PRE_CSBK_2, DATA_HEADER, DATA_Block, DATA_Lastblock in time slot 1, that is, send a GPS short message.

如以节点E为例,接收到节点F的GPS位置信息后的处理步骤如下:For example, taking node E as an example, the processing steps after receiving the GPS location information of node F are as follows:

1.接收节点F发送的GPS短消息,解析GPS位置信息,得到节点F的本地路由信息和转发信息;1. Receive the GPS short message sent by node F, analyze the GPS location information, and obtain the local routing information and forwarding information of node F;

2.将节点F的本地路由信息和转发信息记录到节点E的本地路由表,并根据节点E的本地路由表,在在PRE_CSBK_1、PRE_CSBK_2、DATA_HEADER配置节点E的本地路由信息和转发信息;2. Record the local routing information and forwarding information of node F to the local routing table of node E, and configure the local routing information and forwarding information of node E in PRE_CSBK_1, PRE_CSBK_2, DATA_HEADER according to the local routing table of node E;

3.确定在时隙1将修改后的节点F发送的GPS短消息发给节点D。3. Determine to send the modified GPS short message sent by node F to node D in time slot 1.

当某一个节点消失后会重新根据各个节点路由动态调整路径,例如:F->E->D->A,当节点D由于某些原因掉线了之后,节点E会重新选择路径,F->E->C->A,保证了可靠通讯。When a node disappears, the path will be dynamically adjusted according to the routing of each node, for example: F->E->D->A, when node D goes offline for some reason, node E will re-select the path, F- >E->C->A, to ensure reliable communication.

如节点E循环周期内没有接收到节点D的心跳波,则判断无法通过节点D进行转发。节点E重新选择路径的步骤如下:节点E查路由 表,发现节点C经过0跳可到达节点A;E发送广播令牌(心跳波)给节点C,请求转发;节点E将节点F的GPS位置信息发送给节点C。If the node E does not receive the heartbeat wave of the node D within the cycle period, it is judged that the node D cannot be forwarded. The steps for node E to reselect the path are as follows: node E checks the routing table and finds that node C can reach node A after 0 hops; E sends a broadcast token (heartbeat wave) to node C and requests forwarding; node E sends the GPS location of node F The information is sent to node C.

以F->E->D->A的转发路径数据填充如表1-5,在发送过程中就把F的路由和转发路径全网节点都获取到了。其中如节点D的本地路由表可记录如图8所示。Fill in Table 1-5 with the forwarding path data of F->E->D->A. During the sending process, the routing and forwarding path of F are obtained from all network nodes. For example, the local routing table of node D can be recorded as shown in FIG. 8 .

需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本公开并不受所描述的动作顺序的限制,因为依据本公开,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本公开所必须的。It should be noted that for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should know that the present disclosure is not limited by the described action sequence. Because of this disclosure, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions and modules involved are not necessarily required by the present disclosure.

本公开还涉及组网通信方法,其应用在接收节点设备,如图9所示,所述方法包括:The present disclosure also relates to a networking communication method, which is applied to a receiving node device, as shown in FIG. 9 , the method includes:

S902,接收同一组网中的第一节点设备发送的消息;所述消息为所述第一节点设备向同一组网中的第二节点设备发送的,所述消息包括所述第一节点设备的本地路由表中的节点信息;以及S902. Receive a message sent by a first node device in the same network; the message is sent by the first node device to a second node device in the same network, and the message includes the message of the first node device node information in the local routing table; and

S904,对所述接收节点设备执行如下操作,直到所述接收节点设备为所述第二节点设备:在所述接收节点设备为同一组网中第三节点设备时,将所述接收节点设备的本地路由表中的节点信息补充到所述消息中,并根据所述接收节点设备的本地路由表中的节点信息确定下一个节点设备,将更新后的所述消息发送给所述下一个节点设备,以使所述下一个节点设备确定为新的接收节点设备。S904. Perform the following operation on the receiving node device until the receiving node device is the second node device: when the receiving node device is the third node device in the same network, set the receiving node device The node information in the local routing table is added to the message, and the next node device is determined according to the node information in the local routing table of the receiving node device, and the updated message is sent to the next node device , so that the next node device is determined as a new receiving node device.

在某些实施方案中,同一组网可以为多个移动通信终端组成的网络。多个移动通信终端中每一个移动通信终端可以作为一个节点,位置可以移动。移动通信终端可以为手机、平板电脑、对讲机等。移动通信终端的通信距离有限,例如,两个移动通信终端的距离太远,超出直接通信距离(例如对讲机的直接通信距离为5千米),则可以通过组建同一组网的方式进行通信。可以理解的是,当第一节点设备可直接将所述消息发送给第二节点设备时,第二节点设备接收所述消息,并获取所述消息中的节点信息。In some embodiments, the same network can be a network formed by multiple mobile communication terminals. Each mobile communication terminal among multiple mobile communication terminals can be used as a node, and its location can be moved. The mobile communication terminal may be a mobile phone, a tablet computer, a walkie-talkie, and the like. The communication distance of mobile communication terminals is limited. For example, if the distance between two mobile communication terminals is too far to exceed the direct communication distance (for example, the direct communication distance of a walkie-talkie is 5 kilometers), they can communicate by forming the same network. It can be understood that, when the first node device can directly send the message to the second node device, the second node device receives the message and acquires the node information in the message.

以A到F共6个对讲机为例,如图2所示。图2为一种可选的网络拓扑图。图2中,节点设备假设为对讲机,圆圈为对讲机的覆盖范围,也就是有效的直接通信距离。B、C、D在A的覆盖范围内,A、D、E在C的覆盖范围内,C、D、F在E的覆盖范围内,E在F的覆盖范围内,E、F在A的覆盖范围之外。C和D之间可连通(图中未示),C和E之间可连通(图中未示)。A和F之间的距离太远,超出了直接通信距离,因此,可以通过自组网实现A和F之间的通信。Take a total of 6 walkie-talkies from A to F as an example, as shown in Figure 2. Fig. 2 is an optional network topology diagram. In Figure 2, the node device is assumed to be a walkie-talkie, and the circle is the coverage of the walkie-talkie, that is, the effective direct communication distance. B, C, D are within the coverage of A, A, D, E are within the coverage of C, C, D, F are within the coverage of E, E are within the coverage of F, E, F are within the coverage of A out of coverage. There is communication between C and D (not shown in the figure), and communication between C and E (not shown in the figure). The distance between A and F is too far beyond the direct communication distance, therefore, the communication between A and F can be realized through an ad hoc network.

图3为一种按照时序传输广播令牌的示意图。图3中,SLOT1为时隙1,SLOT2为时隙2。A节点在时隙1广播数据,在时隙2发送A的广播令牌,B、C、D、E、F均在时隙2发送广播令牌。节点A到F在不同的时隙2发送广播令牌,各发送一次为一个周期,以此方式实现组网。Fig. 3 is a schematic diagram of transmitting broadcast tokens according to time sequence. In FIG. 3 , SLOT1 is time slot 1, and SLOT2 is time slot 2. Node A broadcasts data in time slot 1, sends A's broadcast token in time slot 2, and B, C, D, E, and F all send broadcast tokens in time slot 2. Nodes A to F send broadcast tokens in different time slots 2, and each sending once is a period, so as to realize the networking in this way.

图4为一种可选的A节点设备在时隙1广播GPS短消息的示意图。图4中,在不同帧的时隙1,依次广播PRE_CSBK1、PRE_CSBK2、GPS DATA_HEADER、GPS DATA_BLOCK和GPS DATA_Lastblock。Fig. 4 is a schematic diagram of an optional A-node device broadcasting a GPS short message in time slot 1. In Figure 4, in time slot 1 of different frames, PRE_CSBK1, PRE_CSBK2, GPS DATA_HEADER, GPS DATA_BLOCK and GPS DATA_Lastblock are broadcast in sequence.

在某些实施方案中,消息可以为GPS短消息,进一步为DMR协议中的GPS短消息。可以理解的是,消息也可以为除GPS短消息以外的其他消息。In some embodiments, the message may be a GPS short message, further a GPS short message in the DMR protocol. It can be understood that the message may also be other messages than the GPS short message.

在某些实施方案中,第一节点设备和第二节点设备之间进行通信时,第一节点设备可以通过接收节点设备向第二节点设备发送通信数 据。第一节点设备可以向第二节点设备发送第一节点设备的位置信息。在发送位置信息时,可以将第一节点设备的节点信息填入到地址信息中,将消息发送给接收节点设备。接收节点设备将接收节点设备的节点信息填入到位置信息中。接收节点设备可以有多个,任意一个接收节点设备可以被用于转发第一节点设备的位置信息。将接收节点设备的节点地址填入到位置信息中,可以选择任意一个接收节点设备转发位置信息。由接收节点设备将位置信息转发给第二节点设备。In some embodiments, when the first node device communicates with the second node device, the first node device may send communication data to the second node device through the receiving node device. The first node device may send the location information of the first node device to the second node device. When sending the location information, the node information of the first node device may be filled into the address information, and the message is sent to the receiving node device. The receiving node device fills the node information of the receiving node device into the location information. There may be multiple receiving node devices, and any receiving node device may be used to forward the location information of the first node device. The node address of the receiving node device is filled in the location information, and any receiving node device can be selected to forward the location information. The location information is forwarded by the receiving node device to the second node device.

在某些实施方案中,通过上述方法,从而可以保证各个节点设备在通信过程中可以有效的通信,避免出现各个节点设备无法知晓其他节点的连接关系从而无法有效通信的问题。In some embodiments, the above method can ensure that each node device can communicate effectively during the communication process, and avoid the problem that each node device cannot know the connection relationship of other nodes and cannot effectively communicate.

本实施例的其他示例请参见上述示例,在此不在赘述。For other examples of this embodiment, refer to the above examples, and details are not repeated here.

本公开还涉及用于实施上述组网通信方法的第一节点设备1000,如图10所示,该第一节点设备1000包括:The present disclosure also relates to a first node device 1000 for implementing the above-mentioned networking communication method. As shown in FIG. 10 , the first node device 1000 includes:

第一填入单元1002,配置为在向同一组网中的第二节点设备发送消息时,将所述第一节点设备的本地路由表中的节点信息填入到所述消息中;The first filling unit 1002 is configured to fill in the node information in the local routing table of the first node device into the message when sending the message to the second node device in the same networking;

确定单元1004,配置为根据所述第一节点设备的本地路由表中的节点信息确定接收节点设备,并将所述消息发送给所述接收节点设备,以使所述接收节点设备执行如下操作,直到所述接收节点设备为所述第二节点设备:在所述接收节点设备为同一组网中第三节点设备时,将所述接收节点设备的本地路由表中的节点信息补充到所述消息中,并根据所述接收节点设备的本地路由表中的节点信息确定下一个节点设备,将更新后的所述消息发送给所述下一个节点设备,并将所述下一个节点设备确定为新的接收节点设备。The determining unit 1004 is configured to determine a receiving node device according to node information in the local routing table of the first node device, and send the message to the receiving node device, so that the receiving node device performs the following operations, Until the receiving node device is the second node device: when the receiving node device is the third node device in the same network, add the node information in the local routing table of the receiving node device to the message , and determine the next node device according to the node information in the local routing table of the receiving node device, send the updated message to the next node device, and determine the next node device as the new receiving node device.

本实施例的其他示例请参见上述示例,在此不在赘述。For other examples of this embodiment, refer to the above examples, and details are not repeated here.

本公开还涉及用于实施上述组网通信方法的接收节点设备1100。如图11所示,该接收节点设备包括:The present disclosure also relates to the receiving node device 1100 for implementing the above-mentioned networking communication method. As shown in Figure 11, the receiving node equipment includes:

接收单元1102,配置为接收同一组网中的第一节点设备发送的消息;所述消息为所述第一节点设备向同一组网中的第二节点设备发送的,所述消息包括所述第一节点设备的本地路由表中的节点信息;The receiving unit 1102 is configured to receive a message sent by a first node device in the same network; the message is sent by the first node device to a second node device in the same network, and the message includes the first Node information in the local routing table of a node device;

处理单元1104,配置为对所述接收节点设备执行如下操作,直到所述接收节点设备为所述第二节点设备:在所述接收节点设备为同一组网中第三节点设备时,将所述接收节点设备的本地路由表中的节点信息补充到所述消息中,并根据所述接收节点设备的本地路由表中的节点信息确定下一个节点设备,将更新后的所述消息发送给所述下一个节点设备,以使所述下一个节点设备确定为新的接收节点设备。The processing unit 1104 is configured to perform the following operation on the receiving node device until the receiving node device is the second node device: when the receiving node device is a third node device in the same network, the The node information in the local routing table of the receiving node device is added to the message, and the next node device is determined according to the node information in the local routing table of the receiving node device, and the updated message is sent to the The next node device, so that the next node device is determined as a new receiving node device.

本实施例的其他示例请参见上述示例,在此不在赘述。For other examples of this embodiment, refer to the above examples, and details are not repeated here.

本公开还涉及用于实施上述组网通信方法的电子设备1300,该电子设备可以包括存储器1301和处理器1302,该存储器配置为存储计算机程序,该处理器配置为通过计算机程序执行本公开的组网通信方法或本公开的组网通信方法实施例中的步骤。The present disclosure also relates to an electronic device 1300 for implementing the above-mentioned networking communication method. The electronic device may include a memory 1301 and a processor 1302. The memory is configured to store a computer program, and the processor is configured to execute the grouping of the present disclosure through the computer program. steps in the network communication method or the embodiment of the network communication method of the present disclosure.

本公开还涉及计算机可读的存储介质,该计算机可读的存储介质中存储有计算机程序,其中,该计算机程序配置为运行时执行本公开的组网通信方法实施例中的步骤。The present disclosure also relates to a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, wherein the computer program is configured to execute the steps in the embodiments of the networking communication method of the present disclosure during operation.

本公开还涉及组网通信系统1200,其包括本公开的第一节点设备1000和本公开的接收节点设备1100。The present disclosure also relates to a networked communication system 1200, which includes the first node device 1000 of the present disclosure and the receiving node device 1100 of the present disclosure.

在某些实施方案中,本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令终端设备相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:闪存盘、只读存储器(Read-Only Memory,ROM)、随机存 取器(Random Access Memory,RAM)、磁盘或光盘等。In some embodiments, those skilled in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a computer-readable In the storage medium, the storage medium may include: a flash disk, a read-only memory (Read-Only Memory, ROM), a random access device (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.

上述本公开实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the above-mentioned embodiments of the present disclosure are for description only, and do not represent the advantages and disadvantages of the embodiments.

上述实施例中的集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在上述计算机可读取的存储介质中。基于这样的理解,本公开的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在存储介质中,包括若干指令用以使得一台或多台计算机设备(可为个人计算机、服务器或者网络设备等)执行本公开各个实施例所述方法的全部或部分步骤。If the integrated units in the above embodiments are realized in the form of software function units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on this understanding, the essence of the technical solution disclosed in this disclosure or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of software products, and the computer software products are stored in storage media. Several instructions are included to make one or more computer devices (which may be personal computers, servers or network devices, etc.) execute all or part of the steps of the methods described in the various embodiments of the present disclosure.

在本公开的上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments of the present disclosure, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments.

在本公开所提供的几个实施例中,应该理解到,所揭露的客户端,可通过其它的方式实现。其中,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,单元或模块的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in the present disclosure, it should be understood that the disclosed client may be implemented in other ways. Wherein, the device embodiments described above are only illustrative, for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components can be combined or can be Integrate into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of units or modules may be in electrical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本公开各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

以上所述仅是本公开的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本公开原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本公开的保护范围。The above descriptions are only preferred implementations of the present disclosure. It should be pointed out that those skilled in the art can make some improvements and modifications without departing from the principle of the present disclosure. These improvements and modifications are also It should be regarded as the protection scope of the present disclosure.

Claims (25)

组网通信方法,其应用于第一节点设备,所述方法包括:A networking communication method, which is applied to a first node device, the method comprising: 在向同一组网中的第二节点设备发送消息时,将所述第一节点设备的本地路由表中的节点信息填入到所述消息中;以及When sending a message to a second node device in the same network, filling the message with node information in the local routing table of the first node device; and 根据所述第一节点设备的本地路由表中的节点信息确定接收节点设备,并将所述消息发送给所述接收节点设备,以使所述接收节点设备执行如下操作,直到所述接收节点设备为所述第二节点设备:在所述接收节点设备为同一组网中第三节点设备时,将所述接收节点设备的本地路由表中的节点信息补充到所述消息中,并根据所述接收节点设备的本地路由表中的节点信息确定下一个节点设备,将更新后的所述消息发送给所述下一个节点设备,并将所述下一个节点设备确定为新的接收节点设备。Determine the receiving node device according to the node information in the local routing table of the first node device, and send the message to the receiving node device, so that the receiving node device performs the following operations until the receiving node device For the second node device: when the receiving node device is a third node device in the same network, add the node information in the local routing table of the receiving node device to the message, and according to the The node information in the local routing table of the receiving node device determines the next node device, sends the updated message to the next node device, and determines the next node device as a new receiving node device. 如权利要求1所述的方法,其中,所述节点信息包括相邻节点设备及对应的跳数值,所述跳数值为所述相邻节点设备到达所述第二节点设备的跳数,所述根据所述第一节点设备的本地路由表中的节点信息确定接收节点设备包括:The method according to claim 1, wherein the node information includes adjacent node devices and corresponding hop values, the hop value is the number of hops from the adjacent node devices to the second node device, the Determining the receiving node device according to the node information in the local routing table of the first node device includes: 从所述第一节点设备的相邻节点设备中确定出所述跳数值最小的节点设备;determining the node device with the smallest hop value from adjacent node devices of the first node device; 从所述跳数值最小的节点设备中确定出信号强度最大的节点设备;以及determining the node device with the highest signal strength from the node devices with the smallest hop value; and 将确定出的所述信号强度最大的节点设备确定为所述接收节点设备。The determined node device with the highest signal strength is determined as the receiving node device. 如权利要求1或2所述的方法,其中,将所述第一节点设备的节点信息填入到所述消息或者将所述接收节点设备的节点信息补充到所述消息中包括:The method according to claim 1 or 2, wherein filling the node information of the first node device into the message or supplementing the node information of the receiving node device into the message comprises: 将所述节点信息写入到所述消息的节点信息标志位中。Write the node information into the node information flag bit of the message. 如权利要求1至3中任一权利要求所述的方法,其中,所述消息为GPS短消息,所述GPS短消息中的源地址标志位和目标地址标志位各占1个字节,所述节点信息标志位至多占8个字节。The method according to any one of claims 1 to 3, wherein the message is a GPS short message, and the source address flag and the target address flag in the GPS short message each occupy 1 byte, so The above-mentioned node information flag occupies at most 8 bytes. 如权利要求1至4中任一权利要求所述的方法,其中,所述方法还包括:将所述第一节点设备的节点地址填入到所述消息的发送地址标志位中,以使所述接收节点设备在接收到所述消息后将所述接收节点设备的节点地址填入到所述消息的接收地址集标志位中,以形成所述消息的传输路径信息。The method according to any one of claims 1 to 4, wherein the method further comprises: filling the node address of the first node device into the sending address flag bit of the message, so that the After receiving the message, the receiving node device fills the node address of the receiving node device into the receiving address set flag bit of the message, so as to form the transmission path information of the message. 如权利要求1至5中任一权利要求所述的方法,其中,所述组网的组网方式为窄带通信自组网。The method according to any one of claims 1 to 5, wherein the networking mode of the networking is a narrowband communication ad hoc network. 如权利要求6所述的方法,其中,所述窄带通信自组网包括至少两个节点设备,每一个节点设备依次发送广播令牌,由接收到所述广播令牌的节点设备将所述广播令牌中的源地址信息和跳数值保存到 本地路由表中,其中,所述跳数值为发送所述广播令牌的节点设备到达所述第二节点设备的跳数。The method according to claim 6, wherein the narrowband communication ad hoc network includes at least two node devices, each node device sends broadcast tokens in sequence, and the node device that receives the broadcast token sends the broadcast token The source address information and the hop value in the token are stored in the local routing table, wherein the hop value is the hop number from the node device sending the broadcast token to the second node device. 组网通信方法,其应用于接收节点设备,所述方法包括:A networking communication method, which is applied to a receiving node device, the method comprising: 接收同一组网中的第一节点设备发送的消息;所述消息为所述第一节点设备向同一组网中的第二节点设备发送的,所述消息包括所述第一节点设备的本地路由表中的节点信息;以及receiving a message sent by a first node device in the same network; the message is sent by the first node device to a second node device in the same network, and the message includes a local route of the first node device the node information in the table; and 对所述接收节点设备执行如下操作,直到所述接收节点设备为所述第二节点设备:在所述接收节点设备为同一组网中第三节点设备时,将所述接收节点设备的本地路由表中的节点信息补充到所述消息中,并根据所述接收节点设备的本地路由表中的节点信息确定下一个节点设备,将更新后的所述消息发送给所述下一个节点设备,以使所述下一个节点设备确定为新的接收节点设备。Perform the following operations on the receiving node device until the receiving node device is the second node device: when the receiving node device is the third node device in the same network, the local route of the receiving node device The node information in the table is added to the message, and the next node device is determined according to the node information in the local routing table of the receiving node device, and the updated message is sent to the next node device to The next node device is determined as a new receiving node device. 如权利要求8所述的方法,其中,所述节点信息包括相邻节点的跳数值,所述跳数值为所述相邻节点设备到达所述第二节点设备的跳数,所述根据所述接收节点设备的本地路由表中的节点信息确定下一个节点设备,包括:The method according to claim 8, wherein the node information includes a hop value of an adjacent node, the hop value is the number of hops from the adjacent node device to the second node device, and the The node information in the local routing table of the receiving node device determines the next node device, including: 从所述接收节点设备的相邻节点设备中确定出所述跳数值最小的节点设备;determining the node device with the smallest hop value from adjacent node devices of the receiving node device; 从所述跳数值最小的节点设备中确定出信号强度最大的节点设备;以及determining the node device with the highest signal strength from the node devices with the smallest hop value; and 将确定出的所述信号强度最大的节点设备确定为所述接收节点设备。The determined node device with the highest signal strength is determined as the receiving node device. 如权利要求8或9所述的方法,其中,将所述接收节点设备的本地路由表中的节点信息补充到所述消息中包括:The method according to claim 8 or 9, wherein adding node information in the local routing table of the receiving node device to the message includes: 将所述节点信息写入到所述消息的节点信息标志位中。Write the node information into the node information flag bit of the message. 如权利要求8至10中任一权利要求所述的方法,其中,所述消息为GPS短消息,所述GPS短消息中的源地址标志位和目标地址标志位各占1个字节,所述节点信息标志位至多占8个字节。The method according to any one of claims 8 to 10, wherein the message is a GPS short message, and the source address flag and the target address flag in the GPS short message each occupy 1 byte, so The above-mentioned node information flag occupies at most 8 bytes. 如权利要求8至11中任一权利要求所述的方法,其中,所述消息还包括在发送地址标志位中的所述第一节点设备的节点地址;所述方法还包括:在接收到所述消息后,将所述接收节点设备的节点地址填入到所述消息的接收地址集标志位中,以形成所述消息的传输路径信息。The method according to any one of claims 8 to 11, wherein the message further includes the node address of the first node device in the sending address flag; the method further comprises: upon receiving the After receiving the above message, fill the node address of the receiving node device into the receiving address set flag bit of the message to form the transmission path information of the message. 如权利要求8至12中任一权利要求所述的方法,其中,所述组网的组网方式为窄带通信自组网。The method according to any one of claims 8 to 12, wherein the networking mode of the networking is a narrowband communication ad hoc network. 如权利要求13所述的方法,其中,所述窄带通信自组网包括至少两个节点设备,每一个节点设备依次发送广播令牌,由接收到所述广播令牌的节点设备将所述广播令牌中的源地址信息和跳数值保存 到本地路由表中,其中,所述跳数值为发送所述广播令牌的节点设备到达所述第二节点设备的跳数。The method according to claim 13, wherein the narrowband communication ad hoc network comprises at least two node devices, each node device sends a broadcast token in sequence, and the node device that receives the broadcast token transmits the broadcast token The source address information and the hop value in the token are stored in the local routing table, wherein the hop value is the hop number from the node device sending the broadcast token to the second node device. 第一节点设备,其包括:A first node device, which includes: 第一填入单元,配置为在向同一组网中的第二节点设备发送消息时,将所述第一节点设备的本地路由表中的节点信息填入到所述消息中;以及The first filling unit is configured to fill in the node information in the local routing table of the first node device into the message when sending the message to the second node device in the same network; and 确定单元,配置为根据所述第一节点设备的本地路由表中的节点信息确定接收节点设备,并将所述消息发送给所述接收节点设备,以使所述接收节点设备执行如下操作,直到所述接收节点设备为所述第二节点设备:在所述接收节点设备为同一组网中第三节点设备时,将所述接收节点设备的本地路由表中的节点信息补充到所述消息中,并根据所述接收节点设备的本地路由表中的节点信息确定下一个节点设备,将更新后的所述消息发送给所述下一个节点设备,并将所述下一个节点设备确定为新的接收节点设备。A determining unit configured to determine a receiving node device according to node information in the local routing table of the first node device, and send the message to the receiving node device, so that the receiving node device performs the following operations until The receiving node device is the second node device: when the receiving node device is the third node device in the same network, add the node information in the local routing table of the receiving node device to the message , and determine the next node device according to the node information in the local routing table of the receiving node device, send the updated message to the next node device, and determine the next node device as a new Receive node device. 如权利要求15所述的第一节点设备,其中,所述节点信息包括相邻节点设备及对应的跳数值,所述跳数值为所述相邻节点设备到达所述第二节点设备的跳数,所述确定单元包括:The first node device according to claim 15, wherein the node information includes adjacent node devices and corresponding hop values, and the hop value is the number of hops from the adjacent node devices to the second node device , the determination unit includes: 第一确定模块,配置为从所述第一节点设备的相邻节点设备中确定出所述跳数值最小的节点设备;The first determining module is configured to determine the node device with the smallest hop value from the adjacent node devices of the first node device; 第二确定模块,配置为从所述跳数值最小的节点设备中确定出信号强度最大的节点设备;以及The second determination module is configured to determine the node device with the highest signal strength from the node devices with the smallest hop value; and 第三确定模块,配置为将确定出的所述信号强度最大的节点设备确定为所述接收节点设备。The third determining module is configured to determine the determined node device with the highest signal strength as the receiving node device. 如权利要求15或16所述的第一节点设备,其中,所述第一节点设备还配置为:在将所述第一节点设备的节点信息填入到所述消息或者将所述接收节点设备的节点信息补充到所述消息时,将所述节点信息写入到所述消息的节点信息标志位中。The first node device according to claim 15 or 16, wherein the first node device is further configured to: when filling the node information of the first node device into the message or adding the receiving node device When adding the node information to the message, write the node information into the node information flag bit of the message. 如权利要求15至17中任一权利要求所述的第一节点设备,其中,所述消息为GPS短消息,所述GPS短消息中的源地址标志位和目标地址标志位各占1个字节,所述节点信息标志位至多占8个字节。The first node device according to any one of claims 15 to 17, wherein the message is a GPS short message, and the source address flag and the target address flag in the GPS short message each occupy 1 word section, the node information flag occupies at most 8 bytes. 接收节点设备,其包括:Receiving node equipment, which includes: 接收单元,配置为接收同一组网中的第一节点设备发送的消息;所述消息为所述第一节点设备向同一组网中的第二节点设备发送的,所述消息包括所述第一节点设备的本地路由表中的节点信息;以及The receiving unit is configured to receive a message sent by a first node device in the same network; the message is sent by the first node device to a second node device in the same network, and the message includes the first node information in the local routing table of the node device; and 处理单元,配置为对所述接收节点设备执行如下操作,直到所述接收节点设备为所述第二节点设备:在所述接收节点设备为同一组网中第三节点设备时,将所述接收节点设备的本地路由表中的节点信息补充到所述消息中,并根据所述接收节点设备的本地路由表中的节点信息确定下一个节点设备,将更新后的所述消息发送给所述下一个节点设备,以使所述下一个节点设备确定为新的接收节点设备。A processing unit configured to perform the following operations on the receiving node device until the receiving node device is the second node device: when the receiving node device is a third node device in the same network, the receiving node device The node information in the local routing table of the node device is added to the message, and the next node device is determined according to the node information in the local routing table of the receiving node device, and the updated message is sent to the next node device. a node device, so that the next node device is determined as a new receiving node device. 如权利要求19所述的接收节点设备,其中,所述节点信息包括相邻节点的跳数值,所述跳数值为所述相邻节点设备到达所述第二节点设备的跳数,所述处理单元包括:The receiving node device according to claim 19, wherein the node information includes a hop value of an adjacent node, the hop value is the number of hops from the adjacent node device to the second node device, and the processing Units include: 第一确定模块,配置为从所述接收节点设备的相邻节点设备中确定出所述跳数值最小的节点设备;The first determining module is configured to determine the node device with the smallest hop value from adjacent node devices of the receiving node device; 第二确定模块,配置为从所述跳数值最小的节点设备中确定出信号强度最大的节点设备;以及The second determination module is configured to determine the node device with the highest signal strength from the node devices with the smallest hop value; and 第三确定模块,配置为将确定出的所述信号强度最大的节点设备确定为所述接收节点设备。The third determining module is configured to determine the determined node device with the highest signal strength as the receiving node device. 如权利要求19或20所述的接收节点设备,其中,所述处理单元包括:The receiving node device according to claim 19 or 20, wherein the processing unit comprises: 写入模块,配置为将所述节点信息写入到所述消息的节点信息标志位中。A writing module configured to write the node information into the node information flag bit of the message. 如权利要求19至21中任一权利要求所述的接收节点设备,其中,所述消息为GPS短消息,所述GPS短消息中的源地址标志位和目标地址标志位各占1个字节,所述节点信息标志位至多占8个字节。The receiving node device according to any one of claims 19 to 21, wherein the message is a GPS short message, and the source address flag and the target address flag in the GPS short message each occupy 1 byte , the node information flag occupies at most 8 bytes. 组网通信系统,其包括权利要求15至18中任一权利要求所述的第一节点设备和权利要求19至22中任一权利要求所述的接收节点设备。A network communication system, comprising the first node device according to any one of claims 15 to 18 and the receiving node device according to any one of claims 19 to 22. 计算机可读的存储介质,所述计算机可读的存储介质存储有计算机程序,其中,所述计算机程序运行时执行所述权利要求1至7或8至14中任一权利要求所述的方法。A computer-readable storage medium storing a computer program, wherein the computer program executes the method according to any one of claims 1 to 7 or 8 to 14 when running. 电子设备,其包括存储器和处理器,其中,所述存储器中存储有计算机程序,所述处理器被设置为通过所述计算机程序执行所述权利要求1至7或8至14中任一权利要求所述的方法。An electronic device comprising a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to execute any one of claims 1 to 7 or 8 to 14 through the computer program the method described.
PCT/CN2021/141101 2021-06-29 2021-12-24 Networking communication method and system, and node device, storage medium and electronic device WO2023273241A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110725787.8A CN113179215B (en) 2021-06-29 2021-06-29 Networking communication method, system, node device, storage medium and electronic device
CN202110725787.8 2021-06-29

Publications (1)

Publication Number Publication Date
WO2023273241A1 true WO2023273241A1 (en) 2023-01-05

Family

ID=76927912

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/141101 WO2023273241A1 (en) 2021-06-29 2021-12-24 Networking communication method and system, and node device, storage medium and electronic device

Country Status (2)

Country Link
CN (1) CN113179215B (en)
WO (1) WO2023273241A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113179215B (en) * 2021-06-29 2021-09-07 广州慧睿思通科技股份有限公司 Networking communication method, system, node device, storage medium and electronic device
CN113179214B (en) * 2021-06-29 2021-11-16 广州慧睿思通科技股份有限公司 Narrowband ad hoc network construction method, system, storage medium and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103068000A (en) * 2012-12-11 2013-04-24 李滨 Self-organizing network method and system based on minisatellites
CN104967563A (en) * 2015-07-24 2015-10-07 国家电网公司 A method and device for active routing
CN105578558A (en) * 2014-10-16 2016-05-11 北京信威通信技术股份有限公司 Wireless ad-hoc network routing method
WO2020119922A1 (en) * 2018-12-14 2020-06-18 Telefonaktiebolaget Lm Ericsson (Publ) A method of, and a node device for, supporting establishment of a path from a source node to a destination node in wireless mesh network
CN113179215A (en) * 2021-06-29 2021-07-27 广州慧睿思通科技股份有限公司 Networking communication method, system, node device, storage medium and electronic device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8462662B2 (en) * 2008-05-16 2013-06-11 Google Inc. Updating node presence based on communication pathway
CN105517098A (en) * 2014-10-16 2016-04-20 北京信威通信技术股份有限公司 Wireless self-networking system and routing method thereof
CN106131919B (en) * 2016-07-15 2019-06-11 中国电子科技集团公司第五十四研究所 A kind of synchronous method of non-stop layer self-organized network topology
CN110691379B (en) * 2019-10-12 2023-05-02 湖南智领通信科技有限公司 Active route communication method suitable for wireless ad hoc network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103068000A (en) * 2012-12-11 2013-04-24 李滨 Self-organizing network method and system based on minisatellites
CN105578558A (en) * 2014-10-16 2016-05-11 北京信威通信技术股份有限公司 Wireless ad-hoc network routing method
CN104967563A (en) * 2015-07-24 2015-10-07 国家电网公司 A method and device for active routing
WO2020119922A1 (en) * 2018-12-14 2020-06-18 Telefonaktiebolaget Lm Ericsson (Publ) A method of, and a node device for, supporting establishment of a path from a source node to a destination node in wireless mesh network
CN113179215A (en) * 2021-06-29 2021-07-27 广州慧睿思通科技股份有限公司 Networking communication method, system, node device, storage medium and electronic device

Also Published As

Publication number Publication date
CN113179215A (en) 2021-07-27
CN113179215B (en) 2021-09-07

Similar Documents

Publication Publication Date Title
CN112054960B (en) Path calculation method, device and equipment
KR100513282B1 (en) Apparatus and method for transmitting data using path MTU in ad-hoc network
RU2684192C1 (en) Method and apparatus for transmitting service stream in flexible ethernet
CN110417657B (en) Method and device for processing multicast data message
JP5788532B2 (en) Frame delivery route selection in hybrid communication networks
CN108718278B (en) Message transmission method and device
CN107547391B (en) Message transmission method and device
CN107612809A (en) A kind of multicast list synchronous method and equipment
US10097456B2 (en) Method and an apparatus for a gateway
WO2021164258A1 (en) Method for generating forwarding entry, method for sending message, network device, and system
WO2023273241A1 (en) Networking communication method and system, and node device, storage medium and electronic device
US20220095198A1 (en) Method and Device for Setting Up Route Path
US20150088995A1 (en) Method and apparatus for sharing contents using information of group change in content oriented network environment
US8973074B2 (en) Method and system for isochronous communication in audio/video networks
CN106254410A (en) Network system and method for establishing data connection
US20150281068A1 (en) Method for determining management domain, network device, and virtual cluster
CN107483628B (en) DPDK-based one-way proxy method and system
CN116419363B (en) Data transmission method, communication device, and computer-readable storage medium
CN115865844B (en) Dynamic traffic scheduling method and device based on virtual and real combination based on SDN and NDN
KR100431206B1 (en) Table management methode for distributed forwarding in high speed router
CN111917868A (en) Addressing method, device, routing device and storage medium for blockchain nodes
CN114338127A (en) Data transmission method and device for anonymous communication, electronic device and storage medium
WO2023273468A1 (en) Communication method, apparatus and system
WO2024017262A9 (en) Data packet transmission method and virtual network group
JP2006128764A (en) Transmission equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21948166

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 13/05/2024)

122 Ep: pct application non-entry in european phase

Ref document number: 21948166

Country of ref document: EP

Kind code of ref document: A1