Communication method, terminal device and computer readable medium
By receiving and analyzing the instruction information of the terminal device, determining its network status and performing resident actions, it solves the problem of network consistency identification of the terminal device and improves the data transmission efficiency and reliability of the D2D relay auxiliary network.
Patent Information
- Application Number
- CN201780088211.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2017-03-10
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2037-03-10
AI Technical Summary
The existing technology is difficult to determine whether two terminal devices are on the same network, which affects data transmission between the D2D relay auxiliary network device and the remote terminal device.
By receiving and analyzing the instruction information sent by the terminal device, it is determined whether the two terminal devices reside on the same network, and if necessary, performs resident actions to ensure that they are on the same network.
It achieves accurate network identification and determination of data transmission paths between terminal devices, improving the efficiency and reliability of the D2D relay auxiliary network.
Smart Images

Figure CN110463230B
Abstract
Description
Technical Field
[0001] The present application relates to the field of communications, and more specifically, to a communication method, a terminal device, and a computer-readable medium. Background Art
[0002] Device-to-Device (D2D) technology means that adjacent terminal devices can transmit data via a direct link within a short distance.
[0003] D2D relay can be used to assist data transmission between network devices and remote terminal devices. At this time, the D2D communication mode can be used between the terminal device used for D2D relay and the remote terminal, while the cellular communication mode is used between the terminal device used for D2D relay and the network device. Among them, the terminal device used to assist the network device to communicate with the terminal device can be called a relay terminal device, and the relay terminal device can also communicate directly with the network device in a non-assisting manner with other terminal devices.
[0004] How to determine whether two terminal devices are in the same network is an urgent problem to be solved. Summary of the invention
[0005] Embodiments of the present application provide a communication method, a terminal device, and a computer-readable medium, which can determine whether two terminal devices are in the same network.
[0006] In a first aspect, a communication method is provided, comprising: a first terminal receives indication information sent by a second terminal, the indication information being used to indicate network information where the second terminal currently resides; and the first terminal determines whether the first terminal and the second terminal reside in the same network based on the indication information.
[0007] In combination with the first aspect, in some implementations of the first aspect, the first terminal receiving the indication information sent by the second terminal includes:
[0008] The first terminal receives a first message sent by the second terminal, where the first message includes the indication information.
[0009] In combination with the first aspect, in some implementations of the first aspect, the first terminal determines, according to the indication information, whether the first terminal and the second terminal reside in the same network, including:
[0010] The first terminal determines, according to the indication information, that the network where the first terminal and the second terminal reside is the same.
[0011] In combination with the first aspect, in some implementations of the first aspect, the method further includes:
[0012] The first terminal communicates with a network where the first terminal and the second terminal currently reside through the second terminal.
[0013] In combination with the first aspect, in some implementations of the first aspect, the method further includes:
[0014] The first terminal sends a second message to the second terminal, where the second message is used to indicate that the first terminal and the second terminal currently reside in the same network.
[0015] Optionally, the second message is a discovery message or a direct communication message.
[0016] Optionally, the first terminal determines, according to the indication information, whether the first terminal and the second terminal reside in the same network, including:
[0017] The first terminal determines, according to the indication information, that the first terminal and the second terminal reside in different networks.
[0018] Optionally, in a possible implementation manner, after the first terminal determines, according to the indication information, that the first terminal and the second terminal reside in different networks, the method further includes:
[0019] The first terminal receives indication information sent by other terminals, where the indication information is used to indicate network information where the other terminals currently reside;
[0020] The first terminal finds a terminal device in the same network as the first terminal according to the indication information sent by the other terminals.
[0021] In combination with the first aspect, in some implementations of the first aspect, the method further includes:
[0022] The first terminal performs a camping action, where the camping action is used to camp the first terminal on a network where the second terminal currently camps.
[0023] In combination with the first aspect, in some implementations of the first aspect, the method further includes:
[0024] When the first terminal successfully performs the resident action, the first terminal communicates with the same network through the second terminal.
[0025] In combination with the first aspect, in some implementations of the first aspect, the method further includes:
[0026] The first terminal sends a third message to the second terminal, where the third message is used to indicate that the first terminal has successfully camped on a network where the second terminal currently camps.
[0027] In combination with the first aspect, in some implementations of the first aspect, the third message is a discovery message or a direct communication message.
[0028] In combination with the first aspect, in some implementations of the first aspect, the method further includes:
[0029] The first terminal sends a fourth message to the second terminal, where the fourth message is used to indicate that the first terminal fails to execute the resident action.
[0030] In combination with the first aspect, in some implementations of the first aspect, the fourth message includes a failure cause and / or information about a network where the first terminal currently resides, and the failure cause includes at least one of the following:
[0031] The channel quality of the network where the second terminal currently resides does not meet a preset condition, and the network where the second terminal currently resides does not allow the first terminal to access.
[0032] In combination with the first aspect, in some implementations of the first aspect, the fourth message is a discovery message or a direct communication message.
[0033] In combination with the first aspect, in some implementations of the first aspect, the method further includes:
[0034] The first terminal sends a fifth message to the second terminal, where the fifth message is used to refuse to camp on the network where the second terminal is currently camped.
[0035] In combination with the first aspect, in some implementations of the first aspect, the fifth message also includes a rejection reason and / or information about a network where the first terminal currently resides, and the rejection reason includes that the networks where the first terminal and the second terminal currently reside are different.
[0036] In combination with the first aspect, in some implementations of the first aspect, the fifth message is a discovery message or a direct communication message.
[0037] In combination with the first aspect, in some implementations of the first aspect, the method further includes:
[0038] The first terminal sends a sixth message to the second terminal, where the sixth message is used to reject the first message.
[0039] In combination with the first aspect, in some implementations of the first aspect, the sixth message includes a rejection reason, and the rejection reason includes that the first terminal and the second terminal currently reside in different networks.
[0040] In combination with the first aspect, in some implementations of the first aspect, the same network is any one of the following:
[0041] The same beam, cell, base station, core network, public land mobile network PLMN, tracking area TA, and paging area.
[0042] In conjunction with the first aspect, in some implementations of the first aspect, the currently resident network information includes at least one of the following:
[0043] The identification information, spatial consistency information and temporal consistency information of the currently resident network, wherein the spatial consistency information indicates whether the currently resident network is the same as the last resident network, and the temporal consistency information indicates whether the resident network has changed within a specific time.
[0044] In combination with the first aspect, in some implementations of the first aspect, the first terminal receiving the indication information sent by the second terminal includes:
[0045] When the second terminal is powered on, or the network in which it resides changes, or a relay service needs to be transmitted, the first terminal receives the indication information sent by the second terminal.
[0046] In a second aspect, a communication method is provided, comprising:
[0047] The second terminal sends indication information to the first terminal, where the indication information is used to indicate information of a network where the second terminal currently resides;
[0048] The second terminal determines, according to the reception time and / or content of the first message, whether the first terminal and the second terminal are currently residing in the same network.
[0049] In combination with the second aspect, in some implementations of the second aspect, the second terminal sending the indication information to the first terminal includes:
[0050] The second terminal sends a second message to the first terminal, where the second message includes the indication information.
[0051] In conjunction with the second aspect, in some implementations of the second aspect, the method further includes:
[0052] In a case where it is determined that the first terminal and the second terminal reside in the same network, the second terminal relays data between the first terminal and the same network.
[0053] In combination with the second aspect, in some implementations of the second aspect, determining that the first terminal and the second terminal reside in the same network includes:
[0054] In a case where the content of the first message indicates that the first terminal and the second terminal currently reside in the same network, the second terminal determines that the first terminal and the second terminal currently reside in the same network.
[0055] In combination with the second aspect, in some implementations of the second aspect, determining that the first terminal and the second terminal reside in the same network includes:
[0056] In a case where the content of the first message indicates that the first terminal has successfully accessed the network where the second terminal currently resides, the second terminal determines that the first terminal and the second terminal currently reside in the same network.
[0057] In combination with the second aspect, in some implementations of the second aspect, the second terminal determines, according to the reception time and / or content of the first message, whether the first terminal and the second terminal are currently residing in the same network, including:
[0058] If the content of the first message indicates that the first terminal refuses to access the network where the second terminal currently resides, the second terminal determines that the first terminal and the second terminal currently reside in different networks.
[0059] In combination with the second aspect, in some implementations of the second aspect, the first message also includes a rejection reason and / or information about a network where the first terminal currently resides, and the rejection reason includes that the networks where the first terminal and the second terminal currently reside are different.
[0060] In conjunction with the second aspect, in some implementations of the second aspect, the method further includes:
[0061] The second terminal performs a residency action according to the network information of the first terminal currently residing included in the first message, where the residency action is used to reside the second terminal in the network where the first terminal currently resides.
[0062] In conjunction with the second aspect, in some implementations of the second aspect, the method further includes:
[0063] The second terminal sends a third message to the first terminal, where the third message is used to indicate that the second terminal has successfully camped on a network where the first terminal currently camps.
[0064] In combination with the second aspect, in some implementations of the second aspect, the third message is a discovery message or a direct communication message.
[0065] In conjunction with the second aspect, in some implementations of the second aspect, the method further includes:
[0066] The second terminal sends a fourth message to the first terminal, where the fourth message is used to indicate that the second terminal fails to execute the resident action.
[0067] In combination with the second aspect, in some implementations of the second aspect, the fourth message includes a failure reason, and the failure reason includes at least one of the following:
[0068] The channel quality of the network where the first terminal currently resides does not meet a preset condition, and the network where the first terminal currently resides does not allow the second terminal to access.
[0069] In combination with the second aspect, in some implementations of the second aspect, the fourth message is a discovery message or a direct communication message.
[0070] In conjunction with the second aspect, in some implementations of the second aspect, the method further includes:
[0071] The second terminal receives a fifth message sent by the first terminal, where the fifth message is used to reject the second message.
[0072] In combination with the second aspect, in some implementations of the second aspect, the second terminal determines, according to a reception time and / or content of the first message, whether the first terminal and the second terminal are currently residing in the same network, including:
[0073] If the reception time of the first message is not within the preset time range, the second terminal determines that the first terminal and the second terminal are currently residing in different networks.
[0074] In combination with the second aspect, in some implementations of the second aspect, the first message is a discovery message or a direct communication message.
[0075] In conjunction with the second aspect, in some implementations of the second aspect, the same network is any one of the following:
[0076] The same beam, cell, base station, core network, public land mobile network PLMN, tracking area TA, and paging area.
[0077] In conjunction with the second aspect, in some implementations of the second aspect, the currently resident network information includes at least one of the following:
[0078] The identification information, spatial consistency information and temporal consistency information of the currently resident network, wherein the spatial consistency information indicates whether the currently resident network is the same as the last resident network, and the temporal consistency information indicates whether the resident network has changed within a specific time.
[0079] In combination with the second aspect, in some implementations of the second aspect, the second terminal sending the indication information to the first terminal includes:
[0080] When the second terminal is powered on, or the network in which it resides changes, or a relay service needs to be transmitted, the indication information is sent to the first terminal.
[0081] According to a third aspect, a communication device is provided, comprising a unit for executing the method in the first aspect or various implementations thereof.
[0082] According to a fourth aspect, a communication device is provided, comprising a unit for executing the method in the second aspect or various implementations thereof.
[0083] In a fifth aspect, a communication device is provided, comprising a memory, a processor and a transceiver, wherein the memory is used to store programs, the processor is used to execute programs, and when the program is executed, the processor executes the method in the first aspect based on the transceiver.
[0084] In a sixth aspect, a communication device is provided, comprising a memory, a processor and a transceiver, wherein the memory is used to store programs, the processor is used to execute programs, and when the program is executed, the processor executes the method in the second aspect based on the transceiver.
[0085] In a seventh aspect, a computer-readable medium is provided, wherein the computer-readable medium stores a program code for execution by a terminal device, wherein the program code includes instructions for executing the method in the first aspect.
[0086] In an eighth aspect, a computer-readable medium is provided, wherein the computer-readable medium stores a program code for execution by a terminal device, wherein the program code includes instructions for executing the method in the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0087] Figure 1 is a schematic diagram of a wireless communication system according to an embodiment of the present application.
[0088] Figure 2 It is a schematic flow chart of a communication method according to an embodiment of the present application.
[0089] Figure 3 It is a schematic flowchart of a communication method according to another embodiment of the present application.
[0090] Figure 4 It is a schematic flowchart of a communication method according to another embodiment of the present application.
[0091] Figure 5 It is a schematic block diagram of a terminal device according to an embodiment of the present application.
[0092] Figure 6 It is a schematic block diagram of a terminal device according to another embodiment of the present application.
[0093] Figure 7 It is a schematic block diagram of a terminal device according to another embodiment of the present application.
[0094] Figure 8 It is a schematic block diagram of a terminal device according to another embodiment of the present application. DETAILED DESCRIPTION
[0095] The technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0096] It should be understood that the terms "system" and "network" are often used interchangeably in this article. The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0097] Figure 1 It is a schematic diagram of a wireless communication system 100 applied in an embodiment of the present application, and the wireless communication system 100 includes at least one network device 110. The network device 100 may be a device that communicates with a terminal device. Each network device 100 can provide communication coverage for a specific geographical area and can communicate with a terminal device located in the coverage area. The network device 100 may be a base station (Base Transceiver Station, BTS) in a GSM system or a Code Division Multiple Access (Code Division Multiple Access, CDMA) system, or a base station (NodeB, NB) in a WCDMA system, or an evolved base station (Evolutional Node B, eNB or eNodeB) in an LTE system, or a wireless controller in a cloud radio access network (Cloud Radio Access Network, CRAN), or the network device may be a relay station, an access point, a vehicle-mounted device, a wearable device, a network-side device in a future 5G network, or a network device in a future evolved public land mobile network (Public Land Mobile Network, PLMN), etc.
[0098] The wireless communication system 100 also includes a plurality of terminal devices, for example, Figure 1The terminal devices 121, 122, 123, 124, 125 and 126 shown. The terminal device may be mobile or fixed. The terminal device may refer to an access terminal, a user equipment (UE), a user unit, a user station, a mobile station, a mobile station, a remote station, a remote terminal, a mobile device, a user terminal, a terminal, a wireless communication device, a user agent or a user device. The access terminal may be a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA), a handheld device with wireless communication function, a computing device or other processing device connected to a wireless modem, a vehicle-mounted device, a wearable device, a terminal device in a future 5G network or a terminal device in a future evolved PLMN, etc.
[0099] Figure 1 An exemplary embodiment shows one network device and six terminal devices. Optionally, the wireless communication system 100 may include multiple network devices and other number of terminal devices, which is not limited in the present embodiment. In addition, the wireless communication system 100 may also include other network entities such as a mobile management entity (Mobile Management Entity, MME), a serving gateway (Serving Gateway, S-GW), and a packet data network gateway (Packet Data Network Gateway, P-GW), but the present embodiment is not limited thereto.
[0100] Specifically, the terminal device can communicate in a cellular communication mode or a D2D communication mode, wherein in the cellular communication mode, the terminal device can communicate with other terminal devices through a network device; in the D2D communication mode, the terminal device can directly communicate with other terminal devices through a D2D link.
[0101] exist Figure 1Among the multiple terminal devices shown, terminal device 121 and terminal device 125 can be called remote terminal devices, and the terminal device 121 and terminal device 125 can communicate with network device 110 through relay terminal devices 122 and 124 respectively; terminal device 122 and terminal device 124 can relay data between remote terminal device 121 and remote terminal device 125 and network device 110, at this time, terminal device 122 and terminal device 124 can be called relay terminal devices, and the relay terminal devices 122 and 124 can also communicate directly with the network device in a non-assisting manner with other terminal devices; terminal device 123 can communicate with network device 110 without passing through a relay terminal device, and can also communicate with network device 110 without relaying other terminal devices.
[0102] Among them, the terminal devices 122, 123, 124 and 126 have a Uu interface with the network device 110, and can use cellular communication technology to communicate with the network device 110. There is a PC5 interface between the relay terminal device and the remote terminal device, and D2D communication technology is used for communication, wherein the D2D communication technology can be specifically the bypass (SideLink, SL) technology in LTE, or it can be WIFI or Bluetooth technology in WLAN, or other D2D communication technology, which is not limited in the embodiment of the present application. Of course, the terminal device 121 and the terminal device 125 can also communicate directly with the network device 110 without passing through the relay terminal device. At this time, the terminal device 121 and the terminal device 125 have a Uu interface with the network device, and can use cellular communication technology to communicate with the network device 110.
[0103] In an embodiment of the present application, when a relay terminal device relays data communication, the remote terminal device and the relay terminal device are required to reside in the same cell or the same base station so that the relay terminal device can deliver the data of the remote terminal device to the corresponding network device. To this end, an embodiment of the present application provides a communication method, so that the remote terminal device can deliver the data to a suitable relay terminal device, thereby delivering the data to the corresponding network device.
[0104] Figure 2 The communication method 200 provided in the embodiment of the present application is schematically shown. The method 200 can be applied to the above-mentioned wireless communication system 100, but the embodiment of the present application is not limited thereto.
[0105] like Figure 2 As shown, the method 200 includes the following contents.
[0106] S210, the first terminal receives indication information sent by the second terminal, where the indication information is used to indicate information of a network where the second terminal currently resides;
[0107] S220: The first terminal determines, according to the indication information, whether the first terminal and the second terminal reside in the same network.
[0108] In an embodiment of the present application, the first terminal and the second terminal may be any two terminal devices in the network, for example, the first terminal and the second terminal are both remote terminal devices, or the first terminal is a remote terminal device and the second terminal is a relay terminal device, or the first terminal is a relay terminal device and the second terminal is a remote terminal device, which is not limited in the embodiment of the present application. The first terminal and the second terminal may determine whether they are in the same network in the manner described in S210 and S220. Specifically, the first terminal may receive indication information from the second terminal, the indication information indicating the network information where the second terminal currently resides, so that the first terminal may determine whether the first terminal and the second terminal reside in the same network according to the indication information.
[0109] Optionally, in some embodiments, the first terminal may be a remote terminal device, and the second terminal may be a relay terminal device. The first terminal may decide whether to use the second terminal or other terminals as a relay terminal device between the first terminal and the network device according to the network conditions in which the first terminal and the second terminal reside. Optionally, if the first terminal and the second terminal reside in the same network, the first terminal may directly send uplink data to the network device in the same network through the second terminal, or the network device in the same network may send downlink data to the first terminal through the second terminal, that is, the second terminal may serve as a relay terminal device between the first terminal and the network device. Optionally, if the first terminal and the second terminal reside in different networks, the second terminal cannot directly serve as a relay terminal device between the first terminal and the network device. At this time, optionally, the first terminal can search for other terminal devices through the methods described in S210 and S220 until a terminal device in the same network as the first terminal is found, and then use the terminal device as a relay terminal device between the first terminal and the network device. Alternatively, the first terminal can reside in the network where the second terminal currently resides. At this time, the first terminal and the second terminal reside in the same network, so that the second terminal can serve as a relay terminal device between the first terminal and the network device. Therefore, the first terminal can communicate with the network device through the second terminal.
[0110] Optionally, the first terminal receiving indication information sent by the second terminal includes:
[0111] The first terminal receives a first message sent by the second terminal, where the first message includes the indication information.
[0112] Specifically, the D2D discovery process is a process in which a terminal device senses and identifies nearby terminal devices. D2D discovery is a prerequisite for establishing a D2D connection. If two devices wish to communicate data in the form of D2D, the D2D discovery process will be triggered first. Thus, the second terminal can send a discovery message and carry the indication information in the discovery message. In other words, the second terminal can notify the first terminal of the network information where the second terminal currently resides during the D2D discovery process. Optionally, the discovery message can be a discovery announcement message, a discovery solicitation message, or other messages in the discovery message.
[0113] Optionally, the second terminal may also notify the first terminal of the network information where the second terminal currently resides during the D2D connection establishment process. In other words, the second terminal may send a direct communication message, in which the indication information is included. Optionally, the direct communication message may be a direct communication establishment request (DIRECT_COMMUNICATION_REQUEST) message, or a direct communication establishment acceptance (DIRECT_COMMUNICATION_ACCEPT) message, or may also be other messages in the direct communication message.
[0114] Optionally, after the second terminal receives the first message from the first terminal, if it is determined according to the indication information that the first terminal and the second terminal reside in the same network, the first terminal may not reply to any response message, or may reply to a second message, and the second message is used to notify the second terminal that the first terminal and the second terminal currently reside in the same network. For example, if the first message is a discovery request message, the second message may be a discovery response message, or if the first message is a direct communication establishment request message, the second message may be a direct communication establishment acceptance message, or if the first message is a direct communication establishment acceptance message, the second message may be a direct communication establishment success message or a direct communication establishment failure message, etc.
[0115] Optionally, in some embodiments, after the second terminal receives the first message from the first terminal, if it is determined according to the indication information that the first terminal and the second terminal reside in different networks, the first terminal may not reply any response message, or may also try to reside in the network where the second terminal currently resides. Optionally, if the residency is successful, the first terminal may reply with a third message, and the third message is used to notify the second terminal that the first terminal has successfully resided in the network where the second terminal currently resides. Optionally, if the residency fails, the first terminal may reply with a fourth message to notify the second terminal that the first terminal has failed to reside. Optionally, the fourth message may also include a failure reason, for example, the channel quality of the network where the second terminal currently resides does not meet a preset condition, or the network where the second terminal currently resides does not allow the first terminal to access. Optionally, the fourth message may also include information about the network where the first terminal currently resides. Optionally, if the first message is a discovery request message, the third message may be a discovery response message, or if the first message is a direct communication establishment request message, the third message may be a direct communication establishment acceptance message, or if the first message is a direct communication establishment acceptance message, the third message may be a direct communication establishment success message or a direct communication establishment failure message, etc. Optionally, if the first message is a discovery request message, the fourth message may be a discovery response message, or if the first message is a direct communication establishment request message, the fourth message may be a direct communication establishment rejection (DIRECT_COMMUNICATION_REJECT) message, or if the first message is a direct communication establishment acceptance message, the fourth message may be a direct communication establishment failure message, etc.
[0116] Optionally, in some embodiments, after the second terminal receives the first message from the first terminal, if it is determined according to the indication information that the first terminal and the second terminal reside in different networks, the first terminal may also directly reply with a fifth message, the fifth message being used to refuse to reside in the network currently resided by the second terminal, and optionally, the fifth message may also include a rejection reason, which may be that the networks currently resided by the first terminal and the second terminal are different, and optionally, the fifth message may also include network information currently resided by the first terminal. Optionally, if the first message is a discovery request message, the fifth message may be a discovery response (DiscoveryResponse) message, or if the first message is a direct communication establishment request message, the fifth message may be a direct communication establishment rejection message, or if the first message is a direct communication establishment acceptance message, the fifth message may be a direct communication establishment failure message, etc.
[0117] Optionally, in some embodiments, after the second terminal receives the first message from the first terminal, if it is determined according to the indication information that the first terminal and the second terminal reside in different networks, the first terminal may also directly reply with a sixth message, the sixth message being used to reject the first message, and optionally, the sixth message may also include a rejection reason, which may be that the first terminal and the second terminal currently reside in different networks, and optionally, the sixth message may also include information about the network in which the first terminal currently resides. Optionally, if the first message is a discovery request message, the sixth message may be used to reject the discovery request message, or if the first message is a direct communication establishment request message, the sixth message may be used to reject the direct communication establishment request message.
[0118] In summary, the fourth message indicates that the first terminal fails to reside, the fifth message indicates that the first terminal refuses to reside in the network where the second terminal currently resides, and the sixth message indicates the rejection of the first message. Therefore, when the second terminal receives any of the fourth message, the fifth message or the sixth message, it indicates that the first terminal and the second terminal are still currently residing in different networks. Optionally, the fourth message, the fifth message or the sixth message may include the network information where the first terminal currently resides, so that the second terminal can try to reside in the network where the first terminal currently resides according to the network information where the first terminal currently resides that can be included in the fourth message, the fifth message or the sixth message. If the residency is successful, the second terminal may not reply to any response message. Optionally, the second terminal may also reply to the first terminal with a seventh message to indicate that the second terminal successfully resides. If the residency fails, the second terminal may not reply to any response message. Optionally, the second terminal may also reply to the first terminal with an eighth message to indicate that the second terminal fails to reside. Optionally, the eighth message may include a failure reason, and the failure reason may include that the channel quality of the network where the first terminal currently resides does not meet the residency condition of the second terminal, or the network where the first terminal currently resides does not allow the second terminal to reside. Optionally, the second terminal may also refuse to reside in the network where the first terminal is currently residing. In this case, the second terminal may not reply to any response message, or may reply to a ninth message to indicate a refusal to reside in the network where the first terminal is currently residing. Optionally, the second terminal may also reply to a tenth message to reject the fourth message, the fifth message or the sixth message.
[0119] It should be understood that in an embodiment of the present application, messages used for communication between the first terminal and the second terminal, for example, the first message to the tenth message, can be discovery messages or direct communication messages, or can also be other interface messages used for communication between terminal devices, and the embodiment of the present application is not limited to this.
[0120] Optionally, in the embodiment of the present application, the same network may refer to any one of the following, which is not limited in the embodiment of the present application:
[0121] The same beam, the same cell, the same base station, the same core network, the same public land mobile network (PLMN), the same tracking area (TA), and the same paging area.
[0122] The above describes the communication method according to the embodiment of the present application as a whole. The following describes in detail the actions of the first terminal and the second terminal in each scenario.
[0123] Optionally, in some embodiments, the first terminal determines, according to the indication information, whether the first terminal and the second terminal reside in the same network, including:
[0124] The first terminal determines, according to the indication information, that the network where the first terminal and the second terminal reside is the same.
[0125] Specifically, the first terminal currently resides in a first network. If the second terminal determines, based on the indication information, that the second terminal currently resides in a second network, if the first network and the second network are the same, the first terminal determines that the first terminal and the second terminal reside in the same network.
[0126] Optionally, in some embodiments, the method 200 further includes:
[0127] The first terminal communicates with a network where the first terminal and the second terminal currently reside through the second terminal.
[0128] Specifically, if the first terminal determines that the first terminal and the second terminal currently reside in the same network, then the first terminal can communicate with the network device through the second terminal, that is, the second terminal can serve as a relay terminal device between the first terminal and the network device.
[0129] Optionally, in some embodiments, the method 200 further includes:
[0130] The first terminal sends a second message to the second terminal, where the second message is used to indicate that the first terminal and the second terminal currently reside in the same network.
[0131] Specifically, if the first terminal determines that the first terminal and the second terminal currently reside in the same network, the first terminal may also send a second message to the second terminal, notifying the second terminal that the first terminal and the second terminal currently reside in the same network, so that the second terminal can receive the uplink data sent by the first terminal to the network device and forward the uplink data to the network device, or the second terminal can receive the downlink data sent by the network device to the first terminal and forward the downlink data to the first terminal.
[0132] Optionally, in some embodiments, the second message is a discovery message or a direct communication message.
[0133] That is to say, the first terminal can notify the second terminal that the first terminal and the second terminal are currently residing in the same network by sending a discovery message or a direct communication message. Optionally, the discovery message can be a discovery declaration message or a discovery request message, and the direct communication message can be a direct communication establishment request message or a direct communication establishment acceptance message.
[0134] Optionally, after receiving the second message from the first terminal, the second terminal may not reply, or may reply with a corresponding response message. For example, if the second message is a discovery request message, the second terminal may reply with a discovery response message, or if the second message is a direct communication establishment request message, the second terminal may reply with a direct communication establishment acceptance message, etc.
[0135] Optionally, in some embodiments, the first terminal determines, according to the indication information, whether the first terminal and the second terminal reside in the same network, including:
[0136] The first terminal determines, according to the indication information, that the first terminal and the second terminal reside in different networks.
[0137] Optionally, in some embodiments, after the first terminal determines, according to the indication information, that the first terminal and the second terminal reside in different networks, the method further includes:
[0138] The first terminal receives indication information sent by other terminals, where the indication information is used to indicate network information where the other terminals currently reside;
[0139] The first terminal finds a terminal device in the same network as the first terminal according to the indication information sent by the other terminals.
[0140] Specifically, after the first terminal determines, based on the indication information, that the first terminal and the second terminal reside in different networks, the first terminal may continue to receive indication information from other terminals (e.g., a third terminal), and determine, based on the indication information of the third terminal, whether the third terminal and the first terminal reside in the same network. Optionally, if the third terminal and the first terminal reside in the same network, the first terminal may send uplink data to a network device through the third terminal, or receive downlink data from a network device through the third terminal. Optionally, if the third terminal and the first terminal reside in different networks, the first terminal may also receive indication information from a fourth terminal, and determine whether the fourth terminal and the first terminal reside in the same network. If they reside in different networks, the first terminal may continue to perform the above steps until a terminal device in the same network is found, thereby communicating with the network device through the terminal device.
[0141] Optionally, in some embodiments, the method 200 further includes:
[0142] The first terminal performs a camping action, where the camping action is used to camp the first terminal on a network where the second terminal currently camps.
[0143] In this case, the method further comprises:
[0144] When the first terminal successfully performs the resident action, the first terminal communicates with the same network through the second terminal.
[0145] Specifically, if the first terminal and the second terminal currently reside in different networks, the first terminal can be made to reside in the network currently resided by the second terminal, so that the first terminal and the second terminal reside in the same network. When the first terminal successfully resides in the network currently resided by the second terminal, that is, the residency action is successfully executed, the first terminal can send uplink data to the network device through the second terminal, or receive downlink data sent by the network device.
[0146] It should be understood that if the first terminal resides in a first network and the second terminal resides in a second network, residing the first terminal and the second terminal in the same network may include residing the first terminal in the second network, or residing the second terminal in the first network, or residing both the first terminal and the second terminal in a third network.
[0147] Optionally, in some embodiments, the method further comprises:
[0148] The first terminal sends a third message to the second terminal, where the third message is used to indicate that the first terminal has successfully camped on a network where the second terminal currently camps.
[0149] Optionally, if the first terminal successfully resides in the network where the second terminal currently resides, that is, the residency action is successfully executed, the first terminal may also send a third message to the second terminal, and the third message is used to notify the second terminal that the first terminal has successfully resided in the network where the second terminal currently resides, so that the second terminal can receive the uplink data sent by the first terminal to the network device and forward the uplink data to the network device, or the second terminal can receive the downlink data sent by the network device to the first terminal and forward the downlink data to the first terminal.
[0150] Optionally, the third message is a discovery message or a direct communication message.
[0151] That is to say, the first terminal can notify the second terminal that the first terminal has successfully resided in the network where the second terminal is currently residing by sending a discovery message or a direct communication message. Optionally, the discovery message can be a discovery declaration message or a discovery request message, and the direct communication message can be a direct communication establishment request message or a direct communication establishment acceptance message.
[0152] Optionally, after receiving the third message from the first terminal, the second terminal may not reply, or may reply with a corresponding response message. For example, if the third message is a discovery request message, the second terminal may reply with a discovery response message, or if the third message is a direct communication establishment request message, the second terminal may reply with a direct communication establishment acceptance message.
[0153] Optionally, the method 200 further includes:
[0154] The first terminal sends a fourth message to the second terminal, where the fourth message is used to indicate that the first terminal fails to execute the resident action.
[0155] Specifically, if the first terminal fails to perform the resident action, a fourth message may be sent to the second terminal to notify the second terminal through the fourth message that the first terminal failed to perform the resident action. Optionally, the fourth message includes the failure reason and / or the network information where the first terminal currently resides, and the failure reason includes at least one of the following: the channel quality of the network where the second terminal currently resides does not meet the preset conditions, and the network where the second terminal currently resides does not allow the first terminal to access. Therefore, the second terminal can try to reside in the network where the first terminal currently resides according to the network information where the first terminal currently resides included in the fourth message, so that the first terminal and the second terminal reside in the same network.
[0156] Optionally, similar to the aforementioned first message, second message and third message, the fourth message may also be a discovery message or a direct communication message, which will not be described here for the sake of brevity.
[0157] Optionally, in some embodiments, the method 200 further includes:
[0158] The first terminal sends a fifth message to the second terminal, where the fifth message is used to refuse to camp on the network where the second terminal is currently camped.
[0159] Specifically, if the first terminal and the second terminal are currently residing in different networks, the first terminal may also refuse to reside in the network where the second terminal is currently residing. At this time, the first terminal may not reply to the second terminal, or may reply to a fifth message, and the fifth message is used to refuse to reside in the network where the second terminal is currently residing. In this case, the first terminal may also adopt the method described in the aforementioned embodiment to continue to look for a terminal device in the same network as the first terminal. Alternatively, the fifth message may also include the network information and / or the reason for rejection where the first terminal is currently residing, so that the second terminal may reside in the network where the first terminal is currently residing according to the network information where the first terminal is currently residing included in the fifth message, thereby making the first terminal and the second terminal reside in the same network.
[0160] Optionally, the rejection reason may include that the first terminal and the second terminal currently reside in different networks.
[0161] Similar to the aforementioned first message, second message, third message and fourth message, the fifth message may also be a discovery message or a direct communication message, which will not be described here for the sake of brevity.
[0162] Optionally, in some embodiments, the method further comprises:
[0163] The first terminal sends a sixth message to the second terminal, where the sixth message is used to reject the first message.
[0164] Optionally, the sixth message may further include a rejection reason, and the rejection reason may be that the first terminal and the second terminal currently reside in different networks.
[0165] That is to say, the first terminal may first try to access the network where the second terminal is located. If the access fails, or if the first terminal refuses to access the network where the second terminal is located, or refuses the first message, the first terminal may send a fourth message or a fifth message or a sixth message to the second terminal, and the fourth message or the fifth message or the sixth message includes the network information where the first terminal resides, so that the second terminal resides in the network where the first terminal currently resides according to the network information where the first terminal currently resides.
[0166] Optionally, in some embodiments, the currently resident network information includes at least one of the following:
[0167] The identification information, spatial consistency information and temporal consistency information of the currently resident network, wherein the spatial consistency information indicates whether the currently resident network is the same as the last resident network, and the temporal consistency information indicates whether the resident network has changed within a specific time.
[0168] Specifically, the currently resident network information may include identification information of the currently resident network, and the corresponding network may be determined by the identification information. Optionally, the currently resident network information may also include spatial consistency information, and the spatial consistency information indicates whether the currently resident network is the same as the network where the last resided. Optionally, the spatial consistency information may be 1-bit information, for example, 0 may be set to indicate that it is the same as the network where the last resided, and 1 may be set to indicate that it is different from the network where the last resided. If the spatial consistency information indicates that the currently resident network is the same as the network where the last resided, then the network information where the second terminal currently resides may only include spatial consistency information, thereby saving signaling overhead, and the first terminal may determine the currently resident network based on the network where the second terminal last resided (provided that the first terminal knows the network where the second terminal last resided), thereby determining whether it is in the same network as the second terminal. Optionally, the time consistency information may indicate whether the network in which the second terminal resides has changed within a specific time. Optionally, the time consistency information may also be 1-bit information, which may be set to 0 to indicate that the network in which the second terminal resides has not changed within a specific time, or set to 1 to indicate that the network in which the second terminal resides has changed within a specific time. If the time consistency information indicates that the network in which the second terminal resides has not changed within a specific time, within the specific time, the first terminal may directly determine the network in which the second terminal resides without receiving the indication information sent by the second terminal, and determine the network in which the second terminal currently resides through the indication information, thereby saving signaling overhead.
[0169] Optionally, in some embodiments, the first terminal receiving the indication information sent by the second terminal includes:
[0170] When the second terminal is powered on, or the network in which it resides changes, or a relay service needs to be transmitted, the first terminal receives the indication information sent by the second terminal.
[0171] Specifically, the second terminal may send indication information to the first terminal when it is turned on, so that the first terminal can find the second terminal according to the indication information, and thus determine that the second terminal is a relay terminal device between the first terminal and the network terminal when it is determined that the first terminal and the second terminal reside in the same network. Or the second terminal may send the indication information to the first terminal when the network it resides in changes, so that the first terminal can choose to re-search for a relay terminal device, or the first terminal can choose to reside in the network where the second terminal resides after the change. Optionally, the second terminal may send the indication information when there is a service that needs to be relayed (which can be a relay service from the first terminal or a relay service from other terminals), so that the first terminal can determine whether it is in the same network with the second terminal according to the indication information. If it is in the same network, the relay service can be sent to the second terminal. If it is in different networks, the first terminal can choose to find other relay terminal devices or reside in the network where the second terminal currently resides.
[0172] Combination of the above Figure 2 , describes in detail the communication method according to an embodiment of the present application from the perspective of the first terminal, and the following is combined with Figure 3 , a communication method according to another embodiment of the present application is described in detail from the perspective of the second terminal. It should be understood that the description on the first terminal side corresponds to the description on the second terminal side, and similar descriptions can be found above. To avoid repetition, they will not be repeated here.
[0173] Figure 3 is a schematic flow chart of a communication method 300 according to another embodiment of the present application, such as Figure 3 As shown, the method 300 includes:
[0174] S310, the second terminal sends indication information to the first terminal, where the indication information is used to indicate information of a network where the second terminal currently resides;
[0175] S320: The second terminal determines whether the first terminal and the second terminal are currently residing in the same network according to the reception time and / or content of the first message.
[0176] That is to say, the second terminal can send indication information to the first terminal so that the first terminal can determine the network information where the second terminal currently resides based on the indication information, so that the first terminal can reply to the second terminal with a first message, or not reply to the first message, and the second terminal can determine whether the first terminal and the second terminal reside in the same network based on the content or reception time of the first message.
[0177] Optionally, in some embodiments, the second terminal sending indication information to the first terminal includes:
[0178] The second terminal sends a second message to the first terminal, where the second message includes the indication information.
[0179] Optionally, in some embodiments, the method further comprises:
[0180] In a case where it is determined that the first terminal and the second terminal reside in the same network, the second terminal relays data between the first terminal and the same network.
[0181] That is, in a case where the first terminal and the second terminal reside in the same network, the first terminal can communicate with the network device through the second terminal.
[0182] Optionally, in some embodiments, the determining that the first terminal and the second terminal reside in the same network includes:
[0183] In a case where the content of the first message indicates that the first terminal and the second terminal currently reside in the same network, the second terminal determines that the first terminal and the second terminal currently reside in the same network.
[0184] Optionally, in some embodiments, the determining that the first terminal and the second terminal reside in the same network includes:
[0185] In a case where the content of the first message indicates that the first terminal has successfully accessed the network where the second terminal currently resides, the second terminal determines that the first terminal and the second terminal currently reside in the same network.
[0186] That is to say, the first terminal and the second terminal residing in the same network may be that the first terminal and the second terminal originally reside in the same network, or may be that the first terminal resides in the network of the second terminal through the first terminal, so that the first terminal and the second terminal currently reside in the same network.
[0187] Optionally, in some embodiments, the second terminal determines, according to the reception time and / or content of the first message, whether the first terminal and the second terminal are currently residing in the same network, including:
[0188] If the content of the first message indicates that the first terminal refuses to access the network where the second terminal currently resides, the second terminal determines that the first terminal and the second terminal currently reside in different networks.
[0189] Optionally, in some embodiments, the first message further includes a rejection reason and / or information about a network where the first terminal currently resides, and the rejection reason includes that the networks where the first terminal and the second terminal currently reside are different.
[0190] Optionally, in some embodiments, the method further comprises:
[0191] The second terminal performs a residency action according to the network information of the first terminal currently residing included in the first message, where the residency action is used to reside the second terminal in the network where the first terminal currently resides.
[0192] Optionally, in some embodiments, the method further comprises:
[0193] The second terminal sends a third message to the first terminal, where the third message is used to indicate that the second terminal has successfully camped on a network where the first terminal currently camps.
[0194] Optionally, in some embodiments, the third message is a discovery message or a direct communication message.
[0195] Optionally, in some embodiments, the method further comprises:
[0196] The second terminal sends a fourth message to the first terminal, where the fourth message is used to indicate that the second terminal fails to execute the resident action.
[0197] Optionally, in some embodiments, the fourth message includes a failure reason, and the failure reason includes at least one of the following:
[0198] The channel quality of the network where the first terminal currently resides does not meet a preset condition, and the network where the first terminal currently resides does not allow the second terminal to access.
[0199] Optionally, in some embodiments, the fourth message is a discovery message or a direct communication message.
[0200] Optionally, in some embodiments, the method further comprises:
[0201] The second terminal receives a fifth message sent by the first terminal, where the fifth message is used to reject the second message.
[0202] Optionally, in some embodiments, the second terminal determines, according to the reception time and / or content of the first message, whether the first terminal and the second terminal are currently residing in the same network, including:
[0203] If the reception time of the first message is not within the preset time range, the second terminal determines that the first terminal and the second terminal are currently residing in different networks.
[0204] Specifically, the second terminal may preset a time range. If the first message is not received within the preset time range, the second terminal may determine that the first terminal and the second terminal are in different networks.
[0205] Optionally, in some embodiments, the first message is a discovery message or a direct communication message.
[0206] Optionally, in some embodiments, the same network is any one of the following:
[0207] The same beam, cell, base station, core network, public land mobile network PLMN, tracking area TA, and paging area.
[0208] Optionally, in some embodiments, the currently resident network information includes at least one of the following:
[0209] The identification information, spatial consistency information and temporal consistency information of the currently resident network, wherein the spatial consistency information indicates whether the currently resident network is the same as the last resident network, and the temporal consistency information indicates whether the resident network has changed within a specific time.
[0210] Optionally, in some embodiments, the second terminal sending indication information to the first terminal includes:
[0211] When the second terminal is powered on, or the network in which it resides changes, or a relay service needs to be transmitted, the indication information is sent to the first terminal.
[0212] The following, combined Figure 4 , describes the communication method of the embodiment of the present application from the perspective of device interaction, such as Figure 4 As shown, the method includes:
[0213] In 401, the first terminal receives a first message from the second terminal, where the first message includes indication information, and the indication information indicates information of a network where the second terminal currently resides.
[0214] Optionally, the first message may be a discovery declaration message, a discovery request message, a direct communication establishment request message, a direct establishment request acceptance message, etc.
[0215] In 402, the first terminal determines, according to the indication information, whether the first terminal and the second terminal reside in the same network.
[0216] If they are the same, the first terminal may not reply with any response message, or in 403, the first terminal may reply with a second message to the second terminal, where the second message indicates that the first terminal and the second terminal reside in the same network.
[0217] Optionally, the second message may be a discovery declaration message, a discovery request message, a direct communication establishment request message, a direct establishment request acceptance message, etc.
[0218] If different, in 404, the first terminal may perform a camping action according to the indication information to camp on the network where the second terminal is currently camping.
[0219] If the camping is successful, the first terminal may not reply any response message, or in 405, the first terminal may reply a third message to the second terminal, the third message indicating that the first terminal successfully camps on the network of the second terminal.
[0220] Optionally, the third message may be a discovery response message, a direct communication establishment request acceptance message, etc.
[0221] If the camping fails, the first terminal may not reply any response message, or in 406, the first terminal may reply a fourth message to the second terminal, the fourth message indicating that the first terminal failed to camp on the network of the second terminal. Optionally, the fourth message may include the failure reason and / or the network information currently camped by the first terminal, and the failure reason may be that the channel quality of the network currently camped by the second terminal does not meet the preset condition or the network currently camped by the second terminal does not allow the terminal device to access. The fourth message may include the network information currently camped by the first terminal, so that the second terminal camps on the network currently camped by the first terminal according to the network information currently camped by the first terminal included in the fourth message.
[0222] Optionally, if the first message is a discovery request message, the fourth message may be a discovery response message; if the first message is a direct connection establishment request message, the fourth message may be a direct communication establishment request rejection message, etc.
[0223] Optionally, if the first terminal and the second terminal currently reside in different networks, in 407, the first terminal may also reply a fifth message to the second terminal, indicating that the first terminal refuses to reside in the network currently resided by the first terminal.
[0224] Optionally, the fifth message may further include a rejection reason and / or information about a network in which the terminal device currently resides, and the rejection reason includes that the networks in which the first terminal and the second terminal currently reside are different.
[0225] Optionally, if the first message is a discovery request message, the fifth message may be a discovery response message; if the first message is a direct connection establishment request message, the fifth message may be a direct communication establishment request rejection message, etc.
[0226] Optionally, if the first terminal and the second terminal currently reside in different networks, in 408, the first terminal may also reply a sixth message to the second terminal to indicate rejection of the first message.
[0227] Optionally, the sixth message may further include a rejection reason and / or information about a network where the first terminal currently resides, and the rejection reason includes that the networks where the first terminal and the second terminal currently reside are different.
[0228] Optionally, if the first message is a discovery request message, the sixth message may be a discovery response message; if the first message is a direct connection establishment request message, the sixth message may be a direct communication establishment request rejection message, etc.
[0229] In 409, the second terminal may attempt to camp on the network where the first terminal is currently camped according to the network information where the first terminal is currently camped included in the fourth message, the fifth message, or the sixth message.
[0230] Optionally, if the camping is successful, the second terminal may send a seventh message to the first terminal in 410, and the seventh message may indicate that the second terminal has successfully camped on the network where the first terminal is currently camped.
[0231] Optionally, the seventh message may be a discovery declaration message, a discovery request message, a direct communication establishment request message, a direct establishment request acceptance message, or the like.
[0232] Optionally, if the camping fails, the second terminal may send an eighth message to the first terminal in 411, and the eighth message may indicate that the second terminal fails to camp on the network where the first terminal currently camps.
[0233] Optionally, the eighth message may be a discovery declaration message, a discovery request message, a direct communication establishment request message, a direct establishment request acceptance message, etc.
[0234] Alternatively, after the second terminal receives the fourth message, the fifth message, or the sixth message from the first terminal, the second terminal may not reply with a response message, or in 412, the second terminal may reply with a ninth message to the first terminal, indicating a refusal to reside in the network currently resided by the first terminal. Optionally, the ninth message may further include a reason for the rejection, and the reason for the rejection may be that the networks currently resided by the first terminal and the second terminal are different.
[0235] Optionally, the ninth message may be a discovery response message or a direct establishment request rejection message, etc.
[0236] Alternatively, after the second terminal receives the fourth message, the fifth message, or the sixth message from the first terminal, the second terminal may not reply with a response message, or in 413, the second terminal may reply with a tenth message to the first terminal, indicating rejection of the fourth message, the fifth message, or the sixth message. Optionally, the tenth message may further include a reason for rejection, and the reason for rejection may be that the first terminal and the second terminal are currently residing in different networks.
[0237] Combination of the above Figures 2 to 4 , describes in detail the method embodiment of the present application, and the following is combined with Figures 5 to 8 , the device embodiments of the present application are described in detail. It should be understood that the device embodiments and the method embodiments correspond to each other, and similar descriptions can refer to the method embodiments.
[0238] Figure 5 is a schematic block diagram of a terminal device 500 according to an embodiment of the present application. Figure 5 As shown, the terminal device 500 includes a communication module 510 and a determination module 520 .
[0239] The communication module 510 is used to receive indication information sent by the second terminal, where the indication information is used to indicate the network information where the second terminal currently resides;
[0240] The determination module 520 is used to determine whether the terminal device and the second terminal reside in the same network according to the indication information.
[0241] Optionally, in some embodiments, the communication module 510 is specifically used for:
[0242] A first message sent by the second terminal is received, where the first message includes the indication information.
[0243] Optionally, in some embodiments, the determining module 520 is specifically configured to:
[0244] According to the indication information, it is determined that the network where the terminal device and the second terminal reside is the same.
[0245] Optionally, in some embodiments, the communication module 510 is specifically used for:
[0246] The second terminal communicates with the terminal device and the network where the second terminal currently resides.
[0247] Optionally, in some embodiments, the communication module 510 is specifically used for:
[0248] A second message is sent to the second terminal, where the second message is used to indicate that the terminal device and the second terminal currently reside in the same network.
[0249] Optionally, in some embodiments, the second message is a discovery message or a direct communication message.
[0250] Optionally, in some embodiments, the determining module 520 is specifically configured to:
[0251] According to the indication information, it is determined that the network where the terminal device and the second terminal reside is different.
[0252] Optionally, in some embodiments, the communication module 510 is specifically used for:
[0253] Receiving indication information sent by other terminals, where the indication information is used to indicate network information where the other terminals currently reside;
[0254] The determination module 520 is specifically used for:
[0255] According to the indication information sent by the other terminals, a terminal device in the same network as the terminal device is found.
[0256] Optionally, in some embodiments, the terminal device further includes:
[0257] The resident module is used to execute a resident action, wherein the resident action is used to reside the terminal device in the network where the second terminal currently resides.
[0258] Optionally, in some embodiments, the communication module 510 is further used for:
[0259] When the terminal device successfully performs the resident action, communication is performed with the same network through the second terminal.
[0260] Optionally, in some embodiments, the communication module 510 is further used for:
[0261] A third message is sent to the second terminal, where the third message is used to indicate that the terminal device has successfully camped on the network where the second terminal currently camps.
[0262] Optionally, in some embodiments, the third message is a discovery message or a direct communication message.
[0263] Optionally, in some embodiments, the communication module 510 is further used for:
[0264] A fourth message is sent to the second terminal, where the fourth message is used to indicate that the terminal device fails to execute the resident action.
[0265] Optionally, in some embodiments, the fourth message includes a failure reason and / or information about a network where the terminal device currently resides, and the failure reason includes at least one of the following:
[0266] The channel quality of the network where the second terminal currently resides does not meet a preset condition, and the network where the second terminal currently resides does not allow the terminal device to access.
[0267] Optionally, in some embodiments, the fourth message is a discovery message or a direct communication message.
[0268] Optionally, in some embodiments, the communication module 510 is further used for:
[0269] A fifth message is sent to the second terminal, where the fifth message is used to refuse to camp on the network where the second terminal is currently camped.
[0270] Optionally, in some embodiments, the fifth message further includes a rejection reason and / or information about a network in which the terminal device currently resides, and the rejection reason includes that the network in which the terminal device and the second terminal currently reside is different.
[0271] Optionally, in some embodiments, the fifth message is a discovery message or a direct communication message.
[0272] Optionally, in some embodiments, the communication module 510 is further used for:
[0273] A sixth message is sent to the second terminal, where the sixth message is used to reject the first message.
[0274] Optionally, in some embodiments, the sixth message includes a rejection reason, and the rejection reason includes that the network in which the terminal device and the second terminal currently reside is different.
[0275] Optionally, in some embodiments, the same network is any one of the following:
[0276] The same beam, cell, base station, core network, public land mobile network PLMN, tracking area TA, and paging area.
[0277] Optionally, in some embodiments, the currently resident network information includes at least one of the following:
[0278] The identification information, spatial consistency information and temporal consistency information of the currently resident network, wherein the spatial consistency information indicates whether the currently resident network is the same as the last resident network, and the temporal consistency information indicates whether the resident network has changed within a specific time.
[0279] Optionally, in some embodiments, the communication module 510 is specifically used for:
[0280] When the second terminal is powered on, or the network in which it resides changes, or a relay service needs to be transmitted, the indication information sent by the second terminal is received.
[0281] Specifically, the terminal device 500 may correspond to the communication method 200 or Figure 4 The first terminal of the method may include a device for executing Figure 2 Method 200 or Figure 4 In addition, each entity unit in the device 500 and the above-mentioned other operations and / or functions are respectively for implementing Figure 2 Method 200 or Figure 4 For the sake of brevity, the corresponding process of the method will not be repeated here.
[0282] Figure 6 FIG. 6 is a schematic block diagram of a terminal device 600 according to another embodiment of the present application. Figure 6 As shown, the terminal device 600 includes a communication module 610 and a determination module 620 .
[0283] The communication module 610 is used to send indication information to the first terminal, where the indication information is used to indicate the network information where the terminal device currently resides;
[0284] The determination module 620 is used to determine whether the first terminal and the terminal device are currently residing in the same network according to the reception time and / or content of the first message.
[0285] Optionally, in some embodiments, the communication module 610 is specifically used for:
[0286] A second message is sent to the first terminal, where the second message includes the indication information.
[0287] Optionally, in some embodiments, the communication module 610 is further used for:
[0288] In a case where it is determined that the first terminal and the terminal device reside in the same network, data between the first terminal and the same network is relayed.
[0289] Optionally, in some embodiments, the determining module 620 is specifically configured to:
[0290] In a case where the content of the first message indicates that the first terminal and the terminal device currently reside in the same network, it is determined that the first terminal and the terminal device currently reside in the same network.
[0291] Optionally, in some embodiments, the determining module 620 is specifically configured to:
[0292] In a case where the content of the first message indicates that the first terminal has successfully accessed the network where the terminal device currently resides, it is determined that the first terminal and the terminal device currently reside in the same network.
[0293] Optionally, in some embodiments, the determining module 620 is specifically configured to:
[0294] If the content of the first message indicates that the first terminal refuses to access the network where the terminal device currently resides, it is determined that the first terminal and the terminal device currently reside in different networks.
[0295] Optionally, in some embodiments, the first message further includes a rejection reason and / or information about a network in which the first terminal currently resides, and the rejection reason includes that the networks in which the first terminal and the terminal device currently reside are different.
[0296] Optionally, in some embodiments, the terminal device further includes:
[0297] The resident module is used to perform a resident action according to the network information of the first terminal currently resident included in the first message, wherein the resident action is used to reside the terminal device in the network where the first terminal currently resides.
[0298] Optionally, in some embodiments, the communication module 610 is further used for:
[0299] A third message is sent to the first terminal, where the third message is used to indicate that the terminal device has successfully camped on the network where the first terminal currently camps.
[0300] Optionally, in some embodiments, the third message is a discovery message or a direct communication message.
[0301] Optionally, in some embodiments, the communication module 610 is further used for:
[0302] A fourth message is sent to the first terminal, where the fourth message is used to indicate that the terminal device fails to execute the resident action.
[0303] Optionally, in some embodiments, the fourth message includes a failure reason, and the failure reason includes at least one of the following:
[0304] The channel quality of the network where the first terminal currently resides does not meet a preset condition, and the network where the first terminal currently resides does not allow the terminal device to access.
[0305] Optionally, in some embodiments, the fourth message is a discovery message or a direct communication message.
[0306] Optionally, in some embodiments, the communication module 610 is further used for:
[0307] A fifth message sent by the first terminal is received, where the fifth message is used to reject the second message.
[0308] Optionally, in some embodiments, the determining module 620 is further configured to:
[0309] If the reception time of the first message is not within the preset time range, it is determined that the first terminal and the terminal device are currently residing in different networks.
[0310] Optionally, in some embodiments, the first message is a discovery message or a direct communication message.
[0311] Optionally, in some embodiments, the same network is any one of the following:
[0312] The same beam, cell, base station, core network, public land mobile network PLMN, tracking area TA, and paging area.
[0313] Optionally, in some embodiments, the currently resident network information includes at least one of the following:
[0314] The identification information, spatial consistency information and temporal consistency information of the currently resident network, wherein the spatial consistency information indicates whether the currently resident network is the same as the last resident network, and the temporal consistency information indicates whether the resident network has changed within a specific time.
[0315] Optionally, in some embodiments, the communication module 610 is specifically used for:
[0316] When the terminal device is turned on, or the network in which it resides changes, or a relay service needs to be transmitted, the indication information is sent to the first terminal.
[0317] Specifically, the terminal device 600 may correspond to the communication method 300 or Figure 4 The second terminal in the device 600 may include a device for executing Figure 3 Method 300 or Figure 4 The entity units of the method executed by the second terminal in the device 600 are respectively for implementing Figure 3 Method 300 or Figure 4 For the sake of brevity, the corresponding process of the method will not be repeated here.
[0318] Figure 7 It is a schematic block diagram of a terminal device according to another embodiment of the present application. Figure 7 The terminal device 700 shown includes a memory 710 , a transceiver 720 and a processor 730 . The memory 710 is used to store programs, the processor 730 is used to execute program codes stored in the memory 710 , and the processor 730 can achieve external communication through the transceiver 720 .
[0319] Optionally, the processor 730 may call the program code stored in the memory 710 to execute Figure 2 For the sake of brevity, the corresponding operations in the method 200 are not described in detail here.
[0320] It should be understood that in the embodiment of the present application, the processor 730 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0321] The memory 710 may include a read-only memory and a random access memory, and provide instructions and data to the processor 730. A portion of the memory 710 may also include a nonvolatile random access memory. For example, the memory 710 may also store information on the device type.
[0322] In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor 730 or an instruction in the form of software. The steps of the method disclosed in conjunction with the embodiment of the present application can be directly embodied as a hardware processor for execution, or a combination of hardware and software modules in the processor for execution. The software module can be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor 730 reads the information in the memory and completes the steps of the above method in conjunction with its hardware. To avoid repetition, it is not described in detail here.
[0323] In a specific implementation, Figure 5 The determination module 520 in the Figure 7 The processor 730 implements, Figure 5 The communication module 510 can be used Figure 7 The transceiver 720 is implemented.
[0324] Figure 8 It is a schematic block diagram of a terminal device according to another embodiment of the present application. Figure 8 The terminal device 800 shown includes a memory 810 , a transceiver 820 and a processor 830 . The memory 810 is used to store programs, the processor 830 is used to execute program codes stored in the memory 810 , and the processor 830 can achieve external communication through the transceiver 820 .
[0325] Optionally, the processor 830 may call the program code stored in the memory 810 to execute Figure 3 For the sake of brevity, the corresponding operations in the method 300 are not described in detail here.
[0326] It should be understood that in the embodiment of the present application, the processor 830 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0327] The memory 810 may include a read-only memory and a random access memory, and provide instructions and data to the processor 830. A portion of the memory 810 may also include a non-volatile random access memory. For example, the memory 810 may also store information on the device type.
[0328] In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor 830 or an instruction in the form of software. The steps of the method disclosed in conjunction with the embodiment of the present application can be directly embodied as a hardware processor for execution, or a combination of hardware and software modules in the processor for execution. The software module can be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor 830 reads the information in the memory and completes the steps of the above method in conjunction with its hardware. To avoid repetition, it is not described in detail here.
[0329] In a specific implementation, Figure 6 The determination module 620 in Figure 8 The processor 830 implements, Figure 6 The communication module 610 can be used Figure 8 The transceiver 820 is implemented.
[0330] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0331] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0332] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0333] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0334] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0335] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0336] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A communication method, characterized in that: include: The first terminal receives indication information sent by the second terminal, where the indication information is used to indicate network information where the second terminal currently resides; The first terminal determines, according to the indication information, whether the first terminal and the second terminal reside in the same network; The step of the first terminal receiving the indication information sent by the second terminal includes: The first terminal receives a discovery declaration message sent by the second terminal, where the discovery declaration message includes the indication information. The same network is a public land mobile network PLMN, and the first terminal determines, according to the indication information, whether the first terminal and the second terminal reside in the same network, including: The first terminal determines, according to the indication information, that the public land mobile network PLMN where the first terminal and the second terminal reside is the same.
2. The method according to claim 1, characterized in that The method further comprises: The first terminal communicates with a network where the first terminal and the second terminal currently reside through the second terminal.
3. The method according to claim 1, characterized in that: The first terminal determines, according to the indication information, whether the first terminal and the second terminal reside in the same network, including: The first terminal determines, according to the indication information, that the first terminal and the second terminal reside in different networks.
4. The method according to claim 3, characterized in that After the first terminal determines, according to the indication information, that the first terminal and the second terminal reside in different networks, the method further includes: The first terminal receives indication information sent by other terminals, where the indication information is used to indicate network information where the other terminals currently reside; The first terminal finds a terminal device in the same network as the first terminal according to the indication information sent by the other terminals.
5. The method according to claim 3, characterized in that: The method further comprises: The first terminal performs a camping action, where the camping action is used to camp the first terminal on a network where the second terminal currently camps.
6. The method according to claim 5, characterized in that The method further comprises: When the first terminal successfully performs the resident action, the first terminal communicates with the same network through the second terminal.
7. The method according to claim 5 or 6, characterized in that: The method further comprises: The first terminal sends a third message to the second terminal, where the third message is used to indicate that the first terminal has successfully camped on a network where the second terminal currently camps.
8. The method according to claim 7, characterized in that The third message is a discovery message or a direct communication message.
9. The method according to claim 5 or 6, characterized in that: The method further comprises: The first terminal sends a fourth message to the second terminal, where the fourth message is used to indicate that the first terminal fails to execute the resident action.
10. The method according to claim 9, characterized in that The fourth message includes a failure reason and / or information about a network where the first terminal currently resides, and the failure reason includes at least one of the following: The channel quality of the network where the second terminal currently resides does not meet a preset condition, and the network where the second terminal currently resides does not allow the first terminal to access.
11. The method according to claim 9, characterized in that The fourth message is a discovery message or a direct communication message.
12. The method according to claim 1, characterized in that The method further comprises: The first terminal sends a fifth message to the second terminal, where the fifth message is used to refuse to camp on the network where the second terminal is currently camped.
13. The method according to claim 12, characterized in that The fifth message further includes a rejection reason and / or information about a network where the first terminal currently resides. The rejection reason includes that the networks where the first terminal and the second terminal currently reside are different.
14. The method according to claim 12, characterized in that The fifth message is a discovery message or a direct communication message.
15. The method according to claim 3, characterized in that The method further comprises: The first terminal sends a sixth message to the second terminal, where the sixth message is used to reject the discovery declaration message.
16. The method according to claim 15, characterized in that The sixth message includes a rejection reason, where the rejection reason includes that the first terminal and the second terminal currently reside in different networks.
17. The method according to claim 1 or 2, characterized in that: The currently resident network information includes at least one of the following: The identification information, spatial consistency information and temporal consistency information of the currently resident network, wherein the spatial consistency information indicates whether the currently resident network is the same as the network resident last time, and the temporal consistency information indicates whether the resident network has changed within a specific time.
18. The method according to claim 1 or 2, characterized in that: The first terminal receiving the indication information sent by the second terminal includes: When the second terminal is powered on, or the network in which it resides changes, or a relay service needs to be transmitted, the first terminal receives the indication information sent by the second terminal.
19. A communication method, characterized in that: include: The second terminal sends indication information to the first terminal, where the indication information is used to indicate information of a network where the second terminal currently resides; The second terminal determines, according to the reception time and / or content of the first message, whether the first terminal and the second terminal are currently residing in the same network; The second terminal sending the instruction information to the first terminal includes: The second terminal sends a discovery declaration message to the first terminal, where the discovery declaration message includes the indication information; The same network is a public land mobile network PLMN, and the indication information is used to indicate the public land mobile network PLMN where the second terminal resides.
20. The method according to claim 19, characterized in that The method further comprises: In a case where it is determined that the first terminal and the second terminal reside in the same network, the second terminal relays data between the first terminal and the same network.
21. The method according to claim 20, characterized in that The determining that the first terminal and the second terminal reside in the same network includes: In a case where the content of the first message indicates that the first terminal and the second terminal currently reside in the same network, the second terminal determines that the first terminal and the second terminal currently reside in the same network.
22. The method according to claim 20, characterized in that The determining that the first terminal and the second terminal reside in the same network includes: In a case where the content of the first message indicates that the first terminal has successfully accessed the network where the second terminal currently resides, the second terminal determines that the first terminal and the second terminal currently reside in the same network.
23. The method according to claim 19 or 20, characterized in that The second terminal determines, according to the reception time and / or content of the first message, whether the first terminal and the second terminal are currently residing in the same network, including: If the content of the first message indicates that the first terminal refuses to access the network where the second terminal currently resides, the second terminal determines that the first terminal and the second terminal currently reside in different networks.
24. The method according to claim 23, characterized in that The first message further includes a rejection reason and / or information about a network where the first terminal currently resides. The rejection reason includes that the networks where the first terminal and the second terminal currently reside are different.
25. The method according to claim 24, characterized in that The method further comprises: The second terminal performs a residency action according to the network information of the first terminal currently residing included in the first message, where the residency action is used to reside the second terminal in the network where the first terminal currently resides.
26. The method according to claim 25, characterized in that The method further comprises: The second terminal sends a third message to the first terminal, where the third message is used to indicate that the second terminal has successfully camped on a network where the first terminal currently camps.
27. The method according to claim 25, characterized in that The method further comprises: The second terminal sends a fourth message to the first terminal, where the fourth message is used to indicate that the second terminal fails to execute the resident action.
28. The method according to claim 27, characterized in that The fourth message includes a failure reason, and the failure reason includes at least one of the following: The channel quality of the network where the first terminal currently resides does not meet a preset condition, and the network where the first terminal currently resides does not allow the second terminal to access.
29. The method according to claim 27, characterized in that The fourth message is a discovery message or a direct communication message.
30. The method according to claim 19, characterized in that The method further comprises: The second terminal receives a fifth message sent by the first terminal, where the fifth message is used to reject the discovery declaration message.
31. The method according to claim 19, characterized in that The second terminal determines, according to the reception time and / or content of the first message, whether the first terminal and the second terminal are currently residing in the same network, including: If the reception time of the first message is not within the preset time range, the second terminal determines that the first terminal and the second terminal are currently residing in different networks.
32. The method according to any one of claims 19 to 22, characterized in that The first message is a discovery message or a direct communication message.
33. The method according to any one of claims 19 to 22, characterized in that The currently resident network information includes at least one of the following: The identification information, spatial consistency information and temporal consistency information of the currently resident network, wherein the spatial consistency information indicates whether the currently resident network is the same as the network resident last time, and the temporal consistency information indicates whether the resident network has changed within a specific time.
34. The method according to any one of claims 19 to 22, characterized in that The second terminal sending indication information to the first terminal includes: When the second terminal is powered on, or the network in which it resides changes, or a relay service needs to be transmitted, the indication information is sent to the first terminal.
35. A terminal device, characterized in that: include: A communication module, configured to receive indication information sent by a second terminal, wherein the indication information is used to indicate information of a network where the second terminal currently resides; A determination module, configured to determine, according to the indication information, whether the terminal device and the second terminal reside in the same network; Wherein, the communication module is specifically used for: receiving a discovery declaration message sent by the second terminal, wherein the discovery declaration message includes the indication information; Wherein, the same network is a public land mobile network PLMN, and the determining module is specifically used for: According to the indication information, it is determined that the public land mobile network PLMN where the terminal device and the second terminal reside is the same.
36. The terminal device according to claim 35, characterized in that: The communication module is specifically used for: The second terminal communicates with the terminal device and the network where the second terminal currently resides.
37. The terminal device according to claim 35, characterized in that: The determination module is specifically used for: According to the indication information, it is determined that the network where the terminal device and the second terminal reside is different.
38. The terminal device according to claim 37, characterized in that: The communication module is specifically used for: Receiving indication information sent by other terminals, where the indication information is used to indicate network information where the other terminals currently reside; The determination module is specifically used for: According to the indication information sent by the other terminals, a terminal device that is in the same network as the terminal device is found.
39. The terminal device according to claim 37, characterized in that: The terminal device further includes: The resident module is used to execute a resident action, wherein the resident action is used to reside the terminal device in the network where the second terminal currently resides.
40. The terminal device according to claim 39, characterized in that: The communication module is also used for: When the terminal device successfully performs the resident action, communication is performed with the same network through the second terminal.
41. The terminal device according to claim 39 or 40, characterized in that: The communication module is also used for: A third message is sent to the second terminal, where the third message is used to indicate that the terminal device has successfully camped on the network where the second terminal currently camps.
42. The terminal device according to claim 41, characterized in that: The third message is a discovery message or a direct communication message.
43. The terminal device according to claim 39 or 40, characterized in that: The communication module is also used for: A fourth message is sent to the second terminal, where the fourth message is used to indicate that the terminal device fails to execute the resident action.
44. The terminal device according to claim 43, characterized in that: The fourth message includes a failure reason and / or information about a network where the terminal device currently resides, and the failure reason includes at least one of the following: The channel quality of the network where the second terminal currently resides does not meet a preset condition, and the network where the second terminal currently resides does not allow the terminal device to access.
45. The terminal device according to claim 43, characterized in that: The fourth message is a discovery message or a direct communication message.
46. The terminal device according to claim 35, characterized in that: The communication module is also used for: A fifth message is sent to the second terminal, where the fifth message is used to refuse to camp on the network where the second terminal is currently camped.
47. The terminal device according to claim 46, characterized in that: The fifth message also includes a rejection reason and / or information about a network where the terminal device currently resides. The rejection reason includes that the network where the terminal device and the second terminal currently reside is different.
48. The terminal device according to claim 46, characterized in that: The fifth message is a discovery message or a direct communication message.
49. The terminal device according to claim 37, characterized in that: The communication module is also used for: A sixth message is sent to the second terminal, where the sixth message is used to reject the discovery declaration message.
50. The terminal device according to claim 49, characterized in that: The sixth message includes a rejection reason, and the rejection reason includes that the network in which the terminal device and the second terminal currently reside is different.
51. The terminal device according to claim 35 or 36, characterized in that: The currently resident network information includes at least one of the following: The identification information, spatial consistency information and temporal consistency information of the currently resident network, wherein the spatial consistency information indicates whether the currently resident network is the same as the network resident last time, and the temporal consistency information indicates whether the resident network has changed within a specific time.
52. The terminal device according to claim 35 or 36, characterized in that: The communication module is also used for: When the second terminal is powered on, or the network in which it resides changes, or a relay service needs to be transmitted, the indication information sent by the second terminal is received.
53. A terminal device, characterized in that: include: A communication module, used for sending indication information to the first terminal, where the indication information is used for indicating the network information where the terminal device currently resides; A determination module, configured to determine whether the first terminal and the terminal device are currently residing in the same network according to the reception time and / or content of the first message; Wherein, the communication module is specifically used for: Sending a discovery declaration message to the first terminal, where the discovery declaration message includes the indication information; The same network is a public land mobile network PLMN, and the indication information is used to indicate the public land mobile network PLMN where the terminal device resides.
54. The terminal device according to claim 53, characterized in that: The communication module is also used for: In a case where it is determined that the first terminal and the terminal device reside in the same network, data between the first terminal and the same network is relayed.
55. The terminal device according to claim 54, characterized in that: The determination module is specifically used for: In a case where the content of the first message indicates that the first terminal and the terminal device currently reside in the same network, it is determined that the first terminal and the terminal device currently reside in the same network.
56. The terminal device according to claim 54, characterized in that: The determination module is specifically used for: In a case where the content of the first message indicates that the first terminal has successfully accessed the network where the terminal device currently resides, it is determined that the first terminal and the terminal device currently reside in the same network.
57. The terminal device according to claim 53 or 54, characterized in that: The determination module is specifically used for: If the content of the first message indicates that the first terminal refuses to access the network where the terminal device currently resides, it is determined that the first terminal and the terminal device currently reside in different networks.
58. The terminal device according to claim 57, characterized in that: The first message also includes a rejection reason and / or information about a network where the first terminal currently resides. The rejection reason includes that the networks where the first terminal and the terminal device currently reside are different.
59. The terminal device according to claim 58, characterized in that: The terminal device further includes: The resident module is used to perform a resident action according to the network information of the first terminal currently resident included in the first message, wherein the resident action is used to reside the terminal device in the network where the first terminal currently resides.
60. The terminal device according to claim 59, characterized in that: The communication module is also used for: A third message is sent to the first terminal, where the third message is used to indicate that the terminal device has successfully camped on the network where the first terminal currently camps.
61. The terminal device according to claim 59, characterized in that: The communication module is also used for: A fourth message is sent to the first terminal, where the fourth message is used to indicate that the terminal device fails to execute the resident action.
62. The terminal device according to claim 61, characterized in that: The fourth message includes a failure reason, and the failure reason includes at least one of the following: The channel quality of the network where the first terminal currently resides does not meet a preset condition, and the network where the first terminal currently resides does not allow the terminal device to access.
63. The terminal device according to claim 61, characterized in that: The fourth message is a discovery message or a direct communication message.
64. The terminal device according to claim 53, characterized in that: The communication module is also used for: A fifth message sent by the first terminal is received, where the fifth message is used to reject the discovery declaration message.
65. The terminal device according to claim 53, characterized in that: The determining module is also used for: If the reception time of the first message is not within the preset time range, it is determined that the first terminal and the terminal device are currently residing in different networks.
66. The terminal device according to any one of claims 53 to 56, characterized in that: The first message is a discovery message or a direct communication message.
67. The terminal device according to any one of claims 53 to 56, characterized in that: The currently resident network information includes at least one of the following: The identification information, spatial consistency information and temporal consistency information of the currently resident network, wherein the spatial consistency information indicates whether the currently resident network is the same as the network resident last time, and the temporal consistency information indicates whether the resident network has changed within a specific time.
68. The terminal device according to any one of claims 53 to 56, characterized in that: The communication module is specifically used for: When the terminal device is turned on, or the network in which it resides changes, or a relay service needs to be transmitted, the indication information is sent to the first terminal.
69. A terminal device, characterized in that: The method comprises a processor, a transceiver and a memory, wherein the memory is used to store a program, and the processor is used to execute the program stored in the memory. When the program is executed, the processor executes the method according to any one of claims 1 to 18 based on the transceiver.
70. A terminal device, characterized in that: The method comprises a processor, a transceiver and a memory, wherein the memory is used to store a program, and the processor is used to execute the program stored in the memory. When the program is executed, the processor executes the method according to any one of claims 19 to 34 based on the transceiver.
71. A computer-readable medium storing a program code for execution by a terminal device, the program code comprising instructions for executing the method as described in any one of claims 1-18.
72. A computer-readable medium storing a program code for execution by a terminal device, the program code comprising instructions for executing the method as claimed in any one of claims 19 to 34.
