Routing terminal and generalized radio station interface definition method based on swan gap system

By loading the Hongmeng system on the routing terminal and adding a publish and subscription interface with SDR, the synchronization of device information across networks is achieved, and the problem of device information synchronization limited to local area networks in the prior art is solved.

CN119629189APending Publication Date: 2025-03-14WEAPON EQUIP RES INST OF CHINA NAT WEAPON EQUIP GRP
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411696973.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-26
Publication Date
2025-03-14

AI Technical Summary

Technical Problem

In the prior art, the routing terminal only supports LAN device information synchronization, and does not support device information synchronization in cross-network mode.

Method used

By loading the Hongmeng system on the routing terminal and customizing the soft bus system, adding the publish subscription interface definition function with Generalized Radio (SDR), the information synchronization of routing terminals and down-hook devices across different SDRs across networks is achieved.

Benefits of technology

The synchronization of device information across networks is realized, and the problem of device information synchronization limited to local area networks in the prior art is solved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119629189A_ABST
    Figure CN119629189A_ABST
Patent Text Reader

Abstract

The invention provides a routing terminal and generalized radio station interface definition method based on a swan gap system, and belongs to the technical field of communication interfaces. In the method, an interface between a routing terminal side and an SDR is realized, and the interface comprises a service management sub-module, a message encapsulation / de-encapsulation sub-module and a TCP / UDP sub-module. And the service management sub-module is used for managing business logic of SDR interface broadcast service, subscription publishing service and subscription canceling service. The message encapsulation / de-encapsulation sub-module finishes encapsulation and de-encapsulation of various messages according to a defined message format, the fixed length of a message header occupies 4 bytes, the message header is encapsulated in a byte data stream mode, and a Payload part is encapsulated in a Json format. And the TCP / UDP sub module is used for realizing TCP / UDP Socket transmission. According to the invention, a broadcast service and SDR port negotiation process, a subscription service process, a release service receiving process and a subscription service canceling process are realized at a routing terminal side.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of communication interface technology, and in particular to a method for defining a routing terminal and a generalized radio station interface based on the Hongmeng system. Background Art

[0002] When a generalized radio station (SDR) senses that a new generalized radio station device has been connected to / disconnected from the network in the surrounding area, it will notify the routing terminal (routing terminal) of the newly connected / disconnected routing terminal device IP. The interface between the routing terminal and the generalized radio station obtains this information through the subscription and publishing service. The generalized radio station acts as a publisher, and the corresponding routing terminal of its connected device acts as a subscriber. When a generalized radio station senses that a new generalized radio station device has been connected to / disconnected from the network in the surrounding area, it publishes the IP information of the newly connected / disconnected device to its subscribers; when a routing terminal or a device directly connected to the generalized radio station no longer pays attention to the network status of the newly connected / disconnected routing terminal, it can send a cancellation subscription message to the generalized radio station to which it is connected. In the prior art, since the routing terminal only supports local area network device information synchronization, it does not support device information synchronization in cross-network mode. Summary of the invention

[0003] In response to the above technical problems, the present invention proposes a solution for defining a routing terminal and a generalized radio station interface based on the Hongmeng system.

[0004] The first aspect of the present invention proposes a method for defining a routing terminal and a generalized radio station interface based on the Hongmeng system, in which:

[0005] The routing terminal is equipped with Hongmeng system. Based on the native system, the soft bus system is customized and modified to add the publish-subscribe interface definition function with SDR to achieve information synchronization between routing terminals and downstream devices of different SDRs across networks;

[0006] The router terminal side implements the interface with the SDR, which includes three submodules: service management submodule, message encapsulation / decapsulation submodule, and TCP / UDP submodule;

[0007] The service management submodule implements the business logic of managing broadcast services, subscription and publishing services, and unsubscription services with the SDR interface;

[0008] The message encapsulation / decapsulation submodule implements the encapsulation and decapsulation of various messages according to the defined message format. The message header has a fixed length of 4 bytes and is encapsulated in the form of byte data stream, and the Payload part is encapsulated in Json format.

[0009] The TCP / UDP submodule implements TCP / UDP Socket transmission;

[0010] Through the above three sub-modules, the broadcast service and SDR negotiation port process, subscription service process, receiving and publishing service process, and unsubscription service process are implemented on the routing terminal side.

[0011] According to the method of the first aspect of the present invention, the broadcast service and SDR negotiation port process includes:

[0012] When the routing terminal detects that the interface directly connected to the SDR is LinkUp, the service management submodule triggers the broadcast service to send a broadcast service message to negotiate the IP and port information with the SDR; the broadcast service message is transmitted in UDP based on a known port and waits for the unicast response message from the peer SDR;

[0013] When the created UDP Sockt receives a message, it determines whether it is a unicast response message based on the type field in the message header. If it is, it parses the Payload according to the unicast response message format to obtain the IP and port information of the peer SDR reply; if not, no processing is required and the message is discarded.

[0014] According to the method of the first aspect of the present invention, the subscription service process includes:

[0015] After obtaining the IP and port information of the peer SDR, the service management submodule starts the subscription service process. The subscription request message is transmitted based on TCP. The routing terminal, as the client, establishes a TCP connection with the peer SDR based on the obtained IP and port information. After the TCP connection is successfully established, it triggers the sending of the subscription request message, completes the encapsulation of the subscription request message and sends it out through TCPSocket, and waits for the peer SDR to reply with a subscription response message.

[0016] When the created TCP Socket receives a message, it determines whether it is a subscription response message according to the type of the field indicated in the message header. If it is, it parses the Payload according to the subscription response message format and obtains the status code Status. A status code of 0 indicates that the subscription service process is successful, otherwise it fails.

[0017] According to the method of the first aspect of the present invention, the process of receiving the publishing service includes:

[0018] When the subscription service process is completed, the status code Status received in the subscription response message is 0. After the subscription is successful, wait for receiving TCP Socket messages;

[0019] Determine whether it is a publish message according to the type of the field indicated in the parsed message header. If it is a publish message, extract the Payload and obtain the OnlineIpList or OfflineIpList.

[0020] If it is OnLineIpList, the cross-network discovery process is triggered to the cross-network discovery module; if it is OfflineIpList, the offline processing process is triggered to the networking module.

[0021] According to the method of the first aspect of the present invention, the process of cancelling the subscription service includes:

[0022] The trigger condition for sending the unsubscribe request message is an external application behavior call, which is initiated when the routing terminal is not connected to the network or the radio station directly connected to the routing terminal does not communicate with other radio stations; the unsubscribe service process includes sending the unsubscribe request message and receiving the unsubscribe response;

[0023] When the created TCP Socket receives a message, it determines whether it is a cancel subscription response message according to the type of the field indicated in the message header. If it is, it parses the Payload according to the subscription response message format, and closes the previously created subscription and publishing TCP Socket, and no longer listens to the publishing message sent by the SDR.

[0024] The second aspect of the present invention proposes a device for defining an interface between a routing terminal and a generalized radio station based on the Hongmeng system. The routing terminal is loaded with the Hongmeng system. On the basis of the native system, the soft bus system is customized and modified to add a publish-subscribe interface definition function with the SDR to achieve information synchronization between routing terminals and downstream devices of different SDRs across networks; the routing terminal side implements an interface with the SDR, and the device includes three submodules: a service management submodule, a message encapsulation / decapsulation submodule, and a TCP / UDP submodule; wherein:

[0025] The service management submodule implements the business logic of managing broadcast services, subscription and publishing services, and unsubscription services with the SDR interface;

[0026] The message encapsulation / decapsulation submodule implements the encapsulation and decapsulation of various messages according to the defined message format. The message header has a fixed length of 4 bytes and is encapsulated in the form of byte data stream, and the Payload part is encapsulated in Json format.

[0027] The TCP / UDP submodule implements TCP / UDP Socket transmission;

[0028] Through the above three submodules, the device implements the broadcast service and SDR negotiation port process, subscription service process, receiving and publishing service process, and unsubscription service process on the routing terminal side.

[0029] According to the device of the second aspect of the present invention, the broadcast service and SDR negotiation port process includes:

[0030] When the routing terminal detects that the interface directly connected to the SDR is LinkUp, the service management submodule triggers the broadcast service to send a broadcast service message to negotiate the IP and port information with the SDR; the broadcast service message is transmitted in UDP based on a known port and waits for the unicast response message from the peer SDR;

[0031] When the created UDP Sockt receives a message, it determines whether it is a unicast response message based on the type field in the message header. If it is, it parses the Payload according to the unicast response message format to obtain the IP and port information of the peer SDR reply; if not, no processing is required and the message is discarded.

[0032] According to the device of the second aspect of the present invention, the subscription service process includes:

[0033] After obtaining the IP and port information of the peer SDR, the service management submodule starts the subscription service process. The subscription request message is transmitted based on TCP. The routing terminal, as the client, establishes a TCP connection with the peer SDR based on the obtained IP and port information. After the TCP connection is successfully established, it triggers the sending of the subscription request message, completes the encapsulation of the subscription request message and sends it out through TCPSocket, and waits for the peer SDR to reply with a subscription response message.

[0034] When the created TCP Socket receives a message, it determines whether it is a subscription response message according to the type of the field indicated in the message header. If it is, it parses the Payload according to the subscription response message format and obtains the status code Status. A status code of 0 indicates that the subscription service process is successful, otherwise it fails.

[0035] According to the device of the second aspect of the present invention, the process of receiving the publishing service includes:

[0036] When the subscription service process is completed, the status code Status received in the subscription response message is 0. After the subscription is successful, wait for receiving TCP Socket messages;

[0037] Determine whether it is a publish message according to the type of the field indicated in the parsed message header. If it is a publish message, extract the Payload and obtain the OnlineIpList or OfflineIpList.

[0038] If it is OnLineIpList, the cross-network discovery process is triggered to the cross-network discovery module; if it is OfflineIpList, the offline processing process is triggered to the networking module.

[0039] According to the device of the second aspect of the present invention, the process of canceling the subscription service includes:

[0040] The trigger condition for sending the unsubscribe request message is an external application behavior call, which is initiated when the routing terminal is not connected to the network or the radio station directly connected to the routing terminal does not communicate with other radio stations; the unsubscribe service process includes sending the unsubscribe request message and receiving the unsubscribe response;

[0041] When the created TCP Socket receives a message, it determines whether it is a cancel subscription response message according to the type of the field indicated in the message header. If it is, it parses the Payload according to the subscription response message format, and closes the previously created subscription and publishing TCP Socket, and no longer listens to the publishing message sent by the SDR.

[0042] In summary, the technical solution of the present invention solves the problem of device information synchronization in a cross-network mode. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0044] Figure 1 Schematic diagram of a network scenario according to an embodiment of the present invention.

[0045] Figure 2 Schematic diagram of the working process of each module according to an embodiment of the present invention.

[0046] Figure 3 Schematic diagram of a message format according to an embodiment of the present invention.

[0047] Figure 4 Schematic diagram of a broadcast message format according to an embodiment of the present invention.

[0048] Figure 5 FIG. 4 is a schematic diagram of a unicast response message format according to an embodiment of the present invention.

[0049] Figure 6 Schematic diagram of the subscription request message format according to an embodiment of the present invention.

[0050] Figure 7 Schematic diagram of the subscription response message format according to an embodiment of the present invention.

[0051] Figure 8 Schematic diagram of the notification publishing message format according to an embodiment of the present invention.

[0052] Fig. 94 is a schematic diagram of the format of a cancel subscription request message according to an embodiment of the present invention.

[0053] Fig.10 2 is a schematic diagram of the format of a cancel subscription response message according to an embodiment of the present invention.

[0054] Fig.11 A schematic diagram of the format of an initial grouping request message according to an embodiment of the present invention.

[0055] Fig.12 2 is a schematic diagram of the format of a message in which a station responds to reply an initial group number according to an embodiment of the present invention.

[0056] Fig.13 Schematic diagram of the message format of a station response replying to an initial master node according to an embodiment of the present invention.

[0057] Fig.14 Schematic diagram of the master node change notification message format according to an embodiment of the present invention. DETAILED DESCRIPTION

[0058] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0059] The routing terminal described in the present invention is loaded with the Hongmeng system. Based on the native system, the soft bus system is customized and modified to add the publish-subscribe interface definition function with the SDR to realize the information synchronization of the routing terminals and the downstream devices under different SDRs (i.e. across networks).

[0060] like Figure 1-2 As shown, the router terminal side implements the interface with the SDR, and three sub-modules are designed: service management, message encapsulation / decapsulation, and TCP / UDP. The service management is responsible for implementing the business logic of managing the broadcast service, subscription and publishing service, and unsubscription service of the SDR interface; the message encapsulation / decapsulation sub-module is responsible for implementing the encapsulation and decapsulation of various messages according to the defined message format, in which the fixed length of the message header occupies 4 bytes, is encapsulated in the form of byte data stream, and the Payload part is encapsulated in Json format; the TCP / UDP sub-module is responsible for implementing TCP / UDP Socket transmission. Through these three sub-modules, the router terminal side realizes: the process of negotiating the port between the broadcast service and the SDR, the process of subscribing to the service, the process of receiving and publishing the service, and the process of unsubscribing the service.

[0061] 1. Broadcast service negotiation port process

[0062] 1) When the router detects that the interface directly connected to the SDR is LinkUp, the service management module triggers the broadcast service to send a broadcast service message to negotiate the IP and port information with the SDR. The broadcast service message is transmitted in UDP based on a known port, and then waits for the unicast response message from the peer SDR.

[0063] 2) When the UDP Sockt created above receives a message, it determines whether it is a unicast response message based on the type field in the message header. If it is, it parses the Payload according to the unicast response message format to obtain the IP and port information of the peer SDR reply; if not, no processing is required and the message is discarded.

[0064] 2. Subscription Service Process

[0065] 1) After obtaining the IP and port information of the peer SDR, the service management module will start the subscription service process. The subscription request message is based on TCP transmission. The routing terminal, as the client, establishes a TCP connection with the peer SDR based on the IP and port information obtained previously. After the TCP connection is successfully established, it triggers the sending of the subscription request message, completes the encapsulation of the subscription request message and sends it out through the TCP Socket, and then waits for the peer SDR to reply with a subscription response message.

[0066] 2) When the TCP Socket created earlier receives a message, it determines whether it is a subscription response message based on the type of the field indicated in the message header. If it is, it parses the Payload according to the subscription response message format to obtain the Status. If the status code is 0, it means that the subscription service process is successful, otherwise it fails.

[0067] 3. Release service process

[0068] When the subscription service process is completed, the Status in the received subscription response message is 0. After the subscription is successful, it waits to receive the TCPSocket message, and determines whether it is a publishing message according to the type of the indicated field in the parsed message header. If it is a publishing message, the Payload is taken out to obtain the OnlineIpList or OfflineIpList. If it is the OnLineIpList, the cross-network discovery process is triggered to the cross-network discovery module; if it is the OfflineIpList, the offline processing process is triggered to the networking module.

[0069] 4. Unsubscribe process

[0070] 1) The trigger condition for sending the unsubscribe request message is an external application behavior call, such as when the router terminal does not want to access the network or the radio station directly connected to the router terminal does not communicate with other radio stations. These scenarios can be called. The unsubscribe service process also includes sending an unsubscribe request message and receiving an unsubscribe response.

[0071] 2) When the previously created TCP Socket receives a message, it determines whether it is a cancel subscription response message based on the type of the field indicated in the message header. If it is, it parses the Payload according to the subscription response message format, and closes the previously created subscription and publishing TCP Socket, and no longer listens to the publishing message sent by the SDR.

[0072] In the present invention: the routing terminal can detect the LinkUp and LinkDown of the interface directly with the SDR;

[0073] The routing terminal sends a broadcast service message to the SDR based on the IP and port corresponding to the broadcast service negotiation; the routing terminal receives and parses the unicast response message replied by the SDR to obtain the IP and port of the SDR; the routing terminal establishes a TCP connection based on the port negotiated by the broadcast, and sends a subscription request message to the SDR; the routing terminal receives and parses the subscription response message replied by the SDR; the routing terminal supports the connection between the routing terminal and the SDR, and supports the reception of the IP information of the routing terminal newly connected to the network by notification report issued by the SDR; the routing terminal supports the connection between the routing terminal and the SDR, and supports the reception of the IP information of the routing terminal disconnected from the network by notification report issued by the SDR; the routing terminal sends a cancellation request message to the SDR, and no longer pays attention to and monitors the network status information; the routing terminal parses the cancellation response message replied by the SDR; the message format of the transmission between the routing terminal and the SDR generally includes two parts, such as Figure 3 As shown, one part is the message header, which has a fixed length of 4 bytes, and the other part is the Payload, and the content of the Payload varies with the type of the message header.

[0074] Broadcast messages (such as Figure 4 (shown)

[0075]

[0076]

[0077] Unicast response message (such as Figure 5 (shown)

[0078]

[0079] Subscription request message (such as Figure 6 (shown)

[0080]

[0081]

[0082] Subscription response message (such as Figure 7 (shown)

[0083]

[0084] Notification release message (such as Figure 8 (shown)

[0085]

[0086]

[0087] Unsubscribe request message (such as Fig. 9 (shown)

[0088]

[0089]

[0090] Unsubscribe response message (such as Fig.10 (shown)

[0091]

[0092] Get the initial group request message (such as Fig.11 (shown)

[0093]

[0094] The station responds to the initial group number message (such as Fig.12 (shown)

[0095]

[0096] The station responds to the initial master node message (such as Fig.13 (shown)

[0097]

[0098] Master node change notification message (such as Fig.14 (shown)

[0099]

[0100]

[0101] In summary, the routing terminal described in the present invention is loaded with the Hongmeng system. On the basis of the native system, the soft bus system is customized and modified to add a publish-subscribe interface to communicate with the SDR, so as to achieve a method for synchronizing device information across networks.

[0102] Please note that the technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification. The above embodiments only express several implementation methods of the present application, and their descriptions are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that for ordinary technicians in this field, without departing from the concept of the present application, several variations and improvements can be made, which all belong to the scope of protection of the present application. Therefore, the scope of protection of the patent in this application shall be based on the attached claims.

Claims

1. A method for defining an interface between a routing terminal and a generalized radio station based on the Hongmeng system, characterized in that: In the method: The routing terminal is equipped with Hongmeng system. Based on the native system, the soft bus system is customized and modified to add the publish-subscribe interface definition function with SDR to achieve information synchronization between routing terminals and downstream devices of different SDRs across networks; The router terminal side implements the interface with the SDR, which includes three submodules: service management submodule, message encapsulation / decapsulation submodule, and TCP / UDP submodule; The service management submodule implements the business logic of managing broadcast services, subscription and publishing services, and unsubscription services with the SDR interface; The message encapsulation / decapsulation submodule implements the encapsulation and decapsulation of various messages according to the defined message format. The message header has a fixed length of 4 bytes and is encapsulated in the form of byte data stream, and the Payload part is encapsulated in Json format. The TCP / UDP submodule implements TCP / UDP Socket transmission; Through the above three sub-modules, the broadcast service and SDR negotiation port process, subscription service process, receiving and publishing service process, and unsubscription service process are implemented on the routing terminal side.

2. According to the method for defining the interface between a routing terminal and a generalized radio station based on the Hongmeng system according to claim 1, it is characterized in that: The process of negotiating the port between the broadcast service and the SDR includes: When the routing terminal detects that the interface directly connected to the SDR is LinkUp, the service management submodule triggers the broadcast service to send a broadcast service message to negotiate the IP and port information with the SDR; the broadcast service message is transmitted in UDP based on a known port and waits for the unicast response message from the peer SDR; When the created UDP Sockt receives a message, it determines whether it is a unicast response message based on the type field in the message header. If it is, it parses the Payload according to the unicast response message format to obtain the IP and port information of the peer SDR reply; if not, no processing is required and the message is discarded.

3. According to claim 2, a method for defining a routing terminal and a generalized radio station interface based on the Hongmeng system is characterized in that: The subscription service process includes: After obtaining the IP and port information of the peer SDR, the service management submodule starts the subscription service process. The subscription request message is transmitted based on TCP. The routing terminal, as the client, establishes a TCP connection with the peer SDR based on the obtained IP and port information. After the TCP connection is successfully established, it triggers the sending of the subscription request message, completes the encapsulation of the subscription request message and sends it out through the TCP Socket, and waits for the peer SDR to reply with a subscription response message. When the created TCP Socket receives a message, it determines whether it is a subscription response message according to the type of the field indicated in the message header. If it is, it parses the Payload according to the subscription response message format and obtains the status code Status. A status code of 0 indicates that the subscription service process is successful, otherwise it fails.

4. According to claim 3, a method for defining a routing terminal and a generalized radio station interface based on the Hongmeng system is characterized in that: The process of receiving and publishing services includes: When the subscription service process is completed, the status code Status received in the subscription response message is 0. After the subscription is successful, wait for receiving TCP Socket messages; Determine whether it is a publish message according to the type of the field indicated in the parsed message header. If it is a publish message, extract the Payload and obtain the OnlineIpList or OfflineIpList. If it is OnLineIpList, the cross-network discovery process is triggered to the cross-network discovery module; if it is OfflineIpList, the offline processing process is triggered to the networking module.

5. According to the method for defining the interface between a routing terminal and a generalized radio station based on the Hongmeng system according to claim 4, it is characterized in that: The unsubscribe process includes: The trigger condition for sending the unsubscribe request message is an external application behavior call, which is initiated when the routing terminal is not connected to the network or the radio station directly connected to the routing terminal does not communicate with other radio stations; the unsubscribe service process includes sending the unsubscribe request message and receiving the unsubscribe response; When the created TCP Socket receives a message, it determines whether it is a cancel subscription response message according to the type of the field indicated in the message header. If it is, it parses the Payload according to the subscription response message format, and closes the previously created subscription and publishing TCP Socket, and no longer listens to the publishing message sent by the SDR.

6. A device for defining a routing terminal and a generalized radio station interface based on the Hongmeng system, characterized in that: The routing terminal is loaded with Hongmeng system. On the basis of the native system, the soft bus system is customized and modified to add the publish-subscribe interface definition function with SDR to realize the information synchronization of routing terminals and downstream devices across different SDRs in different networks; the routing terminal side realizes the interface with SDR, and the device includes three submodules: service management submodule, message encapsulation / decapsulation submodule, and TCP / UDP submodule; among which: The service management submodule implements the business logic of managing broadcast services, subscription and publishing services, and unsubscription services with the SDR interface; The message encapsulation / decapsulation submodule implements the encapsulation and decapsulation of various messages according to the defined message format. The message header has a fixed length of 4 bytes and is encapsulated in the form of byte data stream, and the Payload part is encapsulated in Json format. The TCP / UDP submodule implements TCP / UDP Socket transmission; Through the above three submodules, the device implements the broadcast service and SDR negotiation port process, subscription service process, receiving and publishing service process, and unsubscription service process on the routing terminal side.

7. According to claim 6, a device for defining a routing terminal and a generalized radio station interface based on the Hongmeng system, characterized in that: The process of negotiating the port between the broadcast service and the SDR includes: When the routing terminal detects that the interface directly connected to the SDR is LinkUp, the service management submodule triggers the broadcast service to send a broadcast service message to negotiate the IP and port information with the SDR; the broadcast service message is transmitted in UDP based on a known port and waits for the unicast response message from the peer SDR; When the created UDP Sockt receives a message, it determines whether it is a unicast response message based on the type field in the message header. If it is, it parses the Payload according to the unicast response message format to obtain the IP and port information of the peer SDR reply; if not, no processing is required and the message is discarded.

8. According to claim 7, a device for defining a routing terminal and a generalized radio station interface based on the Hongmeng system, characterized in that: The subscription service process includes: After obtaining the IP and port information of the peer SDR, the service management submodule starts the subscription service process. The subscription request message is transmitted based on TCP. The routing terminal, as the client, establishes a TCP connection with the peer SDR based on the obtained IP and port information. After the TCP connection is successfully established, it triggers the sending of the subscription request message, completes the encapsulation of the subscription request message and sends it out through the TCP Socket, and waits for the peer SDR to reply with a subscription response message. When the created TCP Socket receives a message, it determines whether it is a subscription response message according to the type of the field indicated in the message header. If it is, it parses the Payload according to the subscription response message format and obtains the status code Status. A status code of 0 indicates that the subscription service process is successful, otherwise it fails.

9. According to claim 8, a device for defining a routing terminal and a generalized radio station interface based on the Hongmeng system, characterized in that: The process of receiving and publishing services includes: When the subscription service process is completed, the status code Status received in the subscription response message is 0. After the subscription is successful, wait for receiving TCP Socket messages; Determine whether it is a publish message according to the type of the field indicated in the parsed message header. If it is a publish message, extract the Payload and obtain the OnlineIpList or OfflineIpList. If it is OnLineIpList, the cross-network discovery process is triggered to the cross-network discovery module; if it is OfflineIpList, the offline processing process is triggered to the networking module.

10. According to claim 9, a device for defining a routing terminal and a generalized radio station interface based on the Hongmeng system, characterized in that: The unsubscribe process includes: The trigger condition for sending the unsubscribe request message is an external application behavior call, which is initiated when the routing terminal is not connected to the network or the radio station directly connected to the routing terminal does not communicate with other radio stations; the unsubscribe service process includes sending the unsubscribe request message and receiving the unsubscribe response; When the created TCP Socket receives a message, it determines whether it is a cancel subscription response message according to the type of the field indicated in the message header. If it is, it parses the Payload according to the subscription response message format, and closes the previously created subscription and publishing TCP Socket, and no longer listens to the publishing message sent by the SDR.

Citation Information

Patent Citations

  • Soft bus management method and device

    CN107634918A

  • Routing management through event stream processing cluster manager

    CN112540948A

  • Cross-domain service discovery method based on distributed soft bus

    CN118400420A

  • Method, device and product for realizing OpenHarmony system soft bus on Android platform

    CN118939349A