Wireless communication method, device, and storage medium

By exchanging messages between network devices, the system releases and indicates the failure of nearby service configurations of terminal devices, thus solving the problem of direct discovery, control, and billing caused by UE configuration failures in 5G systems and achieving effective network control and resource management.

CN116671139BActive Publication Date: 2026-05-19GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
Filing Date
2021-04-06
Publication Date
2026-05-19

AI Technical Summary

Technical Problem

In 5G systems, when the ProSe policy or parameters configured for a UE time out or the PLMN changes, the network side cannot effectively control the direct discovery and billing of the UE, causing the UE to continue using invalid ProSe codes or parameters, making it impossible to control direct discovery and bill services.

Method used

After receiving a message from the second network device through the first network device, and determining that the near-terminal service configuration of the terminal device has failed, the first network device releases and instructs the terminal device to make the near-terminal service configuration unavailable, including the near-terminal service application code or matching filter, thereby deleting the failed configuration on both the network side and the terminal side.

Benefits of technology

It enables effective control of ProSe on the terminal device from the network side, ensuring timely updates of nearby service configurations and reasonable service billing, and preventing waste and misuse of resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116671139B_ABST
    Figure CN116671139B_ABST
Patent Text Reader

Abstract

A wireless communication method, device and storage medium are disclosed. A first network device receives a first message sent by a second network device. The first network device releases a local first proximity service configuration allocated to a terminal device and sends a second message to the terminal device according to the first message, where the first proximity service configuration is invalid. The second message is used to instruct the terminal device to set the first proximity service configuration in the terminal device as unavailable. The first proximity service configuration includes a proximity service application code or a proximity matching filter.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to mobile communication technology, and more particularly to a wireless communication method, device, and storage medium. Background Technology

[0002] In the 3rd Generation Partnership Project (3GPP), proximity-based services (ProSe) primarily target communication between user equipment (UEs) without the need for intervention from the 5G Radio Access Network (RAN) or 5G core network. In 5G, 3GPP refers to D2D technology as 5G Sidelink, which is now highly attractive for cell coverage expansion, emergency / public safety, and machine-to-machine interaction.

[0003] In related technologies, the network side only performs network authentication on the UE when it receives a discovery request from the UE. However, when the policy or parameters configured for ProSe for the UE time out, or when the PLMN where the UE is located changes, the policy or parameters for ProSe become invalid. At this time, the network device cannot authenticate the UE, and the UE will continue to use the ProSe code assigned this time or continue to request broadcasting (announcing) or monitoring from the network side. In this way, the network side cannot control the direct discovery performed by the UE or bill the services used by the UE. Summary of the Invention

[0004] This invention provides a wireless communication method, device, and storage medium that can ensure effective control of the ProSe of the terminal device by the network side.

[0005] The technical solution of this invention is implemented as follows:

[0006] In a first aspect, embodiments of the present invention provide a wireless communication method, comprising:

[0007] The first network device receives the first message sent by the second network device;

[0008] If the first network device determines that the first proximity service configuration allocated to the terminal device has failed based on the first message, it releases the local first proximity service configuration already allocated to the terminal device and sends a second message to the terminal device; the second message is used to instruct the terminal device to set the first proximity service configuration in the terminal device to unavailable; the first proximity service configuration includes a proximity service application code or a proximity matching filter.

[0009] Secondly, embodiments of the present invention provide a wireless communication method, including:

[0010] The second network device sends a first message to the first network device. The first message is used by the first network device to determine whether the first proximity service configuration allocated to the terminal device has failed. If the first proximity service configuration fails, the first proximity service configuration is released by the first network device and set to unavailable by the terminal device.

[0011] Thirdly, embodiments of the present invention provide a wireless communication method, including:

[0012] The terminal device receives a second message sent by the first network device; the second message is sent by the first network device under the following circumstances: the first network device determines, based on the received first message, that the first proximity service configuration allocated to the terminal device has failed; the first proximity service configuration includes a proximity service application code or a proximity matching filter;

[0013] According to the second message, the terminal device sets the first proximity service configuration in the terminal device to unavailable.

[0014] Fourthly, embodiments of the present invention provide a first network device, comprising:

[0015] The first receiving unit is used to receive the first message sent by the second network device;

[0016] The first release unit is used to release the local first proximity service configuration that has been allocated to the terminal device when it is determined from the first message that the first proximity service configuration allocated to the terminal device has failed.

[0017] The first sending unit is configured to send a second message to the terminal device; the second message is configured to instruct the terminal device to set the first proximity service configuration in the terminal device to unavailable; the first proximity service configuration includes a proximity service application code or a proximity matching filter.

[0018] Fifthly, embodiments of the present invention provide a second network device, comprising:

[0019] The second sending unit is used to send a first message to the first network device. The first message is used by the first network device to determine whether the first proximity service configuration allocated to the terminal device has failed. If the first proximity service configuration fails, the first proximity service configuration is released by the first network device and set to unavailable by the terminal device.

[0020] Sixthly, embodiments of the present invention provide a terminal device, including:

[0021] The fifth receiving unit is configured to receive a second message sent by the first network device; the second message is sent by the first network device under the following circumstances: the first network device determines, based on the received first message, that the first proximity service configuration allocated to the terminal device has failed; the first proximity service configuration includes a proximity service application code or a proximity matching filter;

[0022] The second release unit is configured to disable the first proximity service in the terminal device according to the second message.

[0023] In a seventh aspect, embodiments of the present invention provide a network device, including a processor and a memory for storing a computer program capable of running on the processor, wherein, when the processor runs the computer program, it executes the steps of the wireless communication method executed by the first network device, or executes the steps of the wireless communication method executed by the second network device.

[0024] Eighthly, embodiments of the present invention provide a terminal device, including a processor and a memory for storing a computer program capable of running on the processor, wherein when the processor runs the computer program, it executes the steps of the wireless communication method executed by the terminal device described above.

[0025] Ninthly, embodiments of the present invention provide a storage medium storing an executable program, which, when executed by a processor, implements the wireless communication method executed by the first network device or the wireless communication method executed by the second network device.

[0026] In a tenth aspect, embodiments of the present invention provide a storage medium storing an executable program, wherein when the executable program is executed by a processor, it implements the wireless communication method executed by the aforementioned terminal device.

[0027] The wireless communication method provided in this embodiment of the invention includes: a first network device receiving a first message sent by a second network device; the first network device, upon determining, based on the first message, that a first proximity service configuration allocated to a terminal device has failed, releasing the locally allocated first proximity service configuration to the terminal device and sending a second message to the terminal device; the second message instructing the terminal device to set the first proximity service configuration in the terminal device to unavailable; the first proximity service configuration includes a proximity service application code or a proximity matching filter; thereby enabling the first network device, upon determining, based on the first message sent by the second network device, that the proximity service application code or proximity matching filter allocated to the terminal device has failed, to delete the failed proximity service application code or proximity matching filter both locally and on the terminal side, ensuring effective control of proximity services on the terminal device side by the network side. Attached Figure Description

[0028] Figure 1 This is a schematic diagram of the ProSe architecture in a 5G system according to an embodiment of the present invention;

[0029] Figure 2 This is a flowchart illustrating the ProSe process according to an embodiment of the present invention;

[0030] Figure 3 This is a schematic diagram of an optional component structure of the communication system according to an embodiment of the present invention;

[0031] Figure 4 This is a schematic diagram of an optional wireless communication method according to an embodiment of the present invention;

[0032] Figure 5 This is a schematic diagram of an optional wireless communication method according to an embodiment of the present invention;

[0033] Figure 6 This is a schematic diagram of an optional wireless communication method according to an embodiment of the present invention;

[0034] Figure 7 This is a schematic diagram of an optional wireless communication method according to an embodiment of the present invention;

[0035] Figure 8 This is a schematic diagram of an optional wireless communication method according to an embodiment of the present invention;

[0036] Figure 9 This is a schematic diagram of an optional wireless communication method according to an embodiment of the present invention;

[0037] Figure 10 This is a schematic diagram of an optional wireless communication method according to an embodiment of the present invention;

[0038] Figure 11This is a schematic diagram of an optional component structure of the first network device according to an embodiment of the present invention;

[0039] Figure 12 This is a schematic diagram of an optional component structure of the second network device according to an embodiment of the present invention;

[0040] Figure 13 This is a schematic diagram of an optional component structure of a terminal device according to an embodiment of the present invention;

[0041] Figure 14 This is a schematic diagram of an optional component structure of an electronic device according to an embodiment of the present invention. Detailed Implementation

[0042] To gain a more detailed understanding of the features and technical content of the embodiments of the present invention, the implementation of the embodiments of the present invention will be described in detail below with reference to the accompanying drawings. The accompanying drawings are for reference and illustration only and are not intended to limit the embodiments of the present invention.

[0043] Before providing a detailed description of the random access method provided in the embodiments of the present invention, a brief explanation of some of the ProSe technologies will be given first.

[0044] ProSe enables direct discovery of physically nearby users and facilitates direct communication between these users.

[0045] ProSe architecture in 5G systems

[0046] Figure 1 This is a schematic diagram of the ProSe architecture in a 5G system, such as... Figure 1 As shown, it includes: UEA, UEB, 5G Radio Access Network (NG-RAN), 5G Core Network (5GC), and ProSe application server. The two UEs (UEA and UEB) can both belong to the same Public Land Mobile Network (PLMN) or belong to two different PLMNs. ProSe application server 105 is the application server for ProSe services.

[0047] In the ProSe architecture, the interface between the UE and the ProSe application server 105 is PC1 (not shown), which provides the relevant authentication functions. The interface between UE A and UE B is PC5, used for direct discovery and communication between the UEs. The interface between UE A and DDNMF is PC3, used for discovery and authentication via direct communication. The interface between 5GC and the ProSe application server is PC2, used for the application implementation of D2D discovery services.

[0048] The 5GC includes: Direct Discovery Name Management Function (DDNMF), Network Exposure Function (NEF), Policy Control Function, Unified Data Management Entity (UDM), Unified Data Repository (UDR), Access and Mobility Management Function (AMF), Session Management Function (SMF), and User Plane Function (UPF).

[0049] DDNMF is the management entity for ProSe codes in the Direct discovery service.

[0050] The NEF is located between 5GC104 and external third-party application functionalities (and possibly some internal AFs), and is responsible for managing publicly accessible network data.

[0051] PCF is the policy management function entity in 5GC104, responsible for formulating policies related to UE mobility management, session management, and billing.

[0052] UDM1 is used to store user subscription data in the 5G network.

[0053] UDR is the unified database in 5GC.

[0054] In addition to performing mobility management for the UE, the AMF is also responsible for forwarding session management-related messages between the UE and the SMF.

[0055] SMF is responsible for the session management function of 5GC.

[0056] UPF handles the user plane functionality of 5GC.

[0057] After the UE accesses the 5G network through the Uu port, it establishes a Protocol Data Unit (PDU) session data connection from the UE to the UPF under the control of the SMF entity, thereby transmitting data with the 5G network.

[0058] When UE101 needs to use the direct discovery service, UE101 first needs to obtain the Direct Discovery policy or parameters from the PCF, and then request the DDNMF to broadcast (Announce) or monitor the process to request the nearby service application from the DDNMF. Currently, in TS23.304, when the PCF sends the policy or parameters corresponding to Direct Discovery to the UE, it provides a valid duration. The UE needs to run a timer according to the valid duration. When the timer expires, the UE needs to re-request the Direct Discovery policy or parameters from the PCF. If it does not request them, then the policy or parameters used will become invalid. In order to prevent the UE from continuing to use the parameters allocated by the DDNMF for direct discovery, the DDNMF also needs to have a mechanism to control this.

[0059] ProSe's process is as follows Figure 2 As shown, it includes:

[0060] S201, The UE sends a policy request to the PCF.

[0061] Here, after the UE registers with the network, it sends a Policy Request to the PCF to request policies or parameters for direct discovery. The Policy Request can be sent to the AMF in a registration request message or in an uplink Non-Access Stratum (NAS) transport message, and then forwarded by the AMF to the PCF.

[0062] S202, PCF interacts with UDR to obtain strategies or parameters from UDR for direct discovery.

[0063] S203, PCF returns a strategy or parameters to the UE for direct discovery.

[0064] The policy or parameters provided by the PCF to the UE for direct discovery include a validity period. The UE starts a timer based on this validity period. After the timer expires, the UE needs to request the policy or parameters for direct discovery from the PCF again.

[0065] Here, the PCF sends the policies or parameters used for direct discovery to the AMF, and the AMF then sends the policies or parameters used for direct discovery to the UE.

[0066] S204. The UE sends a Discover Request to the DDNMF.

[0067] If an uplink service is triggered during the timer operation in S203, requiring announcing or monitoring, the UE needs to send a Discover Request to the DDNMF. The Discover Request is used to request the ProSe application code or the ProSe match filter.

[0068] S205, DDNMF sends a registration message (Nudm_UECM_Registration) to UDM.

[0069] DDNMF registers with UDM via Nudm_UECM_Registration, carrying the serving PLMN in the Nudm_UECM_Registration message and requesting UDM to verify whether the UE can perform direct discovery in that PLMN.

[0070] S206, UDM interacts with UDR to obtain strategies or parameters for direct discovery.

[0071] Here, the UDM sends a query request (Nudr_DM_Query) to the UDR to retrieve the policies or parameters used for direct discovery, and the UDR returns the policies or parameters used for direct discovery to the UDM. These policies or parameters include a list of authorized PLMNs where direct discovery can occur.

[0072] S207, UDR returns the strategy or parameters used for direct discovery to UDM.

[0073] The strategies or parameters that UDR returns to UDM for direct discovery include: a list of authorized PLMNs where direct discovery can occur.

[0074] S208, UDM returns the registration result to DDNMF.

[0075] The UDM compares whether the UE's current serving PLMN is in the list of authorized PLMNs where direct discovery can occur. If it is, it returns a registration result indicating successful authentication to the DDNMF.

[0076] S209, DDNMF returns discovery accept to UE.

[0077] The discovery accept message carries either the ProSe application code or the ProSe matchfilter.

[0078] S210 and UE perform announcement or monitoring.

[0079] The UE performs announcing or monitoring based on the ProSe application code or ProSe match filter.

[0080] In practical applications, the implementation of S205 to S209 can be replaced by the following steps:

[0081] S2051, DDNMF sends a contract data retrieval request (Nudm_SDM_Get) to UDM.

[0082] Here, the DDNMF can also request subscription data from the UDM so that the DDNMF itself can verify whether the UE can perform direct discovery in the PLMN.

[0083] S2061, UDM interacts with UDR to obtain strategies or parameters for direct discovery.

[0084] Here, the UDM sends a query request (Nudr_DM_Query) to the UDR to retrieve the policies or parameters used for direct discovery, and the UDR returns the policies or parameters used for direct discovery to the UDM. These policies or parameters include a list of authorized PLMNs where direct discovery can occur.

[0085] S2071, UDR returns to UDM.

[0086] The strategies or parameters that UDR returns to UDM for direct discovery include: a list of authorized PLMNs where direct discovery can occur.

[0087] S2081, UDM returns the strategy or parameters used for direct discovery to DDNMF.

[0088] The strategies or parameters that UDM returns to DDNMF for direct discovery include: a list of authorized PLMNs where direct discovery can occur.

[0089] S2091, DDNMF returns discovery accept to UE.

[0090] The discovery accept message carries either the ProSe application code or the ProSe matchfilter.

[0091] DDNMF compares whether the UE's current serving PLMN is in the list of authorized PLMNs where direct discovery can occur. If it is, it returns a discovery accept message to the UE, which carries the ProSe application code or ProSe match filter.

[0092] In related technologies, the network side only performs network authentication on the UE when it receives a discovery request from the UE. However, when the policy or parameters configured for ProSe for the UE time out, or when the PLMN where the UE is located changes, the policy or parameters for ProSe become invalid. At this time, the network device cannot authenticate the UE, and the UE will continue to use the ProSe code assigned this time or continue to request broadcasting (announcing) or monitoring from the network side. In this way, the network side cannot control the direct discovery performed by the UE or bill the services used by the UE.

[0093] To address the aforementioned problems, this invention provides a wireless communication method. This method can be applied to various communication systems, such as: Global System for Mobile communication (GSM), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), General Packet Radio Service (GPRS), Long Term Evolution (LTE), LTE Frequency Division Duplex (FDD), LTE Time Division Duplex (TDD), Universal Mobile Telecommunication System (UMTS), Worldwide Interoperability for Microwave Access (WiMAX), or 5G systems, etc.

[0094] For example, the communication system 300 used in this embodiment of the invention, such as... Figure 3As shown. The communication system 300 may include a network device 310, which may be a device that communicates with a terminal device 320 (or a communication terminal, terminal). The network device 310 can provide communication coverage for a specific geographical area and can communicate with terminal devices located within that coverage area. Optionally, the network device 310 may be a base station (BTS) in a GSM or CDMA system, a base station (NodeB, NB) in a WCDMA system, an evolved Node B (eNB or eNodeB) in an LTE system, a base station (gNB) in a New Radio (NR) / 5G system, or a radio controller in a Cloud Radio Access Network (CRAN). Alternatively, the network device may be a mobile switching center, relay station, access point, vehicle-mounted equipment, wearable device, hub, switch, bridge, router, network-side equipment in a 5G network, or network equipment in a future evolved Public Land Mobile Network (PLMN), etc.

[0095] The communication system 300 also includes at least one terminal device 320 located within the coverage area of ​​the network device 310. As used herein, "terminal device" includes, but is not limited to, devices configured to receive / transmit communication signals via wired connections, such as via Public Switched Telephone Networks (PSTN), Digital Subscriber Line (DSL), digital cable, direct cable connection; and / or another data connection / network; and / or via a wireless interface, such as for cellular networks, Wireless Local Area Networks (WLAN), digital television networks such as DVB-H networks, satellite networks, AM-FM radio transmitters; and / or other terminal devices; and / or Internet of Things (IoT) devices. Terminal devices configured to communicate via a wireless interface may be referred to as "wireless communication terminal," "wireless terminal," or "mobile terminal." Examples of mobile terminal devices include, but are not limited to, satellite or cellular phones; personal communications system (PCS) terminals that can combine cellular radiotelephony with data processing, fax, and data communication capabilities; PDAs that may include radiotelephones, pagers, Internet / intranet access, web browsers, notebooks, calendars, and / or Global Positioning System (GPS) receivers; and conventional laptop and / or handheld receivers or other electronic devices that include radiotelephone transceivers. Terminal equipment can refer to access terminals, user equipment (UE), user units, user stations, mobile stations, mobile stations, remote stations, remote terminals, mobile devices, user terminals, terminals, wireless communication equipment, user agents, or user equipment. Access terminals can be cellular phones, cordless phones, Session Initiation Protocol (SIP) phones, Wireless Local Loop (WLL) stations, Personal Digital Assistants (PDAs), handheld devices with wireless communication capabilities, computing devices or other processing devices connected to a wireless modem, in-vehicle devices, wearable devices, terminal devices in 5G networks, or terminal devices in future PLMNs, etc.

[0096] Optionally, the terminal devices 320 can communicate with each other via Device to Device (TB2D).

[0097] Alternatively, a 5G system or 5G network may also be referred to as an NR system or NR network.

[0098] Figure 3 An exemplary embodiment shows a network device and two terminal devices. Optionally, the communication system 300 may include multiple network devices and each network device may include other numbers of terminal devices within its coverage area. This embodiment of the invention does not limit this.

[0099] Optionally, the communication system 300 may also include other network entities such as AMF, DDNMF, UDM, PCF, and UDR, which are not limited in this embodiment of the invention.

[0100] It should be understood that devices with communication functions in the network / system of this invention can be referred to as communication devices. Figure 3 Taking the communication system 300 shown as an example, the communication equipment may include a network device 310 and a terminal device 320 with communication functions. The network device 310 and the terminal device 320 may be the specific devices described above, which will not be repeated here. The communication equipment may also include other devices in the communication system 300, such as AMF, DDNMF, UDM, PCF, UDR and other network entities. This embodiment of the invention does not limit this.

[0101] Figure 4 An optional processing flow of the wireless communication method provided in the embodiments of the present invention, such as... Figure 4 As shown, it includes the following steps:

[0102] S401, The first network device receives the first message sent by the second network device.

[0103] In this embodiment of the invention, the first network device allocates a first proximity service configuration to the terminal device, and after allocating the first proximity service configuration to the terminal device, the first network device stores the first proximity service configuration allocated to the terminal device itself.

[0104] The first network device receives a first message sent by the second network device. The first message is used by the first network device to determine whether the first proximity service allocated to the terminal device has failed.

[0105] Optionally, the first message carries information that can directly or indirectly determine whether the configuration of the first nearby service is invalid. The first network device determines whether the first nearby service allocated to the terminal device is invalid based on the information carried in the first message.

[0106] In this embodiment of the invention, the timing of receiving the first message includes at least one of the following:

[0107] Before the first network device allocates the first proximity service configuration to the terminal device;

[0108] After the first network device assigns the first proximity service configuration to the terminal device.

[0109] Optionally, the first network device is DDNMF, and the second network device includes one of the following network devices: UDR, UDM, or PCF.

[0110] In one example, the first network device is DDNMF, and the second network device is PCF. In this case, DDNMF interacts with PCF through UDR and UDM. PCF sends the first message to UDR, UDR forwards the first message to UDM, and UDM forwards the first message to DDNMF.

[0111] In one example, the first network device is DDNMF and the second network device is UDM. In this case, DDNMF interacts with UDM through UDR. UDM sends the first message to UDR, and UDR forwards the first message to DDNMF.

[0112] In one example, the first network device is DDNMF and the second network device is UDR. In this case, DDNMF interacts directly with UDR. UDR sends the first message to UDM, and UDM sends the first message to DDNMF.

[0113] In this embodiment of the invention, when the first message is exchanged between different network devices, the interface protocols used are different, but the message is the same.

[0114] S402. If the first network device determines that the first proximity service configuration allocated to the terminal device has failed based on the first message, it releases the local first proximity service configuration already allocated to the terminal device and sends a second message to the terminal device.

[0115] If the first network device determines that the first nearby service configuration has failed, it will release the first nearby service configuration stored in this instance.

[0116] If the first network device determines that the first nearby service configuration has failed, it also generates a second message and sends the second message to the terminal device. The second message is used to instruct the terminal device to set the first nearby service configuration in the terminal device to unavailable.

[0117] Optionally, the second message may also be used to indicate the reason why the first proximity service configuration is unavailable: the first proximity service configuration has failed.

[0118] In this embodiment of the invention, when the first network device is DDNMF, DDNMF sends the second message to the terminal device. DDNMF uses the user plane to forward the second message to the terminal device.

[0119] Upon receiving the second message, the terminal device responds by setting the first proximity service configuration allocated by the first network device to unavailable.

[0120] Optionally, the terminal device releases the first proximity service configuration.

[0121] In the embodiments of this invention, "release" can also be understood as "deletion".

[0122] In some embodiments, if the second message includes a discovery update request, the first network device further implements the following steps: receiving a discovery update response sent by the terminal device, the discovery update response indicating that the first proximity service in the terminal device has been configured as unavailable.

[0123] After receiving a discovery update request from a network device, the terminal device responds to the discovery update request by declaring the first proximity service configuration allocated by the first network device unavailable. At this time, the first proximity service configuration of the terminal device also becomes invalid. The terminal device then generates a discovery update response and sends the generated discovery update response to the first network device. Upon receiving the discovery update response from the terminal device, the first network device learns that the terminal device has set the second proximity service configuration in the terminal device to be unavailable.

[0124] The wireless communication method provided in this embodiment of the invention includes a first network device receiving a first message sent by a second network device. If the first network device determines, based on the first message, that a first proximity service configuration allocated to a terminal device has failed, it releases the locally allocated first proximity service configuration to the terminal device and sends a second message to the terminal device. The second message instructs the terminal device to set the first proximity service configuration in the terminal device to unavailable. The first proximity service configuration includes a proximity service application code or a proximity matching filter. This ensures that if the first network device determines, based on the first message sent by the second network device, that the proximity service application code or proximity matching filter allocated to the terminal device has failed, it deletes the failed proximity service application code or proximity matching filter both locally and on the terminal side, thereby guaranteeing effective control of proximity services on the terminal device side by the network side.

[0125] Figure 5 An optional processing flow of the wireless communication method provided in the embodiments of the present invention, such as... Figure 5 As shown, it includes the following steps:

[0126] S501, The second network device sends a first message to the first network device.

[0127] The second network device generates a first message and sends the generated first message directly or indirectly to the first network device.

[0128] Optionally, the first message carries information that can directly or indirectly determine whether the configuration of the first adjacent service has failed. The second network device generates the first message based on the information that can directly or indirectly determine whether the configuration of the first adjacent service has failed.

[0129] The first message is used by the first network device to determine whether the first proximity service configuration allocated to the terminal device has failed; wherein, if the first proximity service configuration fails, the first proximity service configuration is released by the first network device and set to unavailable by the terminal device.

[0130] When the first network device receives the first message, it determines whether the first adjacent service configuration has failed based on the first message. If it determines that the first adjacent service configuration has failed, the first network device releases the first adjacent service configuration and instructs the terminal device to make the first adjacent service configuration unavailable based on the second message.

[0131] Optionally, the second network device includes one of the following network devices: UDR, UDM, or PCF. The first network device is DDNMF, and the second network device can interact with the first network device directly or indirectly.

[0132] The wireless communication method provided in this embodiment of the invention involves a second network device sending a first message to a first network device. This first message is used by the first network device to determine whether a first proximity service configuration allocated to a terminal device has failed. If the first proximity service configuration fails, it is released by the first network device and set to unavailable by the terminal device. This allows the second network device to determine, based on the first message provided by the first network device, whether the proximity service application code or proximity matching filter allocated to the terminal device is valid, and to effectively control the proximity services of the terminal device based on the validity of the first proximity service configuration.

[0133] Figure 6 An optional processing flow of the wireless communication method provided in the embodiments of the present invention, such as... Figure 5 As shown, it includes the following steps:

[0134] S601, The terminal device receives the second message sent by the first network device;

[0135] The second message is sent by the first network device under the following circumstances: the first network device determines, based on the received first message, that the first proximity service configuration allocated to the terminal device is invalid; the first proximity service configuration includes a proximity service application code or a proximity matching filter. The second message is used to indicate to the terminal device that the first proximity service configuration allocated to the terminal device is unavailable.

[0136] In this embodiment of the invention, when the first network device determines that the first nearby service configuration allocated to the terminal device has failed based on the first message, it generates a second message and sends the second message to the terminal device.

[0137] Optionally, the second message includes a message indicating that the first nearby service configuration allocated to the terminal device is unavailable.

[0138] S602. The terminal device sets the first proximity service configuration in the terminal device to unavailable according to the second message.

[0139] Optionally, if the terminal device receives the second message, it considers the first proximity service configuration configured by the first network device to be invalid and sets the first proximity service configuration in the terminal device to be unavailable.

[0140] Here, the terminal device can be either a broadcast UE or a listening UE during the direct discovery process.

[0141] In some embodiments, the terminal device stops the direct discovery process that is in progress.

[0142] If the terminal device is performing direct discovery based on the first proximity service configuration, then stop the direct discovery, thereby stopping the use of the invalid first proximity service configuration.

[0143] In some embodiments, the second message includes: a discovery update request; the terminal device further implements the following steps:

[0144] The terminal device sends a discovery update response to the first network device; the discovery update response is used to indicate that the first nearby service in the terminal device has been configured as unavailable.

[0145] After receiving the discovery update request sent by the first network device, the terminal device disables the first proximity service configuration allocated by the first network device in response to the discovery update request. At this time, the first proximity service configuration on the terminal side also becomes invalid. Then, a discovery update response is generated and sent to the first network device. When the first network device receives the discovery update response from the terminal device, it knows that the terminal device has disabled the second proximity service configuration in the terminal device.

[0146] The wireless communication method provided in this embodiment of the invention involves a terminal device receiving a second message sent by a first network device. The second message is sent by the first network device under the following circumstances: the first network device determines, based on the received first message, that a first proximity service configuration allocated to the terminal device has failed; the first proximity service configuration includes a proximity service application code or a proximity matching filter; the terminal device, based on the second message, sets the first proximity service configuration in the terminal device to unavailable; thereby enabling the first network device to control both the local and terminal sides to delete the failed proximity service application code or proximity matching filter when the first message determines that the proximity service application code or proximity matching filter allocated to the terminal device has failed, ensuring effective control of the proximity service on the terminal device side by the network side.

[0147] Figure 7 An optional processing flow of the wireless communication method provided in the embodiments of the present invention, such as... Figure 7 As shown, it includes the following steps:

[0148] S701, The second network device sends a first message to the first network device;

[0149] S702. If the first network device determines that the first nearby service configuration has failed based on the first message, it deletes the first nearby service configuration.

[0150] S703, The first network device sends a second message to the terminal device;

[0151] S704. In response to the received second message, the terminal device deletes the first proximity service configuration locally.

[0152] For descriptions of the first network device, the second network device, and the terminal device, please refer to [link to relevant documentation]. Figure 5 , Figure 6 , Figure 7 The description of the wireless communication method shown will not be repeated here.

[0153] Here, the second message is also used to indicate the reason why the first nearby service configuration is unavailable: the first nearby service configuration has failed.

[0154] In some embodiments, the first message indicates at least one of the following:

[0155] Information 1: First valid duration; The first valid duration is used to determine whether the first adjacent service configuration is valid;

[0156] Information 2, First Information; The first information is used to indicate that the second adjacent service configuration has failed; The second adjacent service configuration includes strategies or parameters for direct discovery;

[0157] Information 3, Second Information; The second information is used to indicate a change in the public terrestrial mobile network (PLMN) where the terminal device is located.

[0158] In one example, the first message indicates the first valid duration.

[0159] In one example, the second message indicates the first message.

[0160] In one example, the first message indicates the first valid duration and the second message.

[0161] In one example, the first message indicates the first valid duration, the first information, and the second information.

[0162] In some embodiments, if the first network device determines that the first condition is met based on the first message, it determines that the first proximity service configuration has failed.

[0163] The first condition includes at least one of the following conditions:

[0164] The first timer times out; the duration of the first timer is the first valid duration, which is used to determine whether the first adjacent service configuration is valid;

[0165] Receive first information; the first information is used to indicate that the second proximity service configuration has failed; the second proximity service configuration includes a strategy or parameters for direct discovery;

[0166] The second information is received; the second information is used to indicate that the public terrestrial mobile network (PLMN) where the terminal device is located has changed.

[0167] Taking the first message indicating the first valid duration as an example, when the first network device receives the first message, it determines the first valid duration based on the first message, and then sets the first valid duration as the duration of the first timer. When the first timer expires, the first network device determines that the configuration of the first adjacent service has failed.

[0168] In one example, the first message carries information including a first validity period. The second network device determines the first validity period and sends the first validity period to the first network device via the first message.

[0169] In one example, the first message carries indication information that can determine a first validity period. The first network device receives the indication information through the first message and determines the first validity period based on the received indication information.

[0170] In some embodiments, the first effective duration is the duration of a first timer; if the first timer times out, the first network device determines that the first adjacent service configuration has failed.

[0171] In some embodiments, the first effective duration is related to the second effective duration, which is used to determine whether the second proximity service configuration is effective. The second proximity service configuration includes a strategy or parameter for direct discovery.

[0172] Optionally, the policy or parameters used for direct discovery may include at least one of the following: authentication policy for direct discovery, radio parameters of terminal devices not served by NG-RAN, group member discovery parameters, proximity service direct discovery application information, proximity service security parameters of the PC5 interface, and a second validity period.

[0173] In some embodiments, the first message includes the second validity period.

[0174] Here, the second network device sends a second valid duration to the first network device via a first message.

[0175] At this time, the first network device determines the first valid duration based on the second valid duration.

[0176] In some embodiments, the timing for starting the first timer includes: the first network device allocating the first proximity service configuration to the terminal device.

[0177] When the first network device receives a discovery request from the terminal device, it allocates a first proximity service configuration to the terminal device based on the discovery request, and starts a first timer after allocating the first proximity service configuration.

[0178] In some examples, the first network device includes DDNMF, and the second network device includes UDR, UDM, or PCF.

[0179] Optionally, when the second network device includes either the UDR or the UDM, the method further includes:

[0180] The UDR or UDM receives the second valid duration sent by the PCF.

[0181] In one example, the PCF sends the second valid duration to the UDR. When the UDR receives the query request for obtaining the second adjacent service configuration sent by the DDNMF through the UDM, it sends the second valid duration along with the second adjacent service configuration to the DDNMF through the UDM.

[0182] In one example, the PCF sends the second valid duration to the UDM via the UDR. When the UDM receives the query request from the DDNMF to obtain the second adjacent service configuration, it sends the second valid duration along with the second adjacent service configuration to the DDNMF.

[0183] Taking the first message indicating first information as an example, the information carried by the first message includes first information. When the first network device receives the first information, it considers that the current second proximity service configuration has failed. At this time, based on the failure of the second proximity service configuration, the first network device determines that the current first proximity service configuration allocated to the terminal device has failed.

[0184] In some embodiments, the first information is used to indicate that the second adjacent service configuration has failed based on a second validity period, and the second validity period is used to determine whether the second adjacent service configuration is valid.

[0185] In some embodiments, the timing of generating the first information includes:

[0186] The second timer times out; the duration of the second timer is the second valid duration.

[0187] Here, the first network device includes the Direct Discovery Naming Management (DDNMF) element, and the second network device includes: UDR, UDM, or PCF.

[0188] Taking the first message indicating the second information as an example, the information carried by the first message includes the second information. When the first network device receives the second information, it confirms that the PLMN where the current terminal device is located, i.e., the serving PLMN, has changed. At this time, the second proximity service configuration allocated based on the current serving PLMN has failed, and therefore it is determined that the first proximity service configuration currently allocated to the terminal device has failed.

[0189] Here, the first network device includes DDNMF, and the second network device includes UDR, UDM, or PCF.

[0190] In some embodiments, when the first message includes the first information and / or the second information, the second network device includes: UDR or UDM; the first network device includes: DDNMF; the method further includes: the UDR or UDM receiving the first information and / or the second information sent by the PCF.

[0191] In some embodiments, when the first message includes the first information, the second network device includes: PCF, and the first network device includes: DDNMF; the method further includes:

[0192] If the PCF determines that the second timer has timed out, it generates the first information; the first information is sent to the UDR or UDM via the first message, so that the first information is sent to the DDNMF via the first message.

[0193] Here, the PCF sends the first information to the UDR or UDM to send the first information to the DDNMF.

[0194] In some embodiments, when the first message includes the second information, the second network device includes: PCF, and the first network device includes: DDNMF; the method further includes:

[0195] If the PCF determines that the service PLMN of the terminal device has changed, it generates the second information; the second information is sent to the UDR or UDM through the first message, so as to send the second information to the DDNMF through the first message.

[0196] Here, the PCF sends the second information to the UDR in order to send the second information to the DDNMF.

[0197] In one example, the PCF has a second timer with a duration of a second valid duration. When the PCF allocates a second proximity service configuration to the terminal device, it starts the second timer. When the second timer expires, it generates a first message indicating that the second proximity service configuration has failed. The PCF sends this first message to the UDR via a first message. The DMR forwards the first message to the UDM, and the UDM forwards the first message to the DDNMF. Upon receiving the first message, the DDNMF determines that the second proximity service configuration has failed. Based on the failure of the second proximity service configuration, the DDNMF determines that the first proximity service configuration has failed.

[0198] In one example, when the service PLMN of a terminal device changes, a policy request message is sent to the PCF again. When the PCF receives the policy request message from the terminal device and learns that the service PLMN of the terminal device has changed, it generates second information and sends the second information to the UDR via a first message. The UDR forwards the first message to the UDM, and the UDM forwards the first message to the DDNMF. Upon receiving the second information, the DDNMF determines that the second proximity service configuration has failed due to the change in the service PLMN, and based on the failure of the second proximity service configuration, it determines that the first proximity service configuration has failed.

[0199] In this embodiment of the invention, the first message includes one or more of the following messages sent by PCF to UDR, UDR to UDM, and UDM to DDNMF: first information and second information.

[0200] The wireless communication method provided in the embodiments of the present invention will be further described below.

[0201] Example 1

[0202] like Figure 8As shown, it includes the following steps:

[0203] S801, the UE sends a policy request to the PCF.

[0204] S802, PCF interacts with UDR to obtain strategies or parameters for direct discovery from UDR.

[0205] S803, PCF returns a strategy or parameters to the UE for direct discovery.

[0206] Here, the implementation of S801 to S803 refers to the implementation of S201 to S203. Here, the effective duration carried by the strategy or parameter used for direct discovery is called the second effective duration.

[0207] S804, PCF sends an update request (Nudr_DM_update) to UDR.

[0208] Here, the PCF sends Nudr_DM_update to the UDR, which carries a second valid duration to store the second valid duration in the UDR.

[0209] S805 and DDNMF send a registration message (Nudm_UECM_Registration) to UDM.

[0210] S806, UDM, and UDR interact to obtain strategies or parameters for direct discovery.

[0211] Here, the strategy or parameters returned by the UDR to the UDM for direct discovery include not only a list of authorized PLMNs where direct discovery can occur, but also a second effective duration.

[0212] S807, UDR returns the strategy or parameters used for direct discovery to UDM.

[0213] The strategy or parameters that the UDR returns to the UDM for direct discovery include: a list of authorized PLMNs where direct discovery can occur and a second effective duration.

[0214] S808 and UDM return the registration result to DDNMF.

[0215] The UDM compares whether the UE's current serving PLMN is in the list of authorized PLMNs where direct discovery can occur. If it is, the UDM returns a registration result indicating successful authentication to the DDNMF, and the registration result includes a second validity period.

[0216] S809, DDNMF returns a discovery accept to the UE.

[0217] The discovery accept message carries either the ProSe application code or the ProSe matchfilter.

[0218] Here, DDNMF sets the first valid duration allocated to the UE based on the second valid duration, wherein the first valid duration is the valid duration of the ProSe application code or the ProSe match filter.

[0219] S810 and UE perform announcement or monitoring.

[0220] S811 and DDNMF send a second message to the UE.

[0221] Here, after the validity period of the ProSe application code or ProSe match filter expires, the DDNMF needs to delete the ProSe application code or ProSe match filter and send a second message to the UE, instructing the UE to delete the ProSe application code or ProSe match filter.

[0222] In practical applications, the implementation order of S811 and S810 is not sequential.

[0223] Example 2

[0224] like Figure 9 As shown, it includes the following steps:

[0225] The implementation of S901 to S910 refers to S201 to S210.

[0226] S911 and PCF send the first notification message to UDR.

[0227] When the policy or parameter timer running in the PCF expires and the UE does not request the policy or parameter for direct discovery again, the PCF sends a first notification message to the UDR to notify the UDR that the current policy is invalid. The first notification message carries an Information Element (IE) indicating that the policy is invalid.

[0228] Here, when the UDR receives the first notification message, it returns a response to the PCF to indicate that the first notification message has been received.

[0229] S912, UDR sends a second notification message (Nudr_DM_Notify) to UDM.

[0230] The UDR sends Nudr_DM_Notify to notify the UDM that the current policy is invalid. The second notification message carries the IE indicating that the policy is invalid.

[0231] S913, UDM sends a third notification message (Nudm_SDM_Notification) to DDNMF.

[0232] UDM sends Nudm_SDM_Notification to notify DDNMF that the current policy has failed, and the third notification message carries the IE indicating the policy failure.

[0233] S914, DDNMF sends a discovery update request to the UE.

[0234] Upon receiving the third notification message, DDNMF triggers a discovery update request and sends the discovery update request to the UE, instructing it to disable the already assigned ProSe application code or ProSe matchfilter.

[0235] S915, the UE returns a discovery update ACK to the DDNMF.

[0236] Example 3

[0237] like Figure 10 As shown, it includes the following steps:

[0238] For implementation details of S1001 to S1010, please refer to [link / reference]. Figure 9 S901 to S910 in the series.

[0239] S1011, PCF sends the first notification message to UDR.

[0240] When the PCF receives a second policy request message from the UE and learns that the UE's serving PLMN has changed, the PCF sends a first notification message to the UDR, informing the UDR that the UE's serving PLMN has changed. This first notification message carries an IE indicating that the UE's serving PLMN has changed. When the UE's PLMN changes, it sends another policy request message to the PCF.

[0241] Here, when the UDR receives the first notification message, it returns a response to the PCF to indicate that the first notification message has been received.

[0242] S1012, UDR sends a second notification message (Nudr_DM_Notify) to UDM.

[0243] The UDR sends Nudr_DM_Notify to notify the UDM that the current policy has failed. The second notification message carries an IE indicating that the UE's serving PLMN has changed.

[0244] S1013, UDM sends a third notification message (Nudm_SDM_Notification) to DDNMF.

[0245] The UDM sends a Nudm_SDM_Notification to notify the DDNMF that the current policy has failed. The third notification message carries an IE indicating that the UE's serving PLMN has changed.

[0246] S1014, DDNMF sends a discovery update request to the UE.

[0247] Upon receiving the third notification message, DDNMF triggers a discovery update request and sends the discovery update request to the UE, instructing it to disable the already assigned ProSe application code or ProSe matchfilter.

[0248] S1015, the UE returns a discovery update ACK to the DDNMF.

[0249] In this embodiment of the invention, the PCF needs to notify the DDNMF of the validity period of the direct discovery policy or the policy being unavailable (including policy unavailability caused by changes in the serving PLMN). The DDNMF can set the validity period of the prose application code or match filter based on the validity period of the policy; or release the prose application code or match filter.

[0250] To implement the above-described wireless communication method, this embodiment of the invention also provides a first network device 1100, the composition of which is as follows: Figure 11 As shown, it includes:

[0251] The first receiving unit 1101 is configured to receive a first message sent by the second network device;

[0252] The first release unit 1102 is configured to release the first proximity service configuration allocated to the terminal device locally when it is determined from the first message that the first proximity service configuration allocated to the terminal device has failed; the first proximity service configuration includes a proximity service application code or a proximity matching filter.

[0253] The first sending unit 1103 is used to send a second message to the terminal device; the second message is used to instruct the terminal device to set the first proximity service in the terminal device to unavailable.

[0254] In some embodiments, the first message indicates at least one of the following:

[0255] First valid duration; the first valid duration is used to determine whether the first adjacent service configuration is valid;

[0256] First information; the first information is used to indicate that the second adjacent service configuration has failed; the second adjacent service configuration includes strategies or parameters for direct discovery;

[0257] The second information is used to indicate a change in the public terrestrial mobile network (PLMN) where the terminal device is located.

[0258] In some embodiments, the first determining unit is further configured to determine that the first adjacent service configuration has failed if the first condition is met based on the first message;

[0259] The first condition includes at least one of the following conditions:

[0260] The first timer times out; the duration of the first timer is the first valid duration, which is used to determine whether the first adjacent service configuration is valid;

[0261] Receive first information; the first information is used to indicate that the second proximity service configuration has failed; the second proximity service configuration includes a strategy or parameters for direct discovery;

[0262] The second information is received; the second information is used to indicate that the public terrestrial mobile network (PLMN) where the terminal device is located has changed.

[0263] In some embodiments, when the first message indicates the first valid duration, the first valid duration is related to a second valid duration, and the second valid duration is used to determine whether the second proximity service configuration is valid, the second proximity service configuration includes a strategy or parameters for direct discovery.

[0264] In some embodiments, the first message includes the second validity period, and the first network device further includes:

[0265] The second determining unit is configured to determine the first valid duration based on the second valid duration.

[0266] In some embodiments, the timing for starting the first timer includes:

[0267] The first network device allocates the first proximity service configuration to the terminal device.

[0268] In some embodiments, when the first message includes the first information, the first information is used to indicate that the second adjacent service configuration has failed based on a second validity period, and the second validity period is used to determine whether the second adjacent service configuration is valid.

[0269] In some embodiments, the timing of generating the first information includes:

[0270] The second timer times out; the duration of the second timer is the second valid duration.

[0271] In some embodiments, the second message includes: a discovery update request; the first network device further includes:

[0272] The second receiving unit is configured to receive a discovery update response sent by the terminal device, wherein the discovery update response is used to indicate that the first proximity service in the terminal device has been configured as unavailable.

[0273] In some embodiments, the first network device includes a Direct Discovery Naming Management (DDNMF) network element, and the second network device includes a Unified Data Management (UDR) entity, a Unified Data Storage (UDM) entity, or a Policy Control (PCF) network element.

[0274] This invention also provides a first network device, including a processor and a memory for storing a computer program that can run on the processor, wherein when the processor runs the computer program, it executes the steps of the wireless communication method executed by the first network device described above.

[0275] To implement the wireless communication method, this embodiment of the invention also provides a second network device 1200, the composition of which is as follows: Figure 12 As shown, it includes:

[0276] The second sending unit 1201 is configured to send a first message to the first network device; the first message is used by the first network device to determine whether the first proximity service configuration allocated to the terminal device has failed; wherein, if the first proximity service configuration fails, the first proximity service configuration is released by the first network device and set to unavailable by the terminal device.

[0277] In some embodiments, the first message indicates at least one of the following:

[0278] First valid duration; the first valid duration is used to determine whether the first adjacent service configuration is valid;

[0279] First information; the first information is used to indicate that the second adjacent service configuration has failed; the second adjacent service configuration includes strategies or parameters for direct discovery;

[0280] The second information is used to indicate a change in the public terrestrial mobile network (PLMN) where the terminal device is located.

[0281] In some embodiments, when the first message includes the first valid duration, the first valid duration is related to a second valid duration, and the second valid duration is used to determine whether the second proximity service configuration is valid, the second proximity service configuration includes a strategy or parameter for direct discovery.

[0282] In some embodiments, the first message includes the second validity period.

[0283] In some embodiments, the first effective duration is the duration of a first timer; if the first timer times out, the first adjacent service configuration becomes invalid.

[0284] In some embodiments, the timing for starting the first timer includes: the first network device allocating the first proximity service configuration to the terminal device.

[0285] In some embodiments, the second network device includes a unified data management entity (UDR), a unified data storage entity (UDM), or a policy control network element (PCF), and the first network device includes a direct discovery and naming management network element (DDNMF).

[0286] In some embodiments, when the second network device includes: the UDR or the UDM, the second network device further includes:

[0287] The third receiving unit is configured to receive the second valid duration sent by the PCF.

[0288] In some embodiments, when the first message includes the first information and / or the second information, the second network device includes: UDR or UDM; the first network device includes: DDNMF; the second network device further includes:

[0289] The fourth receiving unit is used to receive the first information and / or the second information sent by the PCF.

[0290] In some embodiments, when the first message includes the first information, the second network device includes: PCF, and the first network device includes: DDNMF; the second network device further includes:

[0291] The judgment unit is configured to generate the first information if it determines that the second timer has timed out; the first information is sent to the UDR or UDM via the first message, so as to send the first information to the DDNMF via the first message.

[0292] In some embodiments, when the first message includes the second information, the second network device includes: PCF, and the first network device includes: DDNMF; the second network device further includes:

[0293] The generation unit is configured to generate the second information if it determines that the service PLMN of the terminal device has changed; the second information is sent to the UDR or UDM through the first message, so as to send the second information to the DDNMF through the first message.

[0294] This invention also provides a second network device, including a processor and a memory for storing a computer program that can run on the processor, wherein when the processor runs the computer program, it executes the steps of the wireless communication method executed by the second network device described above.

[0295] To implement the wireless communication method, this embodiment of the invention also provides a terminal device 1300, the composition structure of which is as follows: Figure 13 As shown, it includes:

[0296] The fifth receiving unit 1301 is configured to receive a second message sent by the first network device; the second message is sent by the first network device under the following circumstances: the first network device determines, based on the received first message, that the first proximity service configuration allocated to the terminal device has failed; the first proximity service configuration includes a proximity service application code or a proximity matching filter;

[0297] The second release unit 1302 is configured to set the first proximity service in the terminal device to unavailable according to the second message.

[0298] In some embodiments, the terminal device further includes:

[0299] The stop unit is configured to stop the ongoing direct discovery process.

[0300] In some embodiments, the first message includes: a discovery update request; the terminal device further includes:

[0301] The response unit is configured to send a discovery update response to the first network device; the discovery update response is used to indicate that the first proximity service in the terminal device has been configured as unavailable.

[0302] This invention also provides a terminal device, including a processor and a memory for storing a computer program that can run on the processor, wherein when the processor runs the computer program, it executes the steps of the wireless communication method executed by the terminal device described above.

[0303] Figure 14 This is a schematic diagram of the hardware composition structure of an electronic device (terminal device, first network device, or second network device) according to an embodiment of the present invention. The electronic device 1400 includes at least one processor 1401, a memory 1402, and at least one network interface 1404. The various components in the electronic device 1400 are coupled together through a bus system 1405. It is understood that the bus system 1405 is used to realize the connection and communication between these components. In addition to a data bus, the bus system 1405 also includes a power bus, a control bus, and a status signal bus. However, for clarity, in... Figure 14 The general labeled all buses as Bus System 1405.

[0304] It is understood that memory 1402 can be volatile memory or non-volatile memory, or both. Non-volatile memory can be ROM, programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), magnetic random access memory (FRAM), flash memory, magnetic surface memory, optical disc, or compact disc read-only memory (CD-ROM); magnetic surface memory can be disk storage or magnetic tape storage. Volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), SyncLink Dynamic Random Access Memory (SLDRAM), and Direct Rambus Random Access Memory (DRRAM). The memory 1402 described in this embodiment is intended to include, but is not limited to, these and any other suitable types of memory.

[0305] The memory 1402 in this embodiment of the invention is used to store various types of data to support the operation of the electronic device 1400. Examples of such data include any computer program for operation on the electronic device 1400, such as application program 1422. A program implementing the method of this embodiment of the invention may be included in application program 1422.

[0306] The methods disclosed in the above embodiments of the present invention can be applied to processor 1401, or implemented by processor 1401. Processor 1401 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the integrated logic circuit of the hardware in processor 1401 or by instructions in the form of software. The processor 1401 may be a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Processor 1401 can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of the present invention. The general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the methods disclosed in the embodiments of the present invention can be directly manifested as being executed by a hardware decoding processor, or being executed by a combination of hardware and software modules in the decoding processor. The software modules may be located in a storage medium, which is located in memory 1402. Processor 1401 reads the information in memory 1402 and completes the steps of the aforementioned method in conjunction with its hardware.

[0307] In an exemplary embodiment, the electronic device 1400 may be implemented by one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), FPGAs, general-purpose processors, controllers, MCUs, MPUs, or other electronic components to perform the aforementioned method.

[0308] This invention also provides a storage medium for storing computer programs.

[0309] Optionally, the storage medium can be applied to the terminal device in the embodiments of the present invention, and the computer program causes the computer to execute the corresponding processes in the various methods of the embodiments of the present invention, which will not be described in detail here for the sake of brevity.

[0310] Optionally, the storage medium can be applied to the first network device in the embodiments of the present invention, and the computer program causes the computer to execute the corresponding processes in the various methods of the embodiments of the present invention, which will not be described in detail here for the sake of brevity.

[0311] Optionally, the storage medium can be applied to the second network device in the embodiments of the present invention, and the computer program causes the computer to execute the corresponding processes in the various methods of the embodiments of the present invention, which will not be described in detail here for the sake of brevity.

[0312] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0313] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0314] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0315] The above description is merely a preferred embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A wireless communication method, the method comprising: The first network device receives the first message sent by the second network device; If the first network device determines that the first proximity service configuration allocated to the terminal device has failed based on the first message, it releases the local first proximity service configuration already allocated to the terminal device and sends a second message to the terminal device; the second message is used to instruct the terminal device to set the first proximity service configuration in the terminal device to unavailable; the first proximity service configuration includes a proximity service application code or a proximity matching filter. The failure of the first proximity service configuration is related to the failure of the second proximity service configuration, which includes strategies or parameters for direct discovery. The first message includes a second validity period, which is used to determine whether the second adjacent service configuration is valid. The second validity period is used to determine the first validity period, and the first validity period is used to determine whether the first adjacent service configuration is valid.

2. The method according to claim 1, wherein, The first message indicates at least one of the following: The first valid duration; First information; the first information is used to indicate that the second adjacent service configuration has failed; The second information is used to indicate a change in the public terrestrial mobile network (PLMN) where the terminal device is located.

3. The method according to claim 1, wherein, If the first network device determines that the first condition is met based on the first message, it determines that the first adjacent service configuration has failed. The first condition includes at least one of the following conditions: The first timer times out; the duration of the first timer is the first valid duration; The first message is received; the first message is used to indicate that the second adjacent service configuration has failed. Received the second message; The second information is used to indicate a change in the public terrestrial mobile network (PLMN) where the terminal device is located.

4. The method according to claim 2, wherein, When the first message indicates the first valid duration, the first valid duration is related to the second valid duration, and the second proximity service configuration includes a strategy or parameter for direct discovery.

5. The method according to claim 4, wherein, The first message includes the second valid duration, and the method further includes: The first network device determines the first valid duration based on the second valid duration.

6. The method according to claim 4, wherein, The first timer is started when the first network device allocates the first proximity service configuration to the terminal device.

7. The method according to claim 2, wherein, When the first message includes the first information, the first information is used to indicate that the second near-term service configuration has failed based on the second effective duration.

8. The method according to claim 7, wherein, The timing of the generation of the first information includes: The second timer times out; the duration of the second timer is the second valid duration.

9. The method according to any one of claims 1 to 8, wherein the second message comprises: An update request was detected; The method further includes: The terminal device receives a discovery update response, which indicates that the first proximity service in the terminal device has been configured as unavailable.

10. The method according to any one of claims 1 to 8, wherein, The first network device includes the Direct Discovery Naming Management (DDNMF) network element, and the second network device includes: a Unified Data Management (UDR) entity, a Unified Data Storage (UDM) entity, or a Policy Control (PCF) network element.

11. A wireless communication method, comprising: The second network device sends a first message to the first network device; The first message is used by the first network device to determine whether the first proximity service configuration allocated to the terminal device has failed; wherein, if the first proximity service configuration fails, the first proximity service configuration is released by the first network device and set to unavailable by the terminal device; The failure of the first proximity service configuration is related to the failure of the second proximity service configuration, which includes strategies or parameters for direct discovery. The first message includes a second validity period, which is used to determine whether the second adjacent service configuration is valid. The second validity period is used to determine the first validity period, and the first validity period is used to determine whether the first adjacent service configuration is valid.

12. The method according to claim 11, wherein, The first message indicates at least one of the following: First valid duration; the first valid duration is used to determine whether the first adjacent service configuration is valid; First information; the first information is used to indicate that the second adjacent service configuration has failed; Second information; The second information is used to indicate a change in the public terrestrial mobile network (PLMN) where the terminal device is located.

13. The method according to claim 12, wherein, When the first message indicates the first valid duration, the first valid duration is related to the second valid duration.

14. The method according to claim 13, wherein, The first message includes the second validity period.

15. The method according to claim 13, wherein, The first effective duration is the duration of the first timer; if the first timer times out, the first adjacent service configuration becomes invalid.

16. The method according to claim 15, wherein, The first timer is started when the first network device allocates the first proximity service configuration to the terminal device.

17. The method according to claim 13, wherein, The second network device includes: a unified data management entity (UDR) or a unified data storage entity (UDM) or a policy control network element (PCF), and the first network device includes: a direct discovery and naming management network element (DDNMF).

18. The method according to claim 17, wherein, When the second network device includes: the UDR or the UDM, the method further includes: The UDR or the UDM receives the second valid duration sent by the PCF.

19. The method according to any one of claims 12 to 18, wherein, When the first message includes the first information and / or the second information, the second network device includes: UDR or UDM; the first network device includes: DDNMF; the method further includes: The UDR or the UDM receives the first information and / or the second information sent by the PCF.

20. The method according to any one of claims 12 to 17, wherein, When the first message includes the first information, the second network device includes: PCF, and the first network device includes: DDNMF; the method further includes: If the PCF determines that the second timer has expired, it generates the first information; the first information is sent to the UDR or UDM via the first message, so that the first information is sent to the DDNMF via the first message.

21. The method according to any one of claims 12 to 17, wherein, When the first message includes the second information, the second network device includes: PCF, and the first network device includes: DDNMF; the method further includes: If the PCF determines that the service PLMN of the terminal device has changed, it generates the second information; the second information is sent to the UDR or UDM through the first message, so as to send the second information to the DDNMF through the first message.

22. A wireless communication method, the method comprising: The terminal device receives the second message sent by the first network device; The second message is sent by the first network device under the following circumstances: the first network device determines, based on the received first message, that the first proximity service configuration allocated to the terminal device has failed; the first proximity service configuration includes a proximity service application code or a proximity matching filter; According to the second message, the terminal device sets the first proximity service configuration in the terminal device to be unavailable; The failure of the first proximity service configuration is related to the failure of the second proximity service configuration, which includes strategies or parameters for direct discovery. The first message includes a second validity period, which is used to determine whether the second adjacent service configuration is valid. The second validity period is used to determine the first validity period, and the first validity period is used to determine whether the first adjacent service configuration is valid.

23. The method according to claim 22, wherein, The method further includes: The terminal device stops the direct discovery process that is currently being performed.

24. The method according to claim 22 or 23, wherein, The second message includes: a discovery update request; the method further includes: The terminal device sends a discovery update response to the first network device; the discovery update response is used to indicate that the first nearby service in the terminal device has been configured as unavailable.

25. A first network device, comprising: The first receiving unit is configured to receive a first message sent by the second network device; The first release unit is configured to release the local first proximity service configuration already allocated to the terminal device when the first proximity service configuration allocated to the terminal device is determined to be invalid according to the first message; the first proximity service configuration includes a proximity service application code or a proximity matching filter. The first sending unit is configured to send a second message to the terminal device; the second message is used to instruct the terminal device to set the first proximity service in the terminal device to unavailable. The failure of the first proximity service configuration is related to the failure of the second proximity service configuration, which includes strategies or parameters for direct discovery. The first message includes a second validity period, which is used to determine whether the second adjacent service configuration is valid. The second validity period is used to determine the first validity period, and the first validity period is used to determine whether the first adjacent service configuration is valid.

26. The first network device according to claim 25, wherein, The first message indicates at least one of the following: First valid duration; the first valid duration is used to determine whether the first adjacent service configuration is valid; First information; the first information is used to indicate that the second adjacent service configuration has failed; Second information; The second information is used to indicate a change in the public terrestrial mobile network (PLMN) where the terminal device is located.

27. The first network device according to claim 25, wherein, The first determining unit is further configured to determine that the first adjacent service configuration has failed if the first condition is met based on the first message. The first condition includes at least one of the following conditions: The first timer times out; the duration of the first timer is the first valid duration; The first message is received; the first message is used to indicate that the second adjacent service configuration has failed. Received the second message; The second information is used to indicate a change in the public terrestrial mobile network (PLMN) where the terminal device is located.

28. The first network device according to claim 26, wherein, When the first message indicates the first valid duration, the first valid duration is related to the second valid duration.

29. The first network device according to claim 28, wherein, The first message includes the second validity period, and the first network device further includes: The second determining unit is configured to determine the first valid duration based on the second valid duration.

30. The first network device according to claim 28, wherein, The first timer is started when: The first network device allocates the first proximity service configuration to the terminal device.

31. The first network device according to claim 26, wherein, When the first message includes the first information, the first information is used to indicate that the second near-term service configuration has failed based on the second effective duration.

32. The first network device according to claim 31, wherein, The timing of the generation of the first information includes: The second timer times out; the duration of the second timer is the second valid duration.

33. The first network device according to any one of claims 25 to 32, wherein, The second message includes: a discovery update request; the first network device further includes: The second receiving unit is configured to receive a discovery update response sent by the terminal device, wherein the discovery update response is used to indicate that the first proximity service in the terminal device has been configured as unavailable.

34. The first network device according to any one of claims 25 to 32, wherein, The first network device includes the Direct Discovery Naming Management (DDNMF) network element, and the second network device includes: a Unified Data Management (UDR) entity, a Unified Data Storage (UDM) entity, or a Policy Control (PCF) network element.

35. A second network device, comprising: The second sending unit is configured to send a first message to the first network device; The first message is used by the first network device to determine whether the first proximity service configuration allocated to the terminal device has failed; wherein, if the first proximity service configuration fails, the first proximity service configuration is released by the first network device and set to unavailable by the terminal device; The failure of the first proximity service configuration is related to the failure of the second proximity service configuration, which includes strategies or parameters for direct discovery. The first message includes a second validity period, which is used to determine whether the second adjacent service configuration is valid. The second validity period is used to determine the first validity period, and the first validity period is used to determine whether the first adjacent service configuration is valid.

36. The second network device according to claim 35, wherein, The first message indicates at least one of the following: First valid duration; the first valid duration is used to determine whether the first adjacent service configuration is valid; First information; the first information is used to indicate that the second adjacent service configuration has failed; Second information; The second information is used to indicate a change in the public terrestrial mobile network (PLMN) where the terminal device is located.

37. The second network device according to claim 36, wherein, When the first message includes the first valid duration, the first valid duration is related to the second valid duration.

38. The second network device according to claim 37, wherein, The first message includes the second validity period.

39. The second network device according to claim 37, wherein, The first effective duration is the duration of the first timer; if the first timer times out, the first adjacent service configuration becomes invalid.

40. The second network device according to claim 39, wherein, The first timer is started when the first network device allocates the first proximity service configuration to the terminal device.

41. The second network device according to claim 37, wherein, The second network device includes: a unified data management entity (UDR) or a unified data storage entity (UDM) or a policy control network element (PCF), and the first network device includes: a direct discovery and naming management network element (DDNMF).

42. The second network device according to claim 41, wherein, When the second network device includes: the UDR or the UDM, the second network device further includes: The third receiving unit is configured to receive the second valid duration sent by the PCF.

43. The second network device according to any one of claims 36 to 42, wherein, When the first message includes the first information and / or the second information, the second network device includes: UDR or UDM; the first network device includes: DDNMF; the second network device further includes: The fourth receiving unit is configured to receive the first information and / or the second information sent by the PCF.

44. The second network device according to any one of claims 36 to 41, wherein, When the first message includes the first information, the second network device includes: PCF, the first network device includes: DDNMF; the second network device further includes: The judgment unit is configured to generate the first information if the second timer times out; the first information is sent to the UDR or UDM via the first message, so as to send the first information to the DDNMF via the first message.

45. The second network device according to any one of claims 36 to 41, wherein, When the first message includes the second information, the second network device includes: PCF, the first network device includes: DDNMF; the second network device further includes: The generation unit is configured to generate the second information if it determines that the service PLMN of the terminal device has changed; the second information is sent to the UDR or UDM through the first message, so as to send the second information to the DDNMF through the first message.

46. ​​A terminal device, comprising: The fifth receiving unit is configured to receive the second message sent by the first network device; The second message is sent by the first network device under the following circumstances: the first network device determines, based on the received first message, that the first proximity service configuration allocated to the terminal device has failed; the first proximity service configuration includes a proximity service application code or a proximity matching filter; The second release unit is configured to set the first proximity service in the terminal device to unavailable according to the second message; The failure of the first proximity service configuration is related to the failure of the second proximity service configuration, which includes strategies or parameters for direct discovery. The first message includes a second validity period, which is used to determine whether the second adjacent service configuration is valid. The second validity period is used to determine the first validity period, and the first validity period is used to determine whether the first adjacent service configuration is valid.

47. The terminal device according to claim 46, wherein, The terminal device also includes: The stop unit is configured to stop the ongoing direct discovery process.

48. The terminal device according to claim 46 or 47, wherein, The first message includes: a discovery update request; the terminal device further includes: The response unit is configured to send a discovery update response to the first network device; the discovery update response is used to indicate that the first proximity service in the terminal device has been configured as unavailable.

49. A network device comprising a processor and a memory for storing a computer program capable of running on the processor, wherein, When the processor is used to run the computer program, it performs the steps of the method according to any one of claims 1 to 10, or performs the steps of the method according to any one of claims 11 to 21.

50. A terminal device, comprising a processor and a memory for storing a computer program capable of running on the processor, wherein, When the processor is used to run the computer program, it performs the steps of the method according to any one of claims 22 to 24.

51. A storage medium storing an executable program, which, when executed by a processor, implements the wireless communication method according to any one of claims 1 to 10, or the wireless communication method according to any one of claims 11 to 21, or the wireless communication method according to any one of claims 22 to 24.