A cross-network communication method, apparatus, device, and storage medium

By selecting a gateway in the network overlap area and utilizing a dwell switching mechanism, data transmission across networks is achieved, solving the problem of high hardware costs in existing technologies and improving communication flexibility and application scenarios.

CN116962405BActive Publication Date: 2026-06-30BEIJING SENSORO CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BEIJING SENSORO CO LTD
Filing Date
2023-07-28
Publication Date
2026-06-30

AI Technical Summary

Technical Problem

Existing technologies require two sets of radio frequency equipment for cross-network communication, which increases hardware costs and limits the application scenarios of cross-network communication, especially when the distance between the central node and the network node is not one hop away.

Method used

By selecting a gateway within the overlapping area of ​​the first and second networks and utilizing the gateway's dwell switching mechanism, data transmission between different networks can be achieved without adding additional hardware. The specific steps include receiving communication data, saving it to the target cache queue, and sending the data when the dwell switches to the target network.

Benefits of technology

It enables node communication between adjacent networks without adding hardware devices, significantly saving hardware costs and improving communication flexibility and application scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116962405B_ABST
    Figure CN116962405B_ABST
Patent Text Reader

Abstract

This invention discloses a cross-network communication method, apparatus, device, and storage medium. It includes: receiving communication data sent by a first central node within a first network; when communication with a second network is required based on a target node identifier, saving the communication data to a target cache queue; and when switching to the second network, sending the communication data in the target cache queue to a second central node within the second network, so that the second central node sends the data to be transmitted to the target node located in the second network based on the target node identifier. By selecting a gateway from nodes in the overlapping area of ​​the first and second networks and realizing data transmission between different networks through the gateway's switching mechanism, communication between nodes in adjacent networks can be achieved without adding additional hardware, significantly saving hardware overhead.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of communication technology, and in particular to a cross-network communication method, apparatus, device and storage medium. Background Technology

[0002] Currently, network communication often involves communication between nodes. In a network with a central node, when adjacent networks need to communicate, the central node in the two networks usually needs to use other communication methods to exchange information.

[0003] The current communication approach involves equipping the central node with two radio frequency devices, one for intra-network communication and the other for central node communication. However, this approach significantly increases hardware costs and requires that the two central nodes be hop-wide, which greatly limits the application scenarios of cross-network communication. Summary of the Invention

[0004] This invention provides a cross-network communication method, apparatus, device, and storage medium to achieve cross-network communication transmission.

[0005] In a first aspect, embodiments of the present invention provide a cross-network communication method applied to a gateway, comprising: receiving communication data sent by a first central node in a first network currently in which the gateway resides, wherein the communication data includes a source node identifier, a target node identifier, and data to be transmitted;

[0006] When it is determined that communication with the second network is required based on the target node identifier, the communication data is saved to the target cache queue, wherein the gateway is located in the overlapping area of ​​the first network and the second network;

[0007] When the resident switches to the second network, the communication data in the target cache queue is sent to the second central node in the second network, so that the second central node sends the data to be transmitted to the target node located in the second network according to the target node identifier.

[0008] Secondly, embodiments of the present invention provide a cross-network communication device applied to a gateway, comprising:

[0009] The communication data receiving module is used to receive communication data sent by the first central node in the first network where it is currently residing, wherein the communication data includes a source node identifier, a target node identifier, and data to be transmitted;

[0010] A communication data storage module is used to store the communication data in a target cache queue when it is determined that communication with the second network is required based on the target node identifier, wherein the gateway is located in the overlapping area of ​​the first network and the second network;

[0011] The cross-network communication data transmission module is used to send the communication data in the target cache queue to the second central node in the second network when the station switches to the second network, so that the second central node sends the data to be transmitted to the target node located in the second network according to the target node identifier.

[0012] Thirdly, embodiments of the present invention provide an electronic device, the electronic device comprising:

[0013] One or more processors;

[0014] Storage device for storing one or more programs;

[0015] When one or more programs are executed by one or more processors, the one or more processors implement the methods in any embodiment of the present invention.

[0016] Fourthly, embodiments of the present invention also provide a computer storage medium having a computer program stored thereon, which, when executed by a processor, implements the method as described in any embodiment of the present invention.

[0017] The technical solution of this invention selects a gateway from the nodes in the overlapping area of ​​the first network and the second network, and realizes data transmission in different networks through the gateway's dwell switching mechanism. This enables communication between nodes in adjacent different networks without the need for additional hardware devices, significantly saving hardware costs. Attached Figure Description

[0018] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 This is a flowchart of a cross-network communication method provided in Embodiment 1 of the present invention;

[0020] Figure 2 This is a schematic diagram illustrating an application scenario of the cross-network communication method provided in Embodiment 1 of the present invention;

[0021] Figure 3This is a flowchart of a cross-network communication method provided in Embodiment 2 of the present invention;

[0022] Figure 4 This is a schematic diagram of the cross-network communication device provided in Embodiment 3 of the present invention;

[0023] Figure 5 This is a schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. Detailed Implementation

[0024] The present invention will now be described in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and not intended to limit it. Furthermore, it should be noted that, for ease of description, the accompanying drawings show only the parts relevant to the present invention, and not all of the structures.

[0025] It should also be noted that, for ease of description, the accompanying drawings show only the parts relevant to the invention and not all of them. Before discussing exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe the operations (or steps) as sequential processes, many of the operations can be performed in parallel, concurrently, or simultaneously. Furthermore, the order of the operations can be rearranged. The process can be terminated when its operation is completed, but it may also have additional steps not included in the drawings. The process may correspond to a method, function, procedure, subroutine, subprogram, etc.

[0026] Example 1

[0027] Figure 1 This is a flowchart of a cross-network communication method provided in Embodiment 1 of the present invention. This embodiment is applicable to cross-network communication. The method can be executed by the cross-network communication device in this embodiment, which can be implemented in software and / or hardware. Figure 1 As shown, the method specifically includes the following operations:

[0028] Step S101: Receive communication data sent by the first central node in the first network where the user is currently residing.

[0029] Specifically, such as Figure 2The diagram illustrates an application scenario of the communication method in this embodiment. In this embodiment, network A and network B are adjacent local area networks with overlapping areas. Each network includes multiple ordinary nodes and one central node. In this embodiment, an ordinary node can be selected as the gateway from the overlapping area through initial configuration, designation of the central node, or an election mechanism. This embodiment does not limit the specific method of determining the gateway from the ordinary nodes in the overlapping area. In this embodiment, network A can be used as the first network and network B as the second network. Alternatively, network A can be used as the second network and network B as the first network. This embodiment uses network A as the first network and network B as the second network as an example to specifically explain cross-network data transmission from the first network to the second network.

[0030] Optionally, the method further includes: determining a dwell switching strategy, wherein the dwell switching strategy includes timed switching; performing periodic dwell switching in the first network and the second network through the dwell switching strategy, wherein the gateway and the network to which the dwelling is located operate at the same frequency, and the first network and the second network operate at different frequencies.

[0031] It should be noted that the gateway in this embodiment can switch between two adjacent networks. Specifically, this is achieved by determining a dwell-switching strategy, for example, performing a network dwell-switching every minute, and periodically switching between the first and second networks according to the determined dwell-switching strategy. Since the first and second networks operate at different frequencies in this embodiment, the gateway achieves dwell-switching by changing its own operating frequency. When the gateway dwells in the first network, it switches to the operating frequency of the first network to maintain time synchronization with the first network and maintain a communication link with the first central node in the first network. At this time, the gateway is disconnected from the second network. When the gateway's dwell time in the first network ends and it switches to the operating frequency of the second network, it maintains a communication link with the second central node in the second network. At this time, the gateway is disconnected from the first network, and the central nodes in each network need to maintain the gateway's switching time information.

[0032] Optionally, before receiving communication data sent by the first central node in the currently residing first network, the method further includes: when it is determined that the node is residing in the second network, periodically receiving second network node information sent by the second central node in the second network, wherein the second network node information includes the identifiers of all nodes in the second network; when it is determined, based on the periodically received second network node information, that a node in the second network has changed, generating a node update message, wherein the node update message includes updating the node identifier and an update operation, the update operation including adding or deleting; when it is determined that the node is switched to the first network, sending the node update message to the first central node, and broadcasting the update message to all nodes in the first network through the first central node, so that each node updates its own node information table according to the update message, wherein the node information table includes the identifiers of all nodes in the current first network and the identifiers of all nodes in the second network.

[0033] In this embodiment, the prerequisite for node a in the first network to perform cross-network transmission to node b in the second network is that node a knows that node b exists in the second network. If node b has been deleted and node a is unaware of it, the cross-network transmission is invalid. To ensure the effectiveness of cross-network transmission, the first and second networks in this embodiment share node information. For example, this embodiment uses node a obtaining node information in the second network as an example. When the gateway resides in the second network, since each node in the second network notifies the second central node in the second network when joining or leaving the network, the second central node can obtain the information of all nodes in the second network, i.e., the second network node information. The second network node information includes the identifiers of all nodes in the second network. Since the gateway periodically receives the second network node information sent by the second central node, when the gateway determines that a node in the second network has changed based on the periodically received second network node information, it generates a node update message. The specific format of the node update message is shown in Table 1 below:

[0034] Table 1

[0035] MsgType Network ID Add node number Node ID List Number of deleted nodes Node ID List

[0036] Specifically, the gateway initiates inter-network node information sharing only when it detects changes in node information within the second network. When it determines that the gateway has switched to the first network, it sends a node update message to the first central node. The first central node then broadcasts the update message to all nodes within the first network. Each node updates its own node information table based on the update message. That is, node a in the first network can know which nodes are currently in the second network. Furthermore, since the first central node in the first network also periodically broadcasts the first network node information within the first network, node a can also obtain the identifiers of all nodes in the first network and update its node information table. Therefore, if node b exists in the second network, node a in the first network can be promptly notified through inter-network node information sharing.

[0037] Optionally, receiving communication data sent by the first central node in the first network currently inhabited includes: receiving communication data directly sent by the first central node in the first network currently inhabited, wherein the communication data is sent by the source node to the first central node when the gateway resides in the first network; or, receiving communication data extracted from the local cache by the first central node in the first network currently inhabited, wherein the communication data is sent by the source node to the first central node when the gateway resides in the second network.

[0038] In one specific implementation, when node a in the first network needs to communicate across networks, it will look up the node information table and, upon learning that the destination node b is in the second network, will generate communication data and send it to the first central node in the first network. The specific format of the communication data is shown in Table 2 below:

[0039] Table 2

[0040] MsgType Source Network ID Source Node ID Destination Network ID Destination Node ID Data payload

[0041] The communication data includes a source network identifier, a source node identifier, a destination network identifier, a target node identifier, and a data payload, with the data payload containing the data to be transmitted. After receiving the communication data, the first central node, upon detecting that the destination node b is a node in the second network, further checks whether the gateway is currently residing in the first network. If so, it directly transmits the communication data to the gateway; otherwise, it saves the communication data in its local cache. When it determines that the gateway has switched to the first network, it retrieves the communication data from the local cache and sends it to the gateway. Therefore, in this embodiment, the gateway can directly receive the communication data sent by the first central node, or it can wait for the first central node to retrieve the communication data from its local cache before receiving the data sent by the first central node.

[0042] Step S102: When it is determined that communication with the second network is required based on the target node identifier, the communication data is saved to the target cache queue.

[0043] Optionally, when it is determined that communication with the second network is required based on the target node identifier, the communication data is saved to the target cache queue, including: when it is determined that the target node is located in the second network based on the target node identifier, it is determined that communication with the second network is required; a pre-configured first cache queue and a second cache queue are determined, wherein the first cache queue is used to store data transmitted from the first network to the second network, and the second cache queue is used to store data transmitted from the second network to the first network; the data is filtered from the first cache queue and the second cache queue according to the second network receiving the data, and the first cache queue is used as the target cache queue; the communication data is saved to the target cache queue.

[0044] Specifically, in this embodiment, when the gateway obtains communication data, it determines that the target node is a node in the second network based on the target node identifier in the communication data. If so, it determines that communication with the second network is necessary. Since the gateway has two buffer queues—a first buffer queue for storing data transmitted from the first network to the second network, and a second buffer queue for storing data transmitted from the second network to the first network—when the gateway determines that data needs to be transmitted from the first network to the second network based on the communication data, it will use the first buffer queue as the target buffer queue.

[0045] It is worth mentioning that this embodiment does not limit the size of the first and second cache queues; users can configure them according to their actual needs. Furthermore, this embodiment only illustrates the method of determining the target cache queue when cross-network transmission from the first network to the second network is achieved through a gateway. The method of determining the target cache queue when cross-network transmission from the second network to the first network is largely the same, and will not be elaborated upon in this embodiment.

[0046] Step S103: When the resident switches to the second network, the communication data in the target cache queue is sent to the second central node in the second network, so that the second central node sends the data to be transmitted to the target node located in the second network according to the target node identifier.

[0047] Optionally, sending the communication data in the target cache queue to the second central node in the second network includes: detecting the target cache queue; when data is detected in the target cache queue, extracting the communication data stored in the target cache queue; and sending the extracted communication data to the second central node in the second network.

[0048] Specifically, when the gateway switches to the second network, it disconnects from the first central node in the first network, interrupting the communication link, and maintains a communication link with the second central node in the second network. When the gateway switches back to the second network, it checks the target cache queue (the first cache queue). If data is found in the target cache queue, the communication data stored therein is sent to the second central node in the second network. Since the communication data contains the target node identifier (e.g., node b) and related information such as the data to be transmitted, the second central node sends the data to the target node (node ​​b) in the second network, thus completing the cross-network transmission from node a in the first network to node b in the second network.

[0049] It should be noted that this embodiment uses network A as the first network and network B as the second network as an example to specifically explain cross-network data transmission from the first network to the second network. Of course, network A can also be used as the second network and network B as the first network, and the specific transmission process is roughly the same as described above, so it will not be repeated in this embodiment.

[0050] The technical solution of this invention selects a gateway from the nodes in the overlapping area of ​​the first network and the second network, and realizes data transmission in different networks through the gateway's dwell switching mechanism. This enables communication between nodes in adjacent different networks without the need for additional hardware devices, significantly saving hardware costs.

[0051] Example 2

[0052] Figure 3 This is a flowchart of a cross-network communication method provided in Embodiment 2 of the present invention. Based on the above embodiments, this embodiment, after sending the communication data in the target cache queue to the second central node within the second network, further includes detecting the cross-network communication result. Accordingly, the method of this embodiment specifically includes the following operations:

[0053] Step S101: Receive communication data sent by the first central node in the first network where the user is currently residing.

[0054] Optionally, before receiving communication data sent by the first central node in the currently residing first network, the method further includes: when it is determined that the node is residing in the second network, periodically receiving second network node information sent by the second central node in the second network, wherein the second network node information includes the identifiers of all nodes in the second network; when it is determined, based on the periodically received second network node information, that a node in the second network has changed, generating a node update message, wherein the node update message includes updating the node identifier and an update operation, the update operation including adding or deleting; when it is determined that the node is switched to the first network, sending the node update message to the first central node, and broadcasting the update message to all nodes in the first network through the first central node, so that each node updates its own node information table according to the update message, wherein the node information table includes the identifiers of all nodes in the current first network and the identifiers of all nodes in the second network.

[0055] Optionally, receiving communication data sent by the first central node in the first network currently inhabited includes: receiving communication data directly sent by the first central node in the first network currently inhabited, wherein the communication data is sent by the source node to the first central node when the gateway resides in the first network; or, receiving communication data extracted from the local cache by the first central node in the first network currently inhabited, wherein the communication data is sent by the source node to the first central node when the gateway resides in the second network.

[0056] Step S202: When it is determined that communication with the second network is required based on the target node identifier, the communication data is saved to the target cache queue.

[0057] Optionally, when it is determined that communication with the second network is required based on the target node identifier, the communication data is saved to the target cache queue, including: when it is determined that the target node is located in the second network based on the target node identifier, it is determined that communication with the second network is required; a pre-configured first cache queue and a second cache queue are determined, wherein the first cache queue is used to store data transmitted from the first network to the second network, and the second cache queue is used to store data transmitted from the second network to the first network; the data is filtered from the first cache queue and the second cache queue according to the second network receiving the data, and the first cache queue is used as the target cache queue; the communication data is saved to the target cache queue.

[0058] Step S203: When the resident switches to the second network, the communication data in the target cache queue is sent to the second central node in the second network, so that the second central node sends the data to be transmitted to the target node located in the second network according to the target node identifier.

[0059] Optionally, sending the communication data in the target cache queue to the second central node in the second network includes: detecting the target cache queue; when data is detected in the target cache queue, extracting the communication data stored in the target cache queue; and sending the extracted communication data to the second central node in the second network.

[0060] Step S204: Detect whether a reception response is received from the second central node within a specified time range. If yes, proceed without going to step S205; otherwise, proceed to step S206.

[0061] Specifically, when the target node receives communication data, it will send a reception response to the second central node and then send it to the gateway through the second central node. If the target node does not receive communication data, it will not generate a reception response. Therefore, in this embodiment, the gateway can detect whether it has received a reception response from the second central node within a specified time range, such as 3 seconds.

[0062] Step S205: Confirm that the cross-network transmission of communication data was successful.

[0063] Step S206: Determine that the cross-network transmission of communication data has failed, and generate a cross-network communication failure message.

[0064] Specifically, if no response is received within 3 seconds, the cross-network communication is considered to have failed, and a cross-network communication failure message will be generated. The cause of the cross-network communication failure may be a hardware failure of the target node or a failure of the communication link between the second central node and the target node. This implementation does not limit the specific cause of the cross-network communication failure.

[0065] The gateway will display cross-network communication failure messages to the user, so that the user can promptly check the hardware or network based on the messages, thereby further ensuring the efficiency and accuracy of cross-network communication.

[0066] The technical solution of this invention selects a gateway from the nodes in the overlapping area of ​​the first network and the second network, and realizes data transmission in different networks through the gateway's dwell switching mechanism. This enables communication between nodes in adjacent different networks without the need for additional hardware devices, significantly saving hardware costs.

[0067] Example 3

[0068] Figure 4 This is a schematic diagram of the cross-network communication device provided in Embodiment 3 of the present invention. The device includes: a communication data receiving module 310, a communication data storage module 320, and a communication data cross-network transmission module 330.

[0069] The communication data receiving module 310 is used to receive communication data sent by the first central node in the first network where it is currently residing, wherein the communication data includes a source node identifier, a target node identifier, and data to be transmitted;

[0070] The communication data storage module 320 is used to save communication data to the target cache queue when it is determined that communication with the second network is required based on the target node identifier, wherein the gateway is located in the overlapping area of ​​the first network and the second network;

[0071] The cross-network communication data transmission module 330 is used to send the communication data in the target buffer queue to the second central node in the second network when the station switches to the second network, so that the second central node sends the data to be transmitted to the target node located in the second network according to the target node identifier.

[0072] Optionally, the device further includes a dwell switching module for determining a dwell switching strategy, wherein the dwell switching strategy includes timed switching;

[0073] A periodic switching between the first and second networks is performed using a switching strategy. The gateway operates on the same frequency as the network it is switching to, but the first and second networks operate on different frequencies.

[0074] Optionally, the device also includes a node information sharing module, which is used to periodically receive second network node information sent by the second central node in the second network when it is determined that the device is residing in the second network, wherein the second network node information includes the identifiers of all nodes in the second network.

[0075] When a node in the second network is determined to have changed based on the periodically received second network node information, a node update message is generated. The node update message includes the updated node identifier and the update operation, which includes adding or deleting.

[0076] When it is determined that the node will switch to the first network, a node update message is sent to the first central node. The first central node then broadcasts the update message to all nodes in the first network, so that each node can update its own node information table according to the update message. The node information table includes the identifiers of all nodes in the current first network and the identifiers of all nodes in the second network.

[0077] Optionally, a communication data receiving module is used to receive communication data directly sent by the first central node in the first network currently residing, wherein the communication data is sent by the source node to the first central node when the gateway resides in the first network;

[0078] Alternatively, it can receive communication data extracted from the local cache by the first central node in the first network where it currently resides, wherein the communication data was sent by the source node to the first central node when the gateway resides in the second network.

[0079] Optionally, a communication data storage module is used to determine whether communication with the second network is needed when the target node is located in the second network based on the target node identifier.

[0080] A pre-configured first cache queue and a second cache queue are determined, wherein the first cache queue is used to store data transmitted from the first network to the second network, and the second cache queue is used to store data transmitted from the second network to the first network;

[0081] The second network that receives data filters from the first and second buffer queues, and the first buffer queue is used as the target buffer queue.

[0082] Save the communication data to the target cache queue.

[0083] Optionally, a cross-network communication data transmission module is used to detect the target cache queue. When data is detected in the target cache queue, the communication data stored in the target cache queue is extracted.

[0084] The extracted communication data is sent to the second central node within the second network.

[0085] Optionally, the device also includes a cross-network communication detection module, used to detect whether a reception response is received from the second central node within a specified time range. If so, it is determined that the cross-network transmission of communication data was successful.

[0086] Otherwise, it will be determined that the cross-network data transmission has failed, and a cross-network communication failure message will be generated.

[0087] The above-described apparatus can execute the cross-network communication method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects for executing the method. Technical details not described in detail in this embodiment can be found in the methods provided in any embodiment of the present invention.

[0088] Example 4

[0089] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Figure 5 A block diagram is shown that is suitable for implementing an exemplary electronic device 412 of the present invention. Figure 5 The electronic device 412 shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of the present invention.

[0090] like Figure 5As shown, electronic device 412 appears in the form of a general-purpose computing electronic device. The components of electronic device 412 may include, but are not limited to: one or more processors 416, memory 428, and bus 418 connecting different system components (including memory 428 and processor 416).

[0091] Bus 418 represents one or more of several bus architectures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of the various bus architectures. Examples of these architectures include, but are not limited to, the Industry Standard Architecture (ISA) bus, the Micro Channel Architecture (MAC) bus, the Enhanced ISA bus, the Video Electronics Standards Association (VESA) local bus, and the Peripheral Component Interconnect (PCI) bus.

[0092] Electronic device 412 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by electronic device 412, including volatile and non-volatile media, removable and non-removable media.

[0093] Memory 428 is used to store instructions. Memory 428 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 430 and / or cache memory 432. Electronic device 412 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 434 may be used to read and write non-removable, non-volatile magnetic media (…). Figure 4 Not shown; usually referred to as a "hard drive"). Although Figure 4 Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk") and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 418 via one or more data media interfaces. Memory 428 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the embodiments of the present invention.

[0094] A program / utility 440 having a set (at least one) of program modules 442 may be stored, for example, in memory 428. Such program modules 442 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment. Program modules 442 typically perform the functions and / or methods described in the embodiments of the present invention.

[0095] Electronic device 412 can also communicate with one or more external electronic devices 414 (e.g., keyboard, pointing electronic device, display 424, etc.), and with one or more electronic devices that enable a user to interact with electronic device 412, and / or with any electronic device (e.g., network card, modem, etc.) that enables electronic device 412 to communicate with one or more other computing electronic devices. This communication can be performed via input / output (I / O) interface 422. Furthermore, electronic device 412 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 420. As shown, network adapter 420 communicates with other modules of electronic device 412 via bus 418. It should be understood that, although... Figure 4 As not shown, other hardware and / or software modules may be used in conjunction with electronic device 412, including but not limited to: microcode, electronic device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0096] The processor 416 executes various functional applications and data processing by running instructions stored in the memory 428, such as implementing the modulation index estimation method for CPM signals provided in this embodiment of the invention: estimating the noise phase variance based on the received signal; determining the differential phase of the received signal and the differential phase of the local CPM signal; determining the noise covariance matrix based on the noise phase variance; and estimating the modulation index of the CPM signal based on the noise covariance matrix, the differential phase of the local CPM signal, and the differential phase of the received signal.

[0097] Example 5

[0098] Embodiment 5 of the present invention provides a computer-readable storage medium having a computer program stored thereon. When executed by a processor, the program implements the cross-network communication method as provided in all embodiments of the present application.

[0099] Any combination of one or more computer-readable media may be used. A computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in connection with an instruction execution system, apparatus, or device.

[0100] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, capable of sending, propagating, or transmitting programs for use by or in connection with an instruction execution system, apparatus, or device.

[0101] Program code contained on a computer-readable medium may be transmitted using any suitable medium, including but not limited to wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.

[0102] Computer program code for performing the operations of this invention can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, as well as conventional procedural programming languages—such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0103] Note that the above description is merely a preferred embodiment of the present invention and the technical principles employed. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions can be made without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and may include many other equivalent embodiments without departing from the concept of the present invention, the scope of which is determined by the scope of the appended claims.

Claims

1. A cross-network communication method, characterized in that, Applied to gateways, including: Receive communication data sent by the first central node in the first network where it is currently residing, wherein the communication data includes a source node identifier, a target node identifier, and data to be transmitted; When it is determined that communication with the second network is required based on the target node identifier, the communication data is saved to the target cache queue. The first network and the second network have an overlapping area. The first network and the second network each include multiple ordinary nodes and a central node. The gateway is an ordinary node selected from the overlapping area through an election mechanism. When the resident switches to the second network, the communication data in the target cache queue is sent to the second central node in the second network, so that the second central node sends the data to be transmitted to the target node located in the second network according to the target node identifier; The method further includes: determining a dwell switching strategy, wherein the dwell switching strategy includes timed switching; performing periodic dwell switching in the first network and the second network through the dwell switching strategy, wherein the gateway and the network to which it dwells operate at the same frequency, and the first network and the second network operate at different frequencies.

2. The method according to claim 1, characterized in that, Before receiving communication data sent by the first central node within the currently residing first network, the method further includes: When it is determined that it resides in the second network, it periodically receives the second network node information sent by the second central node in the second network, wherein the second network node information includes the identifiers of all nodes in the second network; When a node in the second network is determined to have changed based on the periodically received second network node information, a node update message is generated. The node update message includes an updated node identifier and an update operation, which includes adding or deleting. When it is determined that the node will switch to the first network, the node update message is sent to the first central node. The first central node then broadcasts the update message to all nodes in the first network, so that each node updates its own node information table according to the update message. The node information table includes all node identifiers in the first network and all node identifiers in the second network.

3. The method according to claim 1, characterized in that, Receiving communication data sent by the first central node within the currently residing first network includes: Receive communication data directly sent by the first central node in the first network where the gateway is currently residing, wherein the communication data is sent by the source node to the first central node when the gateway is residing in the first network; Alternatively, it can receive communication data extracted from the local cache by the first central node in the first network where it currently resides, wherein the communication data is sent by the source node to the first central node when the gateway resides in the second network.

4. The method according to claim 1, characterized in that, When it is determined that communication with the second network is required based on the target node identifier, saving the communication data to the target cache queue includes: When the target node is determined to be located in the second network based on the target node identifier, it is determined that communication with the second network is required. A pre-configured first cache queue and a second cache queue are determined, wherein the first cache queue is used to store data transmitted from the first network to the second network, and the second cache queue is used to store data transmitted from the second network to the first network; The second network receiving the data filters from the first cache queue and the second cache queue, and the first cache queue is used as the target cache queue. The communication data is saved to the target cache queue.

5. The method according to claim 1, characterized in that, Sending the communication data in the target cache queue to the second central node within the second network includes: The target cache queue is detected, and when data is detected in the target cache queue, the communication data stored in the target cache queue is extracted. The extracted communication data is sent to the second central node within the second network.

6. The method according to claim 1, characterized in that, After sending the communication data in the target cache queue to the second central node in the second network, the method further includes: The system checks whether a response is received from the second central node within a specified time range. If so, the cross-network data transmission is considered successful. Otherwise, the cross-network transmission of the communication data is determined to have failed, and a cross-network communication failure message is generated.

7. A cross-network communication device, characterized in that, Applied to gateways, including: The communication data receiving module is used to receive communication data sent by the first central node in the first network where it is currently residing, wherein the communication data includes a source node identifier, a target node identifier, and data to be transmitted; A communication data storage module is used to store the communication data in a target cache queue when it is determined that communication with the second network is required based on the target node identifier. The first network and the second network have an overlapping area. The first network and the second network each include multiple ordinary nodes and a central node. The gateway is an ordinary node selected from the overlapping area through an election mechanism. The cross-network communication data transmission module is used to send the communication data in the target cache queue to the second central node in the second network when the station switches to the second network, so that the second central node sends the data to be transmitted to the target node located in the second network according to the target node identifier; The device further includes a dwell switching module for determining a dwell switching strategy, wherein the dwell switching strategy includes timed switching; and periodic dwell switching is performed in the first network and the second network through the dwell switching strategy, wherein the gateway and the network to which the dwelling is located operate at the same frequency, and the first network and the second network operate at different frequencies.

8. An electronic device, characterized in that, The electronic device includes: One or more processors; Storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of claims 1-6.

9. A computer storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the method as described in any one of claims 1-6.