A communication method and apparatus

By acquiring business information and resource status, the terminal device selects an appropriate spectrum mode for D2D communication, which solves the problem of spectrum mode selection, improves spectrum utilization, reduces energy consumption, and meets business needs.

CN115988561BActive Publication Date: 2026-11-27HUAWEI TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202111196242.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-14
Publication Date
2026-11-27
Estimated Expiration
2041-10-14

AI Technical Summary

Technical Problem

In device-to-device communication, how to reasonably determine the spectrum method for transmitting service data between the sending and receiving ends in order to better meet service needs and make reasonable use of licensed and unlicensed spectrum.

Method used

By acquiring service information through terminal devices and combining the correspondence of spectrum modes and resource usage status, licensed or unlicensed spectrum modes are flexibly selected for service data transmission. Terminal devices and network devices work together to determine the spectrum mode and transmit service data through side links.

Benefits of technology

It enables the selection of appropriate spectrum modes based on service characteristics, improves spectrum resource utilization, reduces the energy consumption of terminal equipment, and meets the transmission requirements of different services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115988561B_ABST
    Figure CN115988561B_ABST
Patent Text Reader

Abstract

A communication method and device are used for reasonably determining a spectrum mode for transmitting service data between a transmitting end and a receiving end. In the application, the method comprises: a first terminal device obtaining service information of a first service; and the first terminal device transmitting service data of the first service in a first spectrum mode according to the service information of the first service, the service data of the first service being carried on a sidelink between the first terminal device and a second terminal device, the first spectrum mode being a licensed spectrum mode, an unlicensed spectrum mode, or a licensed spectrum and unlicensed spectrum mode.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to a communication method and apparatus. Background Technology

[0002] With the rapid development of mobile communications, the widespread use of new service types, such as video chat and virtual reality (VR) / augmented reality (AR) data services, has increased users' demand for bandwidth. Device-to-device (D2D) communication allows direct communication between terminal devices, enabling them to share spectrum resources with cell users under the control of the cell network, effectively improving spectrum resource utilization. D2D communication includes one-to-many communication and one-to-one communication. One-to-many communication corresponds to multicast and broadcast communication, while one-to-one communication corresponds to unicast communication. In one-to-one communication, if the distance between two terminal devices is less than a preset distance, they can establish a proximity communication 5 (PC5) connection after mutual discovery and communicate directly through the PC5 interface.

[0003] Two terminal devices can be the sender and receiver of service data, respectively. The sender and receiver can transmit service data to each other using licensed spectrum. Specifically, licensed spectrum refers to the licensed spectrum; the sender can determine the licensed spectrum resource from the licensed spectrum and then send service data to the receiver on that determined licensed spectrum resource. Due to the limitation of licensed spectrum, a current implementation method has been introduced where the sender and receiver transmit service data to each other using unlicensed spectrum.

[0004] Thus, the spectrum mode for transmitting service data between the sending and receiving ends can be either licensed or unlicensed spectrum mode, and how to reasonably determine the spectrum mode has become an urgent technical problem to be solved. Summary of the Invention

[0005] This application provides a communication method and apparatus for reasonably determining the spectrum mode for transmitting service data between a transmitting end and a receiving end.

[0006] Firstly, this application provides a communication method that can be executed by a first terminal device or a module (such as a chip) within the first terminal device, wherein the first terminal device can be a sender of service data. The following description uses the execution of this communication method by a first terminal device as an example.

[0007] In one possible implementation, the method includes: a first terminal device acquiring service information of a first service; the first terminal device transmitting service data of the first service using a first spectrum method based on the service information of the first service, the service data of the first service being carried on a side link between the first terminal device and a second terminal device, the first spectrum method being either a licensed spectrum method, an unlicensed spectrum method, or a licensed spectrum and unlicensed spectrum method.

[0008] In the above technical solution, the first terminal device can transmit the service data of the first service to the second terminal device using the first spectrum method according to the service information of the first service. In this way, the first terminal device and the second terminal device can transmit service data through a spectrum method that is more suitable for the service characteristics, which helps to better meet service needs and make reasonable use of licensed and unlicensed spectrum.

[0009] In one possible implementation, the service information includes at least one of the following: PC5 quality of service (QoS) parameters, service type, or service identifier.

[0010] In one possible implementation, the PC5 QoS parameters of the first service include one or more of PQI (full name PC5 5QI, where 5QI is 5G QoS indicator) and bit rate; the service type of the first service may include one or more of the following: video, voice, and critical services.

[0011] In one possible implementation, the method further includes: the first terminal device determining a first spectrum mode based on service information. In the above technical solution, after obtaining the service information of the first service, the first terminal device can determine the first spectrum mode corresponding to the service information of the first service, thereby transmitting service data of the first service through the first spectrum mode when it is necessary to transmit the service data of the first service to the second terminal device.

[0012] In one possible implementation, the first terminal device determines the first spectrum mode based on service information, including: the first terminal device determining the first spectrum mode based on the correspondence between service information and the first spectrum mode, and the service information itself. In the above technical solution, the first terminal device includes the correspondence between service information of the first service and the first spectrum mode, and the first terminal device can determine the first spectrum mode based on the service information of the first service and this correspondence.

[0013] In one possible implementation, the first terminal device determines the first spectrum mode based on the correspondence between service information and the first spectrum mode, and the service information itself. This includes: the adjacent service layer of the first terminal device determining the first spectrum mode based on the correspondence between service information and the first spectrum mode, and the service information itself; or the access layer of the first terminal device determining the first spectrum mode based on the correspondence between service information and the first spectrum mode, and the service information itself. In the above technical solution, based on the different functions of the adjacent service layer and the access layer in the first terminal device, both can determine the first spectrum mode.

[0014] In one possible implementation, the first terminal device determines a first spectrum mode based on service information, including: the first terminal device determines a second spectrum mode based on the correspondence between service information and a second spectrum mode, and the service information; the first terminal device determines the first spectrum mode based on the second spectrum mode and first information; wherein the second spectrum mode is a preferred licensed spectrum mode or a preferred unlicensed spectrum mode; the first information includes at least one of the following: the usage status of licensed spectrum resources, the usage status of unlicensed spectrum resources, the suggested spectrum mode, or the licensed spectrum mode.

[0015] In the above technical solution, the service information of the first service can also correspond to a second spectrum method, wherein the second spectrum method is a priority licensed spectrum method or a priority unlicensed spectrum method; the first terminal device can further determine the first spectrum method by combining the usage status of licensed spectrum resources, the usage status of unlicensed spectrum resources, the suggested spectrum method, or one or more of the licensed spectrum methods. In this method, the first terminal device can determine the first spectrum method more flexibly and reasonably based on the spectrum method suggested or authorized by the network side and the actual usage status of spectrum resources.

[0016] In one possible implementation, the method further includes: the first terminal device acquiring one or more of the usage status of licensed spectrum resources and the usage status of unlicensed spectrum resources. In the above technical solution, the first terminal device can flexibly and reasonably determine the first spectrum mode based on one or more of the usage status of licensed spectrum resources and the usage status of unlicensed spectrum resources, as well as the second spectrum mode.

[0017] In one possible implementation, the method further includes: a first terminal device receiving first information. In the above technical solution, the first terminal device can obtain the first information from a network device (such as a wireless access network device or a core network device), thereby allowing the first terminal device to flexibly and reasonably determine the first spectrum mode based on the first information and the second spectrum mode.

[0018] In one possible implementation, the first terminal device determines the second spectrum method based on the correspondence between service information and the second spectrum method, and the service information; the first terminal device determines the first spectrum method based on the second spectrum method and the first information, including: the adjacent service layer of the first terminal device determines the second spectrum method based on the correspondence between service information and the second spectrum method, and the service information; the access layer of the first terminal device determines the first spectrum method based on the second spectrum method and the first information; or, the adjacent service layer of the first terminal device determines the second spectrum method based on the correspondence between service information and the second spectrum method, and the service information; the adjacent service layer of the first terminal device determines the first spectrum method based on the second spectrum method and the first information; or, the access layer of the first terminal device determines the second spectrum method based on the correspondence between service information and the second spectrum method, and the service information; the access layer of the first terminal device determines the first spectrum method based on the second spectrum method and the first information. In the above technical solution, based on the different functions of the adjacent service layer and the access layer in the first terminal device, either the adjacent service layer or the access layer can first determine the second spectrum mode, and then determine the first spectrum mode according to the second spectrum mode and the first information; or, the adjacent service layer can first determine the second spectrum mode, and then the access layer can determine the first spectrum mode according to the second spectrum mode and the first information.

[0019] In one possible implementation, the method further includes: the first terminal device sending second information to the second terminal device, wherein the second information is used to instruct the first terminal device to transmit the service data of the first service using a first spectrum mode. In the above technical solution, the first terminal device can instruct the second terminal device on the first spectrum mode, thereby enabling both the first and second terminal devices to transmit the service data of the first service on the spectrum resources corresponding to the first spectrum mode. That is, the second terminal device only needs to receive the service data of the first service on the spectrum resources corresponding to the first spectrum mode, which helps reduce the energy consumption of the second terminal device.

[0020] In one possible implementation, the first terminal device sends second information and a service identifier of the first service to the second terminal device, wherein the second information includes an identifier of the first spectrum mode. In another possible implementation, the second information includes both the identifier of the first spectrum mode and the service identifier of the first service. In the above technical solution, the first terminal device can indicate the first spectrum mode and the first service to the second terminal device, thereby enabling the first terminal device and the second terminal device to transmit service data of the first service on the spectrum resources corresponding to the first spectrum mode.

[0021] In one possible implementation, when the first spectrum mode is an unlicensed spectrum mode, or a licensed spectrum and unlicensed spectrum mode, the method further includes: the first terminal device determining a first unlicensed spectrum resource from the unlicensed spectrum resources, the first unlicensed spectrum resource being used for transmitting service data of the first service between the first terminal device and the second terminal device; and the first terminal device sending information about the first unlicensed spectrum resource to the second terminal device. In the above technical solution, the first terminal device can determine the first unlicensed spectrum resource from the unlicensed spectrum, and then send the information about the first unlicensed spectrum resource to the second terminal device. Therefore, the second terminal device does not need to detect or receive service data from the first terminal device on all unlicensed spectrum resources, which helps to further reduce the energy consumption of the second terminal device.

[0022] In one possible implementation, the service data of the first service is carried on a first QoS flow in the sidelink. In the above technical solution, the sidelink between the first terminal device and the second terminal device includes multiple QoS flows. These multiple QoS flows can carry service data corresponding to different service information, and different QoS flows can correspond to different spectrum modes, thereby helping to improve the flexibility of service data transmission.

[0023] In one possible implementation, the method further includes: the first terminal device associating the first service with the first QoS flow according to the first spectrum mode and the spectrum mode corresponding to the first QoS flow. In another possible implementation, the method further includes: the first terminal device generating the first QoS flow according to the first spectrum mode. In the above technical solutions, the first terminal device can associate the first service with the first QoS flow, so that when the first terminal device sends the service data of the first service to the second terminal device, the service data of the first service can be carried in the first QoS flow.

[0024] In one possible implementation, the first terminal device sends second information and an identifier of the first QoS flow to the second terminal device, the second information including an identifier of the first spectrum mode. In another possible implementation, the second information includes both the identifier of the first spectrum mode and the identifier of the first QoS flow. In the above technical solution, the first terminal device can indicate the first spectrum mode and the first QoS flow to the second terminal device, thereby enabling the first and second terminal devices to transmit the first QoS flow on the spectrum resources corresponding to the first spectrum mode, wherein the first QoS flow carries the service data of the first service.

[0025] Secondly, this application provides a communication method that can be executed by a first terminal device or a module (such as a chip) in the first terminal device, wherein the first terminal device can be the sender of service data. The following description uses the execution of this communication method by a first terminal device as an example.

[0026] In one possible implementation, the method includes: a first terminal device acquiring the spectrum mode subscribed by the first terminal device; the first terminal device transmitting service data of a first service using the first spectrum mode according to the spectrum mode subscribed by the first terminal device, the service data of the first service being carried on a side link between the first terminal device and the second terminal device, the first spectrum mode being a licensed spectrum mode, or an unlicensed spectrum mode, or a licensed spectrum and unlicensed spectrum mode.

[0027] In the above technical solution, the first terminal device can transmit the service data of the first service using the first spectrum method according to the spectrum method signed by the first terminal device. In this way, the first terminal device and the second terminal device can transmit the service data through the spectrum method that is more suitable for the characteristics of the first terminal device, which helps to better transmit service data and make reasonable use of licensed and unlicensed spectrum.

[0028] In one possible implementation, the spectrum subscription method of the first terminal device includes at least one of the following: licensed spectrum method, unlicensed spectrum method, licensed spectrum and unlicensed spectrum method, priority licensed spectrum method, or priority unlicensed spectrum method.

[0029] In one possible implementation, the method further includes: the first terminal device determining a first spectrum mode based on the spectrum mode subscribed to by the first terminal device. In the above technical solution, the first terminal device can determine the first spectrum mode, and thus, when it needs to transmit service data of the first service with the second terminal device, it can transmit via the first spectrum mode.

[0030] In one possible implementation, the first terminal device determines the first spectrum method based on the spectrum method it has signed up for, including: the first terminal device determines the first spectrum method based on the area information corresponding to the spectrum method it has signed up for, and the first area information, wherein the first area information is used to characterize the area where the first terminal device is located.

[0031] In the above technical solution, the first terminal device can determine the first spectrum method based on the regional information corresponding to the spectrum method signed by the first terminal device and the region where the first terminal device is located. The first spectrum method can be better and more flexibly applied to terminal devices in different regions.

[0032] In one possible implementation, the first terminal device determines the first spectrum method based on the region information corresponding to the spectrum method subscribed by the first terminal device and the first region information. This includes: the adjacent service layer of the first terminal device determining the first spectrum method based on the region information corresponding to the spectrum method subscribed by the first terminal device and the first region information; or the access layer of the first terminal device determining the first spectrum method based on the region information corresponding to the spectrum method subscribed by the first terminal device and the first region information. In the above technical solution, based on the different functions of the adjacent service layer and the access layer in the first terminal device, both can determine the first spectrum method.

[0033] In one possible implementation, the first terminal device determines a first spectrum method based on the spectrum method it has signed up for, including: the first terminal device determining a second spectrum method based on the spectrum method it has signed up for; the first terminal device determining the first spectrum method based on first information and the second spectrum method; wherein the second spectrum method is a preferred licensed spectrum method or a preferred unlicensed spectrum method; the first information includes at least one of the following: the usage status of licensed spectrum resources, the usage status of unlicensed spectrum resources, the suggested spectrum method, or the licensed spectrum method.

[0034] In the above technical solution, the first terminal device can determine the first spectrum method based on the usage status of licensed spectrum resources, the usage status of unlicensed spectrum resources, a suggested spectrum method, or one or more of the licensed spectrum methods, and the second spectrum method. In this method, the first terminal device can determine the first spectrum method more flexibly and reasonably based on the spectrum method suggested or licensed by the network side and the actual usage status of the spectrum resources.

[0035] In one possible implementation, the method further includes: the first terminal device acquiring one or more of the usage status of licensed spectrum resources and the usage status of unlicensed spectrum resources. In the above technical solution, the first terminal device can flexibly and reasonably determine the first spectrum mode based on one or more of the usage status of licensed spectrum resources and the usage status of unlicensed spectrum resources, as well as the second spectrum mode.

[0036] In one possible implementation, the method further includes: a first terminal device receiving first information. In the above technical solution, the first terminal device can obtain the first information from a network device (such as a wireless access network device or a core network device), thereby allowing the first terminal device to flexibly and reasonably determine the first spectrum mode based on the first information and the second spectrum mode.

[0037] In one possible implementation, the first terminal device determines a second spectrum method based on the spectrum method it has subscribed to; the first terminal device determines the first spectrum method based on the first information and the second spectrum method, including: the proximity service layer of the first terminal device determines the second spectrum method based on the spectrum method it has subscribed to; the access layer of the first terminal device determines the first spectrum method based on the second spectrum method and the first information; or, the proximity service layer of the first terminal device determines the second spectrum method based on the spectrum method it has subscribed to; the proximity service layer of the first terminal device determines the first spectrum method based on the second spectrum method and the first information; or, the access layer of the first terminal device determines the second spectrum method based on the spectrum method it has subscribed to; the access layer of the first terminal device determines the first spectrum method based on the second spectrum method and the first information. In the above technical solution, based on the different functions of the proximity service layer and the access layer in the first terminal device, either the proximity service layer or the access layer can first determine the second spectrum method, and then determine the first spectrum method based on the second spectrum method and the first information; or, the proximity service layer can first determine the second spectrum method, and then the access layer determines the first spectrum method based on the second spectrum method and the first information.

[0038] In one possible implementation, the method further includes: a first terminal device sending second information to a second terminal device; wherein the second information is used to instruct the first terminal device to transmit service data of the first service using a first spectrum mode. In the above technical solution, the first terminal device can instruct the second terminal device to use the first spectrum mode, thereby enabling both the first and second terminal devices to transmit service data of the first service on the spectrum resources corresponding to the first spectrum mode. That is, the second terminal device only needs to receive the service data of the first service on the spectrum resources corresponding to the first spectrum mode, which helps reduce the energy consumption of the second terminal device.

[0039] In one possible implementation, the first terminal device sends second information to the second terminal device via a side link between the first and second terminal devices. The second information includes an identifier of the first spectrum mode. In this technical solution, the first terminal device can indicate the first spectrum mode to the second terminal device via the side link between the first and second terminal devices, thereby enabling the first and second terminal devices to transmit service data of the first service on the spectrum resources corresponding to the first spectrum mode via the side link.

[0040] In one possible implementation, when the first spectrum mode is an unlicensed spectrum mode, or a licensed spectrum and unlicensed spectrum mode, the method further includes: the first terminal device determining a first unlicensed spectrum resource from the unlicensed spectrum resources, the first unlicensed spectrum resource being used for transmitting service data of the first service between the first terminal device and the second terminal device; and the first terminal device sending information about the first unlicensed spectrum resource to the second terminal device. In the above technical solution, the first terminal device can determine the first unlicensed spectrum resource from the unlicensed spectrum, and then send the information about the first unlicensed spectrum resource to the second terminal device. Therefore, the second terminal device does not need to detect or receive service data from the first terminal device on all unlicensed spectrum resources, which helps to further reduce the energy consumption of the second terminal device.

[0041] Thirdly, this application provides a communication method that can be executed by a core network device or a module (such as a chip) within the core network device. The following description uses the execution of this communication method by a core network device as an example.

[0042] In one possible implementation, the method includes: a core network device acquiring service information and the corresponding spectrum method, and sending the service information and the corresponding spectrum method to a first terminal device. In another possible implementation, the service information and the corresponding spectrum method can be used by the first terminal device to determine a first spectrum method, which is either a licensed spectrum method, an unlicensed spectrum method, or both.

[0043] In the above technical solution, the core network equipment can control different services to use different spectrum methods, thereby avoiding terminal equipment from using inappropriate spectrum methods to transmit services.

[0044] In one possible implementation, the core network device can be a policy control function (PCF) network element or a unified data management (UDM) network element.

[0045] Fourthly, this application provides a communication method that can be executed by a core network device or a module (such as a chip) within the core network device. The following description uses the execution of this communication method by a core network device as an example.

[0046] In one possible implementation, the method includes: a core network device obtaining the spectrum subscription method of a first terminal device, and sending the spectrum subscription method of the first terminal device to the first terminal device. In another possible implementation, the spectrum subscription method of the first terminal device can be used by the first terminal device to determine the first spectrum subscription method, which is either a licensed spectrum subscription method, an unlicensed spectrum subscription method, or both.

[0047] In the above technical solution, the core network equipment can control the spectrum mode of the terminal equipment to prevent the terminal equipment from transmitting services using unlicensed (or uncontracted) spectrum modes.

[0048] In one possible implementation, the core network device can be a PCF network element or a UDM network element.

[0049] Fifthly, embodiments of this application provide a communication device that has the function of implementing the first terminal device in the first aspect or any possible implementation of the first aspect. The device can be a terminal device or a module (such as a chip) in the terminal device.

[0050] In one possible implementation, the communication device includes: a processing module for acquiring service information of a first service; the processing module is further configured to control the transceiver module to transmit service data of the first service using a first spectrum method based on the service information, wherein the service data of the first service is carried on a side link between the communication device and the second terminal device, and the first spectrum method is either a licensed spectrum method, or an unlicensed spectrum method, or a licensed spectrum and unlicensed spectrum method.

[0051] In one possible implementation, the service information includes at least one of the following: PC5 QoS parameters, service type, or service identifier.

[0052] In one possible implementation, the processing module is also used to: determine the first spectrum mode based on the business information.

[0053] In one possible implementation, the processing module is specifically used to: determine the first spectrum mode based on the correspondence between the service information and the first spectrum mode, as well as the service information.

[0054] In one possible implementation, the processing module is specifically used to: control the adjacent service layer to determine the first spectrum method based on the correspondence between service information and the first spectrum method, as well as the service information; or control the access layer to determine the first spectrum method based on the correspondence between service information and the first spectrum method, as well as the service information.

[0055] In one possible implementation, the processing module is specifically used to: determine the second spectrum method based on the correspondence between the business information and the second spectrum method, and the business information; determine the first spectrum method based on the second spectrum method and the first information; wherein the second spectrum method is a preferred licensed spectrum method or a preferred unlicensed spectrum method; the first information includes at least one of the following: the usage status of licensed spectrum resources, the usage status of unlicensed spectrum resources, the suggested spectrum method, or the licensed spectrum method.

[0056] In one possible implementation, the processing module is also used to: obtain one or more of the usage status of licensed spectrum resources and the usage status of unlicensed spectrum resources.

[0057] In one possible implementation, the processing module is also used to: control the transceiver module to receive the first information.

[0058] In one possible implementation, the processing module is specifically used to: control the adjacent service layer to determine the second spectrum method based on the correspondence between service information and the second spectrum method, and the service information; control the access layer to determine the first spectrum method based on the second spectrum method and the first information; or, control the adjacent service layer to determine the second spectrum method based on the correspondence between service information and the second spectrum method, and the service information; control the adjacent service layer to determine the first spectrum method based on the second spectrum method and the first information; or, control the access layer to determine the second spectrum method based on the correspondence between service information and the second spectrum method, and the service information; control the access layer to determine the first spectrum method based on the second spectrum method and the first information.

[0059] In one possible implementation, the processing module is further configured to: control the transceiver module to send second information to the second terminal device; wherein the second information is used to instruct the communication device to transmit the service data of the first service using a first spectrum method.

[0060] In one possible implementation, if the first spectrum mode is an unlicensed spectrum mode, or a licensed spectrum mode and an unlicensed spectrum mode, the processing module is further configured to: determine a first unlicensed spectrum resource from the unlicensed spectrum resources, the first unlicensed spectrum resource being used for transmitting service data of the first service between the communication device and the second terminal device; and control the transceiver module to send information about the first unlicensed spectrum resource to the second terminal device.

[0061] In one possible implementation, the service data of the first service is carried on the first QoS flow in the side link.

[0062] In one possible implementation, the processing module is further configured to: associate the first service with the first QoS flow according to the first spectrum mode and the spectrum mode corresponding to the first QoS flow.

[0063] In one possible implementation, the processing module is further configured to: generate a first QoSflow based on a first spectrum mode.

[0064] Sixthly, embodiments of this application provide a communication device that has the function of implementing the first terminal device in the second aspect or any possible implementation of the second aspect. The device can be a terminal device or a module (such as a chip) in the terminal device.

[0065] In one possible implementation, the processing module is used to obtain the spectrum mode subscribed by the communication device; the processing module is also used to control the transceiver module to transmit the service data of the first service using the first spectrum mode according to the spectrum mode subscribed by the communication device, the service data of the first service is carried on the side link between the communication device and the second terminal device, and the first spectrum mode is a licensed spectrum mode, or an unlicensed spectrum mode, or a licensed spectrum and unlicensed spectrum mode.

[0066] In one possible implementation, the spectrum subscription method of the communication device includes at least one of the following: licensed spectrum method, unlicensed spectrum method, licensed spectrum and unlicensed spectrum method, priority licensed spectrum method, or priority unlicensed spectrum method.

[0067] In one possible implementation, the processing module is further configured to: determine a first spectrum mode based on the spectrum mode contracted by the communication device.

[0068] In one possible implementation, the processing module is specifically used to: determine the first spectrum method based on the area information corresponding to the spectrum method subscribed by the communication device and the first area information, wherein the first area information is used to characterize the area where the communication device is located.

[0069] In one possible implementation, the processing module is specifically used to: control the adjacent service layer to determine the first spectrum method based on the area information corresponding to the spectrum method subscribed by the communication device and the first area information; or control the access layer to determine the first spectrum method based on the area information corresponding to the spectrum method subscribed by the communication device and the first area information.

[0070] In one possible implementation, the processing module is specifically used to: determine a second spectrum method based on the spectrum method contracted by the communication device; determine a first spectrum method based on first information and the second spectrum method; wherein the second spectrum method is a preferred licensed spectrum method or a preferred unlicensed spectrum method; the first information includes at least one of the following: the usage status of licensed spectrum resources, the usage status of unlicensed spectrum resources, the suggested spectrum method, or the licensed spectrum method.

[0071] In one possible implementation, the processing module is also used to: obtain one or more of the usage status of licensed spectrum resources and the usage status of unlicensed spectrum resources.

[0072] In one possible implementation, the processing module is also used to: control the transceiver module to receive the first information.

[0073] In one possible implementation, the processing module is specifically configured to: control the adjacent service layer to determine a second spectrum method based on the spectrum method subscribed by the communication device; control the access layer to determine a first spectrum method based on the second spectrum method and first information; or, control the adjacent service layer to determine a second spectrum method based on the spectrum method subscribed by the communication device; control the adjacent service layer to determine a first spectrum method based on the second spectrum method and first information; or, control the access layer to determine a second spectrum method based on the spectrum method subscribed by the communication device; control the access layer to determine a first spectrum method based on the second spectrum method and first information.

[0074] In one possible implementation, the processing module is further configured to: control the transceiver module to send second information to the second terminal device; wherein the second information is used to instruct the communication device to transmit the service data of the first service using a first spectrum method.

[0075] In one possible implementation, if the first spectrum mode is an unlicensed spectrum mode, or a licensed spectrum mode and an unlicensed spectrum mode, the processing module is further configured to: determine a first unlicensed spectrum resource from the unlicensed spectrum resources, the first unlicensed spectrum resource being used for transmitting service data of the first service between the communication device and the second terminal device; and control the transceiver module to send information about the first unlicensed spectrum resource to the second terminal device.

[0076] In a seventh aspect, embodiments of this application provide a communication device that has the function of implementing the core network equipment in the third aspect or any possible implementation of the third aspect. The device can be the core network equipment or a module (such as a chip) in the core network equipment.

[0077] In one possible implementation, the processing module is used to acquire service information and the corresponding spectrum mode, and to control the transceiver module to send the service information and the corresponding spectrum mode to the first terminal device. In another possible implementation, the service information and the corresponding spectrum mode can be used by the first terminal device to determine a first spectrum mode, which can be a licensed spectrum mode, an unlicensed spectrum mode, or both.

[0078] Eighthly, embodiments of this application provide a communication device that has the function of implementing the core network equipment in the fourth aspect or any possible implementation of the fourth aspect. The device can be the core network equipment or a module (such as a chip) in the core network equipment.

[0079] In one possible implementation, the processing module is used to obtain the spectrum method subscribed by the first terminal device and to control the transceiver module to send the spectrum method subscribed by the first terminal device to the first terminal device. In another possible implementation, the spectrum method subscribed by the first terminal device can be used by the first terminal device to determine the first spectrum method, which is either a licensed spectrum method, an unlicensed spectrum method, or both.

[0080] Ninthly, embodiments of this application provide a chip system, including: a processor coupled to a memory, the memory being used to store programs or instructions, wherein when the program or instructions are executed by the processor, the chip system implements the method in the first aspect or any possible implementation of the first aspect, or implements the method in the second aspect or any possible implementation of the second aspect, or executes the method in the third aspect or any possible implementation of the third aspect, or executes the method in the fourth aspect or any possible implementation of the fourth aspect.

[0081] Optionally, the chip system also includes an interface circuit for exchanging code instructions with the processor.

[0082] Optionally, the chip system may include one or more processors, which can be implemented in hardware or software. When implemented in hardware, the processor may be a logic circuit, integrated circuit, etc. When implemented in software, the processor may be a general-purpose processor that reads software code stored in memory.

[0083] Optionally, the chip system may contain one or more memories. These memories may be integrated with the processor or disposed separately. For example, the memory may be a non-transitory processor, such as a read-only memory (ROM), which may be integrated with the processor on the same chip or disposed on separate chips.

[0084] In a tenth aspect, embodiments of this application provide a computer-readable storage medium having a computer program or instructions stored thereon, which, when executed, cause a computer to perform the method in the first aspect or any possible implementation thereof, or to perform the method in the second aspect or any possible implementation thereof, or to perform the method in the third aspect or any possible implementation thereof, or to perform the method in the fourth aspect or any possible implementation thereof.

[0085] In the eleventh aspect, embodiments of this application provide a computer program product that, when a computer reads and executes the computer program product, causes the computer to execute the method in the first aspect or any possible implementation of the first aspect, or execute the method in the second aspect or any possible implementation of the second aspect, or execute the method in the third aspect or any possible implementation of the third aspect, or execute the method in the fourth aspect or any possible implementation of the fourth aspect.

[0086] In a twelfth aspect, embodiments of this application provide a communication system, which includes a core network device and a first terminal device. The first terminal device is used to execute the method in the first aspect or any possible implementation of the first aspect, and the core network device is used to execute the method in the third aspect or any possible implementation of the third aspect.

[0087] Alternatively, the first terminal device may execute the method in the second aspect or any possible implementation of the second aspect, and the core network device may execute the method in the fourth aspect or any possible implementation of the fourth aspect.

[0088] The technical effects that can be achieved by any of the above-mentioned aspects five through twelfth can be referred to the descriptions of the relevant beneficial effects in the above-mentioned aspects one through four, and will not be repeated here. Attached Figure Description

[0089] Figure 1 This is an architecture diagram of a communication system.

[0090] Figure 2 This is a schematic diagram of a 5G QoS model based on QoS flow.

[0091] Figure 3 This provides a QoS flow-based QoS model for D2D communication.

[0092] Figure 4 This is a schematic diagram illustrating the process of establishing a PC5 link.

[0093] Figure 5 A flowchart illustrating a communication method provided in this application;

[0094] Figure 6 This application provides a schematic diagram illustrating the process of UE1 and UE2 transmitting service data in a specific application scenario.

[0095] Figure 7 A flowchart illustrating a method for determining the first spectrum in the ProSe layer provided in this application;

[0096] Figure 8 A flowchart illustrating a method for determining the first spectrum at the AS layer, as provided in this application;

[0097] Figure 9 A flowchart illustrating a method for determining the first spectrum using the ProSe layer and AS layer provided in this application;

[0098] Figure 10 A flowchart illustrating another communication method provided in this application;

[0099] Figure 11 A schematic diagram illustrating the process of UE1 and UE2 transmitting service data in another specific application scenario provided in this application;

[0100] Figure 12 A flowchart illustrating another method for determining the first spectrum in the ProSe layer provided in this application;

[0101] Figure 13 A schematic diagram of the structure of a communication device provided in this application;

[0102] Figure 14 A schematic diagram of another communication device provided in this application. Detailed Implementation

[0103] The embodiments of this application will now be described in detail with reference to the accompanying drawings.

[0104] Figure 1The system architecture used in the communication method of this application includes the following network functions and entities: user equipment (UE), radio access network (RAN) equipment, user plane function (UPF) network elements, data network (DN), access and mobility management function (AMF) network elements, session management function (SMF) network elements, network exposure function (NEF) network elements, policy control function (PCF) network elements, application function (AF) network elements, network slice selection function (NSSF) network elements, authentication server function (AUSF) network elements, unified data management (UDM) network elements, network repository function (NRF) network elements, and unified data repository (UDR) network elements.

[0105] Furthermore, Figure 1 The document illustrates the interaction relationships between network functions and entities, as well as their corresponding interfaces. For example, terminal devices and AMF network elements can interact through the N1 interface, and the interaction messages are called N1 Messages. Some interfaces can be implemented using service-oriented interfaces.

[0106] User data streams can be transmitted through a protocol data unit (PDU) session established between the terminal device and the DN, and the specific transmission can pass through the wireless access network equipment and UPF network elements.

[0107] The network functions and entities are explained below:

[0108] Terminal devices can be user equipment, handheld terminals, laptops, cellular phones, smartphones, tablets, AR devices, VR devices, machine-type communication terminals, or other devices capable of accessing the network. Terminal devices communicate with radio access network equipment using some air interface technology (such as New Radio (NR) or Long Term Evolution (LTE)). Terminal devices can also communicate with each other using some air interface technology (such as NR or LTE). In vehicle-to-everything (V2X) communication, the communication terminal mounted on the vehicle can be considered a terminal device, as can the roadside unit (RSU). Unmanned aerial vehicles (UAVs) carrying communication terminals can also be considered terminal devices.

[0109] Radio access network (RAN) equipment is primarily responsible for functions such as air interface-side radio resource management, quality of service (QoS) management, data compression, and encryption. RAN equipment can include various types of base stations, such as macro base stations, micro base stations, relay stations, and access points. In systems employing different radio access technologies, the names of equipment with base station functionality may differ; for example, in NR systems, it is called a gNB.

[0110] AMF network elements are core network elements primarily responsible for functions such as access control, mobility management, attach and detach, and gateway selection. When an AMF network element provides services for a terminal device's session, it can specifically provide control plane storage resources for the session. These storage resources can be used to store the session's identifier, the identifier of the SMF network element associated with the session, etc.

[0111] SMF network elements are responsible for user plane network element selection, user plane network element redirection, Internet Protocol (IP) address allocation, bearer establishment, modification and release, and QoS control.

[0112] UPF network elements are responsible for forwarding and receiving user data in terminal devices. For example, a UPF network element can receive user data from a DN and transmit it to the terminal device through the radio access network equipment; a UPF network element can also receive user data from the terminal device through the radio access network equipment and forward it to the DN. UPF network elements provide terminal devices with service transmission resources and scheduling functions.

[0113] NEF network element: Used to support secure interaction between 3GPP networks and third-party applications.

[0114] AF network element: Used to provide services, and can also provide some third-party services to the network side.

[0115] PCF network element: responsible for policy control decisions, providing policy rules for control plane functions, and traffic-based billing control functions, etc.

[0116] NSSF network element: mainly responsible for network slice selection, determining the network slice instances that the terminal device is allowed to access based on the terminal device's slice selection auxiliary information, subscription information, etc.

[0117] UDM network elements are primarily responsible for the management of subscription data for terminal devices, including the storage and management of terminal device identifiers and access authorization for terminal devices.

[0118] AUSF network element: Supports 3GPP and non-3GPP access authentication.

[0119] NRF network elements: support the registration and discovery of network functions.

[0120] UDR network element: Stores and retrieves subscription data used by UDM network element and PCF network element.

[0121] It should be noted that each network element in the core network can also be called a functional entity or device. It can be a network element implemented on dedicated hardware, a software instance running on dedicated hardware, or an instance of virtualized function on an appropriate platform.

[0122] Figure 1 The architecture of the communication system shown is not limited to the network elements shown in the figure; it may also include other devices not shown in the figure, which will not be listed here. The embodiments of this application do not limit the distribution of each network element. Figure 1 The distribution shown is merely exemplary and is not intended to limit the scope of this application.

[0123] Figure 1 The communication system shown does not constitute a limitation on the communication systems applicable to the embodiments of this application. Figure 1 The communication system architecture shown is a 5G system architecture. Optionally, the method of this application embodiment is also applicable to various future communication systems, such as 6G or other communication networks.

[0124] For ease of explanation, all subsequent references to this application will be made to it. Figure 1 The network elements shown are used as examples for illustration, and "XX network element" is directly abbreviated as "XX". For example, the AMF network element is abbreviated as AMF, and "Radio Access Network Equipment" is abbreviated as "RAN". It should be understood that all network element names in this application are merely examples and may be referred to by other names in future communications. Alternatively, the network elements involved in this application may be replaced by other entities or devices with the same function in future communications, and this application does not limit them in any way.

[0125] To facilitate understanding of the embodiments of this application, the concepts and basic knowledge involved in the embodiments of this application will be introduced first.

[0126] 1. 5G QoS Management

[0127] In 5G systems, to ensure end-to-end service quality, a 5G QoS model based on QoS flow is proposed, which can be found here. Figure 2 As shown, this 5G QoS model supports both guaranteed bit rate (GRB) QoS flow (GBR QoS flow) and non-GBR QoS flow, and data packets controlled by the same QoS flow receive the same transmission processing (such as scheduling, admission thresholds, etc.).

[0128] A single terminal device can establish one or more PDU sessions with a 5G network; each PDU session can establish one or more QoS flows. Each QoS flow is identified by a QoS flow identifier (QFI), which uniquely identifies a QoS flow within a PDU session. Whether a QoS flow is a GBR QoS flow or a Non-GBR QoS flow is determined by the corresponding QoS profile.

[0129] For GBR QoS flows, the corresponding QoS configuration file must include the following QoS parameters: 5G QoS identifier (5QI), allocation and retention priority (ARP), guaranteed flow bit rate (GFBR), and maximum flow bit rate (MFBR). Optionally, the QoS configuration file for a GBR QoS flow may also include QoS notification control (QNC). Based on whether the QoS configuration file includes QNC, GBR QoS flows are categorized into GBR QoS flows requiring QNC and GBR QoS flows not requiring QNC. For GBR QoS flows requiring QNC, when the RAN detects that the corresponding QoS flow resources cannot be satisfied, the RAN notifies the SMF of the event, and then notifies the PCF. Furthermore, the SMF can initiate QoS flow deletion or modification procedures.

[0130] For Non-GBR QoS flows, the QoS configuration file corresponding to the Non-GBR QoS flow must include the following QoS parameters: 5QI and ARP; optionally, the QoS configuration file corresponding to the Non-GBR QoS flow may also include the Reflective QoS Attribute (RQA).

[0131] The specific QoS parameters are defined as follows:

[0132] 5QI: A scalar used to index corresponding 5G QoS features. 5QIs are categorized into standardized 5QIs, pre-configured 5QIs, and dynamically allocated 5QIs. Standardized 5QIs correspond one-to-one with a set of standardized 5G QoS feature values. Pre-configured 5QIs have their corresponding 5G QoS feature values ​​pre-configured in the access network node (AN). Dynamically allocated 5QIs have their corresponding 5G QoS features included in the QoS configuration file and sent to the AN. QoS feature values ​​include resource type (GBR and Non-GBR), priority level, packet delay budget (which can be understood as the delay of a data packet from the terminal device to the UPF), packet error rate, maximum data burst volume, and averaging window (used to calculate the rate corresponding to GBR).

[0133] ARP: includes priority level, preemption ability, and preemption ability;

[0134] RQA: Used to indicate that services using the corresponding QoS flow should use inverted QoS;

[0135] QNC: Used to indicate whether the RAN should notify the network when the GFBR cannot satisfy the QoS flow during its usage period;

[0136] GFBR: Represents the bit rate expected to be provided to the GBR QoS flow;

[0137] MFBR: Limits the bit rate provided to the GBR QoS flow, i.e., the maximum bit rate provided to the GBR QoS flow. If this bit rate is exceeded, packets can be dropped.

[0138] 5G networks can execute QoS control management processes through the signaling plane. The SMF binds service data flows (SDFs) to QoS flows based on QoS and service requirements. The SMF assigns a QoS flow identifier to the SDF for a new QoS flow based on local policies or policy and charging control (PCC) rules sent by the PCF, and calculates the QoS profile and corresponding packet detection rule (PDR) information. PCC rules include two types: dynamic PCC rules and predefined PCC rules. Dynamic PCC rules are provided to the SMF by the PCF, while predefined PCC rules are configured on the SMF. PCC rules include service data flow detection related, charging related, and policy control related. Service data flow detection related rules include the service data flow template (SDF template; packets detected by the service data flow template in a PCC rule form an SDF) and template priority. Policy control-related parameters include Gate status (whether the service data stream can be passed or dropped), authorized QoS parameters (5QI, ARP, maximum bitrate, guaranteed bitrate, etc.), QNC, and Reflective QoS Control. Among these, maximum bitrate is the maximum bit rate of the service data stream, and guaranteed bitrate is the guaranteed bit rate for the service data stream.

[0139] 2. D2D QoS Management

[0140] In 5G D2D communication, one or more PC5 links can be established between two terminal devices (UE1 and UE2, respectively). These PC5 links can be PC5 unicast links. Furthermore, each PC5 link corresponds to a pair of application layer identifiers (APP Layer IDs). For example... Figure 3 This application provides an example of a QoS model based on QoSflow in D2D communication, wherein PC5 link 1 corresponds to application layer identifier 1 and application layer identifier 2, wherein application layer identifier 1 is the application layer identifier of UE1 and application layer identifier 2 is the application layer identifier of UE2.

[0141] Each PC5 link can have one or more QoS flows, such as Figure 3In the example shown, PC5 QoS flows #1 through #3 are established in PC5 link 1. Furthermore, each PC5 QoS flow is identified by a PC5 QoS flow identifier (PFI), which uniquely identifies a PC5 QoS flow within the PC5 link. D2D QoS supports both GBR QoS flows and Non-GBR QoS flows.

[0142] PC5 QoS parameters include PQI (PC5 5QI), PC5 flow bit rate, and PC5 link aggregated bit rates. PQI is a special type of 5QI, and each PQI value corresponds one-to-one with a QoS feature value. QoS features include resource type, priority level, packet delay budget, packet error probability, maximum data burst size, and average window. PC5 flow bit rate includes guaranteed flow bit rate and maximum flow bit rate. For details on PC5 QoS parameters, please refer to the relevant explanations in the 5G QoS management section above.

[0143] For QoS management in D2D scenarios, terminal devices can obtain QoS mapping configurations from the PCF during registration. These QoS mapping configurations are included in the terminal device's policies. The QoS mapping configurations include: Configuration 1) the correspondence between service types or service requirements (priority, reliability, latency, etc.) and PC5 QoS parameters (such as PQI, MFBR / GFBR, etc.); and Configuration 2) the correspondence between PC5 QoS parameters and side link radio bearers (SLRBs). The PC5 QoS parameters are network-authorized PC5 QoS parameters. Configuration 1) can be used in scenarios where the terminal device is serving the network and scenarios where it is not, while Configuration 2 can be used in scenarios where the terminal device is not serving the network. While providing authorized PC5 QoS parameters to the terminal device, the PCF also sends these authorized PC5 QoS parameters to the RAN where the terminal device resides via the AMF. It is worth noting that the PC5 QoS parameters sent to both the terminal device and the RAN are for direct communication between the terminal devices. The PC5 QoS parameters used for direct communication between terminal devices can be understood as the PC5 link used for direct communication between terminal devices.

[0144] During link establishment or update processes, terminal devices negotiate PC5 QoS flow information and establish PC5 QoS flows. Different services with the same PC5 QoS parameters are associated with the same PC5 QoS flow. For each PC5 QoS flow, the PC5 QoS flow information includes a PC5 QoS flow identifier and the corresponding PC5 QoS parameter information. The terminal devices derive QoS rules, representing the correspondence between PC5 packet filter sets and PC5 QoS flow identifiers. PC5 packet filter sets can include any combination of service type, source layer-2 identifier (Source L2 ID) / destination layer-2 identifier (Destination L2 ID), and application layer ID. PC5 packet filter sets can also be IP packet filter sets, including any combination of source / destination IP addresses, source / destination port numbers, etc.

[0145] After negotiating PC5 QoS parameter information, the terminal device provides the RAN with PC5 QoS parameter information and link information (such as PC5 link ID or destination layer 2 identifier) ​​under network service. The terminal device then obtains the access stratum (AS) layer configuration (such as logical channel configuration or radio bearer configuration) corresponding to the PC5 QoS parameters from the RAN. The RAN authorizes the PC5 QoS parameters provided by the terminal device based on the authorized PC5 QoS parameters obtained from the PCF, and only after authorization is successful does it provide the AS layer configuration.

[0146] 3. PC5 Link Establishment

[0147] In a 5G system, a schematic diagram illustrating the process of establishing a PC5 link between two terminal devices (UE1 and UE2, respectively) can be found here. Figure 4 As shown, the PC5 link established between UE1 and UE2 can be a PC5 unicast link.

[0148] Step 401, UE1 sends a direct communication request message.

[0149] The direct communication request message includes the application layer identifier of UE2. Specifically, UE1 sends the direct communication request message using a source layer 2 identifier and a destination layer 2 identifier. This direct communication request message can be a broadcast message. The source layer 2 identifier is a layer 2 address assigned by UE1 itself, and the destination layer 2 identifier is the broadcast layer 2 address. Before UE1 sends the direct communication request message, UE2 determines the layer 2 address used to receive the direct communication request message and configures the layer 2 address of UE2 on the UE2 side.

[0150] Step 402: Establish a secure channel between UE1 and UE2.

[0151] Step 403: UE2 receives the direct communication request message broadcast by UE1, determines that the direct communication request message includes UE2's application layer identifier, and responds to the direct communication request message by sending a direct communication response message to UE1. For example, the direct communication response message can be a direct communication acceptance message. The source layer 2 identifier corresponding to this direct communication response message is the layer 2 address allocated by UE2 itself, and the destination layer 2 identifier is the layer 2 address of UE1 in step 401.

[0152] Optionally, in steps 401 and 403, UE1 and UE2 may also negotiate PC5 QoS flow information, which may include a PC5 QoS flow identifier and PC5 QoS parameter information corresponding to the PC5 QoS flow identifier.

[0153] Step 404: After the PC5 link is established between UE1 and UE2, UE1 and UE2 can transmit service data to each other. The service data can also be called sideline data, sideline service data, or proximity-based services (ProSe) data.

[0154] It should be noted that UE1 and UE2 will also be assigned PC5 link identifiers to identify the PC5 link. These PC5 link identifiers are assigned individually to each terminal device and are only used for inter-layer communication within the terminal device. Taking any terminal device, such as UE1, as an example, UE1 includes a ProSe layer and an AS layer. After the ProSe layer establishes a PC5 link with another terminal device (UE2), it sends the PC5 link identifier, the source layer 2 identifier used by the PC5 link, and the destination layer 2 identifier to the AS layer. The AS layer stores the correspondence between the PC5 link identifier, the source layer 2 identifier, and the destination layer 2 identifier. After the ProSe layer establishes the PC5 QoS flow, it sends the PC5 QoS flow identifier and the corresponding PC5 QoS parameters to the AS layer. The AS layer saves the PC5 QoS parameters corresponding to the PC5 QoS flow identifier and generates AS layer configurations (such as logical channel configuration or radio bearer configuration) based on the PC5 QoS parameters.

[0155] When UE1 sends a data packet, the ProSe layer determines the corresponding PC5 link identifier and PC5 QoS flow identifier, and sends these identifiers along with the data packet to the AS layer. The AS layer determines the source layer 2 identifier and destination layer 2 identifier based on the PC5 link identifier, and determines the AS layer configuration based on the PC5 QoS flow identifier. The AS layer then uses the source layer 2 identifier, destination layer 2 identifier, and AS layer configuration to send the corresponding data. When UE1 receives a data packet, its AS layer can receive data packets sent by all terminal devices. It determines whether the destination layer 2 identifier is its assigned L2 ID. If so, it determines that it is the data receiver and submits the packet to the upper layer for further processing; otherwise, it discards the data packet.

[0156] 4. Licensed spectrum, unlicensed spectrum, spectrum resources

[0157] Licensed spectrum: Currently, all public mobile communication networks use licensed spectrum, which is allocated and authorized by the telecommunications or frequency management authorities of various countries. Other technologies and networks are not allowed to use the licensed spectrum to ensure the quality and security of the mobile network. Transmitting services through the spectrum resources within the licensed spectrum can guarantee the reliability of the services and other requirements.

[0158] Unlicensed spectrum: The use of unlicensed spectrum is free and requires no application. Technologies such as Wireless Fidelity (WiFi) and Zigbee use unlicensed spectrum. When transmitting services through unlicensed spectrum resources, the reliability and other requirements of the services are difficult to guarantee. In this application, unlicensed spectrum may also be referred to as unlicensed spectrum.

[0159] Spectrum resource: refers to the frequency resources used to transmit radio electromagnetic waves. It can be a range of spectrum resources or certain specific frequency resources. For example, the spectrum resources in the licensed spectrum can be the frequency resources in a 100MHz bandwidth of 3500MHz-3600MHz, while the spectrum resources in the unlicensed spectrum can be the frequency resources in a 200MHz bandwidth of 5.15GHz-5.35GHz.

[0160] After a PC5 link is established between two terminal devices, the two terminal devices can transmit service data to each other through the side link. The communication method provided in this application can be used to reasonably determine the spectrum mode, so that the two terminal devices can transmit service data using the determined spectrum mode.

[0161] In this application, the two terminal devices can be a first terminal device and a second terminal device, respectively. The first terminal device can be the sender of service data, and the second terminal device can be the receiver of service data. For ease of description, the first terminal device will be referred to as UE1 and the second terminal device as UE2.

[0162] The service data transmitted between UE1 and UE2 can be referred to as the service data of the first service; the spectrum method by which UE1 and UE2 transmit the service data of the first service can be referred to as the first spectrum method. The first spectrum method can be a licensed spectrum method, an unlicensed spectrum method, or a licensed spectrum and unlicensed spectrum method. Specifically, when the first spectrum method is a licensed spectrum method, UE1 and UE2 can transmit the service data of the first service through the licensed spectrum; when the first spectrum method is an unlicensed spectrum method, UE1 and UE2 can transmit the service data of the first service through the unlicensed spectrum; when the first spectrum method is a licensed spectrum and unlicensed spectrum method, UE1 and UE2 can transmit the service data of the first service through both licensed and unlicensed spectrum. For example, UE1 can use carrier aggregation (CA) to transmit the service data of the first service with UE2 simultaneously using both licensed and unlicensed spectrum.

[0163] Figure 5 This application illustrates a communication method in which UE1 can transmit service data of a first service to UE2 using a first spectrum method based on the service information of the first service, as described below.

[0164] Step 501: UE1 obtains the service information of the first service.

[0165] Optionally, when the application layer of UE1 initiates a request for the first service, the application layer of UE1 can generate service information for the first service and send the service information to the ProSe layer of UE1. Correspondingly, the ProSe layer of UE1 can obtain the service information of the first service from the application layer of UE1.

[0166] The business information of the first business may include at least one of the following (1) to (3):

[0167] (1) PC5 QoS parameters of the first service

[0168] The PC5 QoS parameters of the first service may include one or more of the following: the PQI of the first service, or the bit rate of the first service.

[0169] (2) Business type of the first business

[0170] The service type of the first service may include one or more of the following: video, voice, or critical service, ProSe service type, provider service identifier (PSID), or intelligent transport systems application identifier (ITS-AID). The ProSe service type can be used to identify services with the ProSe service type.

[0171] (3) Business identifier of the first business

[0172] The service identifier for the first service can be either a ProSe identifier or a traffic descriptor for the first service.

[0173] The flow description of the first service can be either an IP descriptor or a domain descriptor, where the domain descriptor is, for example, a fully qualified domain name (FQDN).

[0174] Step 502: UE1 transmits the service data of the first service to UE2 using the first spectrum method based on the service information of the first service.

[0175] In this context, the transmission of service data for the first service between UE1 and UE2 can be understood as the service data of the first service being carried on the side link between UE1 and UE2. In this application, the side link between UE1 and UE2 can be a PC5 link, a Layer-2 link, or a PC5 unicast link.

[0176] In the above technical solution, UE1 can transmit the service data of the first service to UE2 using the first spectrum method according to the service information of the first service. In this way, UE1 and UE2 can transmit service data through a spectrum method that is more suitable for the service characteristics, which helps to better meet service needs and make reasonable use of licensed and unlicensed spectrum.

[0177] Optionally, in the first implementation scenario of the above embodiments, the method further includes: UE1 determining the first spectrum mode based on the service information of the first service.

[0178] Specifically, UE1 can determine the first spectrum mode based on the correspondence between service information and spectrum mode, as well as the service information of the first service. The correspondence between service information and spectrum mode is explained below:

[0179] The spectrum mode in this correspondence can include one or more of the following: licensed spectrum mode, unlicensed spectrum mode, licensed and unlicensed spectrum mode, priority licensed spectrum mode, or priority unlicensed spectrum mode. The licensed spectrum mode, unlicensed spectrum mode, and licensed and unlicensed spectrum mode can all be referred to in the description of the first spectrum mode above. The explanation of priority licensed spectrum mode and priority unlicensed spectrum mode is as follows:

[0180] The priority licensed spectrum method can be understood as follows: UE1 and UE2 can transmit service data through either licensed or unlicensed spectrum, but the licensed spectrum method is preferred. For example, UE1 can first determine whether to transmit service data through the licensed spectrum method. If so, it will transmit the service data through the licensed spectrum method; otherwise, UE1 can transmit the service data through the unlicensed spectrum method. The implementation method for UE1 to determine whether to transmit service data through the licensed spectrum method can be found in the following embodiments.

[0181] The "preferential unlicensed spectrum mode" means that UE1 and UE2 can transmit service data via either unlicensed or licensed spectrum, but the unlicensed spectrum mode is preferred. For example, UE1 can first determine whether to transmit service data via unlicensed spectrum. If so, it will transmit the service data via unlicensed spectrum; otherwise, UE1 can transmit the service data via licensed spectrum. The implementation method for UE1 to determine whether to transmit service data via unlicensed spectrum is described in the following embodiments.

[0182] The service information in this correspondence may include one or more of the following: PC5 QoS parameters, service type, and service identifier. For a detailed description, please refer to the service information of the first service mentioned above. It will not be repeated here.

[0183] Based on the service information in the corresponding relationship, which is PC5 QoS parameters, service type, or service identifier, the following are examples of three possible implementation methods:

[0184] In the first possible implementation, the service information in the correspondence can be PC5 QoS parameters.

[0185] The service information in the correspondence can specifically be the PQI in the PC5 QoS parameters, that is, PQI can correspond to a spectrum mode. Referring to the example shown in Table 1, which includes five service information items, these five service information items can specifically include PQI=90, PQI=91, PQI=58, PQI=59, and PQI=70. Furthermore, each service information item (i.e., each PQI) can correspond to its respective spectrum mode; for example, PQI=90 corresponds to the licensed spectrum mode, and PQI=59 corresponds to the preferred unlicensed spectrum mode.

[0186] Table 1

[0187] Business Information Spectrum method PQI = 90 Licensed spectrum method PQI = 91 Priority grant spectrum method PQI = 58 Unlicensed spectrum method PQI = 59 Priority unlicensed spectrum method PQI = 70 Licensed spectrum and unlicensed spectrum

[0188] It should be noted that Table 1 is only an illustrative example. Each piece of service information in the correspondence may also include multiple PQIs. For example, if the service information includes PQI=90 and PQI=91, these PQI=90 and PQI=91 may correspond to the licensed spectrum method; if the service information includes PQI=58 and PQI=59, these PQI=58 and PQI=59 may correspond to the unlicensed spectrum method; or, the service information in the correspondence may also be a PQI range. For example, if the service information includes the PQI range [90-93], this PQI range [90-93] may correspond to the licensed spectrum method; if the service information includes the PQI range [58-60], this PQI range [58-60] may correspond to the unlicensed spectrum method. Alternatively, each piece of service information in the correspondence may correspond to multiple spectrum modes. For example, PQI=90 may correspond to a licensed spectrum mode, or a licensed spectrum mode and an unlicensed spectrum mode; PQI=91 may correspond to a priority licensed spectrum mode, or a licensed spectrum mode and an unlicensed spectrum mode. It should be noted that this description also applies to the relevant examples in Tables 2 to 5 below. That is, the correspondence in Tables 2 to 5 below are also exemplary descriptions and do not constitute a limitation of this application.

[0189] Furthermore, the service information in the correspondence can specifically be the bit rate in the PC5 QoS parameters, meaning the bit rate can correspond to the spectrum mode. For example, GBR can correspond to licensed spectrum mode, or preferred licensed spectrum mode, or licensed and unlicensed spectrum mode; another example is Non-GBR, which can correspond to unlicensed spectrum mode, or preferred unlicensed spectrum mode, etc.

[0190] In the second possible implementation, the business information in the mapping relationship can be a business type, that is, a business type can correspond to a spectrum mode. For example, the business type in the mapping relationship may include video, critical services, ProSe service type, and service provider service identifier. Specifically, video can correspond to an unlicensed spectrum mode, or a preferred unlicensed spectrum mode, or a licensed spectrum and unlicensed spectrum mode; critical services can correspond to a licensed spectrum mode, or a preferred licensed spectrum mode, or a licensed spectrum and unlicensed spectrum mode; the ProSe service type can correspond to a preferred unlicensed spectrum mode; and the service provider service identifier can correspond to a licensed spectrum mode, or a preferred licensed spectrum mode.

[0191] The example shown in Table 2 illustrates five business information items, which can be Video 1, Video 2, Key Business 1, ProSe Business Type 1, and Service Provider Business Identifier 1. For example, in Table 2, Video 1 corresponds to the unlicensed spectrum method, and Video 2 corresponds to the priority unlicensed spectrum method.

[0192] Table 2

[0193] Business Information Spectrum method Video 1 Unlicensed spectrum method Video 2 Priority unlicensed spectrum method Key Business 1 Licensed spectrum and unlicensed spectrum ProSe Business Type 1 Priority unlicensed spectrum method Service Provider Business Identifier 1 Priority grant spectrum method

[0194] In the third possible implementation, the service information in the correspondence can be a service identifier, that is, the service identifier can correspond to a spectrum mode. For example, the service identifier in the correspondence can include a stream description. Referring to the exemplary correspondence explanation in Table 3, which includes five pieces of service information, these five pieces of service information can be stream description 1 to stream description 5, where stream description 1 corresponds to a licensed spectrum mode, stream description 2 corresponds to an unlicensed spectrum mode, stream description 3 corresponds to both licensed and unlicensed spectrum modes, and so on.

[0195] Table 3

[0196] Business Information Spectrum method Flow Description 1 Licensed spectrum method Flow Description 2 Unlicensed spectrum method Flow Description 3 Licensed spectrum and unlicensed spectrum Flow Description 4 Priority grant spectrum method Flow Description 5 Priority unlicensed spectrum method

[0197] It should be noted that the service information in this mapping relationship may also include multiple parameters such as PC5 QoS parameters, service type, and service identifier. For example, the service information in the mapping relationship may include PC5 QoS parameters and service type, or PC5 QoS parameters, service type, and service identifier, etc. The following example illustrates this using PC5 QoS parameters and service type as examples, where the PC5 QoS parameter is PQI and the service type is video or critical service. For details, please refer to the fourth and fifth possible implementation methods below.

[0198] In the fourth possible implementation, the PC5 QoS parameters and service types can each correspond to their respective spectrum allocation methods. Referring to the exemplary correspondence shown in Table 4, which includes five service information items, these five items include three PC5 QoS parameters and two service types. The three PC5 QoS parameters are specifically PQI=90, PQI=91, and PQI=58, and the two service types are specifically Video 1 and Critical Service 1. Furthermore, each service information item (PC5 QoS parameter or service type) can correspond to its respective spectrum allocation method; for example, PQI=90 corresponds to the licensed spectrum allocation method, and Video 1 corresponds to the unlicensed spectrum allocation method.

[0199] Table 4

[0200] Business Information Spectrum method PQI = 90 Licensed spectrum method PQI = 91 Priority grant spectrum method PQI = 58 Unlicensed spectrum method Video 1 Unlicensed spectrum method Key Business 1 Licensed spectrum method

[0201] In the fifth possible implementation, the service information in the correspondence includes PC5 QoS parameters and service type, both of which can correspond to spectrum mode. Referring to the exemplary correspondence shown in Table 5, this table includes two pieces of service information, which can be represented as PQI=90 and Key Service 1, and PQI=91 and Video 1, respectively. Further, PQI=90 and Key Service 1 can correspond to licensed spectrum mode; PQI=91 and Video can correspond to licensed spectrum and unlicensed spectrum mode.

[0202] Table 5

[0203] Business Information Spectrum method PQI = 90 and Key Business 1 Licensed spectrum method PQI=91 and Video 1 Licensed spectrum and unlicensed spectrum

[0204] Of course, the first to fifth possible implementations of the correspondence relationship described above are only used to explain the correspondence relationship in this application and are not sufficient to limit this application. The correspondence relationship in this application may also be in other forms.

[0205] The aforementioned correspondence can be pre-configured in UE1, or obtained by UE1 from the application server, or obtained by UE1 from the core network equipment (such as PCF), without any restrictions.

[0206] For example, UE1 can obtain this mapping relationship from the PCF during the registration process. Specifically, UE1 sends a 5G ProSe capability to the AMF, the AMF transfers the 5G ProSe capability to the PCF, and the PCF responds by sending a mapping relationship to UE1 in response to the 5G ProSe capability. Furthermore, this mapping relationship can be generated by the PCF, or obtained by the PCF from the AF or UDR.

[0207] Based on the above description of the correspondence, the following explains how UE1 determines two specific implementation scenarios for the first spectrum method according to the correspondence between service information and spectrum mode, as well as the service information of the first service:

[0208] In the first specific implementation scenario, UE1 can determine the first spectrum method based on the correspondence between the service information of the first service and the first spectrum method, as well as the service information of the first service.

[0209] This means that the service information of the first service in the correspondence corresponds to either a licensed spectrum method, an unlicensed spectrum method, or a licensed spectrum and an unlicensed spectrum method. UE1 can use the spectrum method corresponding to the service information of the first service in the correspondence as the first spectrum method.

[0210] Referring to the examples in Table 1, if the service information of the first service includes PQI=90, then UE1 can determine that the first spectrum mode is the licensed spectrum mode based on PQI=90 and the corresponding relationship; or referring to the examples in Table 2, if the service information of the first service includes video 1, then UE1 can determine that the first spectrum mode is the unlicensed spectrum mode based on video 1 and the corresponding relationship; or referring to the examples in Table 3, if the service information of the first service includes stream description 1, then UE1 can determine that the first spectrum mode is the licensed spectrum mode based on stream description 1 and the corresponding relationship.

[0211] In this application, the ProSe layer of UE1 can obtain service information of the first service from the application layer, as well as the correspondence between the service information and the spectrum mode. In the first specific implementation scenario, UE1 determines that the first spectrum mode can be implemented by either the ProSe layer or the AS layer of UE1, and can refer to the following two methods:

[0212] Method 1: The ProSe layer determines the first spectrum method based on the service information and corresponding relationships of the first service;

[0213] Method 2: The AS layer obtains the service information and corresponding relationship of the first service from the ProSe layer, and the AS layer determines the first spectrum method based on the service information and corresponding relationship of the first service.

[0214] In the second specific implementation scenario, UE1 determines the second spectrum method based on the correspondence between the service information of the first service and the second spectrum method, as well as the service information of the first service; UE1 then determines the first spectrum method based on the second spectrum method and the first information.

[0215] This means that the service information of the first service in the correspondence corresponds to the priority licensed spectrum method or the priority unlicensed spectrum method. UE1 can determine the second spectrum method based on the service information of the first service and the correspondence. The second spectrum method is the priority licensed spectrum method or the priority unlicensed spectrum method.

[0216] Referring to the examples in Table 1, if the service information of the first service includes PQI=91, then UE1 can determine the second spectrum method as the priority licensed spectrum method based on PQI=91 and the corresponding relationship; or referring to the examples in Table 2, if the service information of the first service includes video 2, then UE1 can determine the second spectrum method as the priority unlicensed spectrum method based on video 2 and the corresponding relationship; or referring to the examples in Table 3, if the service information of the first service includes stream description 4, then UE1 can determine the second spectrum method as the priority licensed spectrum method based on stream description 4 and the corresponding relationship.

[0217] Furthermore, UE1 can determine the first spectrum mode based on the second spectrum mode and the first information.

[0218] The first information may include at least one of the following (a) to (d):

[0219] (a) Usage status of licensed spectrum resources: may include the utilization rate and / or idle rate of licensed spectrum resources;

[0220] (b) Usage status of unlicensed spectrum resources: This may include the utilization rate and / or idle rate of unlicensed spectrum resources;

[0221] (c) Recommended spectrum scheme: This refers to the spectrum scheme recommended by the network device (e.g., RAN or core network device) to UE1, wherein the recommended spectrum scheme can be one or more of licensed spectrum scheme, unlicensed spectrum scheme, or licensed and unlicensed spectrum scheme; or,

[0222] (d) Authorized spectrum method: also known as permitted spectrum method, that is, the authorized spectrum method that the network device (such as RAN or core network device) authorizes or allows UE1 to use. The authorized spectrum method can be one or more of authorized spectrum method, unauthorized spectrum method, or authorized spectrum and unauthorized spectrum method.

[0223] In this approach, UE1 can determine the first spectrum method more flexibly and reasonably based on one or more of the following: the usage status of authorized spectrum resources, the usage status of unauthorized spectrum resources, the suggested spectrum method, and the authorized spectrum method, combined with the second spectrum method.

[0224] Furthermore, the UE can obtain the first information in the following two possible ways:

[0225] Possible mode 1: UE1 can receive the first information from the network device.

[0226] The first information may include at least one of the following (a) to (d): (a) the usage status of licensed spectrum resources, (b) the usage status of unlicensed spectrum resources, (c) the proposed spectrum arrangement, and (d) the licensed spectrum arrangement.

[0227] Specifically, UE1 can receive first information from the network device. This first information can be obtained by UE1 after requesting it from the network device, or it can be actively sent to UE1 by the network device. The network device can be a RAN or a core network device, such as a PCF.

[0228] Please refer to the following three examples for details:

[0229] Example 1: UE1 can receive a suggested spectrum allocation from the RAN. In one specific implementation, the RAN can determine the suggested spectrum allocation based on the usage status of licensed or unlicensed spectrum resources in UE1's serving cell and send the suggested allocation to UE1. For example, if the RAN knows that the idle rate of licensed spectrum resources in UE1's serving cell is less than or equal to a first idle rate threshold, the RAN suggests an unlicensed spectrum allocation to UE1; or, if the RAN knows that the idle rate of licensed spectrum resources in UE1's serving cell is greater than the first idle rate threshold, the RAN suggests a licensed spectrum allocation to UE1.

[0230] Example 2: UE1 can receive the usage status of licensed spectrum resources from the RAN, and / or UE1 can receive the usage status of unlicensed spectrum resources from the RAN.

[0231] Example 3: UE1 can receive licensed spectrum modes from the RAN or core network equipment. It should be understood that the RAN or core network equipment can also instruct UE1 not to use one or more spectrum modes. For example, if the RAN licenses a licensed spectrum mode to UE1, then the RAN instructs UE1 not to use unlicensed spectrum modes, or not to use either licensed or unlicensed spectrum modes. In other implementations, the licensed spectrum mode can be replaced with a prohibited or unlicensed spectrum mode; the following examples all use licensed spectrum modes.

[0232] Possible method 2: UE1 can monitor resources in the resource pool to obtain initial information.

[0233] The first information may include at least one of the following (a) or (b): (a) the usage status of licensed spectrum resources, and (b) the usage status of unlicensed spectrum resources.

[0234] Please refer to the following two examples for details:

[0235] Example 1: UE1 can monitor the licensed spectrum resources in the resource pool to obtain the utilization rate and / or idle rate of the licensed spectrum resources. For example, if the resource pool includes 10MHz of licensed spectrum resources, and UE1 monitors that 1MHz of licensed spectrum resources are available or idle, UE1 determines that the utilization rate of the licensed spectrum resources is 90% or the idle rate of the licensed spectrum resources is 10%.

[0236] Example 2: UE1 can monitor unlicensed spectrum resources in the resource pool to obtain the utilization rate and / or idle rate of the unlicensed spectrum resources. For example, if the resource pool includes 50MHz of unlicensed spectrum resources, and UE1 monitors that 10MHz of unlicensed spectrum resources are available or idle, UE1 determines that the utilization rate of the unlicensed spectrum resources is 40% or the idle rate of the unlicensed spectrum resources is 60%.

[0237] In this application, UE1 determines the first spectrum mode based on the second spectrum mode and the first information, and at least the following examples are provided:

[0238] Example 1: If the second spectrum mode is the priority licensed spectrum mode and the idle rate of the licensed spectrum resources is greater than the first idle rate threshold, UE1 determines the first spectrum mode as the licensed spectrum mode.

[0239] Example 2: If the second spectrum mode is the preferred unlicensed spectrum mode and the idle rate of the unlicensed spectrum resources is greater than the second idle rate threshold, UE1 determines that the first spectrum mode is the unlicensed spectrum mode.

[0240] Example 3: If the second spectrum mode is the preferred licensed spectrum mode and the recommended spectrum mode is the licensed spectrum mode, UE1 determines the first spectrum mode as the licensed spectrum mode.

[0241] Example 4: If the second spectrum mode is the preferred unlicensed spectrum mode and the recommended spectrum mode is the unlicensed spectrum mode, UE1 determines that the first spectrum mode is the unlicensed spectrum mode.

[0242] Example 5: If the second spectrum mode is the preferred licensed spectrum mode and the licensed spectrum mode is the licensed spectrum mode, UE1 determines that the first spectrum mode is the licensed spectrum mode.

[0243] Example 6: If the second spectrum mode is the preferred unlicensed spectrum mode and the licensed spectrum mode is the unlicensed spectrum mode, UE1 determines that the first spectrum mode is the unlicensed spectrum mode.

[0244] Of course, there may be situations in this application where the second spectrum method conflicts with the first information, as can be seen in Examples 7 to 9.

[0245] Example 7: If the second spectrum method is a preferred licensed spectrum method, but the recommended spectrum method is an unlicensed spectrum method, UE1 can compare the priorities of the two. For example, if the priority of the second spectrum method is higher than the priority of the recommended spectrum method, then UE1 can determine that the first spectrum method is a licensed spectrum method. Alternatively, if the recommended spectrum method is taken as the standard, then UE1 can determine that the first spectrum method is an unlicensed spectrum method.

[0246] Example 8: The second spectrum mode is the priority licensed spectrum mode, but the licensed spectrum mode is the unlicensed spectrum mode. UE1 can determine that the first spectrum mode is the unlicensed spectrum mode.

[0247] Example 9: The second spectrum mode is the priority licensed spectrum mode, but if the idle rate of the licensed spectrum resources is less than or equal to the first idle rate threshold, UE1 can determine that the first spectrum mode is the unlicensed spectrum mode.

[0248] It should be noted that Examples 1 to 9 above are merely illustrative of how UE1 determines the first spectrum mode based on the second spectrum mode and the first information. There are other implementation methods in this application, which will not be elaborated here.

[0249] In this application, the ProSe layer of UE1 can obtain service information of the first service from the application layer, as well as the correspondence between the service information and the spectrum method. The AS layer of UE1 can receive the first information from the RAN or core network equipment, or obtain the first information by monitoring unlicensed spectrum resources and / or licensed spectrum resources in the resource pool.

[0250] In the second specific implementation scenario, the method for determining the first spectrum can be implemented by the ProSe layer or the AS layer of UE1, and can be referred to the following three methods:

[0251] Method 1: The ProSe layer determines the second spectrum method based on the service information and corresponding relationships of the first service; the AS layer obtains the second spectrum method from the ProSe layer, and the AS layer determines the first spectrum method based on the second spectrum method and the first information.

[0252] Method 2: The ProSe layer determines the second spectrum method based on the service information and corresponding relationships of the first service; the ProSe layer obtains the first information from the AS layer, and determines the first spectrum method based on the second spectrum method and the first information.

[0253] Method 3: The AS layer obtains the service information and corresponding relationship of the first service from the ProSe layer. Based on the service information and corresponding relationship of the first service, the AS layer determines the second spectrum method. Based on the second spectrum method and the first information, the AS layer determines the first spectrum method.

[0254] Optionally, in the second implementation scenario of the above embodiments, UE1 can transmit the service data of the first service to UE2 using the first spectrum method after obtaining the service information of the first service (without needing to determine the first spectrum method based on the service information of the first service). In this implementation scenario, the service information of the first service can be the service identifier of the first service. For example, service identifier 1 is bound to the licensed spectrum method, service identifier 2 is bound to the unlicensed spectrum method, and service identifier 3 is bound to both licensed and unlicensed spectrum methods. Thus, if UE1 needs to send the service data of a certain service, it directly transmits the service data to UE2 according to the spectrum method bound to the service. For example, if the service identifier of the first service is service identifier 1, then UE1 uses the licensed spectrum method to transmit the service data of the first service to UE2.

[0255] Optionally, in the third implementation scenario of the above embodiments, the method further includes: UE1 sending second information to UE2; wherein the second information is used to instruct UE1 to transmit the service data of the first service using a first spectrum method.

[0256] Based on the different information carried in the second message, there are two possible examples:

[0257] In the first possible example, the second information includes an identifier of the first spectrum mode. UE1 sends the second information and the service identifier of the first service to UE2. Accordingly, UE2 can transmit the service data of the first service using the first spectrum mode according to the identifier of the first spectrum mode included in the second information and the service identifier of the first service.

[0258] In the second possible example, the second information includes the service identifier of the first service and the identifier of the first spectrum mode. UE1 sends the second information to UE2. Accordingly, UE2 can transmit the service data of the first service using the first spectrum mode according to the service identifier of the first service and the identifier of the first spectrum mode included in the second information.

[0259] The second piece of information can be carried in a PC5 signaling message, which can be transmitted via the side link between UE1 and UE2. The following explanation uses the second possible example:

[0260] The second information can be a notification message, which can be used to notify UE2 that UE1 transmits service data of the first service to UE2 through the first spectrum method.

[0261] Alternatively, the second piece of information can be a request message, which UE1 can use to request UE2 whether the service data of the first service can be transmitted via the first spectrum. After receiving the request message, UE2 sends a response message to UE1, which can be an acceptance response or a rejection response.

[0262] The accept response can be used to instruct UE2 to accept the transmission of service data with UE1 via the first spectrum method; the reject response can be used to instruct UE2 to reject the transmission of service data with UE1 via the first spectrum method. For example, the response message can be a single bit, where a value of 1 indicates an accept response and a value of 0 indicates a reject response. For example, both the request and response messages can be PC5 signaling messages, transmitted via the side link between UE1 and UE2. Request messages can be such as direct communication request messages, and response messages can be such as direct communication accept messages.

[0263] In one possible approach, UE2 may also determine the spectrum mode (which may be referred to as the third spectrum mode) for transmitting the service data of the first service based on the service information and correspondence of the first service. UE2 may determine whether to transmit the service data of the first service with UE1 through the first spectrum mode based on the third spectrum mode, as well as the identifier of the first spectrum mode and the service identifier of the first service in the request message, and then UE2 may send a rejection response or an acceptance response to UE1.

[0264] It can be understood that UE2 may also have a pre-configured mapping between service information and spectrum mode. The pre-configured mapping in UE2 may be the same as or different from the pre-configured mapping in UE1. Correspondingly, the third spectrum mode determined by UE2 may be the same as or different from the first spectrum mode indicated by UE1. For example, if the first spectrum mode determined by UE1 is a licensed spectrum mode, the third spectrum mode determined by UE2 is also a licensed spectrum mode. UE1 sends a request message to UE2. Based on the identifier of the first spectrum mode and the service identifier of the first service in the request message, UE2 determines that the third spectrum mode is the same as the first spectrum mode, and UE2 sends an acceptance response to UE1.

[0265] Furthermore, the response message sent by UE2 to UE1 may also include an identifier for the third spectrum mode, allowing UE2 to inform UE1 that UE2 can currently transmit service data of the first service with UE1 via the third spectrum mode. For example, if UE1 determines the first spectrum mode as the licensed spectrum mode, and UE2 determines the third spectrum mode as the licensed spectrum mode as well, UE1 can send a request message to UE2. This request message includes the service identifier of the first service and the identifier of the first spectrum mode, where the identifier of the first spectrum mode indicates the licensed spectrum mode. After receiving this request message, UE2 sends a response message to UE1. This response message includes the service identifier of the first service and the identifier of the third spectrum mode, which also indicates the licensed spectrum mode. Accordingly, UE1 determines from the response message that UE2 can transmit service data of the first service with UE1 via the first spectrum mode (i.e., the licensed spectrum mode).

[0266] It should be added that, in the case where the first spectrum mode is unlicensed spectrum mode, or both licensed and unlicensed spectrum mode, UE1 can not only send the second information to UE2, but also send information about the first unlicensed spectrum resource to UE2. This information about the first unlicensed spectrum resource can be used to instruct UE1 and UE2 to transmit service data of the first service through the first unlicensed spectrum resource. Correspondingly, after receiving the second information, UE2 can listen to the first unlicensed spectrum resource to receive service data of the first service from UE1.

[0267] In this implementation, the unlicensed spectrum may include multiple unlicensed frequency bands. UE1 can select one of these unlicensed frequency bands and send the identifier or number of that unlicensed frequency band to UE2. This unlicensed frequency band is the first unlicensed spectrum resource, and its identifier or number represents the information of that first unlicensed spectrum resource. For example, the unlicensed spectrum may include unlicensed frequency band 1 (e.g., 5.15GHz-5.35GHz) and unlicensed frequency band 2 (e.g., 5.725GHz-5.85GHz). UE1 can select unlicensed frequency band 1 as the first unlicensed spectrum resource, and then UE1 sends the identifier or number of unlicensed frequency band 1 to UE2.

[0268] In the process of selecting one unlicensed frequency band from multiple unlicensed frequency bands, UE1 can randomly select one from the multiple unlicensed frequency bands; or UE1 can obtain the utilization rate and / or idle rate of spectrum resources in each unlicensed frequency band and select an unlicensed frequency band with a relatively low utilization rate or a relatively high idle rate. In another example, UE1 can also determine the resource location of a first unlicensed spectrum resource from multiple unlicensed frequency bands and send the resource location of the first unlicensed spectrum resource to UE2. In addition, UE1 can also send the information of the first unlicensed spectrum resource to UE2 without sending a second information to UE2. Accordingly, UE2 receives service data of the first service from UE1 based on the information of the first unlicensed spectrum resource.

[0269] In this way, UE2 can listen only to whether there is service data of the first service on the first unlicensed spectrum resource, without having to listen to resources on all unlicensed spectrum resources, thereby helping to reduce the power consumption of UE2.

[0270] Furthermore, the sidelink between UE1 and UE2 may include multiple QoS flows, and the service data transmitted between UE1 and UE2 can be carried in one of the QoS flows (which can be referred to as the first QoS flow). In this case, the transmission of the first service's service data between UE1 and UE2 using the first spectrum mode can be understood as: UE1 and UE2 transmit the first QoS flow using the first spectrum mode in the sidelink, where the first QoS flow carries the service data of the first service. Thus, the multiple QoS flows between UE1 and UE2 can each carry service data corresponding to different service information, and different QoS flows can correspond to different spectrum modes, thereby helping to improve the flexibility of service data transmission.

[0271] In this implementation, UE1 can associate the first service with the first QoS flow according to the first spectrum mode and the spectrum mode corresponding to the first QoS flow, so that when UE1 sends the service data of the first service to UE2, the service data of the first service can be carried in the first QoS flow.

[0272] Specifically, UE1 can associate the first service with the first QoS flow in the following two possible ways:

[0273] It should be noted beforehand that the QoS flows included in the sidelinks of UE1 and UE2 may correspond to their respective spectrum modes. For example, a certain QoS flow may correspond to a licensed spectrum mode, or an unlicensed spectrum mode, or both. The spectrum mode corresponding to a QoS flow indicates the spectrum mode used to transmit that QoS flow. For example, if the spectrum mode corresponding to a QoS flow is a licensed spectrum mode, then the QoS flow will be transmitted using the licensed spectrum mode.

[0274] In one possible approach, UE1 can first determine whether there exists a QoS flow corresponding to (or associated with) the first spectrum method among the multiple QoS flows included in the sidelink, based on the first spectrum method and the spectrum methods corresponding to the multiple QoS flows in the sidelink. If it exists, the QoS flow corresponding to the first spectrum method is selected as the first QoS flow; if it does not exist, a new QoS flow is generated based on the first spectrum method, and this new QoS flow corresponds to the first spectrum method; this new QoS flow is the first QoS flow. Then, UE1 associates the first service with this first QoS flow.

[0275] In a second possible approach, UE1 can generate a first QoS flow based on a first spectrum method, wherein the first QoS flow corresponds to (or is associated with) the first spectrum method. Then, UE1 associates the first service with this first QoS flow.

[0276] In this application, the first QoS flow corresponds to the first spectrum method, and there are two possible examples:

[0277] In one example, the spectrum mode corresponding to the first QoS flow is the same as the first spectrum mode. For example, if the spectrum mode corresponding to the first QoS flow is licensed spectrum mode, the first spectrum mode is also licensed spectrum mode; or, if the spectrum mode corresponding to the first QoS flow is unlicensed spectrum mode, the first spectrum mode is also unlicensed spectrum mode; or, if the spectrum mode corresponding to the first QoS flow is licensed spectrum mode and unlicensed spectrum mode, the first spectrum mode is also licensed spectrum mode and unlicensed spectrum mode, and so on. UE1 can determine that the first QoS flow corresponds to the first spectrum mode.

[0278] In another example, the spectrum mode corresponding to the first QoS flow includes the first spectrum mode. For example, the spectrum mode corresponding to the first QoS flow is licensed spectrum and unlicensed spectrum mode, and the first spectrum mode is licensed spectrum mode; or, the spectrum mode corresponding to the first QoS flow is licensed spectrum and unlicensed spectrum mode, and the first spectrum mode is unlicensed spectrum mode. UE1 can determine that the first QoS flow corresponds to the first spectrum mode.

[0279] It should be further noted that the first QoS flow not only corresponds to the first spectrum method, but also needs to meet the PC5 QoS parameters of the first service.

[0280] When the service information of the first service includes the PC5 QoS parameters of the first service, UE1 can first determine the first spectrum mode based on the PC5 QoS parameters and corresponding relationships of the first service, and then select the QoS flow that corresponds to the first spectrum mode and satisfies the PC5 QoS parameters of the first service from the side link as the first QoS flow.

[0281] Furthermore, UE1 can associate services corresponding to the same PC5 QoS parameters into the same QoS flow. In other words, if different services correspond to the same PC5 QoS parameters, then the different services can be associated into the same QoS flow, and the same QoS flow can carry the service data corresponding to the different services respectively.

[0282] When the service information of the first service includes the service type of the first service, UE1 can first determine the first spectrum mode according to the service type and corresponding relationship of the first service, and then select the QoS flow that corresponds to the first spectrum mode and meets the PC5 QoS parameters of the first service from the side link as the first QoS flow.

[0283] Furthermore, different types of services may correspond to different first spectrum methods even when they correspond to the same PC5 QoS parameters, which means they may be associated with different QoS flows. It can also be understood that different services that can be associated with the same QoS flow must have the same PC5 QoS parameters and the same correspondence between service type and spectrum method.

[0284] In this possible approach, the second information may include an identifier of the first spectrum mode. UE1 sends the second information and an identifier of the first QoS flow to UE2. Accordingly, UE2 can transmit the first QoS flow using the first spectrum mode based on the identifier of the first spectrum mode and the identifier of the first QoS flow included in the second information. Alternatively, the second information may include an identifier of the first QoS flow and an identifier of the first spectrum mode. UE1 sends the second information to UE2, and UE2 can transmit the first QoS flow using the first spectrum mode based on the identifier of the first QoS flow and the identifier of the first spectrum mode included in the second information. Further, the first QoS flow may specifically be a PC5 QoS flow.

[0285] Optionally, in step 502, UE1 transmits the service data of the first service with UE2 using a first spectrum method. Specifically, UE1 may request spectrum resources corresponding to the first spectrum method from the RAN, and then UE1 sends the service data of the first service to UE2 according to the requested spectrum resources; or UE1 may listen for and preempt the spectrum resources corresponding to the first spectrum method, and then UE1 sends the service data of the first service to UE2 according to the preempted spectrum resources. Correspondingly, UE2 can perform detection on the spectrum resources corresponding to the first spectrum method to receive the service data of the first service from UE1. The following examples illustrate two implementation methods for UE1 to transmit the service data of the first service with UE2 using the first spectrum method:

[0286] In Implementation Method 1, when the first spectrum mode is licensed spectrum mode, UE1 sends a resource request message to the RAN, requesting licensed spectrum resources for transmitting service data of the first service between UE1 and UE2. Accordingly, the RAN allocates licensed spectrum resources to UE1 based on the resource request message and indicates the resource location (e.g., time-frequency resource location information) of the licensed spectrum resources to UE1. UE1 then transmits the service data of the first service to UE2 on the licensed spectrum resources corresponding to that resource location. In this implementation method, if UE1 fails to request licensed spectrum resources from the RAN, the RAN can also allocate unlicensed spectrum resources to UE1. UE1 then transmits the service data of the first service with UE2 based on the unlicensed spectrum resources allocated by the RAN.

[0287] In implementation method 2, when the first spectrum mode is unlicensed spectrum mode, UE1 listens for and preempts unlicensed spectrum resources in the resource pool to determine the resource location of the unlicensed spectrum resource used to transmit the service data of the first service. UE1 then transmits the service data of the first service with UE2 on the unlicensed spectrum resource corresponding to that resource location.

[0288] Optionally, before step 502, UE1 may also send PC5 QoS parameters and link information to the RAN, where the link information may be, for example, a PC5 link identifier or a destination layer 2 identifier. The RAN sends AS layer configuration to UE1 based on the PC5 QoS parameters and link information. Specifically, the RAN authorizes the PC5 QoS parameters provided by the UE based on the authorized PC5 QoS parameters obtained from the PCF, and after authorization, sends the AS layer configuration corresponding to the PC5 QoS parameters and link information to UE1. In this step, UE1 may also send an identifier of a first spectrum mode to the RAN, and the RAN determines whether to reserve authorized or unauthorized spectrum resources for the transmission of service data of the first service between UE1 and UE2 based on the identifier of the first spectrum mode.

[0289] To better explain the embodiments of this application, Figure 6 This application provides an exemplary implementation method for UE1 and UE2 to transmit service data of the first service in a specific application scenario.

[0290] Step 601: UE1 sends 5G proximity service capabilities to PCF. Specifically, UE1 sends 5G proximity service capabilities to PCF via AMF during the registration process.

[0291] Step 602: The PCF sends the correspondence between service information and spectrum mode to UE1. Specifically, the PCF sends the correspondence between service information and spectrum mode to UE1 through the AMF.

[0292] Step 603: The RAN broadcasts the first information. Correspondingly, UE1 receives the first information. This step can also be replaced by: UE1 requesting the first information from the RAN, and the RAN then sending the first information to UE1.

[0293] Step 604: UE1 determines the first spectrum mode based on the service information of the first service.

[0294] For example, UE1 determines the first spectrum mode based on the correspondence between service information and spectrum mode, as well as the service information of the first service.

[0295] For another example, UE1 determines the second spectrum method based on the correspondence between service information and spectrum method, as well as the service information of the first service; UE1 then determines the first spectrum method based on the second spectrum method and the first information.

[0296] Step 605: UE1 sends a request message to UE2, which includes the identifier of the first QoS flow and the identifier of the first spectrum mode.

[0297] In step 606, UE2 responds to UE1's request message by sending a response message to UE1. The response message includes an identifier for the first QoS flow and an identifier for the first spectrum mode. It can be understood that this response message instructs UE2 to accept the transmission of the first QoS flow with UE1 via the first spectrum mode.

[0298] Step 607: UE1 sends an information report to the RAN. The information report includes the identifier of the first spectrum mode, PC5 QoS parameters, and link information, such as a PC5 link identifier or a destination layer 2 identifier. The RAN stores the identifier of the first spectrum mode, PC5 QoS parameters, and link information.

[0299] Step 608: RAN sends AS layer configuration to UE1.

[0300] Step 609: UE1 transmits a first QoS flow with UE2 using a first spectrum method, wherein the first QoS flow carries the service data of the first service.

[0301] It should be noted that step 603 is an optional step. In the correspondence between service information and spectrum mode, if the service information of the first service corresponds to the second spectrum mode, then the RAN can send the first information to the UE1.

[0302] Furthermore, in step 602, the PCF can also send the authorized spectrum mode of UE1 to UE1. Specifically, in the correspondence between service information and spectrum mode, if the service information of the first service corresponds to the second spectrum mode, the PCF can send the authorized spectrum mode of UE1 to UE1, where the authorized spectrum mode is the first information. This first information is used by UE1 to determine the first spectrum mode in step 604.

[0303] It should also be pointed out that, Figure 6 For any content not described in detail herein, please refer to Figure 5 The description in the relevant embodiments.

[0304] Specifically, for any content not described in detail in step 601, please refer to the description in step 501.

[0305] For any content not described in detail in steps 602 to 604, please refer to the description in the relevant embodiments regarding the determination of the first spectrum method in step 502.

[0306] For details not described in steps 605 and 606, please refer to the description in step 502 regarding the relevant embodiments concerning the negotiation of the first spectrum method between UE1 and UE2.

[0307] For details not described in steps 607 to 609, please refer to the description in the relevant embodiment of step 502 where UE1 and UE2 transmit the service data of the first service through the first spectrum method.

[0308] Based on the different functions of the ProSe layer and the AS layer, such as Figures 7 to 9 This application provides multiple implementation methods for UE1 and UE2 to transmit service data of the first service.

[0309] It should be pointed out that, Figures 7 to 9 Among the various implementation methods shown, the ProSe layer and AS layer in UE1 are mainly used for explanation. UE2 can also include a ProSe layer and AS layer (not shown in the figure). The interaction between the ProSe layer and AS layer in UE2 can be found in the interaction between the ProSe layer and AS layer in UE1.

[0310] For ease of description, the ProSe layer and AS layer below can be understood as the ProSe layer and AS layer of UE1.

[0311] like Figure 7 In the exemplary process shown, the ProSe layer can determine the first spectrum method based on the service information of the first service.

[0312] Step 701: The AS layer sends the first information to the ProSe layer. Step 701 is an optional step; the AS layer may send the first information to the ProSe layer when the first service information corresponds to the second spectrum mode.

[0313] Step 702: The ProSe layer determines the first spectrum method based on the service information of the first service.

[0314] In a specific example, the ProSe layer determines the first spectrum method based on the correspondence between the service information of the first service and the first spectrum method, as well as the service information of the first service.

[0315] In another specific example, the ProSe layer determines the second spectrum method based on the correspondence between the service information of the first service and the second spectrum method, as well as the service information of the first service; the ProSe layer then determines the first spectrum method based on the second spectrum method and the first information.

[0316] Step 703: The ProSe layer associates the first QoS flow with the first spectrum method based on the service information of the first service and the first spectrum method. The ProSe layer sends the identifier of the first QoS flow and the identifier of the first spectrum method to the AS layer.

[0317] Step 704: The AS layer stores the identifier of the first QoS flow and the identifier of the first spectrum mode accordingly.

[0318] Step 705: The ProSe layer sends the service data of the first service and the identifier of the first QoS flow to the AS layer.

[0319] Step 706: The AS layer determines the first spectrum mode based on the identifier of the first QoS flow.

[0320] Step 707: The AS layer transmits a first QoS flow to UE2 via a first spectrum method. The first QoS flow carries the service data of the first service.

[0321] It should be pointed out that, Figure 7 For details not described in the process shown, please refer to [link / reference]. Figure 5 The description in the relevant embodiments.

[0322] Specifically, for details not described in steps 701 and 702, please refer to the description in the relevant embodiments regarding the determination of the first spectrum method in step 502.

[0323] For details not described in steps 703 and 704, please refer to the description in step 502 regarding the relevant embodiments concerning UE1 associating the first QoS flow and the first spectrum method.

[0324] For details not described in steps 705 to 707, please refer to the description in step 502 regarding the relevant embodiments of UE1 and UE2 transmitting service data of the first service through the first spectrum method.

[0325] In the above technical solution, the ProSe layer determines the first spectrum mode based on the service information of the first service, and sends the identifier of the first QoS flow and the identifier of the first spectrum mode to the AS layer; it also sends the service data of the first service and the identifier of the first QoS flow to the AS layer. Accordingly, the AS layer can transmit the first QoS flow with UE2 through the first spectrum mode, and the first QoS flow carries the service data of the first service. In this way, the functional division between the ProSe layer and the AS layer is clear.

[0326] like Figure 8 In the exemplary process shown, the AS layer can determine the first spectrum method based on the service information of the first service.

[0327] Step 801: The ProSe layer sends first configuration information and second configuration information to the AS layer. The first configuration information may include a QoS flow identifier and the corresponding PC5 QoS parameters. The second configuration information may include the correspondence between service information and spectrum allocation. The first and second configuration information may be carried in the same message or in different messages.

[0328] Step 802: The ProSe layer sends the service information of the first service to the AS layer.

[0329] Step 803: The AS layer determines the first spectrum method based on the service information of the first service.

[0330] In a specific example, the AS layer determines the first spectrum method based on the correspondence between the service information of the first service and the first spectrum method, as well as the service information of the first service.

[0331] In another specific example, the AS layer determines the second spectrum method based on the correspondence between the service information of the first service and the second spectrum method, as well as the service information of the first service; the AS layer then determines the first spectrum method based on the second spectrum method and the first information.

[0332] Step 804: The AS layer associates the first QoS flow with the first spectrum method based on the service information of the first service and the first spectrum method. The AS layer stores the identifier of the first QoS flow and the identifier of the first spectrum method accordingly.

[0333] Step 805: The ProSe layer sends the service data of the first service and the identifier of the first QoS flow to the AS layer.

[0334] Step 806: The AS layer determines the first spectrum mode based on the identifier of the first QoS flow.

[0335] Step 807: The AS layer transmits a first QoS flow to UE2 via a first spectrum method. The first QoS flow carries the service data of the first service.

[0336] It should be pointed out that, Figure 8 For details not described in the process shown, please refer to [link / reference]. Figure 5 The description in the relevant embodiments.

[0337] Specifically, for any content not described in detail in steps 801 to 803, please refer to the description in the relevant embodiments regarding the determination of the first spectrum method in step 502.

[0338] For details not described in step 804, please refer to the description in step 502 regarding the relevant embodiments concerning UE1 associating the first QoS flow and the first spectrum method.

[0339] For details not described in steps 805 to 807, please refer to the description in step 502 regarding the relevant embodiments of UE1 and UE2 transmitting service data of the first service through the first spectrum method.

[0340] In the above technical solution, the AS layer obtains the correspondence between service information and spectrum mode from the ProSe layer, and the AS layer obtains the service information of the first service from the ProSe layer. Then, the AS layer can determine the first spectrum mode based on the correspondence between service information and spectrum mode, and the service information of the first service. Thus, the ProSe layer does not need to participate in the spectrum mode determination process.

[0341] like Figure 9 In the exemplary process, the ProSe layer can determine the second spectrum method based on the service information of the first service, and the AS layer further determines the first spectrum method based on the second spectrum method and the first information.

[0342] Step 901: The ProSe layer sends the first configuration information to the AS layer. The first configuration information may include the QoS flow identifier and the PC5 QoS parameters corresponding to the QoS flow identifier.

[0343] Step 902: The ProSe layer determines the second spectrum method based on the correspondence between the service information of the first service and the second spectrum method, as well as the service information of the first service.

[0344] Step 903: The ProSe layer indicates the second spectral mode to the AS layer.

[0345] Step 904: The AS layer determines the first spectrum mode based on the second spectrum mode and the first information.

[0346] Step 905: The AS layer associates the first QoS flow with the first spectrum method based on the service information of the first service and the first spectrum method. The AS layer stores the identifier of the first QoS flow and the identifier of the first spectrum method accordingly.

[0347] Step 906: The ProSe layer sends the service data of the first service and the identifier of the first QoS flow to the AS layer.

[0348] Step 907: The AS layer determines the first spectrum mode based on the identifier of the first QoS flow.

[0349] Step 908: The AS layer transmits a first QoS flow to UE2 via a first spectrum method. The first QoS flow carries the service data of the first service.

[0350] It should be pointed out that, Figure 9For details not described in the process shown, please refer to [link / reference]. Figure 5 The description in the relevant embodiments.

[0351] Specifically, for any content not described in detail in steps 901 to 904, please refer to the description in the relevant embodiments regarding the determination of the first spectrum method in step 502.

[0352] For details not described in step 905, please refer to the description in step 502 regarding the relevant embodiments concerning UE1 associating the first QoS flow and the first spectrum method.

[0353] For details not described in steps 906 to 908, please refer to the description in step 502 regarding the relevant embodiments of UE1 and UE2 transmitting service data of the first service through the first spectrum method.

[0354] In the above technical solution, the ProSe layer determines the second spectrum method based on the service information of the first service, and the AS layer determines the first spectrum method based on the second spectrum method and the first information. Thus, the AS layer does not need to provide the first information to the ProSe layer.

[0355] Figure 10 Another communication method of this application is shown, in which UE1 can transmit service data of a first service with UE2 using a first spectrum method according to the spectrum method subscribed by UE1, as described below.

[0356] Step 1001: UE1 obtains the spectrum method signed by UE1.

[0357] The spectrum subscription method for UE1 may include one or more of the following spectrum methods: licensed spectrum method, unlicensed spectrum method, priority licensed spectrum method, priority unlicensed spectrum method, or licensed spectrum and unlicensed spectrum method.

[0358] The spectrum contract method can also be understood as the authorized spectrum method, that is, the spectrum method that UE1 can obtain from the network device authorized to UE1 (or the network device allows UE1 to use).

[0359] Furthermore, UE1 can also obtain the region information corresponding to the spectrum mode subscribed by UE1. It can be understood that the spectrum mode that UE can use is different in different regions. For example, the licensed spectrum mode corresponds to region 1, and UE1 uses the licensed spectrum mode in region 1; the unlicensed spectrum mode corresponds to region 2, and UE1 uses the unlicensed spectrum mode in region 2, etc.

[0360] In one possible approach, the spectrum scheme subscribed by UE1 can be received by UE1 from the PCF. For example, during the registration process, UE1 sends 5G proximity service capabilities to the AMF, and the AMF forwards the 5G proximity service capabilities to the PCF. In response to the 5G proximity service capabilities, the PCF sends the spectrum scheme subscribed by UE1 to UE1. The spectrum scheme subscribed by UE1 can be generated by the PCF or obtained by the PCF from the UDR or AF. In another implementation, the spectrum scheme subscribed by UE1 can also be obtained by the UE from the UDM or pre-configured by UE1. UE1 can also obtain the area information corresponding to the spectrum scheme subscribed by UE1 through any of the above methods, which will not be elaborated further.

[0361] Step 1002: UE1 transmits the service data of the first service with UE2 using the first spectrum method according to the spectrum method signed by UE1.

[0362] In the above technical solution, UE1 and UE2 can transmit the service data through a spectrum method that is more suitable for the characteristics of UE1, which helps to better transmit service data and make reasonable use of licensed and unlicensed spectrum.

[0363] Optionally, in the first implementation scenario of the above embodiments, the method further includes: UE1 determining a first spectrum mode based on the spectrum mode subscribed by UE1. This is explained in two cases below:

[0364] In the case where UE1 subscribes to a spectrum allocation method:

[0365] If UE1 subscribes to a licensed spectrum, or subscribes to an unlicensed spectrum, or subscribes to both licensed and unlicensed spectrum, UE1 can determine the subscribed spectrum method as the first spectrum method. For example, if UE1 subscribes to a licensed spectrum, then UE1 can determine the licensed spectrum method as the first spectrum method.

[0366] If UE1 subscribes to a priority licensed spectrum mode or a priority unlicensed spectrum mode (i.e., the second spectrum mode), UE1 can determine the first spectrum mode based on the second spectrum mode and the first information. For example, if UE1 subscribes to a priority licensed spectrum mode (i.e., the second spectrum mode), and the idle rate of the licensed spectrum resources included in the first information is greater than the first idle rate threshold, UE1 can select the licensed spectrum mode (i.e., the first spectrum mode) based on the idle rate of the licensed spectrum resources and the priority licensed spectrum mode.

[0367] In cases where UE1 has multiple spectrum subscription methods:

[0368] UE1 can determine the first spectrum mode from multiple spectrum modes it has subscribed to. Specifically, there are two examples:

[0369] In one example, UE1 can determine the first spectrum mode from multiple spectrum modes subscribed to by UE1 based on the first region information and the region information corresponding to the spectrum mode subscribed to by UE1. The first region information can be used to characterize the region where UE1 is located. UE1 can determine the first region information based on the region where UE1 is located, or UE1 can receive the first region information from the RAN. In this way, UE1 can better determine the first spectrum mode that is appropriate for the region where UE1 is located.

[0370] Furthermore, the area information corresponding to the spectrum method can be at the cell level, and the area information corresponding to the spectrum method can include one or more cells; or, the area information corresponding to the spectrum method can also be at the tracking area (TA) level, and the area information corresponding to the spectrum method can include one or more TAs.

[0371] The first area information can be at the cell level, indicating which cell UE1 is in; or, the first area information can also be at the TA level, indicating which TA UE1 is in.

[0372] For example, UE1 can subscribe to multiple spectrum methods, including licensed spectrum, unlicensed spectrum, and both. For instance, licensed spectrum might correspond to TA#1, unlicensed spectrum to TA#2, and both to TA#3. UE1 can determine its first region information based on its location. For example, if the first region information is TA#1, UE1 can select the licensed spectrum method (i.e., the first spectrum method) based on the first region information (TA#1) and the region information corresponding to its subscribed spectrum method. As another example, if the first region information is cell #1, and cell #1 belongs to TA#1, then UE1 can select the licensed spectrum method (i.e., the first spectrum method) based on the first region information (cell #1) and the region information corresponding to its subscribed spectrum method.

[0373] In the above example, UE1 can also subscribe to a preferred licensed spectrum mode and a preferred unlicensed spectrum mode. For example, the preferred licensed spectrum mode corresponds to TA#4, and the preferred unlicensed spectrum mode corresponds to TA#5. UE1 can also determine first region information based on the region where UE1 is located. For example, if the first region information indicates TA#4, then UE1 can select the preferred licensed spectrum mode (i.e., the second spectrum mode) based on the first region information and the region information corresponding to the spectrum mode subscribed to by UE1. In this case, UE1 can further determine the first spectrum mode based on the second spectrum mode and the first information.

[0374] Of course, UE1 may also subscribe to one or more of the following spectrum methods: licensed spectrum method, unlicensed spectrum method, licensed spectrum and unlicensed spectrum method, as well as one or more of the following spectrum methods: priority licensed spectrum method and priority unlicensed spectrum method. The implementation method of UE1 determining the first spectrum method from the subscribed spectrum method is similar to that described above.

[0375] In another example, UE1 randomly determines a spectrum mode from the spectrum modes it has subscribed to. This determined spectrum mode can be either a first spectrum mode or a second spectrum mode. If the determined spectrum mode is the second spectrum mode, UE1 can further determine the first spectrum mode based on the second spectrum mode and the first information.

[0376] Subsequently, UE1 can use the determined first spectrum method to transmit the service data of the first service with UE2.

[0377] Furthermore, the ProSe layer of UE1 can obtain the spectrum subscription method of UE1. The AS layer can obtain the first information by receiving the first information from the RAN or core network equipment, or by monitoring unlicensed spectrum resources and / or licensed spectrum resources in the resource pool.

[0378] The specific method for determining the first spectrum can be implemented by the ProSe layer or AS layer of UE1, and can be referred to the following five methods:

[0379] Method 1: The ProSe layer determines the first spectrum method based on the spectrum method subscribed by UE1, the area information corresponding to the spectrum method subscribed by UE1, and the first area information. The first area information can be received by the AS layer from the RAN, or determined by the AS layer based on the area where UE1 is located. Correspondingly, the ProSe layer can obtain the first area information from the AS layer. Alternatively, in other examples, the first area information can be determined by the ProSe layer based on the area where UE1 is located.

[0380] Method 2: The AS layer receives the spectrum method subscribed by UE1 and the area information corresponding to the spectrum method subscribed by UE1 from the ProSe layer. The AS layer determines the first spectrum method based on the spectrum method subscribed by UE1, the area information corresponding to the spectrum method subscribed by UE1, and the first area information. The first area information can be received by the AS layer from the RAN, or determined by the AS layer based on the area where UE1 is located. Alternatively, in other examples, the first area information can be determined by the ProSe layer based on the area where UE1 is located. Correspondingly, the first area information can be obtained by the AS layer from the ProSe layer.

[0381] Method 3: The ProSe layer determines the second spectrum method based on the spectrum method subscribed by UE1; the AS layer receives the second spectrum method from the ProSe layer and determines the first spectrum method based on the second spectrum method and the first information.

[0382] Method 4: The ProSe layer determines the second spectrum method based on the spectrum method subscribed by UE1; the ProSe layer receives the first information from the AS layer, and determines the first spectrum method based on the second spectrum method and the first information.

[0383] Method 5: The AS layer receives the spectrum method subscribed by UE1 from the ProSe layer. The AS layer determines the second spectrum method based on the spectrum method subscribed by UE1. The AS layer determines the first spectrum method based on the second spectrum method and the first information.

[0384] In this embodiment of the application, the specific descriptions of the first information, the UE1 obtaining the first information, and the UE1 determining the first spectrum mode based on the second spectrum mode and the first information can all be found in the description of the implementation of determining the first spectrum mode in step 502 above, and will not be repeated here.

[0385] Optionally, in the second implementation scenario of the above embodiments, if UE1 subscribes to a spectrum mode, and the subscribed spectrum mode is a licensed spectrum mode, or an unlicensed spectrum mode, or a licensed spectrum and an unlicensed spectrum mode, then UE1 can directly use the spectrum mode subscribed to by UE1 to transmit the service data of the first service with UE2.

[0386] Optionally, the above method further includes: UE1 sending second information to UE2, the second information being used to instruct UE1 to transmit the service data of the first service using a first spectrum mode, as detailed in step 502 regarding the description of the second information.

[0387] It should be added that, in the case that the first spectrum mode is unlicensed spectrum mode, or is licensed spectrum and unlicensed spectrum mode, UE1 can not only send the second information to UE2, but also send information about the first unlicensed spectrum resource to UE2. For details, please refer to the description of the information about the first unlicensed spectrum resource in step 502.

[0388] Furthermore, UE1 can also bind the first spectrum mode to the sidelink between UE1 and UE2. That is, UE1 and UE2 transmit service data of the first service through the sidelink, and the sidelink can occupy the spectrum resources corresponding to the first spectrum mode. In a specific implementation, UE1 sends second information to UE2 through the sidelink between UE1 and UE2. The second information includes the identifier of the first spectrum mode. Accordingly, UE2 can bind the sidelink between UE1 and UE2 to the first spectrum mode according to the identifier of the first spectrum mode included in the second information.

[0389] In this application, UE1 can transmit service data in the side link with UE2 through the spectrum resources corresponding to the first spectrum mode. It can also be understood that the side link may include one or more QoS flows, and the one or more QoS flows can be transmitted through the spectrum resources corresponding to the first spectrum mode.

[0390] To better explain the embodiments of this application, Figure 11 This application provides an exemplary implementation method for UE1 and UE2 to transmit service data of the first service in another specific application scenario.

[0391] Step 1101: UE1 sends 5G proximity service capabilities to PCF. Specifically, UE1 sends 5G proximity service capabilities to PCF through AMF during the registration process.

[0392] Step 1102: The PCF sends the spectrum mode subscribed by UE1 and the corresponding area information to UE1. Optionally, in response to the 5G proximity service capability, the PCF sends the spectrum mode subscribed by UE1 and the corresponding area information to UE1 through the AMF.

[0393] Step 1103: The RAN broadcasts the first information. Correspondingly, UE1 receives the first information. This step can also be replaced by: UE1 requesting the first information from the RAN, and the RAN then sending the first information to UE1.

[0394] Step 1104: UE1 determines the first spectrum method based on the spectrum method signed by UE1 and the first region information.

[0395] For example, UE1 determines the first spectrum method based on the spectrum method subscribed by UE1, the region information corresponding to the spectrum method subscribed by UE1, and the first region information.

[0396] For another example, UE1 determines the second spectrum method based on the spectrum method subscribed by UE1, the area information corresponding to the spectrum method subscribed by UE1, and the first area information; UE1 then determines the first spectrum method based on the second spectrum method and the first information.

[0397] Step 1105: UE1 sends a request message to UE2 through the side link between UE1 and UE2. The request message includes the identifier of the first spectrum mode.

[0398] Step 1106: UE2 responds to UE1's request message by sending an acceptance response to UE1.

[0399] In step 1107, UE1 sends an information report to the RAN, which includes the identifier of the first spectrum mode, PC5 QoS parameters, and link information, such as the PC5 link identifier or the destination layer 2 identifier. The RAN stores the identifier of the first spectrum mode, the PC5 QoS parameters, and the link information.

[0400] Step 1108: RAN sends AS layer configuration to UE1.

[0401] Step 1109: UE1 transmits the service data of the first service with UE2 using the first spectrum method.

[0402] It should be noted that step 1103 is an optional step. If the spectrum mode subscribed by UE1 includes one or more of the preferred licensed spectrum mode or the preferred unlicensed spectrum mode, UE1 may receive first information from the RAN. This first information is used by UE1 to determine the first spectrum mode in step 1104.

[0403] It should also be pointed out that, Figure 11 For any content not described in detail herein, please refer to Figure 10 Description of related embodiments.

[0404] Specifically, for any content not described in detail in steps 1101 and 1102, please refer to the description in step 1001.

[0405] For any content not described in detail in steps 1103 and 1104, please refer to the description in the relevant embodiments regarding the determination of the first spectrum method in step 1002.

[0406] For details not described in steps 1105 and 1106, please refer to the description in step 1002 regarding the relevant embodiments of the negotiation of the first spectrum method between UE1 and UE2.

[0407] For details not described in steps 1107 to 1109, please refer to the description in the relevant embodiment of UE1 and UE2 transmitting service data through the first spectrum method in step 1002.

[0408] Based on the different functions of the ProSe layer and the AS layer, such as Figure 12This application provides an implementation method for transmitting service data of the first service between UE1 and UE2. Figure 12 The explanation mainly uses the ProSe and AS layers in UE1. UE2 can also include ProSe and AS layers (not shown in the diagram). The interaction between the ProSe and AS layers in UE2 can be found in the interaction between the ProSe and AS layers in UE1. For ease of description, the ProSe and AS layers mentioned below can be understood as the ProSe and AS layers in UE1.

[0409] like Figure 12 In the exemplary process shown, the ProSe layer can determine the first spectrum method based on the spectrum method subscribed by UE1.

[0410] Step 1201: The AS layer sends the first information to the ProSe layer. Step 1201 is an optional step.

[0411] Step 1202: The ProSe layer determines the first spectrum method based on the spectrum method subscribed by UE1.

[0412] In a specific example, the ProSe layer determines the first spectrum method based on the spectrum method subscribed to by UE1.

[0413] In another specific example, the ProSe layer determines the second spectrum method based on the spectrum method subscribed to by UE1; the ProSe layer then determines the first spectrum method based on the second spectrum method and the first information.

[0414] The ProSe layer can obtain information about the first region from the AS layer.

[0415] Step 1203: The ProSe layer associates the sidelink between UE1 and UE2 with the first spectrum mode. The ProSe layer sends a first link identifier and a first spectrum mode identifier to the AS layer, wherein the first link identifier is used to identify the sidelink between UE1 and UE2, and the first link identifier is, for example, a PC5 link identifier or a destination layer 2 identifier of the PC5 link.

[0416] Step 1204: The AS layer stores the first link identifier and the identifier of the first spectrum mode accordingly.

[0417] Step 1205: The ProSe layer sends the service data of the first service and the first link identifier to the AS layer.

[0418] Step 1206: The AS layer determines the first spectrum mode based on the first link identifier.

[0419] Step 1207: The AS layer transmits the service data of the first service to UE2 through the first spectrum method, wherein the service data of the first service is carried on the side link between UE1 and UE2.

[0420] It should be pointed out that, Figure 12 For any content not described in detail herein, please refer to Figure 10 Description of related embodiments.

[0421] Specifically, any content not described in detail in steps 1201 and 1202 can be found in the description of the relevant embodiments regarding the determination of the first spectrum method in step 1002.

[0422] For details not described in steps 1203 and 1204, please refer to the description in step 1002 regarding the side link and first spectrum method between UE1 and UE2.

[0423] For details not described in steps 1205 to 1207, please refer to the description in the relevant embodiment of UE1 and UE2 transmitting service data through the first spectrum method in step 1002.

[0424] In the above technical solution, the ProSe layer determines the first spectrum mode based on the spectrum mode subscribed by UE1, and sends the first link identifier and the identifier of the first spectrum mode to the AS layer. Subsequently, the ProSe layer sends the service data of the first service and the first link identifier to the AS layer. Correspondingly, the AS layer can send the service data of the first service to UE2 through the first spectrum mode. The service data of the first service is carried on the side link between UE1 and UE2. In this way, the functional division between the ProSe layer and the AS layer is clear.

[0425] Furthermore, in this application, the AS layer may determine the first spectrum method based on the spectrum method subscribed by UE1, or the ProSe layer may determine the second spectrum method based on the spectrum method subscribed by UE1, with the ProSe layer indicating the second spectrum method to the AS layer, and then the AS layer determining the first spectrum method based on the first spectrum method and the first information. This can be further elaborated upon in conjunction with... Figure 12 ,or Figure 8 ,or Figure 9 The implementation details are omitted here.

[0426] Based on the above content and the same concept, Figure 13 and Figure 14 This is a schematic diagram of the possible communication devices provided in this application. These communication devices can be used to implement the functions of the first terminal device or core network device in the above method embodiments, and thus can also achieve the beneficial effects of the above method embodiments.

[0427] In this application, the communication device can be a terminal device or a module (such as a chip) within the terminal device. For example, the communication device may be... Figure 1The UE in the network. This communication device can also be core network equipment, or a module (such as a chip) within the core network equipment. For example, the communication device is... Figure 1 PCF or UDM in the middle.

[0428] like Figure 13 As shown, the communication device 1300 includes a processing module 1301 and a transceiver module 1302.

[0429] The communication device 1300 is used to implement the above. Figures 5 to 9 In the method embodiment shown, the function of the first terminal device (e.g., UE1) is as follows:

[0430] In one possible implementation, the processing module 1301 is used to acquire the service information of the first service; the processing module 1301 is also used to control the transceiver module 1302 to transmit the service data of the first service using a first spectrum method according to the service information. The service data of the first service is carried on the side link between the communication device 1300 and the second terminal device. The first spectrum method is either a licensed spectrum method, or an unlicensed spectrum method, or a licensed spectrum and unlicensed spectrum method.

[0431] In one possible implementation, the service information includes at least one of the following: PC5 QoS parameters, service type, or service identifier.

[0432] In one possible implementation, the processing module 1301 is further configured to: determine the first spectrum mode based on the service information.

[0433] In one possible implementation, the processing module 1301 is specifically used to: determine the first spectrum mode based on the correspondence between the service information and the first spectrum mode, and the service information.

[0434] In one possible implementation, the processing module 1301 is specifically used to: control the adjacent service layer to determine the first spectrum mode based on the correspondence between service information and the first spectrum mode, and the service information; or control the access layer to determine the first spectrum mode based on the correspondence between service information and the first spectrum mode, and the service information.

[0435] In one possible implementation, the processing module 1301 is specifically used to: determine the second spectrum method based on the correspondence between the service information and the second spectrum method, and the service information; determine the first spectrum method based on the second spectrum method and the first information; wherein the second spectrum method is a preferred licensed spectrum method or a preferred unlicensed spectrum method; the first information includes at least one of the following: the usage status of licensed spectrum resources, the usage status of unlicensed spectrum resources, the suggested spectrum method, or the licensed spectrum method.

[0436] In one possible implementation, the processing module 1301 is further configured to: obtain one or more of the usage status of licensed spectrum resources and the usage status of unlicensed spectrum resources.

[0437] In one possible implementation, the processing module 1301 is further configured to: control the transceiver module 1302 to receive the first information.

[0438] In one possible implementation, the processing module 1301 is specifically configured to: control the adjacent service layer to determine the second spectrum method based on the correspondence between service information and the second spectrum method, and the service information; control the access layer to determine the first spectrum method based on the second spectrum method and the first information; or, control the adjacent service layer to determine the second spectrum method based on the correspondence between service information and the second spectrum method, and the service information; control the adjacent service layer to determine the first spectrum method based on the second spectrum method and the first information; or, control the access layer to determine the second spectrum method based on the correspondence between service information and the second spectrum method, and the service information; control the access layer to determine the first spectrum method based on the second spectrum method and the first information.

[0439] In one possible implementation, the processing module 1301 is further configured to: control the transceiver module 1302 to send second information to the second terminal device; wherein the second information is used to instruct the communication device 1300 to transmit the service data of the first service using a first spectrum method.

[0440] In one possible implementation, when the first spectrum mode is an unlicensed spectrum mode, or a licensed spectrum mode and an unlicensed spectrum mode, the processing module 1301 is further configured to: determine a first unlicensed spectrum resource from the unlicensed spectrum resources, the first unlicensed spectrum resource being used for transmitting service data of the first service between the communication device 1300 and the second terminal device; and control the transceiver module 1302 to send information about the first unlicensed spectrum resource to the second terminal device.

[0441] In one possible implementation, the service data of the first service is carried on the first QoS flow in the side link.

[0442] In one possible implementation, the processing module 1301 is further configured to: associate the first service with the first QoS flow according to the first spectrum mode and the spectrum mode corresponding to the first QoS flow.

[0443] In one possible implementation, the processing module 1301 is further configured to: generate a first QoS flow according to a first spectrum mode.

[0444] The communication device 1300 is used to implement the above. Figures 10 to 12 In the method embodiment shown, the function of the first terminal device (e.g., UE1) is as follows:

[0445] In one possible implementation, the processing module 1301 is used to obtain the spectrum mode subscribed by the communication device 1300; the processing module 1301 is also used to control the transceiver module 1302 to transmit the service data of the first service using the first spectrum mode according to the spectrum mode subscribed by the communication device 1300. The service data of the first service is carried on the side link between the communication device 1300 and the second terminal device. The first spectrum mode is either a licensed spectrum mode, or an unlicensed spectrum mode, or a licensed spectrum and unlicensed spectrum mode.

[0446] In one possible implementation, the spectrum subscription method of the communication device 1300 includes at least one of the following: licensed spectrum method, unlicensed spectrum method, licensed spectrum and unlicensed spectrum method, priority licensed spectrum method, or priority unlicensed spectrum method.

[0447] In one possible implementation, the processing module 1301 is further configured to: determine a first spectrum mode based on the spectrum mode contracted by the communication device 1300.

[0448] In one possible implementation, the processing module 1301 is specifically used to: determine the first spectrum mode based on the area information corresponding to the spectrum mode subscribed by the communication device 1300 and the first area information, wherein the first area information is used to characterize the area where the communication device 1300 is located.

[0449] In one possible implementation, the processing module 1301 is specifically used to: control the adjacent service layer to determine the first spectrum method based on the area information corresponding to the spectrum method subscribed by the communication device 1300 and the first area information; or control the access layer to determine the first spectrum method based on the area information corresponding to the spectrum method subscribed by the communication device 1300 and the first area information.

[0450] In one possible implementation, the processing module 1301 is specifically configured to: determine a second spectrum mode based on the spectrum mode contracted by the communication device 1300; determine a first spectrum mode based on first information and the second spectrum mode; wherein the second spectrum mode is a preferred licensed spectrum mode or a preferred unlicensed spectrum mode; the first information includes at least one of the following: the usage status of licensed spectrum resources, the usage status of unlicensed spectrum resources, the suggested spectrum mode, or the licensed spectrum mode.

[0451] In one possible implementation, the processing module 1301 is further configured to: obtain one or more of the usage status of licensed spectrum resources and the usage status of unlicensed spectrum resources.

[0452] In one possible implementation, the processing module 1301 is further configured to: control the transceiver module 1302 to receive the first information.

[0453] In one possible implementation, the processing module 1301 is specifically configured to: control the adjacent service layer to determine a second spectrum method based on the spectrum method subscribed by the communication device 1300; control the access layer to determine a first spectrum method based on the second spectrum method and first information; or, control the adjacent service layer to determine a second spectrum method based on the spectrum method subscribed by the communication device 1300; control the adjacent service layer to determine a first spectrum method based on the second spectrum method and first information; or, control the access layer to determine a second spectrum method based on the spectrum method subscribed by the communication device 1300; control the access layer to determine a first spectrum method based on the second spectrum method and first information.

[0454] In one possible implementation, the processing module 1301 is further configured to: control the transceiver module 1302 to send second information to the second terminal device; wherein the second information is used to instruct the communication device 1300 to transmit the service data of the first service using a first spectrum method.

[0455] In one possible implementation, when the first spectrum mode is an unlicensed spectrum mode, or a licensed spectrum mode and an unlicensed spectrum mode, the processing module 1301 is further configured to: determine a first unlicensed spectrum resource from the unlicensed spectrum resources, the first unlicensed spectrum resource being used for transmitting service data of the first service between the communication device 1300 and the second terminal device; and control the transceiver module 1302 to send information about the first unlicensed spectrum resource to the second terminal device.

[0456] The communication device 1300 is used to implement the above. Figures 5 to 9 In the illustrated method embodiment, the core network device (e.g., PCF) functions as follows: In one possible implementation, the processing module 1301 is used to acquire service information and the corresponding spectrum mode, and to control the transceiver module 1302 to send the service information and the corresponding spectrum mode to the first terminal device. In another possible implementation, the service information and the corresponding spectrum mode are used by the first terminal device to determine a first spectrum mode, which is either a licensed spectrum mode, an unlicensed spectrum mode, or both.

[0457] The communication device 1300 is used to implement the above. Figures 10 to 12 In the illustrated method embodiment, the core network device (e.g., PCF) functions as follows: In one possible implementation, the processing module 1301 is used to obtain the spectrum mode subscribed by the first terminal device and control the transceiver module 1302 to send the spectrum mode subscribed by the first terminal device to the first terminal device. In another possible implementation, the spectrum mode subscribed by the first terminal device is used by the first terminal device to determine the first spectrum mode, which is either a licensed spectrum mode, an unlicensed spectrum mode, or both.

[0458] like Figure 14 The image shown is of the apparatus 1400 provided in an embodiment of this application. Figure 14 The device shown can be Figure 13 The illustrated device represents one hardware circuit implementation. This device can be applied to the flowchart shown above to perform the functions of the first or second terminal device in the method embodiments described.

[0459] For ease of explanation, Figure 14 Only the main components of the device are shown.

[0460] Figure 14 The illustrated device 1400 includes a communication interface 1410, a processor 1420, and a memory 1430, wherein the memory 1430 is used to store program instructions and / or data. The processor 1420 may operate in conjunction with the memory 1430. The processor 1420 may execute program instructions stored in the memory 1430. When the instructions or program stored in the memory 1430 are executed, the processor 1420 is used to perform the operations performed by the processing module 1301 in the above embodiments, and the communication interface 1410 is used to perform the operations performed by the transceiver module 1302 in the above embodiments.

[0461] The memory 1430 and the processor 1420 are coupled. The coupling in this embodiment is an indirect coupling or communication connection between devices, units, or modules, and can be electrical, mechanical, or other forms, used for information exchange between devices, units, or modules. At least one of the memories 1430 may be included in the processor 1420.

[0462] In this embodiment, the communication interface can be a transceiver, circuit, bus, module, or other type of communication interface. In this embodiment, when the communication interface is a transceiver, the transceiver can include an independent receiver, an independent transmitter, or a transceiver integrating transceiver functions, or simply a communication interface.

[0463] Device 1400 may further include a communication line 1440. The communication interface 1410, processor 1420, and memory 1430 can be interconnected via the communication line 1440. The communication line 1440 can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The communication line 1440 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 14The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0464] Based on the above content and the same concept, embodiments of this application provide a computer-readable storage medium storing a computer program or instructions thereon, which, when executed, causes a computer to perform the aforementioned... Figures 5 to 12 In the relevant method embodiments, the method of the first terminal device (e.g., UE1) or the method described above is executed. Figures 5 to 12 The relevant method embodiments are based on the methods of core network equipment (such as PCF).

[0465] Based on the above content and the same concept, embodiments of this application provide a computer program product that, when a computer reads and executes the computer program product, causes the computer to perform the above-mentioned... Figures 5 to 12 In the relevant method embodiments, the method of the first terminal device (e.g., UE1) or the method described above is executed. Figures 5 to 12 The relevant method embodiments are based on the methods of core network equipment (such as PCF).

[0466] Based on the above content and the same concept, this application provides a communication system, which includes a core network device and a first terminal device, the first terminal device being used to perform the above-described... Figures 5 to 9 The method described in the relevant method embodiments is used by the core network device to perform the above. Figures 5 to 9 The methods described in the relevant method embodiments;

[0467] Alternatively, the first terminal device can be used to perform the above. Figures 10 to 12 The method described in the relevant method embodiments is used by the core network device to perform the above. Figures 10 to 12 The methods described in the relevant method embodiments.

[0468] It is understood that the various numerical designations used in the embodiments of this application are merely for descriptive convenience and are not intended to limit the scope of the embodiments of this application. The order of the process numbers described above does not imply the order of execution; the execution order of each process should be determined by its function and internal logic.

[0469] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the scope of protection of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.

Claims

1. A communication method, characterized in that, include: The first communication device acquires the service information of the first service; The adjacent service layer of the first communication device determines the second spectrum mode based on the correspondence between the service information and the second spectrum mode, and the service information. The second spectrum mode is either a priority licensed spectrum mode or a priority unlicensed spectrum mode. The access layer of the first communication device obtains the second spectrum method from the adjacent service layer of the first communication device; The access layer of the first communication device receives first information, which includes at least one of the following: the usage status of licensed spectrum resources, the usage status of unlicensed spectrum resources, the suggested spectrum method, or the licensed spectrum method; The access layer of the first communication device determines the first spectrum mode based on the second spectrum mode and the first information. The first spectrum mode is either a licensed spectrum mode, an unlicensed spectrum mode, or a licensed spectrum and unlicensed spectrum mode. The first communication device associates the first service with the first QoS stream according to the first spectrum mode and the spectrum mode corresponding to the first service quality QoS stream, wherein the first QoS stream is the QoS stream in the side link between the first communication device and the second terminal device; The first communication device uses the first QoS stream to transmit the service data of the first service.

2. The method as described in claim 1, characterized in that, The service information includes at least one of the following: the Quality of Service (QoS) parameters for neighboring services communication (PC5), the service type, or the service identifier.

3. The method as described in claim 1, characterized in that, The method further includes: The first communication device acquires one or more of the usage status of the licensed spectrum resources and the usage status of the unlicensed spectrum resources.

4. The method as described in claim 1, characterized in that, The method further includes: The first communication device sends the second information to the second terminal device; The second information is used to instruct the first communication device to transmit the service data of the first service using the first spectrum method.

5. The method as described in claim 1, characterized in that, When the first spectrum mode is an unlicensed spectrum mode, or a licensed spectrum mode and an unlicensed spectrum mode, the method further includes: The first communication device determines a first unlicensed spectrum resource from the unlicensed spectrum resources, and the first unlicensed spectrum resource is used to transmit service data of the first service between the first communication device and the second terminal device; The first communication device sends information about the first unlicensed spectrum resource to the second terminal device.

6. The method according to any one of claims 1 to 5, characterized in that, The method further includes: The first communication device generates the first QoS stream according to the first spectrum method.

7. A communication method, characterized in that, include: The method by which the first communication device obtains the spectrum contracted by the first communication device; The adjacent service layer of the first communication device determines the second spectrum method based on the spectrum method subscribed by the first communication device. The second spectrum method is either the priority licensed spectrum method or the priority unlicensed spectrum method. The access layer of the first communication device obtains the second spectrum method from the adjacent service layer of the first communication device; The access layer of the first communication device receives first information, which includes at least one of the following: the usage status of licensed spectrum resources, the usage status of unlicensed spectrum resources, the suggested spectrum method, or the licensed spectrum method; The access layer of the first communication device determines the first spectrum mode based on the first information and the second spectrum mode; The first communication device associates the first service with the first QoS stream according to the first spectrum mode and the spectrum mode corresponding to the first QoS stream, wherein the first QoS stream is the QoS stream in the side link between the first communication device and the second terminal device; The first communication device uses the first QoS stream to transmit the service data of the first service.

8. The method as described in claim 7, characterized in that, The spectrum subscription method of the first communication device includes at least one of the following: licensed spectrum method, unlicensed spectrum method, licensed spectrum and unlicensed spectrum method, priority licensed spectrum method, or priority unlicensed spectrum method.

9. The method as described in claim 7, characterized in that, The adjacent service layer of the first communication device determines the second spectrum method based on the spectrum method subscribed by the first communication device, including: The adjacent service layer of the first communication device determines the second spectrum method based on the area information corresponding to the spectrum method subscribed by the first communication device and the first area information, wherein the first area information is used to characterize the area where the first communication device is located.

10. The method as described in claim 7, characterized in that, The method further includes: The first communication device acquires one or more of the usage status of the licensed spectrum resources and the usage status of the unlicensed spectrum resources.

11. The method as described in claim 7, characterized in that, Also includes: The first communication device sends the second information to the second terminal device; The second information is used to instruct the first communication device to transmit the service data of the first service using the first spectrum method.

12. The method according to any one of claims 7 to 11, characterized in that, When the first spectrum mode is an unlicensed spectrum mode, or a licensed spectrum mode and an unlicensed spectrum mode, the method further includes: The first communication device determines a first unlicensed spectrum resource from the unlicensed spectrum resources, and the first unlicensed spectrum resource is used to transmit service data of the first service between the first communication device and the second terminal device; The first communication device sends information about the first unlicensed spectrum resource to the second terminal device.

13. A communication device, characterized in that, It includes a processor and a memory, the memory being used to store instructions, and the processor being used to execute the instructions stored in the memory to implement the method as described in any one of claims 1 to 6, or the method as described in any one of claims 7 to 12.

14. A computer-readable storage medium, characterized in that, The storage medium stores instructions that, when executed by a communication device, implement the method as described in any one of claims 1 to 6, or the method as described in any one of claims 7 to 12.

Citation Information

Patent Citations

  • Method and device of distributing spectrum resource in vehicle-mounted communication system

    CN107231634A

  • Internet of Vehicles service processing method and apparatus, and Internet of Vehicles system

    CN107846434A

  • Service flow offload method, network device, and terminal device

    US20200305025A1