Proximity communication method, and related device
By introducing a relay discovery and scheduling center into 5G ProSe technology, the problem of network resource waste caused by remote devices simultaneously sending requests to multiple relay devices is solved, achieving efficient resource utilization and adapting the selection of relay devices.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- CHINA TELECOM CORP LTD
- Filing Date
- 2025-09-28
- Publication Date
- 2026-06-04
AI Technical Summary
In 5G ProSe technology, the problem of network resource waste arises when remote devices simultaneously send relay discovery requests to multiple relay devices.
A relay discovery and dispatch center is added on the terminal side. The relay service code identifies the relay devices that remote devices can connect to, obtains the network connection information of each relay device to the target network, selects the target relay device that meets the conditions, and forwards the relay discovery request message to establish local communication.
This avoids remote devices simultaneously initiating relay discovery processes to multiple relay devices, reduces network resource waste, and selects the most suitable relay device for communication.
Smart Images

Figure CN2025124925_04062026_PF_FP_ABST
Abstract
Description
Near-field communication methods and related equipment
[0001] Cross-reference to related applications
[0002] This disclosure claims priority to Chinese Patent Application No. 202411708678.5, filed on November 26, 2024, entitled “Near-field communication method and related apparatus”, the entire contents of which are incorporated herein by reference. Technical Field
[0003] This disclosure relates to the field of communication technology, and in particular to a near-field communication method and related equipment. Background Technology
[0004] With the continuous development of 5G communication technology, 5G ProSe (Proximity Services) technology has gradually become a research hotspot. 5G ProSe technology allows user equipment (UE) to communicate directly without going through the core network, thereby improving communication efficiency and reducing latency. In 5G ProSe technology, the discovery of relay devices (i.e., user equipment that connects remote devices to the network via relays) is a crucial step.
[0005] Currently, relay device discovery is a direct discovery method, meaning that a remote device simultaneously sends relay discovery request messages to multiple relay devices (such as 5G ProSe UE-to-network relays), and these relay devices subsequently return relay discovery response messages to the remote device. However, this direct discovery method suffers from certain network resource waste. Specifically, when a remote device initiates a relay discovery request, it establishes multiple communication paths simultaneously. However, during actual communication, only one communication path is ultimately selected for communication, while the others are discarded, resulting in wasted network resources.
[0006] It should be noted that the information disclosed in the background section above is only used to enhance the understanding of the background of this disclosure, and therefore may include information that does not constitute prior art known to those skilled in the art. Summary of the Invention
[0007] This disclosure provides a near-field communication method and related equipment, which at least to some extent overcomes the technical problem of network resource waste in the discovery process of relay devices during near-field communication.
[0008] Other features and advantages of this disclosure will become apparent from the following detailed description, or may be learned in part from practice of this disclosure.
[0009] According to one aspect of this disclosure, a near-field communication method is provided, the method comprising: receiving a relay discovery request message initiated by a remote device, wherein the relay discovery request message includes a relay service code, the relay service code being used at least to identify one or more relay devices that the remote device can connect to; searching for one or more relay devices that the remote device can connect to based on the relay service code included in the relay discovery request message, and obtaining network connection information from each relay device to a target network; selecting a target relay device that meets certain conditions from the one or more relay devices that the remote device can connect to based on the network connection information from each relay device to the target network; and forwarding the relay discovery request message initiated by the remote device to the target relay device, so that the target relay device returns a relay discovery response message to the remote device.
[0010] In some embodiments, the network connection information includes at least: signal strength; wherein, selecting a target relay device that meets the conditions from one or more relay devices that can be connected to the remote device according to the network connection information of each relay device to the target network includes: selecting the relay device with the largest signal strength from one or more relay devices that can be connected to the remote device according to the signal strength of each relay device to the target network, and determining it as the target relay device that meets the conditions.
[0011] In some embodiments, the relay discovery request message further includes: the message type of the local area communication message; the network connection information further includes: the message type of the relay device providing relay services; wherein, selecting a target relay device that meets the conditions from one or more relay devices that the remote device can connect to based on the network connection information of each relay device to the target network includes: selecting one or more relay devices that meet the corresponding message type from one or more relay devices that the remote device can connect to based on the message type of the local area communication message and the message type of each relay device providing relay services; and selecting the relay device with the strongest signal strength from one or more relay devices that meet the corresponding message type based on the signal strength of each relay device to the target network, and determining it as the target relay device that meets the conditions.
[0012] In some embodiments, the relay discovery request message further includes: user information of the remote device; wherein, based on the relay service code contained in the relay discovery request message, searching for one or more relay devices that the remote device can connect to, and obtaining network connection information from each relay device to the target network, includes: searching for one or more relay devices that the remote device can connect to, and obtaining the relay service code of each relay device, wherein the relay service code of each relay device is used to identify one or more remote devices authorized by the relay device to use the relay service; filtering one or more relay devices authorized by the remote device to use the relay service from the one or more relay devices that the remote device can connect to, based on the user information of the remote device contained in the relay discovery request message and the relay service code of each relay device; and obtaining network connection information from each relay device authorized by the remote device to use the relay service to the target network.
[0013] In some embodiments, before finding one or more relay devices that the remote device can connect to based on the relay service code contained in the relay discovery request message, and obtaining network connection information from each relay device to the target network, the method further includes: storing the relay service codes of multiple relay devices and the network connection information from each relay device to the target network, wherein the relay service code of each relay device is used to identify one or more remote devices authorized by the relay device to use the relay service.
[0014] According to one aspect of this disclosure, a near-field communication method is also provided, applied to a remote device, comprising: sending a relay discovery request message to a relay discovery scheduling center, wherein the relay discovery request message includes a relay service code, the relay service code being used at least to identify one or more relay devices that the remote device can connect to; receiving a relay discovery response message returned by a target relay device, wherein the target relay device is a target relay device selected by the relay discovery scheduling center from one or more relay devices that the remote device can connect to, and establishing near-field communication between the remote device and the target relay device based on the relay discovery response message.
[0015] According to one aspect of this disclosure, a relay discovery scheduling apparatus is also provided, comprising: a relay discovery request message receiving module, configured to receive a relay discovery request message initiated by a remote device, wherein the relay discovery request message includes: a relay service code, the relay service code being used at least to identify one or more relay devices that the remote device can connect to; a relay discovery module, configured to search for one or more relay devices that the remote device can connect to based on the relay service code included in the relay discovery request message, and obtain network connection information from each relay device to a target network; a relay filtering module, configured to select a target relay device that meets certain conditions from the one or more relay devices that the remote device can connect to based on the network connection information from each relay device to the target network; and a relay discovery request message forwarding module, configured to forward the relay discovery request message initiated by the remote device to the target relay device, so that the target relay device returns a relay discovery response message to the remote device.
[0016] According to one aspect of this disclosure, a user equipment is also provided, the user equipment comprising: a relay discovery request message sending module configured to send a relay discovery request message to a relay discovery scheduling center, wherein the relay discovery request message includes: a relay service code, the relay service code being used at least to identify one or more relay devices that the user equipment can connect to; a relay discovery response message receiving module configured to receive a relay discovery response message returned by a target relay device, wherein the target relay device is a target relay device selected by the relay discovery scheduling center from one or more relay devices that the user equipment can connect to, and a local area communication module configured to establish local area communication between the user equipment and the target relay device based on the relay discovery response message.
[0017] According to one aspect of this disclosure, a near-field communication system is also provided, comprising: a remote device, a relay discovery scheduling center, and at least one relay device; wherein the remote device is configured to send a relay discovery request message to the relay discovery scheduling center, wherein the relay discovery request message includes a relay service code, the relay service code being used at least to identify one or more relay devices that the remote device can connect to; the relay discovery scheduling center is configured to receive the relay discovery request message, and based on the relay service code included in the relay discovery request message, search for one or more relay devices that the remote device can connect to, obtain network connection information from each relay device to a target network, select a target relay device that meets certain conditions from the one or more relay devices that the remote device can connect to, and forward the relay discovery request message initiated by the remote device to the target relay device, so that the target relay device returns a relay discovery response message to the remote device.
[0018] According to one aspect of this disclosure, an electronic device is also provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform the near-field communication method described in any of the preceding claims by executing the executable instructions.
[0019] According to one aspect of this disclosure, a computer-readable storage medium is also provided, on which a computer program is stored, which, when executed by a processor, implements the near-field communication method described in any of the preceding claims.
[0020] According to one aspect of this disclosure, a computer program product is also provided, comprising: a computer program or instructions that, when executed by a processor, implement the near-field communication method described in any of the preceding claims.
[0021] The near-field communication method and related devices provided in the embodiments of this disclosure add a relay discovery scheduling center on the terminal side. After receiving a relay discovery request message initiated by a remote device, the remote device searches for one or more relay devices that it can connect to based on the relay service code contained in the relay discovery request message. Then, it obtains the network connection information from each relay device to the target network. Based on the network connection information from each relay device to the target network, it selects a target relay device that meets the conditions from the one or more relay devices that the remote device can connect to, and forwards the relay discovery request message initiated by the remote device to the target relay device, so that the target relay device returns a relay discovery response message to the remote device.
[0022] The near-field communication method and related devices provided in the embodiments of this disclosure can find the most suitable relay device based on the relay discovery request message initiated by the remote device and establish near-field communication with the relay device. This avoids the problem of wasted network resources in the traditional near-field communication process where the remote device initiates relay discovery communication to multiple relay devices at the same time.
[0023] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0024] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure. It is obvious that the drawings described below are merely some embodiments of this disclosure, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort.
[0025] Figure 1 shows a schematic diagram of a near-field communication system architecture according to an embodiment of the present disclosure;
[0026] Figure 2 shows a flowchart of direct relay discovery in a near-field communication scenario in related technologies;
[0027] Figure 3 shows a flowchart of relay discovery via a relay discovery dispatch center in a near-domain communication scenario according to an embodiment of this disclosure.
[0028] Figure 4 illustrates the complexity of a direct relay discovery method in related technologies;
[0029] Figure 5 illustrates the complexity of relay discovery through a relay discovery scheduling center in an embodiment of this disclosure.
[0030] Figure 6 shows a flowchart of a near-domain communication method according to an embodiment of the present disclosure;
[0031] Figure 7 shows a flowchart of an optional near-field communication method according to an embodiment of this disclosure;
[0032] Figure 8 shows a flowchart of an optional near-field communication method according to an embodiment of this disclosure;
[0033] Figure 9 shows a flowchart of another near-field communication method in an embodiment of this disclosure;
[0034] Figure 10 shows a schematic diagram of a relay discovery and scheduling device according to an embodiment of the present disclosure;
[0035] Figure 11 shows a schematic diagram of a user equipment according to an embodiment of the present disclosure;
[0036] Figure 12 shows a structural block diagram of an electronic device according to an embodiment of the present disclosure. Detailed Implementation
[0037] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, these exemplary embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, they are provided so that this disclosure will be more comprehensive and complete, and will fully convey the concept of the exemplary 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.
[0038] Furthermore, the accompanying drawings are merely illustrative of this disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and therefore repeated descriptions of them will be omitted. Some block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities may be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.
[0039] To facilitate understanding, before introducing the embodiments of this disclosure, the following explanations are provided for several terms involved in the embodiments of this disclosure:
[0040] ProSe: Proximity Service, is a device-to-device (D2D) connection or direct communication between nearby mobile devices, as defined in 3GPP TS23.303 Release 12. In this communication mode, user equipment (UE) can directly send and receive data in the uplink spectrum without needing to be forwarded through network infrastructure such as base stations.
[0041] RSC: Relay Service Code, is an identifier used for communication between a user equipment (UE) and a network relay device, or between a UE and a relay device. The TS23.303v18.3.0 document defines communication between UE and network relay devices. For UE-to-relay communication, the relay service code identifies the connection service provided by the relay device in a local area communication scenario and the authorized user to whom the relay device will provide the service.
[0042] Remote devices: User equipment that supports local area communication and can access the target network or communicate with other remote devices through relay devices.
[0043] Relay equipment: A relay user equipment or network relay equipment that supports local area communication and can provide relay services. It can receive messages from remote devices and forward them to other remote devices or network infrastructures of the target network.
[0044] The specific implementation methods of the embodiments of this disclosure will now be described in detail with reference to the accompanying drawings.
[0045] Figure 1 shows a schematic diagram of a near-field communication system architecture in an embodiment of the present disclosure. As shown in Figure 1, the system architecture includes: a remote device 10, a relay discovery and dispatch center 20, and at least one relay device (a first relay device 30A, a second relay device 30B, and a third relay device 30C as shown in Figure 1).
[0046] The remote device 10 is used to send a relay discovery request message to the relay discovery dispatch center 20. The relay discovery request message includes a relay service code, which is used to identify at least one or more relay devices that the remote device can connect to.
[0047] The relay discovery dispatch center 20 is used to receive relay discovery request messages and, based on the relay service code contained in the relay discovery request message, search for one or more relay devices that the remote device can connect to (such as the first relay device 30A, the second relay device 30B, and the third relay device 30C), obtain the network connection information of each relay device to the target network, select a target relay device (such as the second relay device 30B) that meets the conditions from the one or more relay devices that the remote device can connect to, and forward the relay discovery request message of the remote device 10 to the target relay device (such as the second relay device 30B) so that the target relay device (such as the second relay device 30B) returns a relay discovery response message to the remote device 10.
[0048] Taking 5G ProSe as an example, to address the resource waste caused by a single 5G ProSe remote UE simultaneously sending request messages to multiple UE-to-network relays, this disclosure provides a method for UE-to-network relay discovery through relay scheduling in near-field communication. The method includes: adding a 5G ProSe relay scheduling center on the terminal side, and pre-storing in it the RSC (Relay Service Code) of all UE-to-network relays, previous 5G ProSe UE-to-network relay discovery processes, and secure PC5 connection information between the 5G ProSe UE-to-network relay and the 5G ProSe remote UE. When the UE-to-network relay discovery process begins, the 5G ProSe relay scheduling center searches for a suitable relay based on the RSC in the received request message, and finds the most suitable UE-to-network relay through previous 5G ProSe UE-to-network relay discovery processes or through the strength of the secure PC5 connection signal between the 5G ProSe UE-to-network relay and the 5G ProSe remote UE.
[0049] The method for UE to network relay discovery through relay scheduling provided in this embodiment of the present disclosure can avoid the problem of resource waste caused by the device initiating multiple communication paths at the same time. Furthermore, the 5G ProSe relay scheduling center can select the best UE to network relay, that is, discover the most suitable 5G ProSe UE to network relay with the least amount of resources.
[0050] In some embodiments, the network connection information mentioned above includes at least: signal strength; then the relay discovery and dispatch center 20 is further configured to: select the relay device with the strongest signal strength from one or more relay devices that can be connected to the remote device based on the signal strength of each relay device to the target network, and determine it as the target relay device that meets the conditions.
[0051] In some embodiments, the relay discovery request message further includes: a message type for a local area communication message; the network connection information further includes: a message type for a relay device providing relay services; wherein, the relay discovery dispatch center 20 is further configured to: select one or more relay devices that meet the corresponding message type from one or more relay devices that can be connected to by the remote device, based on the message type of the local area communication message and the message type for each relay device providing relay services; and select the relay device with the strongest signal strength from one or more relay devices that meet the corresponding message type, based on the signal strength of each relay device to the target network, and determine it as the target relay device that meets the conditions.
[0052] In some embodiments, the relay discovery request message further includes user information of the remote device; then the relay discovery dispatch center 20 is further configured to: search for one or more relay devices that the remote device can connect to based on the relay service code contained in the relay discovery request message, and obtain the relay service code of each relay device, wherein the relay service code of each relay device is used to identify one or more remote devices authorized by the relay device to use the relay service; filter one or more relay devices authorized by the remote device to use the relay service from the one or more relay devices that the remote device can connect to based on the user information of the remote device contained in the relay discovery request message and the relay service code of each relay device; and obtain network connection information from each relay device authorized by the remote device to use the relay service to the target network.
[0053] In some embodiments, the relay discovery and dispatch center 20 is further configured to: store relay service codes of multiple relay devices and network connection information from each relay device to the target network, wherein the relay service code of each relay device is used to identify one or more remote devices authorized by the relay device to use the relay service.
[0054] It should be noted that, in this embodiment of the disclosure, a remote device refers to a user device that cannot directly access the target network (such as a cellular network); a relay device refers to a user device that can directly access the target network (such as a cellular network). In this embodiment of the disclosure, the relay device can access the target network through a wireless network or a wired network.
[0055] Optionally, the aforementioned wireless or wired networks use standard communication technologies and / or protocols. The network is typically the Internet, but can also be any network, including but not limited to Local Area Networks (LANs), Metropolitan Area Networks (MANs), Wide Area Networks (WANs), mobile, wired or wireless networks, private networks, or any combination of virtual private networks. In some embodiments, technologies and / or formats including Hyper Text Markup Language (HTML), Extensible Markup Language (XML), etc., are used to represent data exchanged over the network. Furthermore, conventional encryption technologies such as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Networks (VPNs), and Internet Protocol Security (IPSec) can be used to encrypt all or some links. In other embodiments, custom and / or dedicated data communication technologies can be used to replace or supplement the aforementioned data communication technologies.
[0056] Optionally, the remote device and relay device in the embodiments of this disclosure are both terminal devices. In specific implementation, the terminal device can be a mobile phone, tablet personal computer, laptop computer, personal digital assistant (PDA), mobile internet device (MID), wearable device, or vehicle-mounted device, etc. It should be noted that the specific type of terminal device is not limited in the embodiments of this invention.
[0057] In this embodiment of the disclosure, the relay device can be connected to network-side devices such as base stations, network relays, or access points. The base station can be a 5G or later version base station (e.g., 5G NR NB), or a base station in other communication systems (e.g., eNB base station). It should be noted that this embodiment of the disclosure does not limit the specific type of network-side device.
[0058] Optionally, the relay discovery and dispatch center in this embodiment of the disclosure can be a specific device or a module set on a remote device. The module can be implemented in hardware or software.
[0059] Figure 2 shows a flowchart of a direct relay discovery process in a near-field communication scenario in related technologies. As shown in Figure 2, it specifically includes:
[0060] S202, The remote device sends a relay discovery request message to multiple relay devices.
[0061] Taking 5G ProSe as an example, a 5G ProSe remote UE sends a 5G ProSe UE to Network Relay Discovery Request message. The 5G ProSe UE to Network Discovery Request message includes the discovery message type, discoverer information, RSC, and optional target information. The 5G ProSe remote UE that discovers the 5G ProSe UE to Network Relay sends a request message with an RSC associated with the desired connectivity service.
[0062] S204, The remote device receives relay discovery response messages returned by each relay device.
[0063] Taking 5G ProSe as an example, if the RSC contained in the request message matches any (pre-)configured RSC of the 5G ProSe UE to Network Relay, and the target information (if any) contained in the request message matches the 5G ProSe UE to Network Relay, then the 5G ProSe UE to Network Relay (e.g., 1, 2, and 3) responds to the 5G ProSe remote UE using a UE to Network Relay discovery response message. The 5G ProSe UE to Network Relay discovery response message contains the discovery message type, discovery information, and RSC.
[0064] S206, Select a relay device for near-field communication.
[0065] Taking 5G ProSe as an example, the 5G ProSe remote UE selects the 5G ProSe UE to the network relay based on the relay discovery response messages returned by each relay device received in S204.
[0066] Figure 3 shows a flowchart of relay discovery via a relay discovery scheduling center in a near-domain communication scenario according to an embodiment of this disclosure. As shown in Figure 3, it specifically includes:
[0067] The S300 relay discovery dispatch center pre-stores the relay service codes of all relay devices, previous remote device discovery to relay devices, and network connection information between relay devices and remote devices.
[0068] Taking 5G ProSe as an example, a 5G ProSe relay dispatch center is added to the 5G ProSe UE to network relay discovery process, and all UE to network relay RSCs, previous 5G ProSe UE to network relay discovery, and secure PC5 connection information between 5G ProSe UE to network relay and 5G ProSe remote UE are pre-stored in it.
[0069] S302, the remote device sends a relay discovery request message to the relay discovery dispatch center.
[0070] Taking 5G ProSe as an example, the discoverer 5G ProSe remote UE sends a UE to network relay discovery request message to the 5G ProSe relay dispatch center. The 5G ProSe UE to network relay discovery request message contains the discovery message type, RSC, and direct discovery set, including the user information ID of the discoverer 5G ProSe remote UE.
[0071] S304, the relay discovery dispatch center searches for the most suitable relay equipment.
[0072] Taking 5G ProSe as an example, the 5G ProSe relay dispatch center searches for a suitable 5G ProSe UE to network relay based on the RSC in the received UE to network relay discovery request message, and finds the most suitable UE to network relay by either previous 5G ProSe UE to network relay discovery or by the strength of the secure PC5 connection signal between the 5G ProSe UE to network relay and the 5G ProSe remote UE.
[0073] S306, The relay discovery dispatch center forwards the relay discovery request message to the target relay device.
[0074] Taking 5G ProSe as an example, the 5G ProSe relay dispatch center sends a UE-to-network relay discovery request message to the most suitable 5G ProSe UE-to-network relay (e.g., 5G ProSe UE-to-network relay-3). The 5G ProSe UE-to-network relay discovery request message contains a direct discovery set, including the user information ID of the discoverer 5G ProSe remote UE and the RSC of the UE-to-network relay.
[0075] S308, the target relay device returns a relay discovery response message.
[0076] Taking 5G ProSe as an example, 5G ProSe UE to Network Relay-3 returns a UE to Network Relay discovery response message to the 5G ProSe remote UE.
[0077] Figure 4 illustrates the complexity of a direct relay discovery process in related technologies, while Figure 5 illustrates the complexity of relay discovery via a relay discovery scheduling center in an embodiment of this disclosure. Comparing Figures 4 and 5, it can be seen that the complexity of the direct relay discovery process is 2N, while the complexity of relay discovery via a relay discovery scheduling center is 3. When the number of 5G ProSe UEs to network relays exceeds one, this patent can significantly reduce the complexity of the 5G ProSe UE to network relay discovery process, effectively avoiding resource waste without increasing the relay discovery process time.
[0078] Applying the near-field communication method provided in this embodiment to 5G ProSe, a 5G ProSe relay dispatch center is added on the terminal side. This center pre-stores the RSCs of all UE-to-network relays, previous 5G ProSe UE-to-network relay discovery processes, and secure PC5 connection information between 5G ProSe UE-to-network relays and 5G ProSe remote UEs. When the UE-to-network relay discovery process begins, the 5G ProSe relay dispatch center searches for a suitable relay based on the RSC in the received 5G ProSe UE-to-network relay discovery request message. It also searches for the most suitable UE-to-network relay by either previous 5G ProSe UE-to-network relay discovery processes or by the strength of the secure PC5 connection signal between the 5G ProSe UE-to-network relay and the 5G ProSe remote UE.
[0079] Those skilled in the art will understand that the number of remote devices, relay discovery and dispatch centers, and relay devices shown in Figures 1 to 5 are merely illustrative. Depending on actual needs, any number of remote devices, relay discovery and dispatch centers, and relay devices can be included. This disclosure does not limit this.
[0080] Under the above system architecture, this disclosure provides a near-field communication method that can be executed by any electronic device with computing capabilities.
[0081] In some embodiments, the local communication method provided in this disclosure can be executed by the relay scheduling center of the above-described system architecture; in other embodiments, the local communication method provided in this disclosure can be implemented by the relay scheduling center, remote devices, and relay devices in the above-described system architecture through interaction.
[0082] It should be noted that the remote device in this embodiment can be any remote user equipment that supports local area communication and can access the target network (such as a cellular network) with the help of a relay device; the relay device in this embodiment can be any device that supports local area communication and can provide relay services, and can be a relay user equipment that provides relay services or a network relay device.
[0083] Figure 6 shows a flowchart of a near-field communication method according to an embodiment of the present disclosure. As shown in Figure 2, the near-field communication method provided in this embodiment of the present disclosure includes the following steps:
[0084] S602, receive a relay discovery request message initiated by a remote device, wherein the relay discovery request message contains: a relay service code, which is used to identify at least one or more relay devices that the remote device can connect to.
[0085] It should be noted that the aforementioned relay discovery request message refers to a request message initiated by a remote device to find a relay device; the relay discovery request message includes at least: a relay service code for identifying one or more relay devices that the remote device can connect to; in some embodiments, the relay discovery request message may also include at least one of the following: the message type sent by the remote device when performing local area communication, the user information of the remote device, a direct discovery set or other target information.
[0086] In specific implementation, different information can be carried in the relay discovery request message according to actual needs. This disclosure does not make specific limitations in this regard. For example, in some embodiments, key information for near-field communication can be carried to achieve the purpose of encrypted communication; in other embodiments, other auxiliary information (such as the transmission bandwidth of the relay device) can be carried to select the most suitable relay device, so as to select the most suitable relay device according to the transmission bandwidth of the relay service provided by each relay device.
[0087] S604: Based on the relay service code contained in the relay discovery request message, locate the remote device that can connect to one or more relay devices and obtain the network connection information from each relay device to the target network.
[0088] It should be noted that, since relay service codes can be used to identify the relay devices connected to by various devices during local area communication, the relay service codes contained in the relay discovery request message can be used to find out which remote devices can connect to one or more relay devices, and obtain the network connection information from each relay device to the target network. Optionally, the network connection information includes, but is not limited to, signal strength.
[0089] S606: Based on the network connection information from each relay device to the target network, the remote device can select a target relay device that meets the conditions from one or more relay devices.
[0090] It should be noted that the network connection information from each relay device to the target network can be any information that characterizes the network connection status from the relay device to the target network; based on the network connection information from each relay device to the target network, the remote device can connect to one or more relay devices and select the target relay device that meets the conditions (such as the largest signal strength).
[0091] S608 forwards the relay discovery request message initiated by the remote device to the target relay device, so that the target relay device returns a relay discovery response message to the remote device.
[0092] It should be noted that after identifying a target relay device that meets the conditions, the relay discovery request message initiated by the remote device can be forwarded to the target relay device. When the target relay device returns a relay discovery response message to the remote device, the remote device and the target relay device can conduct local area communication.
[0093] In some embodiments, as shown in FIG7, before finding one or more relay devices that a remote device can connect to based on the relay service code contained in the relay discovery request message, and obtaining network connection information from each relay device to the target network, the near-field communication method provided in this disclosure embodiment may further include the following steps:
[0094] S600 stores the relay service codes of multiple relay devices and the network connection information of each relay device to the target network. The relay service code of each relay device is used to identify one or more remote devices authorized by the relay device to use the relay service.
[0095] It should be noted that the relay service codes of each relay device and the network connection information of each relay device to the target network can be collected in advance. As local communication is established subsequently, the stored relay service codes of each relay device and the network connection information of each relay device to the target network can be continuously updated. For example, unusable relay network connections can be deleted, the status information of relay network connections can be updated, or new relay network connections for local communication can be added.
[0096] As can be seen from the above, the near-field communication method provided in the embodiments of this disclosure adds a relay discovery scheduling center on the terminal side. After receiving a relay discovery request message initiated by a remote device, it searches for one or more relay devices that the remote device can connect to based on the relay service code contained in the relay discovery request message, and then obtains the network connection information from each relay device to the target network. Based on the network connection information from each relay device to the target network, it selects a target relay device that meets the conditions from the one or more relay devices that the remote device can connect to, and forwards the relay discovery request message initiated by the remote device to the target relay device, so that the target relay device returns a relay discovery response message to the remote device.
[0097] The near-field communication method provided in the embodiments of this disclosure can find the most suitable relay device based on the relay discovery request message initiated by the remote device and establish near-field communication with the relay device. This avoids the problem of wasted network resources in the traditional near-field communication process where the remote device initiates relay discovery communication to multiple relay devices at the same time.
[0098] In some embodiments, the network connection information mentioned above includes at least: signal strength; then the above S206 can be implemented by the following steps: based on the signal strength of each relay device to the target network, select the relay device with the strongest signal strength from one or more relay devices that can be connected to the remote device, and determine it as the target relay device that meets the conditions.
[0099] In this embodiment, the signal strength can be the signal strength of the network connection from each relay device to the target network, and / or the signal strength of the network connection from the remote device to each relay device.
[0100] In some embodiments, the relay discovery request message further includes: a message type for a local area communication message; the network connection information further includes: a message type for a relay device providing relay services; then S606 can be implemented by the following steps: selecting one or more relay devices that meet the corresponding message type from one or more relay devices that can be connected to the remote device, based on the message type of the local area communication message and the message type for each relay device providing relay services; selecting the relay device with the strongest signal strength from one or more relay devices that meet the corresponding message type, based on the signal strength of each relay device to the target network, and determining it as the target relay device that meets the conditions.
[0101] In the above embodiments, when the relay discovery request message contains a message type for remote devices to perform local communication, one or more relay devices that meet the corresponding message type can be selected from one or more relay devices that the remote device can connect to, and then the relay device with the strongest signal strength can be selected from them.
[0102] In some embodiments, the relay discovery request message further includes: user information of the remote device; as shown in FIG8, the local communication method provided in this embodiment can also obtain network connection information from each relay device to the target network through the following steps:
[0103] S802, based on the relay service code contained in the relay discovery request message, find one or more relay devices that the remote device can connect to, and obtain the relay service code of each relay device, wherein the relay service code of each relay device is used to identify one or more remote devices authorized by the relay device to use the relay service.
[0104] S804, based on the user information of the remote device contained in the relay discovery request message and the relay service code of each relay device, select one or more relay devices from the one or more relay devices that the remote device can connect to, and authorize the remote device to use the relay service.
[0105] S806: Obtain network connection information from each relay device authorized to use the relay service to the target network.
[0106] It should be noted that, for security reasons, some relay devices may only allow authorized user devices to access them. Therefore, when a relay discovers a request message containing user information of a remote device, it can determine whether the remote device is an authorized user device of the relay device. Through the above embodiments, it is possible to ensure that remote devices access relay devices authorized to access them, avoid unauthorized user devices accessing relay devices, and improve the security of local area communication.
[0107] It should be noted that the acquisition, storage, use, and processing of data in this disclosed technical solution comply with the relevant provisions of national laws and regulations. The various types of data, such as personal identity data, operational data, and behavioral data related to individuals, customers, and groups, obtained in the embodiments of this disclosure have all been authorized.
[0108] Based on the same inventive concept, this disclosure also provides a near-field communication method, which can be executed by any electronic device with computing capabilities.
[0109] In some embodiments, the local communication method provided in this disclosure can be executed by a remote device in the above-described system architecture; in other embodiments, the local communication method provided in this disclosure can be implemented by the remote device, relay dispatch center and relay device in the above-described system architecture through interaction.
[0110] Figure 9 shows a flowchart of another near-field communication method according to an embodiment of the present disclosure. As shown in Figure 5, the near-field communication method provided in this embodiment of the present disclosure includes the following steps:
[0111] S902, a relay discovery request message is sent to the relay discovery dispatch center. The relay discovery request message includes: a relay service code, which is used to identify at least one or more relay devices that the remote device can connect to.
[0112] S904, Receive the relay discovery response message returned by the target relay device, wherein the target relay device is the relay discovery dispatch center that selects the target relay device that meets the conditions from one or more relay devices that can be connected from the remote device;
[0113] S906, based on the relay discovery response message, establishes local area communication between the remote device and the target relay device.
[0114] Based on the same inventive concept, this disclosure also provides a relay discovery and scheduling device, as described in the following embodiments. Since the principle by which this device solves the problem is similar to that of the method embodiments described above, the implementation of this device embodiment can refer to the implementation of the method embodiments described above, and repeated details will not be repeated.
[0115] Figure 10 shows a schematic diagram of a relay discovery and scheduling device according to an embodiment of the present disclosure. As shown in Figure 10, the device includes: a relay discovery request message receiving module 101, a relay discovery module 102, a relay filtering module 103, and a relay discovery request message forwarding module 104.
[0116] The relay discovery request message receiving module 101 is configured to receive a relay discovery request message initiated by a remote device. The relay discovery request message includes a relay service code, which is used to identify at least one or more relay devices that the remote device can connect to. The relay discovery module 102 is configured to search for one or more relay devices that the remote device can connect to based on the relay service code contained in the relay discovery request message, and obtain network connection information from each relay device to the target network. The relay filtering module 103 is configured to select a target relay device that meets the conditions from one or more relay devices that the remote device can connect to based on the network connection information from each relay device to the target network. The relay discovery request message forwarding module 104 is configured to forward the relay discovery request message initiated by the remote device to the target relay device, so that the target relay device returns a relay discovery response message to the remote device.
[0117] In some embodiments, the network connection information includes at least signal strength; then the relay screening module 103 is further configured to: select the relay device with the strongest signal strength from one or more relay devices that can be connected to the remote device based on the signal strength of each relay device to the target network, and determine it as the target relay device that meets the conditions.
[0118] In some embodiments, the relay discovery request message further includes: a message type for a local area communication message; the network connection information further includes: a message type for a relay device providing relay services; then the relay screening module 103 is further configured to: select one or more relay devices that meet the corresponding message type from one or more relay devices that can be connected to the remote device according to the message type of the local area communication message and the message type for each relay device providing relay services; and select the relay device with the strongest signal strength from one or more relay devices that meet the corresponding message type according to the signal strength of each relay device to the target network, and determine it as the target relay device that meets the conditions.
[0119] In some embodiments, the relay discovery request message further includes: user information of the remote device; then the relay discovery module 102 is further configured to: search for one or more relay devices that the remote device can connect to based on the relay service code contained in the relay discovery request message, and obtain the relay service code of each relay device, wherein the relay service code of each relay device is used to identify one or more remote devices authorized by the relay device to use the relay service; filter one or more relay devices authorized by the remote device to use the relay service from the one or more relay devices that the remote device can connect to based on the user information of the remote device contained in the relay discovery request message and the relay service code of each relay device; and obtain the network connection information of each relay device authorized by the remote device to use the relay service to the target network.
[0120] In some embodiments, as shown in FIG10, the relay discovery and scheduling device in this embodiment further includes: a relay information storage module 105, configured to store the relay service codes of multiple relay devices and the network connection information of each relay device to the target network, wherein the relay service code of each relay device is used to identify one or more remote devices authorized by the relay device to use the relay service.
[0121] It should be noted that the examples and application scenarios implemented by the modules in the above device embodiments and the corresponding steps in the method embodiments are the same, but are not limited to the content disclosed in the above method embodiments. It should also be noted that the above modules, as part of the device, can be executed in a computer system such as a set of computer-executable instructions.
[0122] Based on the same inventive concept, this disclosure also provides a user equipment, as described in the following embodiments. Since the principle by which this remote device embodiment solves the problem is similar to that of the above method embodiments, the implementation of this remote device embodiment can refer to the implementation of the above method embodiments, and repeated details will not be elaborated further.
[0123] Figure 11 shows a schematic diagram of a user equipment according to an embodiment of the present disclosure. As shown in Figure 11, the device includes: a relay discovery request message sending module 111, a relay discovery response message receiving module 112, and a local area communication module 113.
[0124] The relay discovery request message sending module 111 is configured to send a relay discovery request message to the relay discovery scheduling center. The relay discovery request message includes a relay service code, which is used to identify at least one or more relay devices that the user equipment can connect to. The relay discovery response message receiving module 112 is configured to receive a relay discovery response message returned by the target relay device. The target relay device is selected by the relay discovery scheduling center from one or more relay devices that the user equipment can connect to. The local area communication module 113 is configured to establish local area communication between the user equipment and the target relay device based on the relay discovery response message.
[0125] It should be noted that the examples and application scenarios implemented by the modules in the above device embodiments and the corresponding steps in the method embodiments are the same, but are not limited to the content disclosed in the above method embodiments. It should also be noted that the above modules, as part of the device, can be executed in a computer system such as a set of computer-executable instructions.
[0126] Those skilled in the art will understand that various aspects of this disclosure can be implemented in the following forms: a completely hardware implementation, a completely software implementation (including firmware, microcode, etc.), or a combination of hardware and software implementations, which can be collectively referred to herein as a "circuit", "module" or "system".
[0127] Based on the same inventive concept, this disclosure also provides an electronic device, which includes: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the near-field communication method described above by executing the executable instructions. Since the principle by which this electronic device solves the problem is similar to that of the above method embodiments, the implementation of this electronic device embodiment can refer to the implementation of the above method embodiments, and repeated details will not be described again.
[0128] The electronic device 1200 according to this embodiment of the present disclosure will now be described with reference to FIG12. The electronic device 1200 shown in FIG12 is merely an example and should not be construed as limiting the functionality and scope of the embodiments of the present disclosure.
[0129] As shown in Figure 12, the electronic device 1200 is presented in the form of a general-purpose computing device. The components of the electronic device 1200 may include, but are not limited to: at least one processing unit 1210, at least one storage unit 1220, and a bus 1230 connecting different system components (including storage unit 1220 and processing unit 1210).
[0130] The storage unit stores program code that can be executed by the processing unit 1210, causing the processing unit 1210 to perform the steps described in the "Exemplary Methods" section above according to various exemplary embodiments of this disclosure.
[0131] In some embodiments, when the electronic device 1200 is a relay discovery scheduling center, the processing unit 1210 may execute the following steps of the above method embodiment: receiving a relay discovery request message initiated by a remote device, wherein the relay discovery request message includes: a relay service code, the relay service code being used at least to identify one or more relay devices that the remote device can connect to; based on the relay service code contained in the relay discovery request message, searching for one or more relay devices that the remote device can connect to, and obtaining network connection information from each relay device to the target network; based on the network connection information from each relay device to the target network, selecting a target relay device that meets the conditions from the one or more relay devices that the remote device can connect to; forwarding the relay discovery request message initiated by the remote device to the target relay device, so that the target relay device returns a relay discovery response message to the remote device.
[0132] In other embodiments, when the electronic device 1200 is a remote device, the processing unit 1210 may perform the following steps of the above method embodiments: sending a relay discovery request message to a relay discovery scheduling center, wherein the relay discovery request message includes: a relay service code, which is at least used to identify one or more relay devices that the remote device can connect to; receiving a relay discovery response message returned by a target relay device, wherein the target relay device is a target relay device selected by the relay discovery scheduling center from one or more relay devices that the remote device can connect to, and establishing local area communication between the remote device and the target relay device according to the relay discovery response message.
[0133] Storage unit 1220 may include a readable medium in the form of a volatile storage unit, such as random access memory (RAM) 12201 and / or cache memory 12202, and may further include a read-only memory (ROM) 12203.
[0134] Storage unit 1220 may also include a program / utility 12204 having a set (at least one) of program modules 12205, such program modules 12205 including but not limited to: operating system, one or more application programs, other program modules and program data, each or some combination of these examples may include an implementation of a network environment.
[0135] Bus 1230 can represent one or more of several types of bus structures, including a memory cell bus or memory cell controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local bus using any of the various bus structures.
[0136] Electronic device 1200 can also communicate with one or more external devices 1240 (e.g., keyboard, pointing device, Bluetooth device, etc.), one or more devices that enable a user to interact with electronic device 1200, and / or any device that enables electronic device 1200 to communicate with one or more other computing devices (e.g., router, modem, etc.). This communication can be performed via input / output (I / O) interface 1250. Furthermore, electronic device 1200 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 1260. As shown, network adapter 1260 communicates with other modules of electronic device 1200 via bus 1230. It should be understood that, although not shown in the figures, other hardware and / or software modules can be used in conjunction with electronic device 1200, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0137] From the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, terminal device, or network device, etc.) to execute the methods according to the embodiments of this disclosure.
[0138] Based on the same inventive concept, this disclosure also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements any of the aforementioned near-field communication methods. Since the principle by which this computer-readable storage medium embodiment solves the problem is similar to that of the aforementioned method embodiments, the implementation of this computer-readable storage medium embodiment can refer to the implementation of the aforementioned method embodiments, and repeated details will not be elaborated further.
[0139] More specific examples of computer-readable storage media in this disclosure may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0140] In this disclosure, a computer-readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, carrying readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable signal medium may also be any readable medium other than a readable storage medium, capable of transmitting, propagating, or transmitting a program for use by or in connection with an instruction execution system, apparatus, or device.
[0141] Optionally, the program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination thereof.
[0142] In practical implementation, program code for performing the operations of this disclosure can be written in any combination of one or more programming languages, including object-oriented programming languages such as Java and C++, and conventional procedural programming languages such as C or similar languages. The program code can execute entirely on the user's computing device, partially on the user's device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).
[0143] Based on the same inventive concept, this disclosure also provides a computer program product, including a computer program or instructions, which, when executed by a processor, implements the near-field communication method of any one of the above method embodiments. Since the principle by which this computer program product embodiment solves the problem is similar to that of the above method embodiments, the implementation of this computer program product embodiment can refer to the implementation of the above method embodiments, and repeated details will not be elaborated further.
[0144] It should be noted that although several modules or units for the device used to perform actions have been mentioned in the detailed description above, this division is not mandatory. In fact, according to embodiments of this disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.
[0145] Furthermore, although the steps of the method in this disclosure are described in a specific order in the accompanying drawings, this does not require or imply that the steps must be performed in that specific order, or that all the steps shown must be performed to achieve the desired result. Additional or alternative steps may be omitted, multiple steps may be combined into one step, and / or a step may be broken down into multiple steps.
[0146] From the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, mobile terminal, or network device, etc.) to execute the methods according to the embodiments of this disclosure.
[0147] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the appended claims.
Claims
1. A near-field communication method, comprising: Receive a relay discovery request message initiated by a remote device, wherein the relay discovery request message includes: a relay service code, the relay service code being used at least to identify one or more relay devices that the remote device can connect to; Based on the relay service code contained in the relay discovery request message, locate the remote device that can connect to one or more relay devices, and obtain the network connection information from each relay device to the target network. Based on the network connection information from each relay device to the target network, a target relay device that meets the conditions can be selected from one or more relay devices that can be connected to the remote device; The relay discovery request message initiated by the remote device is forwarded to the target relay device, so that the target relay device returns a relay discovery response message to the remote device.
2. The near-field communication method according to claim 1, wherein, The network connection information includes at least: signal strength; Specifically, based on the network connection information of each relay device to the target network, selecting a target relay device that meets the conditions from one or more relay devices that can be connected to the remote device includes: based on the signal strength of each relay device to the target network, selecting the relay device with the strongest signal strength from one or more relay devices that can be connected to the remote device, and determining it as the target relay device that meets the conditions.
3. The near-field communication method according to claim 2, wherein, The relay discovery request message also includes: the message type of the near-field communication message; the network connection information also includes: the message type of the relay device providing relay services; Specifically, based on the network connection information from each relay device to the target network, a target relay device that meets the conditions is selected from one or more relay devices that can be connected to the remote device, including: Based on the message type of the near-field communication message and the message type of the relay service provided by each relay device, one or more relay devices that meet the corresponding message type can be selected from one or more relay devices that can be connected to the remote device; Based on the signal strength of each relay device to the target network, select the relay device with the strongest signal strength from one or more relay devices that meet the corresponding message type, and determine it as the target relay device that meets the conditions.
4. The near-field communication method according to claim 1, wherein, The relay discovery request message also includes: user information of the remote device; Specifically, based on the relay service code contained in the relay discovery request message, the system locates one or more relay devices that the remote device can connect to, and obtains the network connection information from each relay device to the target network, including: Based on the relay service code contained in the relay discovery request message, the remote device can connect to one or more relay devices, and the relay service code of each relay device is obtained. The relay service code of each relay device is used to identify one or more remote devices authorized by the relay device to use the relay service. Based on the user information of the remote device contained in the relay discovery request message, and the relay service code of each relay device, one or more relay devices authorized to use the relay service are selected from the one or more relay devices that the remote device can connect to. Obtain network connection information from each relay device authorized to use the relay service to the target network.
5. The near-field communication method according to any one of claims 1 to 4, wherein, Before determining whether the remote device can connect to one or more relay devices based on the relay service code contained in the relay discovery request message, and obtaining network connection information from each relay device to the target network, the method further includes: It stores the relay service codes of multiple relay devices and the network connection information of each relay device to the target network. The relay service code of each relay device is used to identify one or more remote devices authorized by the relay device to use the relay service.
6. A local-domain communication method applied to a remote device, comprising: A relay discovery request message is sent to the relay discovery dispatch center, wherein the relay discovery request message includes: a relay service code, the relay service code being used at least to identify one or more relay devices that the remote device can connect to; Receive a relay discovery response message returned by the target relay device, wherein the target relay device is a target relay device that meets the conditions selected by the relay discovery scheduling center from one or more relay devices that the remote device can connect to; Based on the relay discovery response message, a local area communication is established between the remote device and the target relay device.
7. A relay discovery and scheduling device, comprising: The relay discovery request message receiving module is configured to receive a relay discovery request message initiated by a remote device, wherein the relay discovery request message includes a relay service code, which is used at least to identify one or more relay devices that the remote device can connect to; The relay discovery module is configured to locate one or more relay devices that the remote device can connect to, based on the relay service code contained in the relay discovery request message, and obtain network connection information from each relay device to the target network. The relay filtering module is configured to select a target relay device that meets the conditions from one or more relay devices that can be connected to the remote device, based on the network connection information of each relay device to the target network. The relay discovery request message forwarding module is configured to forward the relay discovery request message initiated by the remote device to the target relay device, so that the target relay device returns a relay discovery response message to the remote device.
8. A user equipment, comprising: The relay discovery request message sending module is configured to send a relay discovery request message to the relay discovery scheduling center. The relay discovery request message includes a relay service code, which is used to identify at least one or more relay devices that the user equipment can connect to. The relay discovery response message receiving module is configured to receive a relay discovery response message returned by a target relay device, wherein the target relay device is a target relay device selected by the relay discovery scheduling center from one or more relay devices that the user equipment can connect to, and the target relay device meets the conditions. The local communication module is configured to establish local communication between the user equipment and the target relay device based on the relay discovery response message.
9. A near-field communication system, comprising: Remote devices, a relay discovery and dispatch center, and at least one relay device; The remote device is configured to send a relay discovery request message to the relay discovery scheduling center. The relay discovery request message includes a relay service code, which is used to identify at least one or more relay devices that the remote device can connect to. The relay discovery scheduling center is used to receive the relay discovery request message, and according to the relay service code contained in the relay discovery request message, to find one or more relay devices that the remote device can connect to, to obtain the network connection information of each relay device to the target network, to select a target relay device that meets the conditions from the one or more relay devices that the remote device can connect to, and to forward the relay discovery request message initiated by the remote device to the target relay device, so that the target relay device returns a relay discovery response message to the remote device.
10. An electronic device, comprising: processor; as well as Memory for storing the executable instructions of the processor; The processor is configured to execute the near-field communication method of any one of claims 1 to 6 by executing the executable instructions.
11. A computer-readable storage medium having a computer program stored thereon, the computer program, when executed by a processor, implementing the near-field communication method according to any one of claims 1 to 6.
12. A computer program product, comprising: A computer program or instructions that, when executed by a processor, implement the near-field communication method according to any one of claims 1 to 6.