Relay equipment discovery method in near-field communication scene and related equipment
By using relay server code and direct discovery sets in 5G ProSe to filter target relay devices, the problem of waste of resources during the relay discovery process of terminal devices is solved, and more efficient relay device discovery and communication connection are achieved.
Patent Information
- Application Number
- CN202411237458.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-04
- Publication Date
- 2024-12-10
AI Technical Summary
In 5G near-domain service (5G ProSe), the problem of resource waste is caused by multiple communication paths being initiated at the same time during the relay discovery of terminal devices.
By receiving the relay discovery request message sent by the terminal device with the relay server code and the direct discovery set, the connected relay device is obtained, and the target relay device is filtered out, and the target relay device is sent to the target relay device with the relay server with the relay server is sent to the target relay device. Code and relay discovery request message of the direct discovery set to establish a communication connection between terminal devices.
It reduces the resource waste generated during the discovery process of relay equipment between terminal devices in near-domain communication scenarios, reduces the complexity of relay discovery process, and avoids the resource waste caused by the device launching multiple communication paths at the same time.
Smart Images

Figure CN119110268A_ABST
Abstract
Description
Background Art
[0002] Near-area communication is a short-range high-frequency wireless communication technology that generally allows contactless point-to-point data exchange between electronic devices. Near-area service ProSe is a device-to-device (D2D) connection or direct communication between nearby mobile devices defined in 3GPP TS23.303 in R12 version, where the user equipment sends and receives in the uplink spectrum.
[0003] In the related art, there are two methods for the terminal-to-terminal relay discovery process under 5G near-field service (5G ProSe), namely, mode A and mode B. Specifically, the 5G ProSe UE-to-UE relay discovery process of mode A includes multiple UE-to-UE relays sending notification messages to a single endpoint UE at the same time, and the 5G ProSe UE-to-UE relay discovery process of mode B includes the discoverer endpoint UE initiating request messages to multiple UE-to-UE relays at the same time, and then multiple UE-to-UE relays initiating request messages to the discoverer endpoint UE, and the discoverer endpoint UE returns a response message to the discoverer endpoint UE according to the above path. The relay discovery process of the above two modes often has the problem of resource waste due to the terminal device initiating multiple communication paths at the same time.
[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0005] The present disclosure provides a relay device discovery method and related devices in a near-field communication scenario, which at least to a certain extent overcomes the problem of resource waste caused by terminal devices initiating multiple communication paths simultaneously in the related art.
[0006] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.
[0007] According to one aspect of the present disclosure, a method for discovering a relay device in a near-field communication scenario is provided, comprising: receiving a relay discovery request message sent by a first terminal device and carrying a first relay server code and a first direct discovery set, wherein the first relay server code is used to determine at least one relay device to which the first terminal device can connect, and the first direct discovery set includes: first identification information of the first terminal device and second identification information of a second terminal device, the second terminal device being a peer device with which the first terminal device communicates via a relay device; obtaining at least one relay device to which the first terminal device can connect according to the first relay server code, and screening out a target relay device from the at least one relay device; sending a relay discovery request message carrying a second direct discovery set to the target relay device, so that the target relay device establishes a communication connection between the first terminal device and the second terminal device according to the identification information of the second terminal device, wherein the second direct discovery set includes: the first identification information of the first terminal device, the second identification information of the second terminal device, the identification information of the target relay, and a second relay server code, and the second relay server code is used to determine a plurality of relay devices and / or terminal devices to which the target relay device can connect.
[0008] In some embodiments, before obtaining at least one relay device to which the first terminal device can connect based on the first relay server code and filtering out a target relay device from the at least one relay device, the method also includes: storing the relay server code of each relay device, historical relay device discovery records, and security link information between each relay device and the terminal device.
[0009] In some embodiments, at least one relay device to which the first terminal device can connect is obtained based on the first relay server code, and a target relay device is screened out from the at least one relay device, including: matching the first relay server code with pre-stored relay server codes of each relay device to obtain at least one relay device to which the first terminal device can connect; and storing pre-stored historical relay device discovery records or secure link information between each relay device and the terminal device to screen out the target relay device from the at least one relay device.
[0010] According to another aspect of the present disclosure, a relay device discovery method in a near-field communication scenario is also provided, including: sending a relay discovery request message carrying a first relay server code and a first direct discovery set to a relay scheduling center, wherein the first relay server code is used to determine at least one relay device to which a first terminal device can connect, and the first direct discovery set includes: first identification information of the first terminal device and second identification information of the second terminal device, the second terminal device being a peer device with which the first terminal device communicates through a relay device, the relay scheduling center being used to obtain at least one relay device to which the first terminal device can connect according to the first relay server code, and filter out a target relay device from the at least one relay device; receiving a relay discovery response message carrying a second direct discovery set returned by the target relay device, wherein the second direct discovery set includes: first identification information of the first terminal device, second identification information of the second terminal device, identification information of the target relay, and a second relay server code, and the second relay server code is used to determine a plurality of relay devices and / or terminal devices to which the target relay device can connect.
[0011] According to another aspect of the present disclosure, a relay device discovery method in a near-field communication scenario is also provided, including: receiving a relay discovery request message from a first terminal device forwarded by a target relay device, wherein the relay discovery request message carries a second direct discovery set, the second direct discovery set includes: first identification information of the first terminal device, second identification information of the second terminal device, identification information of the target relay, and a second relay server code, the second terminal device is a peer device for communication with the first terminal device, and the second relay server code is used to determine a plurality of relay devices and / or terminal devices to which the target relay device can be connected; returning a relay discovery response message carrying a third relay server code and the first direct discovery set to the target relay device, wherein the third relay server code is used to determine at least one relay device to which the second terminal device can be connected, and the first direct discovery set includes: first identification information of the first terminal device and second identification information of the second terminal device.
[0012] According to another aspect of the present disclosure, a near-field communication system is also provided, including: a first terminal device and a second terminal device, the second terminal device being a peer device with which the first terminal device communicates via a relay device; wherein the first terminal device is used to send a relay discovery request message carrying a first relay server code and a first direct discovery set to a relay scheduling center, wherein the first relay server code is used to determine at least one relay device to which the first terminal device can connect, and the first direct discovery set includes: first identification information of the first terminal device and second identification information of the second terminal device, the relay scheduling center is used to obtain at least one relay device to which the first terminal device can connect according to the first relay server code, and filter out a target relay device from the at least one relay device; the second terminal device is used to receive a message from the first terminal device forwarded by the target relay device. A relay discovery request message is sent, wherein the relay discovery request message carries a second direct discovery set, and the second direct discovery set includes: first identification information of the first terminal device, second identification information of the second terminal device, identification information of the target relay, and a second relay server code, wherein the second terminal device is a peer device for communication with the first terminal device, and the second relay server code is used to determine a plurality of relay devices and / or terminal devices to which the target relay device can be connected; the second terminal device is also used to return a relay discovery response message carrying a third relay server code and the first direct discovery set to the target relay device, wherein the third relay server code is used to determine at least one relay device to which the second terminal device can be connected; wherein the first terminal device is also used to receive a relay discovery response message carrying the second direct discovery set returned by the target relay device.
[0013] According to another aspect of the present disclosure, a relay scheduling device is also provided, including: a first request message receiving module, used to receive a relay discovery request message sent by a first terminal device and carrying a first relay server code and a first direct discovery set, wherein the first relay server code is used to determine at least one relay device to which the first terminal device can connect, and the first direct discovery set includes: first identification information of the first terminal device and second identification information of a second terminal device, the second terminal device being a peer device with which the first terminal device communicates via a relay device; a target relay device screening module, used to obtain, according to the first relay server code, a relay discovery request message to which the first terminal device can connect At least one relay device, and filtering out a target relay device from the at least one relay device; a first request message sending module, used to send a relay discovery request message carrying a second direct discovery set to the target relay device, so that the target relay device establishes a communication connection between the first terminal device and the second terminal device according to the identification information of the second terminal device, wherein the second direct discovery set includes: the first identification information of the first terminal device, the second identification information of the second terminal device, the identification information of the target relay and a second relay server code, and the second relay server code is used to determine a plurality of relay devices and / or terminal devices to which the target relay device can be connected.
[0014] According to another aspect of the present disclosure, a terminal device is also provided, including: a second request message sending module, used to send a relay discovery request message carrying a first relay server code and a first direct discovery set to a relay scheduling center, wherein the first relay server code is used to determine at least one relay device to which the first terminal device can connect, and the first direct discovery set includes: first identification information of the first terminal device and second identification information of the second terminal device, the second terminal device is a peer device with which the first terminal device communicates through a relay device, and the relay scheduling center is used to obtain at least one relay device to which the first terminal device can connect according to the first relay server code, and filter out a target relay device from the at least one relay device; a response message receiving module, used to receive a relay discovery response message carrying a second direct discovery set returned by the target relay device, wherein the second direct discovery set includes: the first identification information of the first terminal device, the second identification information of the second terminal device, the identification information of the target relay, and the second relay server code, and the second relay server code is used to determine multiple relay devices and / or terminal devices to which the target relay device can connect.
[0015] According to another aspect of the present disclosure, a terminal device is also provided, including: a second request message receiving module, used to receive a relay discovery request message from a first terminal device forwarded by a target relay device, wherein the relay discovery request message carries a second direct discovery set, the second direct discovery set includes: first identification information of the first terminal device, second identification information of the second terminal device, identification information of the target relay and a second relay server code, the second terminal device is a peer device for communication with the first terminal device, and the second relay server code is used to determine a plurality of relay devices and / or terminal devices to which the target relay device can be connected; a response message sending module, used to return a relay discovery response message carrying a third relay server code and the first direct discovery set to the target relay device, wherein the third relay server code is used to determine at least one relay device to which the second terminal device can be connected, and the first direct discovery set includes: first identification information of the first terminal device and second identification information of the second terminal device.
[0016] According to another aspect of the present disclosure, an electronic device is also provided, which includes: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the relay device discovery method in the near-field communication scenario described in any one of the above-mentioned instructions by executing the executable instructions.
[0017] According to another aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the relay device discovery method in the near-area communication scenario described in any one of the above is implemented.
[0018] According to another aspect of the present disclosure, a computer program product is further provided, including a computer program, wherein when the computer program is executed by a processor, the method for discovering a relay device in a near area communication scenario described in any one of the above items is implemented.
[0019] In the embodiments of the present disclosure, a relay device discovery method and related devices in a near-field communication scenario are provided. A first terminal device sends a relay discovery request message carrying a first relay server code and a first direct discovery set to a relay scheduling center, so that the relay scheduling center obtains at least one relay device based on the first relay server code, and screens out a target relay device therefrom, and sends a relay discovery request message carrying a second direct discovery set to a second terminal device through the target relay device. After receiving the relay discovery request message, the second terminal device sends a relay discovery response message carrying a third relay server code and the first direct discovery set to the target relay device, and the target relay device sends a relay discovery response message carrying the second direct discovery set to the first terminal device. The embodiments of the present disclosure can reduce the waste of resources generated in the process of relay device discovery between terminal devices in a near-field communication scenario.
[0020] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.
[0022] Figure 1 A schematic diagram of the structure of a relay discovery system based on mode A in a near-domain scenario in the related art is shown;
[0023] Figure 2 A flow chart of a relay discovery method based on mode A in a near-domain scenario in the related art is shown;
[0024] Figure 3 A schematic diagram of the structure of a relay discovery system based on mode B in a near-domain scenario in the related art is shown;
[0025] Figure 4 A flow chart of a relay discovery method based on mode B in a near-domain scenario in the related art is shown;
[0026] Figure 5 A schematic diagram of the structure of a relay discovery system in a near-domain scenario is shown;
[0027] Figure 6 A flow chart of a method for discovering a relay device in a near area communication scenario according to an embodiment of the present disclosure is shown;
[0028] Figure 7A flow chart of a method for discovering a relay device in another near-area communication scenario according to an embodiment of the present disclosure is shown;
[0029] Figure 8 A flow chart of a method for discovering a relay device in another near-area communication scenario according to an embodiment of the present disclosure is shown;
[0030] Fig. 9 A relay device discovery signaling flow chart in a near area communication scenario according to an embodiment of the present disclosure is shown;
[0031] Fig.10 A schematic diagram of a near area communication system in an embodiment of the present disclosure is shown;
[0032] Fig.11 A schematic diagram of a relay scheduling device in an embodiment of the present disclosure is shown;
[0033] Fig.12 A schematic diagram of a terminal device in an embodiment of the present disclosure is shown;
[0034] Fig.13 A schematic diagram of another terminal device in an embodiment of the present disclosure is shown;
[0035] Fig.14 A block diagram of an electronic device in an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0036] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
[0037] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.
[0038] For ease of understanding, before introducing the embodiments of the present disclosure, several terms involved in the embodiments of the present disclosure are first explained as follows:
[0039] ProSe (Proximity Service): It is a device-to-device (D2D) connection or direct communication between nearby mobile devices defined in 3GPP TS23.303 in R12 version. The user equipment sends and receives in the uplink spectrum.
[0040] RSC (Relay Service Code): The relay server code is used to indicate the case of UE to network relay and UE to UE relay. UE to network relay is defined in TS23.303v18.3.0. For UE to UE relay, the relay server code is used to identify the connection service provided by the 5G ProSe relay and the authorized user to whom the 5G ProSe relay will provide the service.
[0041] The specific implementation of the embodiment of the present disclosure is described in detail below with reference to the accompanying drawings.
[0042] Figure 1 FIG. 1 shows a schematic diagram of a relay discovery system structure based on mode A in a near-domain scenario in the related art. Figure 1 As shown, the system architecture may include a first terminal device 101 , a second terminal device 103 , a first relay device 1021 , a second relay device 1022 and a third relay device 1023 .
[0043] In one embodiment of the present disclosure, the first relay device 1021, the second relay device 1022 and the third relay device 1023 have respectively discovered other nearby terminal devices, such as Figure 1 As shown, at this time, the first terminal device 101 and the second terminal device 103 have been discovered by the first relay device 1021, the second relay device 1022 and / or the third relay device 1023. Therefore, the first relay device 1021, the second relay device 1022 and the third relay device 1023 each send a relay discovery notification message to the first terminal device 101 and the second terminal device 103 respectively, so as to establish a communication connection between the first terminal device 101 and the second terminal device 103.
[0044] Those skilled in the art will know that Figure 1 The number of terminal devices and relay devices in the example is only illustrative, and any number of terminal devices and relay devices may be provided according to actual needs. This embodiment of the present disclosure does not limit this.
[0045] In one embodiment of the present disclosure, Figure 2 FIG. 1 shows a flow chart of a relay discovery method based on mode A in a near-domain scenario in the related art. Figure 2 As shown, the method includes:
[0046] S201: At least one of the first relay device, the second relay device and the third relay device discovers a connectable terminal device.
[0047] In one embodiment of the present disclosure, a relay device discovers a first terminal device 101 and a second terminal device 103, and the relay device obtains a direct discovery set from the first terminal device 101 and the second terminal device 103 according to a relay server code RSC of the relay device, and the direct discovery set includes: a user information ID of the first terminal device (i.e., a terminal identification of the first terminal device) and a user information ID of the second terminal device (i.e., a terminal identification of the second terminal device).
[0048] S202, if the first relay device discovers a connectable terminal device (ie, a first terminal device and a second terminal device), the first relay device sends a relay discovery notification message to the first terminal device and the second terminal device respectively to establish a communication connection between the first terminal device and the second terminal device.
[0049] In one embodiment of the present disclosure, the relay discovery advertisement message carries the RSC of the first relay device and the direct discovery set list received from the first terminal device and the second terminal device supporting the RSC.
[0050] S203, if the second relay device finds a connectable terminal device (ie, a first terminal device and a second terminal device), the second relay device sends a relay discovery notification message to the first terminal device and the second terminal device respectively to establish a communication connection between the first terminal device and the second terminal device.
[0051] In one embodiment of the present disclosure, the relay discovery advertisement message carries the RSC of the second relay device and the direct discovery set list received from the first terminal device and the second terminal device supporting the RSC.
[0052] S204: If the third relay device discovers a connectable terminal device (ie, a first terminal device and a second terminal device), the third relay device sends a relay discovery notification message to the first terminal device and the second terminal device, respectively, to establish a communication connection between the first terminal device and the second terminal device.
[0053] In one embodiment of the present disclosure, the relay discovery advertisement message carries the RSC of the third relay device and the direct discovery set list received from the first terminal device and the second terminal device supporting RSC.
[0054] It should be noted that the above-mentioned direct discovery set list may refer to a set of direct discovery sets for each terminal device. The content in the direct discovery set list is determined according to the direct discovery set obtained by the relay device in actual situations. The embodiments of the present disclosure do not make specific limitations on this.
[0055] It should be noted that the above S202, S203 and S204 can be executed simultaneously or in any order, or only any one or two of the above three steps can be executed, depending on the relay device that sends the relay discovery notification message to the terminal device in actual conditions. The embodiments of the present disclosure do not make specific limitations on this.
[0056] Figure 3 FIG. 1 shows a schematic diagram of a relay discovery system structure based on mode B in a near-domain scenario in the related art. Figure 3 As shown, the system architecture may include a first terminal device 101 , a second terminal device 103 , a first relay device 1021 , a second relay device 1022 and a third relay device 1023 .
[0057] In one embodiment of the present disclosure, the first terminal device 101 sends a relay discovery request message to the first relay device 1021, the second relay device 1022 and the third relay device 1023 respectively, and the discovery relay request message carries the RSC and direct discovery set of the first terminal device, and the direct discovery set includes the terminal identifier of the first terminal device and the terminal identifier of the second terminal device.
[0058] In one embodiment of the present disclosure, the RSC of the first terminal device contained in the relay discovery request message is matched with the RSC of any relay device. If the two are consistent, the successfully matched relay device will send a relay discovery request message to the second terminal device. The relay discovery request message carries the terminal identifier of the first terminal device, the terminal identifier of the second terminal device, the relay identifier and RSC of the relay device that sends the relay discovery request message.
[0059] In one embodiment of the present disclosure, after receiving the relay discovery request message, the second terminal device matches the relay device RSC in the relay discovery request message with the RSC of the second terminal device, and at the same time, the terminal identifier of the second terminal device in the relay discovery request message needs to be matched with the terminal identifier of the second terminal device. If the above matching results are consistent, the second terminal device sends a relay discovery response message to the relay device, and the relay discovery response message carries the RSC of the second terminal device and a direct discovery set, and the direct discovery set includes the terminal identifier of the first terminal device and the terminal identifier of the second terminal device.
[0060] In one embodiment of the present disclosure, a relay device sends a relay discovery response message to a first terminal device, and the relay discovery response message carries a terminal identifier of the first terminal device, a terminal identifier of the second terminal device, a relay identifier of the relay device sending the relay discovery response message, and an RSC.
[0061] Those skilled in the art will know that Figure 3The number of terminal devices and relay devices in the example is only illustrative, and any number of terminal devices and relay devices may be provided according to actual needs. This embodiment of the present disclosure does not limit this.
[0062] In one embodiment of the present disclosure, Figure 4 FIG. 1 shows a flow chart of a relay discovery method based on mode B in a near-domain scenario in the related art. Figure 4 As shown, the method includes:
[0063] S401, the first terminal device sends a first relay discovery request message to each relay device respectively, wherein the first relay discovery request message carries the RSC of the first terminal device and a direct discovery set, and the direct discovery set includes the terminal identifier of the first terminal device and the terminal identifier of the second terminal device.
[0064] S402, each relay device matches the RSC of the first terminal device carried in the first relay discovery request message with the RSC of each relay device. If the matching results are consistent, the successfully matched relay device will send a second relay discovery request message to the second terminal device, wherein the second relay discovery request message carries the terminal identifier of the first terminal device, the terminal identifier of the second terminal device, the relay identifier of the relay device that sends the relay discovery request message, and RSC.
[0065] In one embodiment of the present disclosure, if the RSC of the first terminal device matches the RSC of the first relay device, the first relay device sends a second relay discovery request message to the second terminal device, wherein the second relay discovery request message carries the terminal identifier of the first terminal device, the terminal identifier of the second terminal device, the relay identifier of the first relay device and the RSC.
[0066] In one embodiment of the present disclosure, if the RSC of the first terminal device matches the RSC of the second relay device, the second relay device sends a second relay discovery request message to the second terminal device, wherein the second relay discovery request message carries the terminal identifier of the first terminal device, the terminal identifier of the second terminal device, the relay identifier of the second relay device and the RSC.
[0067] In one embodiment of the present disclosure, if the RSC of the first terminal device matches the RSC of the third relay device, the third relay device sends a second relay discovery request message to the second terminal device, wherein the second relay discovery request message carries the terminal identifier of the first terminal device, the terminal identifier of the second terminal device, the relay identifier and RSC of the third relay device.
[0068] S403, after receiving the second relay discovery request message, the second terminal device sends a first relay discovery response message to each relay device respectively, wherein the first relay discovery response message carries the RSC of the second terminal device and a direct discovery set, and the direct discovery set includes the terminal identifier of the first terminal device and the terminal identifier of the second terminal device.
[0069] S404, each relay device matches the terminal identifier of the second terminal device in the second relay request message with the terminal identifier of the second terminal device. If the matching results are consistent, the successfully matched relay device sends a second relay discovery response message to the first terminal device, wherein the second relay discovery response message carries the terminal identifier of the first terminal device, the terminal identifier of the second terminal device, the relay identifier of the relay device that sends the relay discovery response message, and RSC.
[0070] In one embodiment of the present disclosure, if the RSC of the second terminal device matches the RSC of the first relay device, the first relay device sends a second relay discovery response message to the second terminal device, wherein the second relay discovery response message carries the terminal identifier of the first terminal device, the terminal identifier of the second terminal device, the relay identifier of the first relay device and the RSC.
[0071] In one embodiment of the present disclosure, if the RSC of the second terminal device matches the RSC of the second relay device, the second relay device sends a second relay discovery response message to the second terminal device, wherein the second relay discovery response message carries the terminal identifier of the first terminal device, the terminal identifier of the second terminal device, the relay identifier of the second relay device and the RSC.
[0072] In one embodiment of the present disclosure, if the RSC of the second terminal device matches the RSC of the third relay device, the third relay device sends a second relay discovery response message to the second terminal device, wherein the second relay discovery response message carries the terminal identifier of the first terminal device, the terminal identifier of the second terminal device, the relay identifier and RSC of the third relay device.
[0073] Figure 5 FIG. 1 shows a schematic diagram of a relay discovery system structure in a near-domain scenario. Figure 5 As shown, the system architecture may include a first terminal device 101 , a second terminal device 103 , a relay scheduling center 104 , a first relay device 1021 , a second relay device 1022 and a third relay device 1023 .
[0074] In one embodiment of the present disclosure, the relay dispatch center 104 may pre-store the RSCs of all relay devices, historical relay discovery records, and secure PC5 connection information between each relay device and each terminal device.
[0075] In one embodiment of the present disclosure, the relay scheduling center 104 is used to find an adapted relay based on the RSC of the terminal device carried in the received relay discovery request message, and to find the most adapted target relay device among the adapted relay devices through historical relay discovery records or secure connection information.
[0076] Those skilled in the art will know that Figure 5 The number of terminal devices and relay devices in the example is only illustrative, and any number of terminal devices and relay devices may be provided according to actual needs. This embodiment of the present disclosure does not limit this.
[0077] Depend on Figure 1 As shown in the figure, the complexity of the relay discovery process based on mode A in the near-field communication scenario is 2n, which is given by Figure 3 As shown in the figure, the complexity of the relay discovery process based on mode B in the near-field communication scenario is 4n, which is given by Figure 5 As shown, the complexity of the relay discovery process in the near-field communication scenario in the embodiment of the present disclosure is only 5. Therefore, when the number of relay devices in the relay discovery process in the near-field scenario exceeds 2, the embodiment of the present disclosure can significantly reduce the complexity of the relay discovery process and effectively avoid resource waste. At the same time, it can avoid the problem of resource waste caused by the device initiating multiple communication paths at the same time, and the relay dispatch center can select the best relay device, that is, use the least resources to discover the most suitable relay device.
[0078] Figure 6 A flow chart of a method for discovering a relay device in a near-field communication scenario according to an embodiment of the present disclosure is shown. Figure 6 As shown, the method comprises the following steps:
[0079] S602, receiving a relay discovery request message sent by a first terminal device and carrying a first relay server code and a first direct discovery set, wherein the first relay server code is used to determine at least one relay device to which the first terminal device can connect, and the first direct discovery set includes: first identification information of the first terminal device and second identification information of the second terminal device, and the second terminal device is a peer device with which the first terminal device communicates through the relay device.
[0080] In one embodiment of the present disclosure, a relay dispatch center receives a relay discovery request message sent by a first terminal device, the relay discovery request message carrying a relay service code (first relay server code) of the first terminal device, first identification information of the first terminal device, and second identification information of the second terminal device. The first relay service code can be used to match with the relay server code of each relay device to obtain a relay device that supports the first terminal device. The first identification information of the first terminal device is used to enable the second terminal device to send a relay discovery response message to the terminal device with the first terminal device as the destination after receiving the relay discovery request message sent by the first terminal device. The second terminal identification of the second terminal device is used to enable the relay discovery request message sent by the first terminal device to reach the second terminal device, so that a communication connection is established between the first terminal device and the second terminal device.
[0081] S604: Acquire at least one relay device to which the first terminal device can connect according to the first relay server code, and filter out a target relay device from the at least one relay device.
[0082] In one embodiment of the present disclosure, by matching the first relay server code with the relay server codes of each relay device, if the match is successful, the relay device to which the first terminal device can connect is obtained, and then based on the information pre-stored in the relay scheduling center, the target relay device is further screened out from the relay devices to which at least one first terminal device can connect.
[0083] S606, sending a relay discovery request message carrying a second direct discovery set to the target relay device, so that the target relay device establishes a communication connection between the first terminal device and the second terminal device according to the identification information of the second terminal device, wherein the second direct discovery set includes: the first identification information of the first terminal device, the second identification information of the second terminal device, the identification information of the target relay and the second relay server code, and the second relay server code is used to determine multiple relay devices and / or terminal devices to which the target relay device can connect.
[0084] In one embodiment of the present disclosure, according to the second identification information of the second terminal device in the direct discovery set, the target relay device can directly send a relay discovery request message to the second terminal device to establish a communication connection between the first terminal device and the second terminal device.
[0085] It should be noted that the above-mentioned relay device can be a terminal relay device or a network relay device, and the embodiments of the present disclosure do not specifically limit this.
[0086] As can be seen from the above, after receiving the relay discovery request message sent by the first terminal device and carrying the first relay server code and the first direct discovery set, the embodiment of the present disclosure obtains at least one relay device supporting the first terminal device according to the first relay server code, and screens out the target relay device, and sends a relay discovery request message carrying the second direct discovery set to the target relay device, so that the target relay device establishes a communication connection between the first terminal device and the second terminal device according to the identification information of the second terminal device. The embodiment of the present disclosure can reduce the waste of resources generated in the process of relay device discovery between terminal devices in the near-field communication scenario.
[0087] In one embodiment of the present disclosure, before the above S604, the method further includes: storing the relay server code of each relay device, the historical relay device discovery record and the security link information between each relay device and the terminal device.
[0088] In one embodiment of the present disclosure, the historical relay device discovery record may specifically refer to the most suitable relay device selected by the historical relay discovery process.
[0089] In one embodiment of the present disclosure, the above S604 includes: matching the first relay server code with the relay server codes of each pre-stored relay device to obtain at least one relay device to which the first terminal device can connect; storing the pre-stored historical relay device discovery records or the security link information between each relay device and the terminal device, and filtering out the target relay device from at least one relay device.
[0090] In one embodiment of the present disclosure, after receiving the second relay discovery request message, the second terminal device sends a first relay discovery response message to the target relay device, and the relay discovery response message may carry the RSC of the second terminal device, the first identification information of the first terminal device, and the second identification information of the second terminal device, so that the target relay device further sends a second relay discovery response message to the first terminal device to complete the establishment of a communication connection between the first terminal device and the second terminal device, wherein the second relay discovery response message carries a second direct discovery set, which includes the first identification information of the first terminal device, the second identification information of the second terminal device, the RSC of the target relay device, and the relay identification information of the target relay device.
[0091] In one embodiment of the present disclosure, in a 5G scenario, a 5G ProSe relay scheduling center is added on the terminal side, and the RSC of all device-to-device relays, the previous 5G ProSe device-to-device relay discovery, and the secure PC5 connection information between the 5G ProSe U2U relay and the 5G ProSe endpoint UE are pre-stored therein. When the UE-to-UE relay discovery process is started, the 5G ProSe relay scheduling center searches for an adapted relay according to the RSC in the received 5G ProSe UE-to-UE relay discovery request message, and searches for the most adapted UE-to-UE relay through the previous 5G ProSe UE-to-UE relay discovery or through the strength of the secure PC5 connection signal between the 5G ProSe U2U relay and the 5G ProSe endpoint UE.
[0092] Figure 7 A flow chart of a method for discovering a relay device in a near-field communication scenario according to an embodiment of the present disclosure is shown. Figure 7 As shown, the method comprises the following steps:
[0093] S702, sending a relay discovery request message carrying a first relay server code and a first direct discovery set to a relay scheduling center, wherein the first relay server code is used to determine at least one relay device to which the first terminal device can connect, and the first direct discovery set includes: first identification information of the first terminal device and second identification information of the second terminal device, the second terminal device is a counterpart device with which the first terminal device communicates through the relay device, and the relay scheduling center is used to obtain at least one relay device to which the first terminal device can connect according to the first relay server code, and filter out a target relay device from the at least one relay device.
[0094] S704, receiving a relay discovery response message carrying a second direct discovery set returned by the target relay device, wherein the second direct discovery set includes: first identification information of the first terminal device, second identification information of the second terminal device, identification information of the target relay and a second relay server code, and the second relay server code is used to determine multiple relay devices and / or terminal devices to which the target relay device can be connected.
[0095] As can be seen from the above, in the disclosed embodiment, the first terminal device sends a relay discovery request message carrying a first relay server code and a first direct discovery set to the relay scheduling center, the target relay device is obtained by screening multiple relay devices supporting the first terminal device according to the first relay server code, and receives a relay discovery response message carrying a second direct discovery set returned by the target relay device, and establishes a communication connection between the first terminal device and the second terminal device. The disclosed embodiment can reduce the waste of resources generated in the process of relay device discovery between terminal devices in a near-field communication scenario.
[0096] Figure 8 A flow chart of a method for discovering a relay device in another near-field communication scenario according to an embodiment of the present disclosure is shown. Figure 8 As shown, the method comprises the following steps:
[0097] S802, receiving a relay discovery request message from a first terminal device forwarded by a target relay device, wherein the relay discovery request message carries a second direct discovery set, and the second direct discovery set includes: first identification information of the first terminal device, second identification information of the second terminal device, identification information of the target relay, and a second relay server code, the second terminal device is a peer device with which the first terminal device communicates, and the second relay server code is used to determine multiple relay devices and / or terminal devices to which the target relay device can be connected.
[0098] S804, returns a relay discovery response message carrying a third relay server code and a first direct discovery set to the target relay device, wherein the third relay server code is used to determine at least one relay device to which the second terminal device can connect, and the first direct discovery set includes: first identification information of the first terminal device and second identification information of the second terminal device.
[0099] As can be seen from the above, in the disclosed embodiment, the second terminal device receives a relay discovery request message carrying a second direct discovery set sent by a target relay device, wherein the target relay device is obtained by screening multiple relay devices supporting the first terminal device according to the first relay server code, and the second terminal device sends a relay discovery response message carrying a third relay server code and the first direct discovery set to the target relay device to establish a communication connection between the first terminal device and the second terminal device. The disclosed embodiment can reduce the waste of resources generated in the process of discovering relay devices between terminal devices in a near-field communication scenario.
[0100] Fig. 9 A flowchart of a relay device discovery signaling in a near area communication scenario in an embodiment of the present disclosure is shown. Fig. 9 As shown, the method comprises the following steps:
[0101] S901, pre-store the RSCs of all relay devices, historical relay discovery records, and secure PC5 connection information between each relay device and the terminal device in the relay scheduling center.
[0102] In one embodiment of the present disclosure, the historical relay device discovery record may specifically refer to the most suitable relay device selected by the historical relay discovery process.
[0103] S902, the first terminal device sends a first relay discovery request message to the relay scheduling center, wherein the first relay discovery request message carries the relay server code of the first terminal device and a first direct discovery set, the first direct discovery set including the first identification information of the first terminal device and the second identification information of the second terminal device.
[0104] S903, the relay scheduling center matches the relay server code of the first terminal device carried in the received first relay discovery request message with the relay server codes of each pre-stored relay device, obtains at least one relay device that successfully matches, and then searches for the most suitable relay device as the target relay device through historical relay discovery records or the strength of the secure PC5 connection signal between each relay device and the terminal device.
[0105] S904: The relay scheduling center sends a first relay discovery request message to a target relay device (for example, a second relay device).
[0106] S905, after receiving the first relay discovery request message, the second relay device sends a second relay discovery request message to the second terminal device. The second relay discovery request message carries a second direct discovery set, which includes the first identification information of the first terminal device, the second identification information of the second terminal device, the relay server code of the second relay device, and the relay identification information of the second relay device.
[0107] S906, after receiving the second relay discovery request message, the second terminal device sends a first relay discovery response message to the second relay device. The first relay discovery response message may carry the relay server code of the second terminal device and a first direct discovery set, the first direct discovery set including the first identification information of the first terminal device and the second identification information of the second terminal device.
[0108] S907, the second relay device sends a second relay discovery response message to the first terminal device to complete the establishment of a communication connection between the first terminal device and the second terminal device, wherein the second relay discovery response message carries a second direct discovery set, and the second direct discovery set includes the first identification information of the first terminal device, the second identification information of the second terminal device, the relay server code of the second relay device, and the relay identification information of the second relay device.
[0109] As can be seen from the above, in the disclosed embodiment, the first terminal device sends a relay discovery request message carrying a first relay server code and a first direct discovery set to the relay scheduling center, so that the relay scheduling center obtains at least one relay device based on the first relay server code, and screens out a target relay device therefrom, and sends a relay discovery request message carrying a second direct discovery set to the second terminal device through the target relay device. After receiving the relay discovery request message, the second terminal device sends a relay discovery response message carrying a third relay server code and the first direct discovery set to the target relay device, and the target relay device sends a relay discovery response message carrying the second direct discovery set to the first terminal device. The disclosed embodiment can reduce the waste of resources generated in the process of relay device discovery between terminal devices in a near-field communication scenario.
[0110] Fig.10 A schematic diagram of a near-field communication system in an embodiment of the present disclosure is shown. Fig.10 As shown, the system may include: a first terminal device 101 and a second terminal device 103 .
[0111] The second terminal device 103 is a peer device with which the first terminal device 101 communicates via a relay device.
[0112] Among them, the first terminal device 101 is used to send a relay discovery request message carrying a first relay server code and a first direct discovery set to the relay scheduling center, wherein the first relay server code is used to determine at least one relay device to which the first terminal device 101 can be connected, and the first direct discovery set includes: first identification information of the first terminal device 101 and second identification information of the second terminal device 103, the relay scheduling center is used to obtain at least one relay device to which the first terminal device 101 can be connected according to the first relay server code, and filter out a target relay device from the at least one relay device; the second terminal device 103 is used to receive a relay discovery request message from the first terminal device forwarded by the target relay device, wherein the relay discovery request message carries the second direct discovery set. Now, the second direct discovery set includes: the first identification information of the first terminal device, the second identification information of the second terminal device, the identification information of the target relay and the second relay server code, the second terminal device 103 is the opposite device for communication with the first terminal device, and the second relay server code is used to determine the multiple relay devices and / or terminal devices to which the target relay device can be connected; the second terminal device 103 is also used to return a relay discovery response message carrying the third relay server code and the first direct discovery set to the target relay device, wherein the third relay server code is used to determine at least one relay device to which the second terminal device 103 can be connected; wherein the first terminal device 101 is also used to receive the relay discovery response message carrying the second direct discovery set returned by the target relay device.
[0113] As can be seen from the above, in the disclosed embodiment, the first terminal device sends a relay discovery request message carrying a first relay server code and a first direct discovery set to the relay scheduling center, so that the relay scheduling center obtains at least one relay device based on the first relay server code, and screens out a target relay device therefrom, and sends a relay discovery request message carrying a second direct discovery set to the second terminal device through the target relay device. After receiving the relay discovery request message, the second terminal device sends a relay discovery response message carrying a third relay server code and the first direct discovery set to the target relay device, and the target relay device sends a relay discovery response message carrying the second direct discovery set to the first terminal device. The disclosed embodiment can reduce the waste of resources generated in the process of relay device discovery between terminal devices in a near-field communication scenario.
[0114] It should be noted that the above-mentioned “first” and “second” are only used to distinguish different terminal devices, and do not specifically refer to a certain terminal device. Any identifier that distinguishes two terminal devices can be used, and the embodiments of the present disclosure do not make specific limitations on this.
[0115] Based on the same inventive concept, the embodiment of the present disclosure also provides a relay scheduling device, as described in the following embodiment. Since the principle of solving the problem in the device embodiment is similar to that in the above method embodiment, the implementation of the device embodiment can refer to the implementation of the above method embodiment, and the repeated parts will not be repeated.
[0116] Fig.11 A schematic diagram of a relay scheduling device in an embodiment of the present disclosure is shown. Fig.11 As shown, the apparatus includes: a first request message receiving module 1101 , a target relay device screening module 1102 and a first request message sending module 1103 .
[0117] Among them, the first request message receiving module 1101 is used to receive a relay discovery request message sent by a first terminal device and carrying a first relay server code and a first direct discovery set, wherein the first relay server code is used to determine at least one relay device to which the first terminal device can connect, and the first direct discovery set includes: first identification information of the first terminal device and second identification information of the second terminal device, the second terminal device is a peer device with which the first terminal device communicates through a relay device; the target relay device screening module 1102 is used to obtain at least one relay device to which the first terminal device can connect according to the first relay server code, and screen out a target relay device from at least one relay device; the first request message sending module 1103 is used to send a relay discovery request message carrying a second direct discovery set to the target relay device, so that the target relay device establishes a communication connection between the first terminal device and the second terminal device according to the identification information of the second terminal device, wherein the second direct discovery set includes: first identification information of the first terminal device, second identification information of the second terminal device, identification information of the target relay and the second relay server code, and the second relay server code is used to determine multiple relay devices and / or terminal devices to which the target relay device can connect.
[0118] As can be seen from the above, after receiving the relay discovery request message sent by the first terminal device and carrying the first relay server code and the first direct discovery set, the embodiment of the present disclosure obtains at least one relay device supporting the first terminal device according to the first relay server code, and screens out the target relay device, and sends a relay discovery request message carrying the second direct discovery set to the target relay device, so that the target relay device establishes a communication connection between the first terminal device and the second terminal device according to the identification information of the second terminal device. The embodiment of the present disclosure can reduce the waste of resources generated in the process of relay device discovery between terminal devices in the near-field communication scenario.
[0119] Based on the same inventive concept, the present disclosure also provides a terminal device in the following embodiments. Since the principle of solving the problem in the device embodiment is similar to that in the above method embodiment, the implementation of the device embodiment can refer to the implementation of the above method embodiment, and the repeated parts will not be repeated.
[0120] Fig.12 A schematic diagram of a terminal device in an embodiment of the present disclosure is shown. Fig.12 As shown, the device includes: a second request message sending module 1201 and a response message receiving module 1202.
[0121] Among them, the second request message sending module 1201 is used to send a relay discovery request message carrying a first relay server code and a first direct discovery set to the relay scheduling center, wherein the first relay server code is used to determine at least one relay device to which the first terminal device can connect, and the first direct discovery set includes: first identification information of the first terminal device and second identification information of the second terminal device, the second terminal device is a peer device with which the first terminal device communicates through a relay device, and the relay scheduling center is used to obtain at least one relay device to which the first terminal device can connect according to the first relay server code, and filter out a target relay device from at least one relay device; the response message receiving module 1202 is used to receive a relay discovery response message carrying a second direct discovery set returned by the target relay device, wherein the second direct discovery set includes: first identification information of the first terminal device, second identification information of the second terminal device, identification information of the target relay and the second relay server code, and the second relay server code is used to determine multiple relay devices and / or terminal devices to which the target relay device can connect.
[0122] As can be seen from the above, in the disclosed embodiment, the first terminal device sends a relay discovery request message carrying a first relay server code and a first direct discovery set to the relay scheduling center, the target relay device is obtained by screening multiple relay devices supporting the first terminal device according to the first relay server code, and receives a relay discovery response message carrying a second direct discovery set returned by the target relay device, and establishes a communication connection between the first terminal device and the second terminal device. The disclosed embodiment can reduce the waste of resources generated in the process of relay device discovery between terminal devices in a near-field communication scenario.
[0123] Fig.13 A schematic diagram of another terminal device in an embodiment of the present disclosure is shown. Fig.13 As shown, the device includes: a second request message receiving module 1301 and a response message sending module 1302.
[0124] Among them, the second request message receiving module 1301 is used to receive a relay discovery request message from the first terminal device forwarded by the target relay device, wherein the relay discovery request message carries a second direct discovery set, and the second direct discovery set includes: the first identification information of the first terminal device, the second identification information of the second terminal device, the identification information of the target relay and the second relay server code, the second terminal device is the opposite device for communication with the first terminal device, and the second relay server code is used to determine multiple relay devices and / or terminal devices to which the target relay device can be connected; the response message sending module 1302 is used to return a relay discovery response message carrying a third relay server code and the first direct discovery set to the target relay device, wherein the third relay server code is used to determine at least one relay device to which the second terminal device can be connected, and the first direct discovery set includes: the first identification information of the first terminal device and the second identification information of the second terminal device.
[0125] As can be seen from the above, in the disclosed embodiment, the second terminal device receives a relay discovery request message carrying a second direct discovery set sent by a target relay device, wherein the target relay device is obtained by screening multiple relay devices supporting the first terminal device according to the first relay server code, and the second terminal device sends a relay discovery response message carrying a third relay server code and the first direct discovery set to the target relay device to establish a communication connection between the first terminal device and the second terminal device. The disclosed embodiment can reduce the waste of resources generated in the process of discovering relay devices between terminal devices in a near-field communication scenario.
[0126] Those skilled in the art will appreciate that various aspects of the present disclosure may be implemented as systems, methods or program products. Therefore, various aspects of the present disclosure may be specifically implemented in the following forms, namely: complete hardware implementation, complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as "circuits", "modules" or "systems".
[0127] Refer to the following Fig.14 1400 according to this embodiment of the present disclosure is described. Fig.14 The electronic device 1400 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0128] Fig.14 A block diagram of an electronic device in an embodiment of the present disclosure is shown. Fig.14 1400 according to this embodiment of the present disclosure is described. Fig.14 The electronic device 1400 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0129] like Fig.14 As shown, the electronic device 1400 is in the form of a general computing device. The components of the electronic device 1400 may include but are not limited to: at least one processing unit 1410, at least one storage unit 1420, and a bus 1430 connecting different system components (including the storage unit 1420 and the processing unit 1410).
[0130] The storage unit stores program codes, which can be executed by the processing unit 1410, so that the processing unit 1410 executes the steps described in the above “exemplary method” section of this specification according to various exemplary embodiments of the present disclosure.
[0131] In one embodiment of the present disclosure, when the electronic device 1400 is a relay scheduling device, the processing unit 1410 can execute the following steps of the above method embodiment: receiving a relay discovery request message sent by a first terminal device and carrying a first relay server code and a first direct discovery set, wherein the first relay server code is used to determine at least one relay device to which the first terminal device can connect, and the first direct discovery set includes: first identification information of the first terminal device and second identification information of the second terminal device, and the second terminal device is a peer device with which the first terminal device communicates through the relay device; obtaining at least one relay device to which the first terminal device can connect according to the first relay server code, and filtering out a target relay device from at least one relay device; sending a relay discovery request message carrying a second direct discovery set to the target relay device, so that the target relay device establishes a communication connection between the first terminal device and the second terminal device according to the identification information of the second terminal device, wherein the second direct discovery set includes: the first identification information of the first terminal device, the second identification information of the second terminal device, the identification information of the target relay, and the second relay server code, and the second relay server code is used to determine multiple relay devices and / or terminal devices to which the target relay device can connect.
[0132] In one embodiment of the present disclosure, when the electronic device 1400 is a terminal device, the processing unit 1410 can execute the following steps of the above method embodiment: sending a relay discovery request message carrying a first relay server code and a first direct discovery set to a relay scheduling center, wherein the first relay server code is used to determine at least one relay device to which the first terminal device can connect, and the first direct discovery set includes: first identification information of the first terminal device and second identification information of the second terminal device, the second terminal device is a peer device with which the first terminal device communicates through a relay device, and the relay scheduling center is used to obtain at least one relay device to which the first terminal device can connect according to the first relay server code, and filter out a target relay device from the at least one relay device; receiving a relay discovery response message carrying a second direct discovery set returned by the target relay device, wherein the second direct discovery set includes: first identification information of the first terminal device, second identification information of the second terminal device, identification information of the target relay, and a second relay server code, and the second relay server code is used to determine multiple relay devices and / or terminal devices to which the target relay device can connect.
[0133] In one embodiment of the present disclosure, when the electronic device 1400 is a terminal device, the processing unit 1410 may also perform the following steps of the above method embodiment: receiving a relay discovery request message from a first terminal device forwarded by a target relay device, wherein the relay discovery request message carries a second direct discovery set, and the second direct discovery set includes: first identification information of the first terminal device, second identification information of the second terminal device, identification information of the target relay, and a second relay server code, the second terminal device is a peer device for communication with the first terminal device, and the second relay server code is used to determine multiple relay devices and / or terminal devices to which the target relay device can be connected; returning a relay discovery response message carrying a third relay server code and the first direct discovery set to the target relay device, wherein the third relay server code is used to determine at least one relay device to which the second terminal device can be connected, and the first direct discovery set includes: first identification information of the first terminal device and second identification information of the second terminal device.
[0134] The storage unit 1420 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 14201 and / or a cache storage unit 14202 , and may further include a read-only storage unit (ROM) 14203 .
[0135] The storage unit 1420 may also include a program / utility 14204 having a set (at least one) of program modules 14205, such program modules 14205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0136] Bus 1430 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0137] The electronic device 1400 may also communicate with one or more external devices 1440 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 1400, and / or communicate with any device that enables the electronic device 1400 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 1450. Furthermore, the electronic device 1400 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 1460. As shown, the network adapter 1460 communicates with other modules of the electronic device 1400 via a bus 1430. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 1400, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0138] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.
[0139] Based on the same inventive concept, the embodiment of the present disclosure also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, any of the above-mentioned relay device discovery methods in a near-field communication scenario is implemented. Since the implementation of the computer-readable storage medium embodiment can refer to the implementation of the above-mentioned method embodiment, the repeated parts will not be repeated.
[0140] More specific examples of computer-readable storage media in the present disclosure may include, but are not limited to, an electrical connection having one or more conductors, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0141] In the present disclosure, a computer readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, wherein a readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A readable signal medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0142] Alternatively, the program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.
[0143] In a specific implementation, the program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., using an Internet service provider to connect through the Internet).
[0144] Based on the same inventive concept, a computer program product is also provided in the embodiment of the present disclosure, including: a computer program or an instruction, which, when executed by a processor, implements a relay device discovery method in a near-field communication scenario in any one of the above method embodiments. Since the principle of solving the problem in the computer program product embodiment is similar to that in the above method embodiment, the implementation of the computer program product embodiment can refer to the implementation of the above method embodiment, and the repeated parts will not be repeated.
[0145] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.
[0146] In addition, although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.
[0147] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the implementation of the present disclosure.
[0148] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the appended claims.
Claims
1. A method for discovering a relay device in a near-field communication scenario, characterized in that: include: receiving a relay discovery request message sent by a first terminal device and carrying a first relay server code and a first direct discovery set, wherein the first relay server code is used to determine at least one relay device to which the first terminal device can connect, and the first direct discovery set includes: first identification information of the first terminal device and second identification information of a second terminal device, the second terminal device being a peer device with which the first terminal device communicates through a relay device; acquiring, according to the first relay server code, at least one relay device to which the first terminal device can connect, and screening out a target relay device from the at least one relay device; A relay discovery request message carrying a second direct discovery set is sent to the target relay device, so that the target relay device establishes a communication connection between the first terminal device and the second terminal device according to the identification information of the second terminal device, wherein the second direct discovery set includes: the first identification information of the first terminal device, the second identification information of the second terminal device, the identification information of the target relay and a second relay server code, and the second relay server code is used to determine multiple relay devices and / or terminal devices to which the target relay device can be connected.
2. The method for discovering a relay device in a near-field communication scenario according to claim 1, characterized in that: Before acquiring at least one relay device to which the first terminal device can connect according to the first relay server code and screening out a target relay device from the at least one relay device, the method further includes: The relay server code of each relay device, historical relay device discovery records, and security link information between each relay device and the terminal device are stored.
3. The method for discovering a relay device in a near-field communication scenario according to claim 2, characterized in that: Acquiring at least one relay device to which the first terminal device can connect according to the first relay server code, and screening out a target relay device from the at least one relay device, including: Matching the first relay server code with the pre-stored relay server codes of each relay device to obtain at least one relay device to which the first terminal device can connect; The target relay device is screened out from the at least one relay device by storing the pre-stored historical relay device discovery records or the secure link information between each relay device and the terminal device.
4. A method for discovering a relay device in a near-field communication scenario, characterized in that: include: Sending a relay discovery request message carrying a first relay server code and a first direct discovery set to a relay scheduling center, wherein the first relay server code is used to determine at least one relay device to which the first terminal device can connect, and the first direct discovery set includes: first identification information of the first terminal device and second identification information of a second terminal device, the second terminal device being a peer device with which the first terminal device communicates via a relay device, and the relay scheduling center is used to obtain at least one relay device to which the first terminal device can connect according to the first relay server code, and filter out a target relay device from the at least one relay device; Receive a relay discovery response message carrying a second direct discovery set returned by the target relay device, wherein the second direct discovery set includes: first identification information of the first terminal device, second identification information of the second terminal device, identification information of the target relay and a second relay server code, and the second relay server code is used to determine multiple relay devices and / or terminal devices to which the target relay device can be connected.
5. A method for discovering a relay device in a near-field communication scenario, characterized in that: include: Receive a relay discovery request message from a first terminal device forwarded by a target relay device, wherein the relay discovery request message carries a second direct discovery set, and the second direct discovery set includes: first identification information of the first terminal device, second identification information of the second terminal device, identification information of the target relay, and a second relay server code, the second terminal device is a peer device with which the first terminal device communicates, and the second relay server code is used to determine a plurality of relay devices and / or terminal devices to which the target relay device can be connected; A relay discovery response message carrying a third relay server code and a first direct discovery set is returned to the target relay device, wherein the third relay server code is used to determine at least one relay device to which the second terminal device can connect, and the first direct discovery set includes: first identification information of the first terminal device and second identification information of the second terminal device.
6. A near area communication system, characterized in that: include: a first terminal device and a second terminal device, wherein the second terminal device is a peer device with which the first terminal device communicates via a relay device; The first terminal device is used to send a relay discovery request message carrying a first relay server code and a first direct discovery set to a relay scheduling center, wherein the first relay server code is used to determine at least one relay device to which the first terminal device can connect, and the first direct discovery set includes: first identification information of the first terminal device and second identification information of the second terminal device, and the relay scheduling center is used to obtain at least one relay device to which the first terminal device can connect according to the first relay server code, and filter out a target relay device from the at least one relay device; The second terminal device is used to receive a relay discovery request message from the first terminal device forwarded by a target relay device, wherein the relay discovery request message carries a second direct discovery set, and the second direct discovery set includes: first identification information of the first terminal device, second identification information of the second terminal device, identification information of the target relay, and a second relay server code, the second terminal device is a peer device with which the first terminal device communicates, and the second relay server code is used to determine a plurality of relay devices and / or terminal devices to which the target relay device can be connected; The second terminal device is further used to return a relay discovery response message carrying a third relay server code and a first direct discovery set to the target relay device, wherein the third relay server code is used to determine at least one relay device to which the second terminal device can connect; The first terminal device is further used to receive a relay discovery response message carrying the second direct discovery set returned by the target relay device.
7. A relay scheduling device, characterized in that: include: A first request message receiving module, configured to receive a relay discovery request message sent by a first terminal device and carrying a first relay server code and a first direct discovery set, wherein the first relay server code is used to determine at least one relay device to which the first terminal device can connect, and the first direct discovery set includes: first identification information of the first terminal device and second identification information of a second terminal device, the second terminal device being a peer device with which the first terminal device communicates through a relay device; a target relay device screening module, configured to obtain at least one relay device to which the first terminal device can connect according to the first relay server code, and screen a target relay device from the at least one relay device; The first request message sending module is used to send a relay discovery request message carrying a second direct discovery set to the target relay device, so that the target relay device establishes a communication connection between the first terminal device and the second terminal device according to the identification information of the second terminal device, wherein the second direct discovery set includes: the first identification information of the first terminal device, the second identification information of the second terminal device, the identification information of the target relay and the second relay server code, and the second relay server code is used to determine multiple relay devices and / or terminal devices to which the target relay device can be connected.
8. A terminal device, characterized in that: include: A second request message sending module is used to send a relay discovery request message carrying a first relay server code and a first direct discovery set to a relay scheduling center, wherein the first relay server code is used to determine at least one relay device to which the first terminal device can connect, and the first direct discovery set includes: first identification information of the first terminal device and second identification information of the second terminal device, the second terminal device is a peer device with which the first terminal device communicates through a relay device, and the relay scheduling center is used to obtain at least one relay device to which the first terminal device can connect according to the first relay server code, and filter out a target relay device from the at least one relay device; A response message receiving module is used to receive a relay discovery response message carrying a second direct discovery set returned by the target relay device, wherein the second direct discovery set includes: first identification information of the first terminal device, second identification information of the second terminal device, identification information of the target relay and a second relay server code, and the second relay server code is used to determine multiple relay devices and / or terminal devices to which the target relay device can be connected.
9. A terminal device, characterized in that: include: a second request message receiving module, configured to receive a relay discovery request message from a first terminal device forwarded by a target relay device, wherein the relay discovery request message carries a second direct discovery set, the second direct discovery set comprising: first identification information of the first terminal device, second identification information of the second terminal device, identification information of the target relay, and a second relay server code, the second terminal device being a peer device with which the first terminal device communicates, and the second relay server code being used to determine a plurality of relay devices and / or terminal devices to which the target relay device can connect; A response message sending module is used to return a relay discovery response message carrying a third relay server code and a first direct discovery set to the target relay device, wherein the third relay server code is used to determine at least one relay device to which the second terminal device can connect, and the first direct discovery set includes: first identification information of the first terminal device and second identification information of the second terminal device.
10. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to execute the relay device discovery method in a near area communication scenario according to any one of claims 1 to 5 by executing the executable instructions.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for discovering a relay device in a near area communication scenario according to any one of claims 1 to 5 is implemented.
12. A computer program product comprising: A computer program or instruction, characterized in that when the computer program or instruction is executed by a processor, the method for discovering a relay device in a near area communication scenario as described in any one of claims 1 to 5 is implemented.
Citation Information
Cited By
Near field communication method and related equipment
CN119212036A
Near field communication method and related equipment
CN119212036B
Proximity communication method, and related device
WO2026113624A1
