A method and system for networked communication between devices

By using device self-organizing network communication and leveraging communication link rules and the shortest communication principle, the problem of interconnection between devices in the absence of wireless signals or WiFi is solved, enabling direct and rapid information exchange between devices and promoting the development of the Internet of Things.

CN116437326BActive Publication Date: 2026-06-26SHENZHEN YUANYI TECH SERVICE CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SHENZHEN YUANYI TECH SERVICE CO LTD
Filing Date
2023-04-24
Publication Date
2026-06-26

AI Technical Summary

Technical Problem

In existing technologies, devices need to connect and exchange information via the Internet, which means they cannot connect in the absence of wireless signals or WiFi, and there are technical obstacles to realizing the Internet of Things.

Method used

The device establishes a local area network for information exchange through self-organizing network communication, establishes communication links using communication link rules and the shortest communication principle, and uses the TCP three-way handshake principle for connection.

Benefits of technology

It enables direct and rapid communication between devices in the absence of a wide area network, avoiding the need for internet relay and promoting information exchange in the Internet of Things.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116437326B_ABST
    Figure CN116437326B_ABST
Patent Text Reader

Abstract

The application provides a method and system for network communication between devices, and belongs to the technical field of network communication. The method comprises the following steps: starting a search mode of a terminal device, and judging a communication link state of the terminal device; when the communication link state is not directly communicable, searching for connectable terminal devices in a preset range corresponding to the terminal device; locking a plurality of communication terminals that can be used as communication media in a communication range corresponding to the terminal device according to a communication link rule and in combination with a search result, and performing communication networking to obtain a plurality of communication links, wherein each terminal device in the communication links has a unique ID; and searching for an optimal link from the plurality of communication links according to a shortest communication principle to perform device communication. The application establishes an automatic local area network between devices to perform network interaction, and realizes direct and rapid communication between devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of network communication technology, and in particular to a method and system for networking communication between devices. Background Technology

[0002] The development of internet technology has enabled numerous devices to connect and interact via the internet. However, all internet-connected devices require a telecommunications signal and data allowance provided by a telecom operator, or Wi-Fi, to establish a network connection. Without a wireless signal or Wi-Fi server, they cannot connect to the internet and achieve interconnection. This means that device-to-device communication also requires the internet. The flow of information must first reach an internet server before reaching the device, resulting in data traveling a considerable physical distance. This also creates obstacles to interconnection between devices from different brands, posing a significant technological hurdle to the realization of the Internet of Things (IoT).

[0003] Therefore, this invention proposes a method and system for networking communication between devices, which enables network interaction by establishing a self-organizing network between devices, realizing information exchange in the Internet of Things without going through a wide area network, and achieving direct and fast communication between devices. Summary of the Invention

[0004] This invention provides a method and system for networking communication between devices, which enables automatic linking of devices over a certain distance to form a local area network for direct and rapid information exchange through self-organizing network communication between devices.

[0005] This invention provides a method for network communication between devices, comprising:

[0006] Step 1: Start the search mode of the first terminal device and the destination terminal device, and determine the communication link status between the first terminal device and the destination terminal device;

[0007] Step 2: When the communication link status is that direct communication is not possible, perform a first search for connectable terminal devices within a first preset range corresponding to the first terminal device and a second search for connectable terminal devices within a preset range corresponding to the destination terminal device.

[0008] Step 3: According to the communication link rules, and in combination with the first search result and the second search result, locate a number of second communication terminals that can serve as communication media within the communication range of the first terminal device and the second terminal device, and form a communication network to obtain a number of communication links, wherein each terminal device in the communication link has a unique ID;

[0009] Step 4: Based on the shortest communication principle, search for the best link among the several communication links to conduct device communication.

[0010] Preferably, before performing the first and second searches, the process further includes:

[0011] Retrieve and obtain the number of device connections for the first terminal device and the destination terminal device;

[0012] If the number of device connections is equal to the first number of connections and there is no data link between the first terminal device and the destination terminal device, then count the first access frequency of the connected devices corresponding to the first terminal device and the destination terminal device, and disconnect the connection with the device with the lowest first access frequency respectively.

[0013] Otherwise, search according to the search pattern.

[0014] Preferably, performing a first search for connectable terminal devices within a first preset range corresponding to the first terminal device and a second search for connectable terminal devices within a preset range corresponding to the target terminal device includes:

[0015] Retrieve the first current connection count of each terminal device within the first preset range corresponding to the first terminal device, and determine the terminal devices whose first current connection count is less than the first connection count as the first connectable terminal devices;

[0016] The system retrieves the second current connection count of each terminal device within the second preset range corresponding to the target terminal device, and determines the terminal devices with a second current connection count less than the first connection count as the second connectable terminal devices.

[0017] Preferably, according to the communication link rules, and in combination with the first search result and the second search result, a number of second communication terminals that can serve as communication media within the communication range corresponding to the first terminal device and the second terminal device are identified, and a communication network is formed to obtain a number of communication links, including:

[0018] Based on the first search result, a plurality of first signals within a first preset range obtained by the first terminal device are determined, and a connection request is sent first to the terminal to be verified corresponding to the strongest signal among the plurality of first signals.

[0019] When the terminal to be verified receives the request information sent by the first terminal device, the cloud server determines the number of currently connected devices of the terminal to be verified. If the number of currently connected devices is less than the first connection number, the cloud server sends an agreement request instruction to the terminal to be verified. Otherwise, the cloud server sends a rejection request instruction and sends a connection request to the terminal corresponding to the second strong signal within the first preset range.

[0020] When the terminal to be verified receives the consent request instruction, a random connection key and a first certificate used by the first terminal device to verify the identity are sent to the terminal to be verified, and the feedback key of the terminal to be verified and the feedback certificate of the first certificate are captured.

[0021] When the random connection key and feedback key, the first certificate and feedback certificate meet the connection standard conditions, the terminal to be verified is regarded as the second communication terminal by default, and a communication connection is established between the first terminal device and the terminal to be verified.

[0022] After issuing the rejection request instruction, a connection request is sent to the terminal corresponding to the second strong signal in the first preset range until a communication connection between the first terminal device and the new terminal to be verified is successfully established.

[0023] Simultaneously, based on the second search result, a second communication terminal connected to the target terminal device is determined;

[0024] Furthermore, according to the communication link rules, the search continues to be performed on the second communication terminal to which the first terminal device has successfully connected, and on the devices on the second communication terminal to which the second terminal device has successfully connected, until a communication link is established between the first terminal device and the destination terminal device.

[0025] Preferably, the process of establishing a communication link between the first terminal device and the second terminal device further includes:

[0026] The ID of the target terminal device is encapsulated in the detection message, and the first terminal device sends the detection message to the second communication terminal that has successfully established a communication connection with the first terminal device.

[0027] The second communication terminal, which has successfully established a communication connection with the first terminal device, continues to broadcast messages and performs a first traversal based on the breadth-first search strategy and the communication link rules.

[0028] The second terminal device sends the detection message to the second communication terminal that has successfully established a communication connection with the second terminal device;

[0029] The second communication terminal, which has successfully established a communication connection with the second terminal device, continues to broadcast messages and performs a second traversal based on the breadth-first search strategy and the communication link rules.

[0030] Based on the results of the first and second traversals, several communication links between the first terminal device and the destination terminal device are obtained.

[0031] Preferably, in the process of searching for the optimal link from the plurality of communication links for device communication according to the shortest communication principle, the method further includes:

[0032] Establish a first topology connection network between the first terminal device and the destination terminal device. ,in, Indicates from the first terminal To the destination terminal The i-th communication link, where n represents the total number of communication links;

[0033] Each communication link in the first topology connection network is traversed, the number of intermediate terminals in each communication link is counted, and the link with the smallest number of intermediate terminals is selected.

[0034] When the number of filtered links is 1, the filtered link is taken as the optimal link;

[0035] When the filtering link is not 1, each intermediate terminal device in each filtering link is weighted.

[0036] In this process, the first terminal device is assigned a weight of 0, and each intermediate terminal in the corresponding filtering link is assigned a weight of 1 to obtain the initial weight value of the corresponding filtering link, which is then assigned to the destination terminal device.

[0037]

[0038] Where C0 represents the corresponding filtering link. The initial weighting value; This indicates the number of intermediate terminals in the corresponding filtering link, where the total weight of each filtering link is the same as the number of terminals involved in that filtering link; This represents the maximum number of terminals in all communication links;

[0039] Determine the scheduling weighting value for each filtering link;

[0040]

[0041] in, This represents the scheduling weighting value for the corresponding filtered link; This represents the terminal loss of the j1th intermediate terminal in the corresponding filtering link; This represents the path loss of the j2-th node segment in the corresponding filtered link, and = +1, This indicates the number of node segments in the corresponding filter link;

[0042] Indicates the preset terminal loss; Indicates the preset path loss;

[0043] The final weighted value is calculated based on the initial weighted value and the scheduling weighted value. ;

[0044]

[0045] The link with the smallest final weighted value is selected as the best link.

[0046] The process of determining the scheduling weighting value for each filtering link also includes:

[0047] Calculate the terminal loss of the j1th intermediate terminal in the filtering link;

[0048]

[0049] in, This represents the number of device connections for the j1th intermediate terminal; Indicates the first number of connections; This indicates the standard full-level loss of the intermediate terminal under the first number of connections.

[0050] This invention provides a system for networking communication between devices, comprising:

[0051] Startup and self-test module: Starts the search mode of the first terminal device and the destination terminal device, and determines the communication link status between the first terminal device and the destination terminal device;

[0052] Communication search module: When the communication link status is that direct communication link is not possible, a first search is performed on the connectable terminal devices within the first preset range corresponding to the first terminal device, and a second search is performed on the connectable terminal devices within the preset range corresponding to the target terminal device.

[0053] Link processing module: According to the communication link rules, and in combination with the first search result and the second search result, it locks a number of second communication terminals that can be used as communication media within the communication range of the first terminal device and the second terminal device, and performs communication networking to obtain a number of communication links, wherein each terminal device in the communication link has a unique ID;

[0054] Communication module: Based on the principle of shortest communication, it searches for the best link among the several communication links to conduct device communication.

[0055] Other features and advantages of the invention will be set forth in the following description, and will be apparent in part from the description, or may be learned by practicing the invention. The objects and other advantages of the invention may be realized and obtained by means of the structures particularly pointed out in the written description, claims, and drawings.

[0056] The technical solution of the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. Attached Figure Description

[0057] The accompanying drawings are provided to further illustrate the invention and form part of the specification. They are used in conjunction with embodiments of the invention to explain the invention and do not constitute a limitation thereof. In the drawings:

[0058] Figure 1 This is a flowchart illustrating a method for network communication between devices according to an embodiment of the present invention;

[0059] Figure 2 This is a structural diagram of a system for networking communication between devices according to an embodiment of the present invention. Detailed Implementation

[0060] The preferred embodiments of the present invention will be described below with reference to the accompanying drawings. It should be understood that the preferred embodiments described herein are for illustration and explanation only and are not intended to limit the present invention.

[0061] This invention provides a method for networking communication between devices, such as... Figure 1 As shown, it includes:

[0062] Step 1: Start the search mode of the first terminal device and the destination terminal device, and determine the communication link status between the first terminal device and the destination terminal device;

[0063] Step 2: When the communication link status is that direct communication is not possible, perform a first search for connectable terminal devices within a first preset range corresponding to the first terminal device and a second search for connectable terminal devices within a preset range corresponding to the destination terminal device.

[0064] Step 3: According to the communication link rules, and in combination with the first search result and the second search result, locate a number of second communication terminals that can serve as communication media within the communication range of the first terminal device and the second terminal device, and form a communication network to obtain a number of communication links, wherein each terminal device in the communication link has a unique ID;

[0065] Step 4: Based on the shortest communication principle, search for the best link among the several communication links to conduct device communication.

[0066] In this embodiment, when the search mode is enabled, a terminal ID is assigned to the corresponding terminal and an ID query is performed in the respective information database to retrieve the communication link status with the device.

[0067] In this embodiment, the communication link status includes: a direct communication link status and a non-direct communication link status, and the direct communication link status refers to the first terminal device and the destination terminal device being able to communicate directly.

[0068] In this embodiment, the first terminal searches for other terminal devices within a pre-set first preset range. The first preset range is measured by distance. For example, if the first preset range is set to 100m, after starting the search mode, the connection status between all terminal devices within a 100m range and the current terminal can be retrieved.

[0069] In this embodiment, the result of the first search is all terminals retrieved by the first terminal within a first preset range and their respective device connection statuses; the second search result is all terminal devices retrieved by the target terminal within the corresponding preset range and their respective device connection statuses.

[0070] In this embodiment, the communication link rule is the setting of device connection status and connection method. The first connection number is set to 5. Among the retrieved terminal devices, only terminal devices with fewer than the first connection number can connect and communicate with the first terminal and the destination terminal. The connection between devices is set to be similar to the three-way handshake principle of TCP communication. The connection between devices is established through the three-way handshake.

[0071] In this embodiment, the second communication terminal is a terminal device that can be connected to communicate, obtained based on the first search result and the second search result and combined with the communication link rules, and acts as the communication medium between the first terminal and the destination terminal.

[0072] In this embodiment, the unique ID of each terminal device is generated according to the rules after the link is established. The IDs of the connected devices are stored in the information database of their respective terminals. The unique connection permission key between the connected devices is also included. The ID is the identity code for communication between devices and is used to identify the identity when transmitting information.

[0073] In this embodiment, the shortest communication principle means that after a device is successfully connected, each device is identified by an ID. When information transmission is required, the system first searches for the link closest to that ID to obtain the fastest link between the two IDs and then transmits information through the link. For example, if device A and device E need to communicate, and A is connected to B, B is connected to C, and C is connected to E, then the communication link between A and E is ABCE. If A is connected to B, E is connected to B, B is connected to D, and E is also connected to D, then the shortest link between A and E is ABE.

[0074] In this embodiment, the communication of the optimal link follows the device information transmission protocol. For example, when information transmission is initiated, a protocol signal is first sent to search for the shortest path to the recipient, and then a handshake is formed to establish a path. If there is no direct communication link, information needs to be transmitted through an intermediate device. When one of the intermediate devices disconnects, the path search and handshake are re-initiated to establish a path and conduct communication.

[0075] The beneficial effects of the above technical solution are: by establishing a self-organizing network between devices for network interaction, it is no longer necessary to connect through the existing wide area network server, and information interaction of the Internet of Things can be realized without going through the wide area network, realizing direct and fast communication between devices.

[0076] This invention provides a method for network communication between devices, which further includes, before performing a first search and a second search:

[0077] Retrieve and obtain the number of device connections for the first terminal device and the destination terminal device;

[0078] If the number of device connections is equal to the first number of connections and there is no data link between the first terminal device and the destination terminal device, then count the first access frequency of the connected devices corresponding to the first terminal device and the destination terminal device, and disconnect the connection with the device with the lowest first access frequency respectively.

[0079] Otherwise, search according to the search pattern.

[0080] In this embodiment, in order to prevent the networking of devices from affecting the normal use of other devices, the maximum number of connections between each device and other devices is limited, wherein the first number of connections is determined to be 5.

[0081] In this embodiment, the access frequency of each communicating device and the device participating in the communication as a communication medium is recorded and denoted as the first access frequency. The device with the lowest first access frequency among the devices connected to the first terminal device indicates that the connection has the lowest practicality. Therefore, when the number of devices connected to the first terminal device is equal to the number of first connections and it needs to communicate with other devices that cannot be directly linked, the connection with the device with the lowest first access frequency is disconnected.

[0082] In this embodiment, when the connection between devices is disconnected, the disconnection is performed after four handshakes, and the relevant information in the information database corresponding to the device is released.

[0083] The beneficial effects of the above technical solution are: by setting the maximum number of device connections, the normal use of each device in the self-organizing network between devices is ensured, which helps to realize direct and fast communication between devices.

[0084] This invention provides a method for network communication between devices, comprising performing a first search on connectable terminal devices within a first preset range corresponding to the first terminal device and a second search on connectable terminal devices within a preset range corresponding to the destination terminal device, including:

[0085] Retrieve the first current connection count of each terminal device within the first preset range corresponding to the first terminal device, and determine the terminal devices whose first current connection count is less than the first connection count as the first connectable terminal devices;

[0086] The system retrieves the second current connection count of each terminal device within the second preset range corresponding to the target terminal device, and determines the terminal devices with a second current connection count less than the first connection count as the second connectable terminal devices.

[0087] In this embodiment, when searching for terminal devices, a preset search range is set for each terminal device. The terminal device searches for connectable terminal devices within the corresponding preset range. For example, if the preset range for terminal device A is set to 100m, then after terminal device A starts the search mode, it can retrieve all terminal devices within 100m around terminal device A. Connected terminal devices within this range automatically display a connected status, while the remaining terminal devices display an unconnected status. The unconnected terminal devices are further judged to obtain connectable terminal devices.

[0088] In this embodiment, the connectable terminal device needs to meet the following conditions: it is within the preset range of the corresponding terminal device, and the number of currently connected devices that are not connected to the terminal device is less than the first number of connections.

[0089] The beneficial effects of the above technical solution are: after determining that there is no direct communication link between the first terminal and the destination terminal, the connectable terminal devices between the first terminal and the destination terminal are identified, and the communication link between the first terminal and the destination terminal is obtained by using the connectable terminal devices as the communication medium, thus ensuring fast communication between devices through the self-organizing network.

[0090] This invention provides a method for networking communication between devices. According to communication link rules, and combining a first search result and a second search result, a plurality of second communication terminals within the communication range of a first terminal device and a second terminal device that can serve as communication media are identified. A communication network is then established to obtain a plurality of communication links, including:

[0091] Based on the first search result, a plurality of first signals within a first preset range obtained by the first terminal device are determined, and a connection request is sent first to the terminal to be verified corresponding to the strongest signal among the plurality of first signals.

[0092] When the terminal to be verified receives the request information sent by the first terminal device, the cloud server determines the number of currently connected devices of the terminal to be verified. If the number of currently connected devices is less than the first connection number, the cloud server sends an agreement request instruction to the terminal to be verified. Otherwise, the cloud server sends a rejection request instruction and sends a connection request to the terminal corresponding to the second strong signal within the first preset range.

[0093] When the terminal to be verified receives the consent request instruction, a random connection key and a first certificate used by the first terminal device to verify the identity are sent to the terminal to be verified, and the feedback key of the terminal to be verified and the feedback certificate of the first certificate are captured.

[0094] When the random connection key and feedback key, the first certificate and feedback certificate meet the connection standard conditions, the terminal to be verified is regarded as the second communication terminal by default, and a communication connection is established between the first terminal device and the terminal to be verified.

[0095] After issuing the rejection request instruction, a connection request is sent to the terminal corresponding to the second strong signal in the first preset range until a communication connection between the first terminal device and the new terminal to be verified is successfully established.

[0096] Simultaneously, based on the second search result, a second communication terminal connected to the target terminal device is determined;

[0097] Furthermore, according to the communication link rules, the search continues to be performed on the second communication terminal to which the first terminal device has successfully connected, and on the devices on the second communication terminal to which the second terminal device has successfully connected, until a communication link is established between the first terminal device and the destination terminal device.

[0098] In this embodiment, communication links are established between devices according to communication link rules, wherein the communication link rules adopt the three-way handshake principle of TCP communication for communication connection.

[0099] In this embodiment, both the first search and the second search obtain signals from several terminal devices within a preset range, which are identified as the first signal. According to the communication link rules, the strongest signal among the first signals is identified, which is the closest terminal device to be verified, and a connection request is sent to it. This is the first handshake.

[0100] In this embodiment, the terminal device to be verified first checks whether the number of currently connected devices is less than the first connection limit and responds to the request. If it is less than the first connection limit, it replies to the first terminal device with connection agreement information and sends a random connection key and a first certificate for identity verification. At the same time, it captures the feedback key of the terminal to be verified for the random connection key and the feedback certificate of the first certificate. This is the second handshake. Otherwise, it replies with a rejection information. The first terminal identifies the terminal device corresponding to the second strong signal in the first signal as the terminal to be verified and sends a connection request.

[0101] In this embodiment, after capturing the feedback key and feedback certificate, the terminal to be verified performs confirmation based on connection standard conditions, which include confirmation of the key, confirmation of the certificate, and confirmation of the number of connections of the first terminal device.

[0102] In this embodiment, when the first terminal receives a connection consent request from the terminal device to be verified, it receives a random connection key and a first certificate as feedback. This is the third handshake. At this point, the terminal device to be verified is identified as the second communication terminal. The first terminal and the second communication terminal successfully establish a connection and store the terminal device's ID, connection key, and certificate in the cloud server's database.

[0103] The beneficial effects of the above technical solution are: by identifying and establishing a link between the first terminal device and the destination terminal device as a second communication terminal within a preset range, it helps to establish a communication link between the first terminal device and the destination terminal device, and further promotes the realization of rapid communication in self-organizing networks between devices.

[0104] This invention provides a method for network communication between devices, which further includes the following steps until a communication link is established between the first terminal device and the second terminal device:

[0105] The ID of the target terminal device is encapsulated in the detection message, and the first terminal device sends the detection message to the second communication terminal that has successfully established a communication connection with the first terminal device.

[0106] The second communication terminal, which has successfully established a communication connection with the first terminal device, continues to broadcast messages and performs a first traversal based on the breadth-first search strategy and the communication link rules.

[0107] The second terminal device sends the detection message to the second communication terminal that has successfully established a communication connection with the second terminal device;

[0108] The second communication terminal, which has successfully established a communication connection with the second terminal device, continues to broadcast messages and performs a second traversal based on the breadth-first search strategy and the communication link rules.

[0109] Based on the results of the first and second traversals, several communication links between the first terminal device and the destination terminal device are obtained.

[0110] In this embodiment, when the search mode of the first terminal device is started, a message containing the ID of the target terminal device is broadcast. After the first terminal device successfully connects with the corresponding second communication terminal, in addition to sending their respective IDs to each other, a detection message also needs to be sent to the second communication terminal to continue searching for the communication link with the target terminal. The process is similar after the search mode of the target terminal is started, and will not be repeated here.

[0111] In this embodiment, the search and message broadcasting continue on the second communication terminal, and the connected communication terminals are traversed based on the breadth-first search strategy. The breadth-first search strategy can traverse all connected devices on the second communication terminal and the connected devices of the connected devices. Finally, based on the traversal results, several complete communication links of the second communication terminal can be obtained.

[0112] The beneficial effects of the above technical solution are: by continuing to search for the communication link between the first terminal device and the destination terminal device through the second communication terminal, the search is carried out through the second communication terminal and the communication link between the currently connected devices is obtained. In this case, a network exists, and network communication between devices is realized to a certain extent.

[0113] This invention provides a method for network communication between devices, which, in the process of searching for the optimal link from a plurality of communication links for device communication based on the shortest communication principle, further includes:

[0114] Establish a first topology connection network between the first terminal device and the destination terminal device. ,in, Indicates from the first terminal To the destination terminal The i-th communication link, where n represents the total number of communication links;

[0115] Each communication link in the first topology connection network is traversed, the number of intermediate terminals in each communication link is counted, and the link with the smallest number of intermediate terminals is selected.

[0116] When the number of filtered links is 1, the filtered link is taken as the optimal link;

[0117] When the filtering link is not 1, each intermediate terminal device in each filtering link is weighted.

[0118] In this process, the first terminal device is assigned a weight of 0, and each intermediate terminal in the corresponding filtering link is assigned a weight of 1 to obtain the initial weight value of the corresponding filtering link, which is then assigned to the destination terminal device.

[0119]

[0120] Where C0 represents the corresponding filtering link. The initial weighting value; This indicates the number of intermediate terminals in the corresponding filtering link, where the total weight of each filtering link is the same as the number of terminals involved in that filtering link; This represents the maximum number of terminals in all communication links;

[0121] Determine the scheduling weighting value for each filtering link;

[0122]

[0123] in, This represents the scheduling weighting value for the corresponding filtered link; This represents the terminal loss of the j1th intermediate terminal in the corresponding filtering link; This represents the path loss of the j2-th node segment in the corresponding filtered link, and = +1, This indicates the number of node segments in the corresponding filter link; Indicates the preset terminal loss; Indicates the preset path loss;

[0124] The final weighted value is calculated based on the initial weighted value and the scheduling weighted value. ;

[0125]

[0126] The link with the smallest final weighted value is selected as the best link.

[0127] In this embodiment, since there may be more than one communication link between the first terminal device and the destination terminal device, a first topology connection network is established between the first terminal and the destination terminal, which includes all communication links from the first terminal to the destination terminal. After link traversal screening and weighted scheduling, the optimal link with the fewest intermediate terminals and the least loss is finally obtained for communication.

[0128] In this embodiment, the first topology network with only one screening link is determined as the optimal link and communication is carried out. For each screening link in the first topology network with more than one screening link, a weighting process is performed. Each screening link corresponds to an initial weight of a destination terminal device. The retrieval weight of each screening link is calculated based on its own terminal device loss and link loss. The final weight is calculated, and the link with the smallest final weight represents the shortest path and the least loss, which is the best link among the screening links.

[0129] The beneficial effects of the above technical solution are: by calculating the initial weighting value of the link and the scheduling weighting value of the link, the optimal link with the smallest final weighting value is obtained, which helps to realize fast communication between devices in a network.

[0130] This invention provides a method for network communication between devices, which further includes the following steps in determining the scheduling weighting value of each filtered link:

[0131] Calculate the terminal loss of the j1th intermediate terminal in the filtering link;

[0132]

[0133] in, This represents the number of device connections for the j1th intermediate terminal; Indicates the first number of connections; This indicates the standard full-level loss of the intermediate terminal under the first number of connections.

[0134] In this embodiment, the scheduling weighting value of the link is calculated by calculating the terminal's own loss in the intermediate terminal.

[0135] In this embodiment, the standard full-level loss refers to the transmission loss of the intermediate terminal at the farthest distance within the corresponding preset range.

[0136] The beneficial effects of the above technical solution are: by calculating the terminal loss of the intermediate terminal, the link weighting value is calculated and the optimal link is obtained, thereby further realizing effective networking communication between devices.

[0137] This invention provides a system for networking communication between devices, such as... Figure 2 As shown, it includes:

[0138] Startup and self-test module: Starts the search mode of the first terminal device and the destination terminal device, and determines the communication link status between the first terminal device and the destination terminal device;

[0139] Communication search module: When the communication link status is that direct communication link is not possible, a first search is performed on the connectable terminal devices within the first preset range corresponding to the first terminal device, and a second search is performed on the connectable terminal devices within the preset range corresponding to the target terminal device.

[0140] Link processing module: According to the communication link rules, and in combination with the first search result and the second search result, it locks a number of second communication terminals that can be used as communication media within the communication range of the first terminal device and the second terminal device, and performs communication networking to obtain a number of communication links, wherein each terminal device in the communication link has a unique ID;

[0141] Communication module: Based on the principle of shortest communication, it searches for the best link among the several communication links to conduct device communication.

[0142] The beneficial effects of the above technical solution are: by establishing a self-organizing network between devices for network interaction, it is no longer necessary to connect through the existing wide area network server, and information interaction of the Internet of Things can be realized without going through the wide area network, realizing direct and fast communication between devices.

[0143] Obviously, those skilled in the art can make various modifications and variations to this invention without departing from its spirit and scope. Therefore, if these modifications and variations fall within the scope of the claims of this invention and their equivalents, this invention also intends to include these modifications and variations.

Claims

1. A method for networking communication between devices, characterized in that, include: Step 1: Start the search mode of the first terminal device and the destination terminal device, and determine the communication link status between the first terminal device and the destination terminal device; Step 2: When the communication link status is that direct communication is not possible, perform a first search for connectable terminal devices within a first preset range corresponding to the first terminal device and a second search for connectable terminal devices within a preset range corresponding to the destination terminal device. Step 3: According to the communication link rules, and in combination with the first search result and the second search result, locate a number of second communication terminals that can serve as communication media within the communication range of the first terminal device and the target terminal device, and form a communication network to obtain a number of communication links, wherein each terminal device in the communication link has a unique ID; Step 4: Based on the shortest communication principle, search for the optimal link among the several communication links to enable device communication; According to the principle of shortest communication, the process of searching for the optimal link among the aforementioned communication links for device communication also includes: Establish a first topology connection network between the first terminal device and the destination terminal device. ,in, Indicates from the first terminal To the destination terminal The i-th communication link, where n represents the total number of communication links; Each communication link in the first topology connection network is traversed, the number of intermediate terminals in each communication link is counted, and the link with the smallest number of intermediate terminals is selected. When the number of filtered links is 1, the filtered link is taken as the optimal link; When the number of filtering links is greater than 1, each intermediate terminal device in each filtering link is weighted. Specifically, the initial weighting value C0 for each filtering link is calculated: Where C0 represents the initial weighting value corresponding to the i-th filtering link; This represents the number of intermediate terminals in the i-th filtering link; This represents the maximum number of terminals in all communication links; Determine the scheduling weight D0 for each filtering link: Where D0 represents the scheduling weighting value corresponding to the i-th filtering link; This represents the terminal loss of the j-th intermediate terminal in the i-th filtering link; Let represent the path loss of the j-th node segment in the i-th filtering link, and , q1 represents the number of node segments in the i-th filtering link; q2 represents the preset terminal loss; q3 represents the preset path loss; the first connection number refers to the preset maximum number of communication connections that a single terminal device can establish simultaneously, with a default value of 5; the final weighted value Z0 is obtained by calculating based on the initial weighted value and the scheduling weighted value. Select the link with the largest final weighted value Z0 as the best link; The process of determining the scheduling weighting value for each filtering link also includes: Calculate the terminal loss of the j-th intermediate terminal in the filtering link; in, This represents the number of device connections for the j-th intermediate terminal; Indicates the first number of connections; This indicates the standard full-level loss of the intermediate terminal under the first number of connections.

2. The method for networking communication between devices as described in claim 1, characterized in that, Before performing the first and second searches, the following is also included: Retrieve and obtain the number of device connections for the first terminal device and the destination terminal device; If the number of device connections is equal to the first number of connections and there is no data link between the first terminal device and the destination terminal device, then count the first access frequency of the connected devices corresponding to the first terminal device and the destination terminal device, and disconnect the connection with the device with the lowest first access frequency respectively. Otherwise, search according to the search pattern.

3. The method for networking communication between devices as described in claim 1, characterized in that, Performing a first search on connectable terminal devices within a first preset range corresponding to the first terminal device and a second search on connectable terminal devices within a preset range corresponding to the target terminal device includes: Retrieve the first current connection count of each terminal device within the first preset range corresponding to the first terminal device, and determine the terminal devices whose first current connection count is less than the first connection count as the first connectable terminal devices; The system retrieves the second current connection count of each terminal device within the second preset range corresponding to the target terminal device, and determines the terminal devices with a second current connection count less than the first connection count as the second connectable terminal devices.

4. A system for inter-device network communication, applied to the method for inter-device network communication as described in any one of claims 1-3, characterized in that, include: Startup and self-test module: Starts the search mode of the first terminal device and the destination terminal device, and determines the communication link status between the first terminal device and the destination terminal device; Communication search module: When the communication link status is that direct communication link is not possible, a first search is performed on the connectable terminal devices within the first preset range corresponding to the first terminal device, and a second search is performed on the connectable terminal devices within the preset range corresponding to the target terminal device. Link processing module: According to the communication link rules, and in combination with the first search result and the second search result, it locks a number of second communication terminals that can be used as communication media within the communication range of the first terminal device and the destination terminal device, and performs communication networking to obtain a number of communication links, wherein each terminal device in the communication link has a unique ID; Communication module: Based on the principle of shortest communication, it searches for the best link among the several communication links to conduct device communication.