A method for implementing a cross-network device discovery framework protocol
By employing a layered discovery and aggregation-based cross-network information exchange method, the limitations of device discovery within a local area network are overcome, enabling cross-network device discovery, reducing channel bandwidth overhead, and improving system resilience and network connectivity flexibility.
Patent Information
- Application Number
- CN202411696993.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-26
- Publication Date
- 2025-11-18
- Estimated Expiration
- 2044-11-26
AI Technical Summary
In existing technologies, HarmonyOS soft bus is limited to device discovery within a local area network and cannot achieve cross-network device discovery in multiple different networks.
The system employs a layered discovery, layer-by-layer aggregation, and cross-network information exchange approach, dividing the system into three levels: B, F, and Y. It utilizes the CoAP protocol and data bus technology to achieve centralized information, authentication, and interaction between devices, and employs a dynamic master election mechanism to ensure rapid replacement of the logical center.
It significantly reduces the channel bandwidth overhead for device discovery and basic information exchange, improves the system's resilience and network connectivity flexibility, expands the network connectivity range, and enhances the system's reliability and overall performance.
Smart Images

Figure CN119766806B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The application belongs to the technical field of cross-network communication, and particularly relates to a cross-network device discovery framework protocol implementation method. BACKGROUND
[0002] The Hongmeng software bus is limited to device discovery within a local area network, and is limited to information and data transmission between limited networks and limited devices; in multiple different networks, how to discover different devices across networks is a technical problem to be solved at present. SUMMARY
[0003] In view of the above technical problems, the application provides a cross-network device discovery framework protocol implementation method.
[0004] In the method, the cross-network device discovery adopts a layered discovery, layer-by-layer convergence and cross-network information exchange mode to realize local area network broadcast, cross-network unicast and no cross-network broadcast; in a cross-network application scenario under the cross-network device discovery framework protocol, three levels of B, F and Y are divided; the Y level is higher than the F level, and the F level is higher than the B level; wherein:
[0005] For B-level device discovery, a CoAP protocol broadcast technology is adopted to realize automatic mutual discovery of an AI Euler controller and its hanging equipment; the AI Euler controller is taken as a terminal logical center, and a data software bus technology is used to realize centralized, authentication and interaction of basic information between all B-level devices in the local area network; the basic information includes IP, name, type and ID;
[0006] A plurality of B-level devices form F-level devices, and for F-level device discovery, a master node is selected from a plurality of B-level devices included in each F-level device as a logical center, and a data bus technology is used to realize information centralization and interaction between F-level devices;
[0007] A plurality of F-level devices form Y-level devices, and for Y-level device discovery, a master node is selected from a plurality of F-level devices included in each Y-level device as a logical center, and a data bus technology is used to realize information centralization and interaction between Y-level devices.
[0008] For B-level device discovery, the centralized, authentication and interaction of basic information between B-level devices in the local area network includes that TX is configured with a corresponding radio device SDR and various types of hanging devices; different SDRs form a network through radio; TX is connected to the corresponding SDR through a network cable; and various types of hanging devices are connected to TX through wireless wifi and Bluetooth network cables.
[0009] For B-level device discovery, mutual discovery networking is performed between TX and the hanging device; TX and SDR are docked to obtain the TX state and IP information published by SDR; a broadcast is sent to the designated SDR port; TX receives SDR unicast, parses IP information and port, and establishes a TCP connection; SDR message events are subscribed to, and information change lists are received.
[0010] For B-level device discovery, SDR reports device online and offline notifications to TX, and performs corresponding processing; wherein, when offline, the information of the device that has been offline is cleaned up; when online, the device information is synchronized.
[0011] For B-level device discovery, a gateway route is configured on the hanging device, pointing to TX; a dual-network card is configured on TX, one network card pointing to the local area network and the other network card pointing to the network where SDR is located; NAT is configured from the local area network to the SDR network; and NAT processing is performed on the incoming and outgoing packets.
[0012] For B-level device discovery, the current TX sends unicast CoAP to the opposite TX to complete information interaction, including IP, name, version, discovery mode, device type, and authentication port; all devices issue CA certificates through the same root server to build trust credentials in the network environment and interact through encrypted channels; TCP connection is established through the authentication information and port of the interaction to perform key negotiation; SessionPort port information is exchanged for data transmission.
[0013] For B-level device discovery, TX synchronizes cross-network device information to the hanging device; online information is transmitted to the hanging device in JSON format; offline information is transmitted to the hanging device in JSON format.
[0014] For B-level device discovery, information interaction between each device in the network is realized by generating a random value as a weight value, and the maximum value is used as the master device; the weight proportion is evaluated by considering CPU performance, GPU performance, memory size, and battery capacity; each device sets a group ID, and each group is confirmed as a group through the group ID; the selected host in the group is used as the logical master node of the group between different groups; each logical master node communicates with each other; when the master node is offline, the maximum weight value is selected among the other nodes as the master node.
[0015] In summary, in the technical solution proposed in the application, the cross-domain device discovery adopts a technical route of hierarchical discovery, layer-by-layer convergence, and cross-network exchange, which greatly reduces the channel bandwidth overhead required for device discovery and basic information interaction. Cross-domain device discovery adopts a dynamic master selection mechanism, which quickly elects a new logical center when the F-level or Y-level logical center is destroyed, ensures data consistency, and improves system invulnerability. BRIEF DESCRIPTION OF DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the specific embodiments of the present application or the prior art, the accompanying drawings needed to be used in the description of the specific embodiments or the prior art will be briefly introduced. Obviously, the accompanying drawings in the following description are some embodiments of the present application, and other drawings can be obtained by those skilled in the art without any creative work on the premise of not paying creative work.
[0017] Figure 1 A schematic diagram of three levels in a cross-network application scenario under a cross-network device discovery framework protocol according to an embodiment of the present application.
[0018] Figure 2 A schematic diagram of B-level device discovery according to an embodiment of the present application. DETAILED DESCRIPTION
[0019] In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the accompanying drawings of the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without any creative work on the premise of not paying creative work, all belong to the scope of protection of the present application.
[0020] The present application provides a cross-network device discovery framework protocol implementation method.
[0021] In the method, the cross-network device discovery adopts a layered discovery, layer-by-layer convergence and cross-network information exchange manner to realize local network broadcast, cross-network unicast and no cross-network broadcast. In the cross-network application scenario under the cross-network device discovery framework protocol, three levels of B, F and Y are divided. The Y level is higher than the F level, and the F level is higher than the B level. Among them:
[0022] For B-level device discovery, a CoAP protocol broadcast technology is adopted to realize automatic mutual discovery of an AI Euler controller and its hanging equipment. The AI Euler controller is used as a terminal logical center, and a data soft bus technology is used to realize centralized, authentication and interaction of basic information between all B-level devices in the local network. The basic information includes IP, name, type and ID.
[0023] A plurality of B-level devices form an F-level device. For F-level device discovery, a master node is selected as a logical center from a plurality of B-level devices included in each F-level device, and a data bus technology is used to realize information concentration and interaction between F-level devices.
[0024] A plurality of F-class devices constitute Y-class devices, and for Y-class device discovery, a master node is selected from the plurality of F-class devices included in each Y-class device as a logical center, and data bus technology is used to realize information collection and interaction among Y-class devices.
[0025] For B-class device discovery, the collection, authentication and interaction of basic information among B-class devices in the local area network includes: taking TX as a B-class device, which is configured with a corresponding radio device SDR and various types of hanging devices; different SDRs form a network through radio; TX connects the corresponding SDR through a network cable; various types of hanging devices connect TX through wireless wifi and Bluetooth network cables.
[0026] For B-class device discovery, mutual discovery and networking are performed between TX and hanging devices; TX and SDR are docked to obtain the TX state and IP information published by SDR; a broadcast is sent to the designated SDR port; TX receives SDR unicast, parses the IP information and port, and establishes a TCP connection; SDR message events are subscribed to, and information change lists are received.
[0027] For B-class device discovery, SDR reports device online and offline notifications to TX and performs corresponding processing; wherein, when offline, the information of the device that has been offline is cleaned up; when online, the device information is synchronized.
[0028] For B-class device discovery, a gateway route is configured on the hanging device, pointing to TX; a dual-network card is configured on TX, one network card pointing to the local area network and the other network card pointing to the network where SDR is located; a NAT is configured from the local area network to the SDR network; and a NAT processing is performed on the outgoing and incoming packets.
[0029] For B-class device discovery, the current TX sends unicast CoAP to the opposite TX to complete information interaction, including IP, name, version, discovery mode, device type, and authentication port; all devices issue CA certificates through the same root server to build trust credentials in the network environment and interact through an encrypted channel; a TCP connection is established through the authentication information and port of the interaction to perform key negotiation; SessionPort port information is exchanged for data transmission.
[0030] For B-class device discovery, TX synchronizes cross-network device information to hanging devices; online information is transmitted to hanging devices in JSON format; offline information is transmitted to hanging devices in JSON format.
[0031] For B-class device discovery, each device in the network realizes information interaction between devices by generating a random value as a weight value, and the maximum value is used as the master device; the weight proportion is evaluated by considering CPU performance, GPU performance, memory size, and battery capacity; each device sets a group ID, and each group is confirmed as a group through the group ID; the selected host in the group is used as the logical master node of the group between different groups; each logical master node communicates with each other; when the master node is offline, the maximum weight value is selected as the master node between each node.
[0032] In some embodiments, the cross-network soft bus is a global communication middleware solution customized for scenarios. In the cross-network, the terminal and other manned equipment use the Harmony operating system, and the AI controller and unmanned platform use the Euler operating system; by deploying a unified soft bus in the Harmony operating system and the Euler operating system, cross-domain and cross-system device discovery can be easily achieved.
[0033] In some embodiments, cross-domain device discovery adopts a technical route of hierarchical discovery, layer-by-layer aggregation, and cross-network information exchange, realizes only broadcasting in the local area network, cross-network unicast, and no cross-network broadcast. In the cross-network application scenario, it is divided into B, F, and Y three levels.
[0034] In some embodiments, B-class device discovery adopts CoAP protocol broadcast technology to realize automatic mutual discovery of AI Euler controller and its hanging equipment. On this basis, taking the AI Euler controller as the end logical center, the data soft bus technology is used to realize the collection, authentication, and interaction of basic information (IP, name, type, ID) between all devices in the local area network.
[0035] In some embodiments, F-class device discovery selects a master node in all F teams as the logical center, and uses data bus technology to realize information collection and interaction within the F team.
[0036] In some embodiments, Y-class device discovery selects a master node in all F teams as the logical center, and uses data bus technology to realize information collection and interaction between F teams.
[0037] In some embodiments, cross-domain device discovery adopts a technical route of hierarchical discovery, layer-by-layer aggregation, and cross-network exchange. This greatly reduces the channel bandwidth overhead required for device discovery and basic information interaction. Cross-domain device discovery adopts a dynamic master selection mechanism. When the F team or Y team logical center is destroyed, the automatic master election algorithm will quickly elect a team or battalion-level logical center, and ensure data consistency and improve system invulnerability.
[0038] In some embodiments, as Figure 1As shown, the networking diagram: SDRs form a large full mesh network between the radio components; the main TX (Euler) is connected to the SDR through a network cable; the Hongmeng device can be directly connected to the Euler through wireless wifi or a network cable.
[0039] In some embodiments, as shown, the Euler and the devices hanging below discover each other through WIFI, Bluetooth, etc. The Euler and the SDR are connected, and the Euler state and IP information of the SDR published for network access are obtained; a broadcast is sent to the designated SDR port; a unicast from the SDR is received, the IP and port are parsed, a TCP connection is established with it for subsequent reception of TYW information changes; a SDR message event is subscribed; and a list of information changes is received. Figure 2
[0040] In some embodiments, the SDR reports device online and offline notifications to the Euler for corresponding processing; when offline, the device information of the devices that have been offline is cleaned up; and when online, the devices are synchronized.
[0041] In some embodiments, the gateway routing is configured on the Hongmeng XX terminal, pointing to the Euler system; the Euler system is configured with dual network cards, one of which points to the local area network; the other points to the network where the SDR is located; the local area network to the SDR network is configured with NAT; and the incoming and outgoing packets are processed with NAT.
[0042] In some embodiments, the Euler sends a unicast CoAP to the opposite Euler to complete information interaction; the information includes IP, name, version, discovery mode, device type, authentication port, etc.; all devices in the network are issued CA certificates through the same root server, thereby building a solid trust credential in a complex network environment, ensuring that the identity is indisputable and enabling a secure, reliable, and efficient encryption channel; through the interactive authentication information and port, a TCP connection is established for secret key negotiation to ensure device reliability; and the SessionPort port information is exchanged to ensure data transmission.
[0043] In some embodiments, the Euler synchronizes the cross-network device information to the devices hanging below; the online information is transmitted to the hanging devices in JSON format; and the offline information is transmitted to the hanging devices in JSON format.
[0044] In some embodiments, a random value of 100 or less is randomly generated as a weight value between each device in the network, and each device interacts with information, with the maximum value as the master device; the weight proportion can be evaluated by considering CPU, GPU performance, memory size, battery, and other comprehensive data; each device can set a group ID, and each group is confirmed as a group through the group ID; the selected host in the group is used as the logical master node of the group between different groups; the logical master nodes communicate with each other; and when the master node goes offline, the maximum weight value is selected among the other nodes as the master node.
[0045] In some embodiments, the Euler acquires the station port information of the SDR radio station, the Euler establishes a TCP connection with the SDR radio station, the SDR radio station informs the Euler of the on- and off-line of other Eulers, the Euler sends a CoAP unicast message to the on-line Euler device, the Euler system interacts with the device information, the Euler interacts with the information of the hung Hongmeng system, the Euler synchronizes the device information acquired by itself to other Euler systems, the Euler synchronizes the received device information of other devices to the hung Hongmeng system, the Euler systems are grouped, the master node is selected in the group through the interaction information, the Eulers continue to be grouped between groups to form a new topology, and the master node is selected between the new topologies.
[0046] In conclusion, in the technical scheme provided in the application, the cross-domain device discovery adopts a technical route of hierarchical discovery, layer-by-layer convergence, and cross-network exchange, which greatly reduces the channel bandwidth overhead required for device discovery and basic information interaction. The cross-domain device discovery adopts a dynamic master selection mechanism, when the F-level or Y-level logical center is destroyed, the automatic master selection algorithm quickly elects a new logical center, ensures data consistency, and improves the system's invulnerability.
[0047] Thanks to the application, the connection of multiple different subnets can be greatly expanded, the limitations of the Hongmeng local area network discovery are avoided, the network connection range is increased, more devices can be accommodated, a single local area network failure does not affect the work of other networks, the reliability is improved, different networks are independently managed, the network flexibility is high, the network business development and changes are adapted, multiple network interconnections can support distributed applications, tasks can be distributed to different networks for processing, and the overall performance and efficiency of the system are improved.
[0048] Please note that the technical features of the above embodiments can be combined in any way, and to make the description concise, all possible combinations of the technical features in the above embodiments are not described, however, as long as the combination of the technical features does not exist contradictory, it should be considered as the scope of the description. The above embodiments only express several implementation ways of the application, the description is more specific and detailed, but it should not be understood as a limitation on the scope of the patent. It should be noted that for those skilled in the art, without departing from the concept of the application, some modifications and improvements can be made, which are within the scope of the application. Therefore, the patent protection scope of the application should be subject to the appended claims.
Claims
1. A method for implementing a cross-network device discovery framework protocol, characterized in that, In the method: the cross-network device discovery adopts a layered discovery, layer-by-layer aggregation, and cross-network information exchange approach to achieve intra-LAN broadcast, cross-network unicast, and no cross-network broadcast; in the cross-network application scenario under the cross-network device discovery framework protocol, it is divided into three levels: B, F, and Y; level Y is higher than level F, and level F is higher than level B; wherein: For Class B device discovery: CoAP protocol broadcast technology is used to achieve automatic mutual discovery between the AI Euler controller and its downstream equipment; with the AI Euler controller as the terminal logical center, data soft bus technology is used to realize the centralized, authentication and interaction of basic information between all Class B devices in the local area network; the basic information includes IP, name, type and ID; Multiple Class B devices form a Class F device. For Class F device discovery, a master node is selected from the multiple Class B devices included in each Class F device as the logical center. Data bus technology is used to realize the centralization and interaction of information between Class F devices. Multiple F-level devices form a Y-level device. For Y-level device discovery, a master node is selected from the multiple F-level devices included in each Y-level device as the logical center. Data bus technology is used to realize the centralization and interaction of information between Y-level devices. In the method, for Class B device discovery, the centralization, authentication, and interaction of basic information among Class B devices within the local area network include: taking TX as a Class B device, which is configured with a corresponding wireless device SDR and various downstream devices; different SDRs forming a network via radio; TX connecting to the corresponding SDR via a network cable; and various downstream devices connecting to TX via wireless Wi-Fi, Bluetooth, or network cable. In the method described above, for Class B device discovery, the TX and its downstream devices perform mutual discovery networking; the TX and SDR interface to obtain the TX status and IP information of the SDR's notification to join the network; a broadcast is sent to the designated SDR port; the TX receives the SDR unicast, parses the IP information and port, establishes a TCP connection; subscribes to SDR message events, and receives the information change list.
2. The method for implementing a cross-network device discovery framework protocol according to claim 1, characterized in that, For Class B devices, SDR reports the device's online / offline status to TX and takes appropriate action; when a device is taken offline, its information is cleared; when a device is brought back online, its information is synchronized.
3. The method for implementing a cross-network device discovery framework protocol according to claim 2, characterized in that, For Class B device discovery, configure a gateway route on the downstream device, pointing to TX; configure dual network cards on TX, one network card pointing to the local area network, and the other network card pointing to the network where SDR is located; Configure NAT to connect the LAN to the SDR network; perform NAT processing on inbound and outbound packets.
4. The method for implementing a cross-network device discovery framework protocol according to claim 3, characterized in that, For Class B device discovery, the current TX sends a unicast CoAP to the peer TX to complete information exchange, including IP address, name, version, discovery mode, device type, and authentication port; all devices use the same CA certificate issued by the same root server to build trust credentials in the network environment and interact through an encrypted channel. A TCP connection is established through the exchange of authentication information and port numbers to conduct key negotiation; Exchange SessionPort information for data transmission.
5. The method for implementing a cross-network device discovery framework protocol according to claim 4, characterized in that, For Class B device discovery, TX synchronizes cross-network device information with downstream devices; it transmits online information to downstream devices in JSON format; and it transmits offline information to downstream devices in JSON format.
6. The method for implementing a cross-network device discovery framework protocol according to claim 5, characterized in that, For Class B device discovery, information exchange between devices within the network is achieved by generating random values as weights, with the device displaying the highest value becoming the master device. The weight ratio is evaluated by comprehensively considering CPU performance, GPU performance, memory size, and battery capacity. Each device is assigned a group ID, and groups are identified by these group IDs. Different groups use the selected host within that group as the logical master node. These logical master nodes communicate with each other. When a master node goes offline, the other nodes select the one with the highest weight value as the new master node.
Citation Information
Patent Citations
Cross-domain service discovery method based on distributed soft bus
CN118400420A
Configuring an SDR capable user equipment
US20220353796A1