Resource processing method, device and storage medium

Through the terminal equipment independently selecting and reporting transmission resources in the wireless Internet of Vehicles system, the resource conflict problem in the first mode and the second mode are solved, and the resource usage efficiency and system stability are improved.

CN114073142BActive Publication Date: 2024-12-17GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201980098353.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-07-22
Publication Date
2024-12-17
Estimated Expiration
2039-07-22

AI Technical Summary

Technical Problem

In the wireless networking system, when the first mode and the second mode share the resource pool, the terminal device cannot transmit the transmission resources corresponding to the first mode and the second mode at the same time, resulting in insufficient resource use.

Method used

The terminal device determines the first transmission resource set in the resource selection window to ensure that the first mode transmission resource allocated by the network device is not included, and by independently selecting the second mode transmission resource to avoid resource conflicts, reporting the selected transmission resource to the network device. Information to avoid scheduling conflicts.

Benefits of technology

The conflict between the transmission resources of the first mode and the second mode in the same time slot is effectively avoided, the resource usage efficiency is improved, and signaling overhead is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114073142B_ABST
    Figure CN114073142B_ABST
Patent Text Reader

Abstract

The present invention discloses a resource processing method, comprising: a terminal device determines a first transmission resource set within a resource selection window; the first transmission resource set does not include transmission resources in a time slot where a first transmission resource allocated by a network device to the terminal device is located, and the transmission resources in the first transmission resource set are used for the terminal device to send a sideline service. The present invention also discloses another resource processing method, device and storage medium.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of wireless communication technologies, and in particular to a resource processing method, device and storage medium. Background Art

[0002] D2D communication is based on the sidelink (SL) transmission technology. Different from the traditional cellular system where communication data is received or sent by the base station, the Internet of Vehicles system adopts the D2D communication method (i.e., the device-to-device direct communication method), so it has higher spectrum efficiency and lower transmission delay. For D2D communication, the Third Generation Partnership Project (3GPP) defines two transmission modes: the first mode and the second mode. The first mode is that the network device allocates transmission resources to the terminal device, and the second mode is that the terminal device independently selects the transmission resources.

[0003] Mode 3 and Mode 4 are introduced in the Long Term Evolution-Vehicle to Everything (LTE-V2X) system. In the New Radio-Vehicle to Everything (NR-V2X) system, multiple transmission modes are introduced, including Mode 1 and Mode 2. Among them, Mode 3 and Mode 1 are that the network equipment allocates transmission resources to the terminal equipment, corresponding to the first mode; Mode 4 and Mode 2 are that the terminal equipment independently selects transmission resources, corresponding to the second mode.

[0004] When the first mode and the second mode share a resource pool, since the terminal device does not support simultaneous transmission of two transmission resources, how to avoid transmitting the transmission resources corresponding to the first mode and the transmission resources corresponding to the second mode in the same time slot is an urgent problem to be solved. Summary of the invention

[0005] In order to solve the above technical problems, the embodiments of the present invention provide a resource processing method, device and storage medium, which can avoid transmitting the transmission resources corresponding to the first mode and the transmission resources corresponding to the second mode in the same time slot.

[0006] In a first aspect, an embodiment of the present invention provides a resource processing method, comprising: a terminal device determines a first transmission resource set within a resource selection window; the first transmission resource set does not include transmission resources within a time slot where a first transmission resource allocated by a network device to the terminal device is located, and the transmission resources within the first transmission resource set are used for the terminal device to send side services.

[0007] In a second aspect, an embodiment of the present invention provides a resource processing method, comprising: a network device receives first information sent by a terminal device, the first information being used to characterize information about transmission resources selected by the terminal device for sending sideline services; the network device allocates a first transmission resource to the terminal device based on the first information.

[0008] In a third aspect, an embodiment of the present invention provides a resource processing method, including: when a first transmission resource and a second transmission resource are in the same time slot, a terminal device selects a transmission resource for transmitting a service based on at least one of the following:

[0009] The priority of the mode in which the terminal device is located, the service attributes of the service and the priority of the side channel;

[0010] Among them, the modes of the terminal device include: a first mode and a second mode; when the terminal device is in the first mode, the first transmission resource is allocated by the network device; when the terminal device is in the second mode, the second transmission resource is selected autonomously by the terminal device.

[0011] In a fourth aspect, an embodiment of the present invention provides a terminal device, including: a first processing unit, configured to determine a first transmission resource set within a resource selection window;

[0012] The first transmission resource set does not include transmission resources in the time slot where the first transmission resource allocated by the network device to the terminal device is located, and the transmission resources in the first transmission resource set are used for the terminal device to send side services.

[0013] In a fifth aspect, an embodiment of the present invention provides a network device, the network device comprising: a second receiving unit, configured to receive first information sent by a terminal device, the first information being used to characterize information about a transmission resource selected by the terminal device for sending a sideline service;

[0014] The second processing unit is configured to allocate a first transmission resource to the terminal device based on the first information.

[0015] In a sixth aspect, an embodiment of the present invention provides a terminal device, including: a third processing unit, configured so that when the first transmission resource and the second transmission resource are in the same time slot, the terminal device selects a transmission resource for transmitting a service based on at least one of the following:

[0016] The priority of the mode in which the terminal device is located, the service attributes of the service and the priority of the side channel;

[0017] Among them, the modes of the terminal device include: a first mode and a second mode; when the terminal device is in the first mode, the first transmission resource is allocated by the network device; when the terminal device is in the second mode, the second transmission resource is selected autonomously by the terminal device.

[0018] In the seventh aspect, an embodiment of the present invention provides a terminal device, comprising a processor and a memory for storing a computer program that can be run on the processor, wherein the processor is used to execute the steps of the resource processing method executed by the above-mentioned terminal device when running the computer program.

[0019] In an eighth aspect, an embodiment of the present invention provides a network device, comprising a processor and a memory for storing a computer program that can be run on the processor, wherein the processor is used to execute the steps of the resource processing method executed by the above-mentioned terminal device when running the computer program.

[0020] In a ninth aspect, an embodiment of the present invention provides a storage medium storing an executable program, which, when executed by a processor, implements the resource processing method executed by the above-mentioned terminal device.

[0021] In a tenth aspect, an embodiment of the present invention provides a storage medium storing an executable program, which, when executed by a processor, implements the resource processing method executed by the above-mentioned network device.

[0022] The resource processing method provided by the embodiment of the present invention includes: the terminal device determines a first transmission resource set within a resource selection window; the first transmission resource set does not include transmission resources in the time slot where the first transmission resource allocated by the network device to the terminal device is located, and the transmission resources in the first transmission resource set are used for the terminal device to send side services. In this way, when the terminal device autonomously determines the transmission resources, it avoids the terminal device selecting the transmission resources of the first mode that the network device has configured for the first terminal device; thereby avoiding the problem of simultaneous transmission of side services of the first mode and the second mode. In addition, after the terminal device autonomously selects the transmission resources of the second mode and the reserved resources, by reporting the information of the selected transmission resources and the reserved transmission resources to the network device, it can avoid the network device scheduling the transmission resources determined by the terminal device and the transmission resources in the time slot where the reserved resources are located for the terminal device, thereby avoiding the transmission resources of the first mode and the second mode in the same time slot. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 A schematic diagram of the composition structure of the communication system of the embodiment of the present invention;

[0024] Figure 2 A schematic diagram of a flow chart of selecting transmission resources in the first mode of the present invention;

[0025] Figure 3 A schematic diagram of a flow chart of selecting transmission resources in the second mode of the present invention;

[0026] Figure 4 A schematic diagram of a process flow of selecting transmission resources within a resource selection window by a terminal device of the present invention;

[0027] Figure 5 An optional processing flow of a resource processing method applied to a terminal device provided in an embodiment of the present invention;

[0028] Figure 6 A schematic diagram of an optional processing flow of a resource processing method applied to a network device provided by an embodiment of the present invention;

[0029] Figure 7 A schematic diagram of a processing flow of another resource processing method applied to a terminal device provided in an embodiment of the present invention;

[0030] Figure 8 A schematic diagram of communication between terminal devices according to an embodiment of the present invention;

[0031] Fig. 9 A schematic diagram of an optional detailed processing flow of a resource processing method provided in an embodiment of the present invention;

[0032] Fig.10 A schematic diagram of determining a first transmission resource set for a first terminal device according to an embodiment of the present invention;

[0033] Fig.11 Another schematic diagram of determining a first transmission resource set for a first terminal device according to an embodiment of the present invention;

[0034] Fig.12 A schematic diagram of another optional detailed processing flow of the resource processing method provided in an embodiment of the present invention;

[0035] Fig.13 A schematic diagram of the structure of a terminal device according to an embodiment of the present invention;

[0036] Fig.14 A schematic diagram of the structure of a network device according to an embodiment of the present invention;

[0037] Fig.15 A schematic diagram of the structure of another terminal device according to an embodiment of the present invention;

[0038] Fig.16 The figure is a schematic diagram of the hardware structure of the electronic device according to the embodiment of the present invention. DETAILED DESCRIPTION

[0039] In order to enable a more detailed understanding of the features and technical contents of the embodiments of the present invention, the implementation of the embodiments of the present invention is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not intended to limit the embodiments of the present invention.

[0040] The resource processing method of the embodiment of the present application can be applied to various communication systems, such as: Global System of Mobile communication (GSM) system, Code Division Multiple Access (CDMA) system, Wideband Code Division Multiple Access (WCDMA) system, General Packet Radio Service (GPRS), Long Term Evolution (LTE) system, LTE Frequency Division Duplex (FDD) system, LTE Time Division Duplex (TDD), Universal Mobile Telecommunication System (UMTS), Worldwide Interoperability for Microwave Access (WiMAX) communication system or 5G system, etc.

[0041] For example, the communication system 100 used in the embodiment of the present application is as follows: Figure 1As shown. The communication system 100 may include a network device 110, which may be a device that communicates with a terminal device 120 (or referred to as a communication terminal or terminal). The network device 110 may provide communication coverage for a specific geographical area, and may communicate with terminal devices located in the coverage area. Optionally, the network device 110 may be a base station (Base Transceiver Station, BTS) in a GSM system or a CDMA system, or a base station (NodeB, NB) in a WCDMA system, or an evolved base station (Evolutional NodeB, eNB or eNodeB) in an LTE system, or a wireless controller in a cloud radio access network (Cloud Radio Access Network, CRAN), or the network device may be a mobile switching center, a relay station, an access point, a vehicle-mounted device, a wearable device, a hub, a switch, a bridge, a router, a network side device in a 5G network, or a network device in a future evolved public land mobile network (Public Land Mobile Network, PLMN), etc.

[0042] The communication system 100 also includes at least one terminal device 120 located within the coverage of the network device 110. As used herein, "terminal device" includes but is not limited to connection via a wired line, such as via a Public Switched Telephone Networks (PSTN), a Digital Subscriber Line (DSL), a digital cable, a direct cable connection; and / or another data connection / network; and / or via a wireless interface, such as, for a cellular network, a Wireless Local Area Network (WLAN), a digital television network such as a DVB-H network, a satellite network, an AM-FM broadcast transmitter; and / or a device of another terminal device configured to receive / send communication signals; and / or an Internet of Things (IoT) device. A terminal device configured to communicate via a wireless interface may be referred to as a "wireless communication terminal", "wireless terminal" or "mobile terminal". Examples of mobile terminals include, but are not limited to, satellite or cellular telephones; Personal Communications System (PCS) terminals that may combine cellular radiotelephones with data processing, fax, and data communications capabilities; PDAs that may include radiotelephones, pagers, Internet / Intranet access, Web browsers, notepads, calendars, and / or Global Positioning System (GPS) receivers; and conventional laptop and / or palmtop receivers or other electronic devices that include radiotelephone transceivers. A terminal device may refer to an access terminal, user equipment (UE), a subscriber unit, a subscriber station, a mobile station, a mobile station, a remote station, a remote terminal, a mobile device, a user terminal, a terminal, a wireless communication device, a user agent, or a user device. The access terminal can be a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA), a handheld device with wireless communication capabilities, a computing device or other processing device connected to a wireless modem, a vehicle-mounted device, a wearable device, a terminal device in a 5G network, or a terminal device in a future evolved PLMN, etc.

[0043] Optionally, terminal devices 120 may perform device-to-device (D2D) communication with each other.

[0044] Optionally, the 5G system or 5G network may also be referred to as a New Radio (NR) system or NR network.

[0045] Figure 1 One network device and two terminal devices are shown exemplarily. Optionally, the communication system 100 may include multiple network devices and each network device may include another number of terminal devices within its coverage area, which is not limited in the embodiments of the present application.

[0046] Optionally, the communication system 100 may also include other network entities such as a network controller and a mobility management entity, which is not limited in the embodiments of the present application.

[0047] It should be understood that the device with communication function in the network / system in the embodiment of the present application can be referred to as a communication device. Figure 1 Taking the communication system 100 shown as an example, the communication equipment may include a network device 110 and a terminal device 120 with communication functions. The network device 110 and the terminal device 120 may be the specific devices described above and will not be repeated here. The communication equipment may also include other devices in the communication system 100, such as a network controller, a mobile management entity and other network entities, which is not limited in the embodiments of the present application.

[0048] It should be understood that the terms "system" and "network" are often used interchangeably in this article. The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0049] To facilitate understanding of the technical solutions of the embodiments of the present application, the relevant technologies of the embodiments of the present application are described below.

[0050] Device to Device (D2D) communication

[0051] D2D communication is based on the sidelink (SL) transmission technology. Different from the traditional cellular system where communication data is received or sent by the base station, the Internet of Vehicles system adopts the D2D communication method (i.e., the device-to-device direct communication method), so it has higher spectrum efficiency and lower transmission delay. For D2D communication, the Third Generation Partnership Project (3GPP) defines two transmission modes: the first mode and the second mode. The first mode and the second mode are described below.

[0052] First mode: Figure 2 As shown, the transmission resources of the terminal device are allocated by the base station, and the terminal device sends data on the side link according to the resources allocated by the base station; the base station can allocate resources for a single transmission to the terminal device, and can also allocate resources for semi-static transmission to the terminal device.

[0053] Second mode: Figure 3 As shown, the terminal device selects a transmission resource in the resource pool to send data.

[0054] In 3GPP, D2D is divided into the following different stages for research:

[0055] Proximity based Service (ProSe): In Release 12 / 13 (Rel-12 / 13), D2D communication is studied for ProSe scenarios, which mainly targets public safety services.

[0056] Vehicle to Everything (V2X): In Rel-14 / 15, D2D communication was studied for V2X scenarios, which mainly targets relatively high-speed vehicle-to-vehicle and vehicle-to-pedestrian communication services.

[0057] Wearable devices (FeD2D): In Release 14 (Rel-14), D2D communication is studied for scenarios where wearable devices access the network through mobile phones, mainly for scenarios with low mobility and low power access.

[0058] Listen + Reserve

[0059] For the terminal device to autonomously determine the transmission resources (such as Mode 4 in LTE-V2X), the terminal determines the transmission resources by listening. The process of listening and resource determination is as follows: when a new data packet arrives at time n and a transmission resource needs to be selected for data transmission, the terminal device determines the resource selection window as [n+T1, n+T2], and the terminal device listens in the listening window [n-1000, n-1], and determines the transmission resource in the resource selection window according to the listening result, where T1 <= 4; 20 <= T2 <= 100; Figure 4 As shown:

[0060] The general process of the terminal device selecting transmission resources in the resource selection window is as follows: (For the specific transmission resource selection process, please refer to the operation steps in 3GPP TS36.213 V15.3.0. Here are several main transmission resource selection steps)

[0061] The terminal device regards all available resources in the resource selection window as a set P, and performs an exclusion operation on the resources in the set P:

[0062] 1) If the terminal device has no listening results on some subframes in the resource listening window, for example, if the terminal device sends data on the subframe, then there is no listening result on the subframe, then the resources on the corresponding subframes in the selection window are excluded after K cycles;

[0063] 2) If the terminal device detects a physical sidelink control channel (PSCCH) within the listening window, and the reference signal received power (RSRP) of its corresponding physical sidelink shared channel (PSSCH) is higher than the threshold, and there is a resource conflict between the next transmission resource reserved by the control information and the data to be sent by the terminal device, the terminal device excludes the resource in set P.

[0064] 3) If the number of remaining resources in set P is less than 20% of the total number of resources in the resource selection window, the terminal device will increase the PSSCH-RSRP threshold by 3dB and repeat the above steps 1)-2) until the number of remaining resources in set P is greater than 20% of the total number of resources in the resource selection window.

[0065] 4) The terminal device performs sidelink received signal strength indicator (S-RSSI) detection on the remaining resources in set P, and sorts them according to energy levels, and puts the 20% of resources with the lowest energy (relative to the number of resources in set P) into set Q.

[0066] 5) The terminal device selects a resource from the set Q with equal probability for data transmission.

[0067] The above-mentioned monitoring and resource selection are all performed in the resource pool of PSSCH. In LTE-V2X, the transmission resources of PSSCH and the transmission resources of PSCCH are one-to-one corresponding. Therefore, determining the transmission resources of PSSCH also determines the corresponding transmission resources of PSCCH.

[0068] Configured Grant

[0069] In 3GPP version 15 (Rel-15), in order to reduce the transmission delay of uplink data, a configuration authorization (also called authorization-free) transmission method was introduced, which mainly includes two configuration authorization methods: the first type of configuration authorization (type-1 configured grant) and the second type of configuration authorization (type-2 configured grant).

[0070] The first type of configuration authorization: The network configures transmission resources and transmission parameters for the terminal device through Radio Resource Control (RRC) signaling. The configuration information carried by the RRC signaling includes all transmission resources and transmission parameters including time domain resources, frequency domain resources, demodulation reference signal (DMRS), power control, modulation and coding scheme (MCS), waveform (Waveform), redundancy version (RV), number of repetitions, frequency hopping, number of hybrid automatic repeat request (HARQ) processes, etc. When the terminal device receives the RRC signaling, it can immediately use the configured transmission parameters to perform physical uplink shared channel (PUSCH) transmission on the configured time and frequency resources.

[0071] The second type of configuration authorization: adopts a two-step configuration method. First, the high-level parameter ConfiguredGrantConfig configures the transmission resources and transmission parameters including the period of time-frequency resources, open-loop power control, waveform, redundant version, number of retransmissions, frequency hopping, number of HARQ processes, etc. Then, the downlink control information (Downlink ControlInformation, DCI) activates the PUSCH transmission of the second type of configuration authorization, and simultaneously configures other transmission resources and transmission parameters including time domain resources, frequency domain resources, DMRS, MCS, etc. When the terminal device receives the high-level parameter ConfiguredGrantConfig, it cannot immediately use the resources and parameters configured by the high-level parameter for PUSCH transmission, but must wait until the corresponding activation DCI is received and other resources and transmission parameters are configured before PUSCH transmission can be performed. In addition, the network device can deactivate the PUSCH transmission of the second type of configuration authorization through DCI. When the terminal device receives the deactivated DCI, it can no longer use the transmission resources authorized by the second type of configuration for transmission.

[0072] If the network device allocates a configured authorized transmission resource to the terminal device, when the terminal device has uplink data to transmit, it can directly use the transmission resource for transmission without sending a resource request message (such as a Scheduling Request (SR) message, a Buffer Status Report (BSR) message) to the network to request transmission resources, thereby reducing latency.

[0073] NR-V2X

[0074] In NR-V2X, autonomous driving needs to be supported, which puts higher requirements on data interaction between vehicles, such as higher throughput, lower latency, higher reliability, larger coverage, more flexible resource allocation, etc.

[0075] In the NR-V2X system, multiple transmission modes are introduced, including Mode 1 and Mode 2, where Mode 1 is that the network device allocates transmission resources to the terminal device (corresponding to the first mode mentioned above), and Mode 2 is that the terminal device selects transmission resources (corresponding to the second mode mentioned above).

[0076] In NR-V2X mode 1, a resource allocation method of configuration authorization is also introduced in the sidelink transmission, that is, the network device allocates sidelink transmission resources to the terminal device by means of configuration authorization. When the terminal device is allocated with the transmission resource of configuration authorization, the terminal device can transmit the sidelink data on the transmission resource without sending SR / BSR messages to the network to reapply for resources, thereby reducing the transmission delay. In the transmission mode of configuration authorization, the network device allocates semi-static transmission resources to the terminal device. For the first type of configuration authorization, the network device configures the configuration authorization transmission resources through RRC signaling, and the terminal device can transmit the sidelink data on the configuration authorization transmission resources. In addition, the network device can reconfigure the configuration authorization transmission resources through RRC signaling. For the second type of configuration authorization, the network device configures some transmission parameters through RRC signaling, configures transmission resources and another part of transmission parameters through DCI, and can activate or deactivate the configuration authorization through DCI. When the configuration authorization is activated, the terminal device can use the transmission resources of the configuration authorization to transmit sidelink data. When the configuration authorization is deactivated, the terminal device can no longer use the transmission resources of the configuration authorization for transmission.

[0077] In addition, a method of dynamically allocating transmission resources is also introduced in Mode 1 of NR-V2X. When the terminal device has side data to send, it sends a resource request to the network. The network device allocates side transmission resources to the terminal device through DCI, and the terminal device uses the transmission resources for side data transmission. In Mode 2 of NR-V2X, the terminal device autonomously selects transmission resources from the resource pool allocated or preconfigured by the network device. The terminal device can determine the available transmission resource set in the resource pool by listening. When the terminal device selects a transmission resource from the available resource set for data transmission, for periodic transmission services, the terminal device can reserve the transmission resources for the next transmission to prevent other users from preempting the resources. For non-periodic transmission services, the terminal device does not reserve transmission resources.

[0078] In NR-V2X, terminal devices need to support multiple services, and there may be a situation where a terminal device works in both mode 1 and mode 2. At this time, if the terminal device transmits sideline data in mode 1, the terminal device obtains resource authorization information from the network device and sends the sideline data on the authorized transmission resource. If the terminal device transmits sideline data in mode 2, the terminal device obtains resource pool configuration information according to network configuration information or pre-configuration information, determines the resource pool according to the resource pool configuration information, and autonomously selects transmission resources in the resource pool for sideline data transmission.

[0079] However, if Mode 1 and Mode 2 use independent resource pools, insufficient resource utilization will result. Therefore, Mode 1 and Mode 2 can share a resource pool; that is, the transmission resources in one resource pool can be used for both Mode 1 terminal devices to transmit sideline data and Mode 2 terminal devices to transmit sideline data. When the terminal device supports working in Mode 1 and Mode 2 at the same time, the transmission resources of Mode 1 are allocated by the network device, and the transmission resources of Mode 2 are selected autonomously by the terminal device. However, the terminal device cannot support the simultaneous transmission of two PSSCHs. Therefore, how to avoid the simultaneous transmission of Mode 1 transmission resources and Mode 2 transmission resources of the same terminal device is a problem that needs to be solved. To this end, the following technical solutions of the embodiments of the present application are proposed.

[0080] An optional processing flow of a resource processing method applied to a terminal device provided in an embodiment of the present invention is as follows: Figure 5 As shown, the following steps are included:

[0081] Step S201, the terminal device determines a first transmission resource set within a resource selection window, the first transmission resource set does not include transmission resources within a time slot where a first transmission resource allocated by a network device to the terminal device is located, and the transmission resources within the first transmission resource set are used by the terminal device to send side services.

[0082] In the embodiment of the present invention, the resource selection window is a time interval used by the terminal device to determine the sideline transmission resource.

[0083] In the embodiment of the present invention, the transmission resources in the first transmission resource set are used by the terminal device to send sideline services using mode 2.

[0084] In an embodiment of the present invention, the first transmission resource allocated by the network device to the terminal device is used for the terminal device to send side services using mode 1. In some embodiments, the network device allocates the first transmission resource to the terminal device through DCI or configuration authorization.

[0085] In some embodiments, the process of the terminal device determining the first transmission resource set within the resource selection window may be: the terminal device determines the second transmission resource set from the resource pool within the resource selection window; optionally, the terminal device may determine the second transmission resource set from the resource pool within the resource selection window by listening. The terminal device excludes transmission resources in the second transmission resource set that are in the same time slot as the first transmission resource.

[0086] In other embodiments, after the terminal device determines the second transmission resource set from the resource pool, the terminal device selects the third transmission resource from the second transmission resource set and reserves at least one fourth transmission resource. The fourth transmission resource is a transmission resource corresponding to the third transmission resource in the next transmission cycle. The corresponding transmission resource may refer to the third transmission resource and the fourth transmission resource having the same frequency domain starting position and frequency domain size in their respective transmission cycles. The time domain interval between the third transmission resource and the fourth transmission resource is determined by the transmission cycle of the side data to be transmitted. When the fourth transmission resource and the fifth transmission resource allocated by the network device to the terminal device are in the same time slot, the terminal device excludes the third transmission resource from the second transmission resource set. Furthermore, the terminal device may also exclude the transmission resources in the time slot where the third transmission resource is located from the second transmission resource set.

[0087] In specific implementation, the terminal device determines the first transmission source set, which may occur after the network device configures the first transmission resource for the terminal device. That is, the network device first configures the first transmission resource for the terminal device, and then the terminal device autonomously determines the first transmission resource set. The terminal device determines the first transmission resource set, which may occur before the network device configures the first transmission resource for the terminal device. That is, the terminal device first autonomously determines the first transmission resource set, and then sends the first transmission resource set information to the network device; the network device allocates the first transmission resource to the terminal device according to the first transmission resource set information.

[0088] In the embodiment of the present invention, after executing step S201, the method may further include:

[0089] Step S202: The terminal device sends first information to the network device, where the first information is used to represent information about transmission resources selected by the terminal device for sending sideline services.

[0090] In some embodiments, the terminal device sends the time slot information of the time slot where the transmission resource selected by the terminal device is located to the network device. For example, the first information is the time slot number, which is determined by the system frame number (System Frame Number, SFN) or the direct frame number (Direct Frame Number, DFN) and the time slot sequence number of the time slot in a wireless frame. For example, for a subcarrier spacing of 15kHz, a time slot corresponds to a time length of 1ms, and the time slot number in a wireless frame is [0, 9]. If the system frame number of the time slot is 3, and the time slot sequence number in the wireless frame is 8, then the time slot number determined according to the system frame number and the time slot sequence number is 38, and the terminal device reports 38 to the network device; the network device can then obtain the time slot information of the transmission resource selected by the terminal device.

[0091] The terminal device sends the time slot information of the time slot where the transmission resource selected by itself is located to the network device, thereby preventing the network device from allocating transmission resources on the time slot to the terminal device, thereby preventing the terminal device from transmitting in the same time slot using the transmission resources of mode 1 and the transmission resources of mode 2.

[0092] In the embodiment of the present invention, after executing step S202, the method may further include:

[0093] Step S203: The terminal device sends second information to the network device.

[0094] In some embodiments, the second information is used to determine the time domain interval between the transmission resource selected by the terminal device and the transmission resource reserved by the terminal device. For example, if the terminal device reserves the transmission resource after 100 time slots, the second information reported by the terminal device to the network device is 100. Since the terminal device reports the time slot information of the transmission resource selected by the terminal device to the network device in step S202, the network device can determine the time interval between the next transmission resource reserved by the terminal device and the currently selected transmission resource in combination with the second information, and then the network device can determine the time slot information of the next transmission resource.

[0095] In some other embodiments, the second information is used to determine the service cycle of the sideline service transmitted by the terminal device in the second mode. For example, the second information is the service cycle of the sideline service transmitted by the terminal device in mode 2; if the service cycle is 100ms, the terminal device selects the transmission resource and reserves the transmission resource for the next transmission after 100ms. Therefore, when the terminal device reports the service cycle of the sideline service to the network device, the network device can determine the time interval between the transmission resource reserved by the terminal device and the currently selected transmission resource, and then the network device can determine the time slot information of the next transmission resource.

[0096] In an embodiment of the present invention, the network device determines the time slot information of the selected transmission resource based on the first information reported by the terminal device, and combines the second information to determine the time interval between the reserved previous transmission resource and the current transmission resource, thereby determining the time slot information of the next transmission resource.

[0097] In the embodiment of the present invention, after executing step S203, the method may further include:

[0098] Step S204: The terminal device sends third information to the network device, where the third information is used to determine the number of transmission resources reserved by the terminal device.

[0099] For example, if the terminal device reserves transmission resources for the next four transmission cycles, the third information reported by the terminal device to the network device is 4; the network device can determine, based on the third information, that the number of transmission resources reserved by the terminal device is 4. The terminal device can determine, based on the first information, the second information, and the third information, the time slot information of the transmission resources selected by the terminal device and the time slot information of the reserved transmission resources, thereby preventing the network device from allocating the transmission resources in the time slot corresponding to the time slot information of the terminal device to the terminal device.

[0100] Before executing step S201, or after executing step S202, or after executing step S203, or after executing step S204, the method may further include:

[0101] Step S205: The terminal device receives configuration information sent by the network device, where the configuration information is used to determine the first transmission resource.

[0102] Here, the first transmission resource and the transmission resource selected by the terminal device for sending the sideline service are not in the same time slot; or, the first transmission resource and the transmission resource reserved by the terminal device are not in the same time slot.

[0103] In specific implementation, if step S205 is performed before step S201, the terminal device can determine the first transmission resource after receiving the configuration information sent by the network device. When the terminal device autonomously determines the first transmission resource set, the first transmission resource set does not include the transmission resource in the time slot where the first transmission resource is located.

[0104] If step S205 is executed after step S202, step S203, or step S204, when the network device allocates the first transmission resource to the terminal device, it does not allocate the transmission resources in the time slot of the transmission resources selected by the terminal device in steps S201 to S204 or the reserved time slot.

[0105] The resource processing method for a network device provided in an embodiment of the present invention may include: Figure 6 As shown, including:

[0106] Step S301: A network device receives first information sent by a terminal device, where the first information is used to represent information about transmission resources selected by the terminal device for sending a sideline service.

[0107] In the embodiment of the present invention, the description of the first information is the same as the description of the first information in the above step S202, and will not be repeated here.

[0108] Step S302: The network device allocates a first transmission resource to the terminal device based on the first information.

[0109] In some embodiments, the network device determines the time slot where the transmission resource selected by the terminal device is located based on the first information; the network device does not allocate the transmission resource in the time slot to the terminal device, so that the first transmission resource and the transmission resource selected by the terminal device are not in the same time slot.

[0110] After executing step S302, the method may further include:

[0111] Step S302a: The network device receives the second information sent by the terminal device.

[0112] In the embodiment of the present invention, the second information is used to determine the time domain interval between the transmission resource selected by the terminal device and the transmission resource reserved by the terminal device; or, the second information is used to determine the service period of the sideline service transmitted by the terminal device in the second mode. Wherein, when the terminal device is in the second mode, the sideline transmission resource used by the terminal device is selected autonomously by the terminal device.

[0113] It should be noted that the description of the second information in the embodiment of the present invention is the same as the description of the second information in the above step S203, and will not be repeated here.

[0114] In some embodiments, the network device determines the time slots where the transmission resource selected by the terminal device and the transmission resource reserved by the terminal device are located based on the first information and the second information, respectively; the network device does not allocate the transmission resource in the time slot to the terminal device. In this way, the first transmission resource is not in the same time slot as the transmission resource selected by the terminal device and the reserved transmission resource.

[0115] After executing step S302a, the method may further include:

[0116] Step S302b: The network device receives third information sent by the terminal device, where the third information is used to determine the number of transmission resources reserved by the terminal device.

[0117] It should be noted that the description of the third information in the embodiment of the present invention is the same as the description of the third information in the above step S204, and will not be repeated here.

[0118] After step S302, or step S302a, or step S302b, the method may further include:

[0119] Step S303: The network device sends configuration information to the terminal device, where the configuration information is used to determine the first transmission resource.

[0120] In an embodiment of the present invention, the first transmission resource and the transmission resource selected by the terminal device for sending sideline services are not in the same time slot; or, the first transmission resource and the transmission resource reserved by the terminal device are not in the same time slot.

[0121] After the network device sends the configuration information to the terminal device, the terminal device can determine the first transmission resource; in this way, when the terminal device autonomously selects transmission resources or reserves transmission resources, it can exclude the transmission resources in the time slot where the first transmission resource is located from the available transmission resource set.

[0122] The above embodiments aim to avoid resource conflicts when a terminal device autonomously selects or reserves transmission resources or a network device allocates transmission resources to a terminal device, so as to avoid the situation where the transmission resources selected or reserved by the terminal device and the transmission resources allocated by the network device are not in the same time slot.

[0123] The following describes the processing flow of the resource processing method of an embodiment of the present invention for a scenario in which the transmission resources selected or reserved by the terminal device and the transmission resources allocated by the network device are in the same time slot.

[0124] The processing flow of another resource processing method applied to a terminal device provided by an embodiment of the present invention is as follows: Figure 7As shown, the following steps are included:

[0125] Step S401, when the first transmission resource and the second transmission resource are in the same time slot, the terminal device selects a transmission resource for transmitting the service based on at least one of the priority of the terminal device mode, the service attributes of the service and the priority of the side channel.

[0126] In the embodiment of the present invention, the modes of the terminal device include: the first mode and the second mode; when the terminal device is in the first mode, the first transmission resource is allocated by the network device; when the terminal device is in the second mode, the second transmission resource is selected by the terminal device itself. It can also be understood that the first mode corresponds to the above-mentioned mode 1 in the embodiment of the present invention, and the second mode corresponds to the above-mentioned mode 2 in the embodiment of the present invention.

[0127] In a specific implementation, when the priority of the first mode is higher than the priority of the second mode, the terminal device selects the first transmission resource. The priority of the mode in which the terminal device is located is configured or pre-configured by a network device.

[0128] In the embodiment of the present invention, the service attribute of the service includes any one of the following: service priority, service reliability, service delay and service transmission rate.

[0129] In a specific implementation, the terminal device selects transmission resources corresponding to a service with a high service priority; or, the terminal device selects transmission resources corresponding to a service with a high service reliability; or, the terminal device selects transmission resources corresponding to a service with a short service delay; or, the terminal device selects transmission resources corresponding to a service with a high service transmission rate.

[0130] In an embodiment of the present invention, the sidelink channel includes any two of: PSCCH, PSSCH, Physical Sidelink Feedback Channel (PSFCH) and Physical Sidelink Broadcast Channel (PSBCH). The terminal device selects the transmission resource corresponding to the sidelink channel with a higher priority; wherein the priority of the sidelink channel is configured or pre-configured by the network device. For example, the priority of PSCCH is higher than that of PSSCH, the priority of PSFCH is higher than that of PSCCH or PSSCH, and the priority of PSBCH is higher than that of PSSCH.

[0131] by Figure 8Taking the communication diagram between the terminal devices shown as an example, the first terminal device in the cell is the data transmitter, the second terminal device and the third terminal device are the data receivers, the second terminal device is in the cell, and the third terminal device is outside the cell. The first terminal device uses mode 1 to transmit data with the second terminal device, that is, the first terminal device uses the transmission resources configured by the network device to send sideline services to the second terminal device. The first terminal device uses mode 2 to transmit data with the third terminal device, that is, the first terminal device obtains the resource pool information configured by the network device, autonomously obtains transmission resources in the resource pool by listening, and uses the obtained transmission resources to send sideline data to the third terminal device.

[0132] The resource processing method provided by the embodiment of the present invention is described in detail below for a scenario in which a network device first allocates a first transmission resource to a terminal device, and the terminal device then independently selects a transmission resource. An optional detailed processing flow of the resource processing method provided by the embodiment of the present invention is as follows: Fig. 9 As shown, the following steps are included:

[0133] Step S501: A network device allocates a first transmission resource to a first terminal device.

[0134] In some embodiments, the network device allocates a first transmission resource to the terminal device through downlink control signaling (Downlink Control Information, DCI), and the first transmission resource may include resources for one transmission, or include transmission resources for multiple transmissions (for example, including initial transmission and retransmission of data).

[0135] In other embodiments, the network device allocates the first transmission resource to the first terminal device through a configuration authorization, wherein the configuration authorization may be a type-1 configuration authorization, i.e., the first transmission resource and transmission parameters are configured through RRC signaling; the configuration authorization may also be a type-2 configuration authorization, i.e., part of the sideline transmission parameters are configured through RRC signaling, another part of the transmission parameters and the first transmission resource are configured through DCI signaling, and the configuration authorization is activated or deactivated through DCI. The transmission resources allocated by the network device through the configuration authorization are multiple transmission resources with periodicity.

[0136] Step S502: The first terminal device sends a sideline service using a first transmission resource.

[0137] In the embodiment of the present invention, the first terminal device performs sideline communication with the second terminal device in mode 1; the first terminal device sends a sideline service to the second terminal device using the first transmission resource.

[0138] Step S503: The first terminal device selects a second transmission resource by listening.

[0139] In an embodiment of the present invention, the first terminal device can use the existing listening method to determine the second transmission resource set, exclude the transmission resources in the time slot where the first transmission resource is located in the second transmission resource set, and obtain the first transmission resource set; the first terminal device then selects the second transmission resource in the first transmission resource set, which is used for the first terminal device to communicate sideways with the third terminal device in mode 2.

[0140] In some embodiments, a first terminal device determines a first transmission resource set, such as Fig.10 As shown, the terminal device excludes the transmission resources (such as transmission resource B) reserved by other terminal devices other than the first terminal device from the second transmission resource set within the resource selection window by listening; if there are transmission resources (such as transmission resource C) configured by the network device within the resource selection window, the terminal device excludes all transmission resources on the time slot where the transmission resource C is located from the second transmission resource set; if there is a transmission resource C configured by the network device in time slot n+60, the terminal device excludes all resources on time slot n+60 from the second transmission resource set.

[0141] In some other embodiments, the first terminal device does not have a transmission resource configured by the network device in the resource selection window, but if the first terminal device selects a transmission resource in the resource selection window and reserves one (or the next K) transmission resources, and at least one of the transmission resources reserved by the terminal device and the transmission resource configured by the network device are in the same time slot, then the terminal device excludes the transmission resource in the time slot where the selected transmission resource is located from the first resource set. Another schematic diagram of the first terminal device determining the first transmission resource set, such as Fig.11 As shown; the range of the resource selection window of the terminal device is time slot [n+1, n+100]. There are no transmission resources configured by the network device in the resource selection window, but there is a transmission resource C configured by the network device in time slot n+160. If the terminal device selects transmission resource D on time slot n+60 in the resource selection window, and reserves transmission resource E after 100 time slots, and transmission resource E and transmission resource C are in the same time slot; then the terminal device excludes the time slot where resource D is located, that is, all transmission resources on time slot n+60, from the second resource set.

[0142] In the embodiment of the present invention, after the first terminal device excludes unavailable transmission resources from the second resource set, it continues to select transmission resources using the existing listening mechanism. For example, energy detection is performed on the remaining transmission resources, and the resources with the lowest energy of M% (for example, M=20) are selected as the available first transmission resource set, and a resource is selected with equal probability from the first transmission resource set as the transmission resource for sideline service transmission with the third terminal device in mode 2.

[0143] Step S504: The first terminal device sends a sideline service to the third terminal device on the selected transmission resources.

[0144] It should be noted that in the embodiment of the present invention, there is no order of execution between step S502 and step S503. Step S502 may be executed first and then step S503, or step S503 may be executed first and then step S502. Furthermore, when step S503 is executed first and then step S502, there is no order of execution between step S502 and step S504. Step S502 may be executed first and then step S504, or step S504 may be executed first and then step S502.

[0145] The resource processing method described in the embodiment of the present invention is applicable to the resource determination process of periodic services and non-periodic services in Mode 2. When the first terminal device determines the transmission resource set of Mode 2 by listening, it avoids selecting the transmission resources of Mode 1 that the network device has configured for the first terminal device; thereby avoiding the problem of simultaneous transmission of side services of Mode 2 and Mode 1. Since the transmission resources of Mode 2 exclude the transmission resources of Mode 1 during the listening process, there is no need for the network device to reallocate the transmission resources of Mode 1 to the first terminal device, thereby reducing the signaling overhead between the first terminal device and the network device.

[0146] The following describes in detail the resource processing method provided by the embodiment of the present invention for a scenario in which the terminal device first autonomously selects a transmission resource and the network device then allocates the first transmission resource to the terminal device. Another optional detailed processing flow of the resource processing method provided by the embodiment of the present invention is as follows: Fig.12 As shown, the following steps are included:

[0147] Step S601: The first terminal device selects a second transmission resource by listening.

[0148] It should be noted that, in the embodiment of the present invention, the process of the first terminal device selecting the second transmission resource is the same as the process of the first terminal device selecting the second transmission resource in the above step S503, and will not be repeated here.

[0149] Step S602: The first terminal device sends a sideline service to the third terminal device using the second transmission resource.

[0150] Step S603: The first terminal device sends first information to the network device.

[0151] In the embodiment of the present invention, the network device can determine the time slot information of the time slot where the second transmission resource selected by the first terminal device is located through the first information.

[0152] It should be noted that, in the embodiment of the present invention, the description of the first information is the same as the description of the first information in the above step S203, and will not be repeated here.

[0153] Step S604: The first terminal device sends second information to the network device.

[0154] In the embodiment of the present invention, the network device can determine the time slot information of the time slot where the second transmission resource selected by the first terminal device and a reserved transmission resource are located through the second information.

[0155] It should be noted that, in the embodiment of the present invention, the description of the second information is the same as the description of the second information in the above step S204, and will not be repeated here.

[0156] Step S605: The first terminal device sends third information to the network device.

[0157] In the embodiment of the present invention, the network device can determine the time slot information of the time slots where the second transmission resource selected by the first terminal device and the reserved multiple transmission resources are located through the third information.

[0158] It should be noted that, in the embodiment of the present invention, the description of the third information is the same as the description of the third information in the above step S205, and will not be repeated here.

[0159] Step S606: The network device allocates a first transmission resource to the terminal device based on the first information, the second information and the third information.

[0160] Step S607: The first terminal device sends a sideline service to the second terminal device using the first transmission resource in mode 1.

[0161] In the embodiment of the present invention, before executing step S601, the method may further include: the network device allocates the first terminal device a transmission resource of mode 1. At this time, in step S601, when the first terminal device listens to obtain the second transmission resource, it will exclude all transmission resources in the time slot where the transmission resource allocated by the network device to the terminal device is located.

[0162] The resource processing method described in the embodiment of the present invention is applicable to the process of determining the transmission resources of the periodic service in mode 2. In the case of reserved transmission resources, the terminal device can report the reserved transmission resources to the network device to avoid the network device scheduling the transmission resources selected by the terminal device and the transmission resources in the time slot where the reserved transmission resources are located for the terminal device, and avoid the transmission resources of mode 1 and mode 2 in the same time slot.

[0163] It should be noted that the service in the embodiment of the present invention is equivalent to data; therefore, the terminal device transmitting the sideline service may also be referred to as the terminal device transmitting the sideline data.

[0164] The resource processing method provided in the embodiment of the present invention is described in detail below for the situation where a terminal device needs to perform both mode 1 service transmission and mode 2 service transmission in the same time slot.

[0165] When the first transmission resource and the second transmission resource are in the same time slot, the terminal device selects a transmission resource for transmitting the service based on at least one of the following: the priority of the mode of the terminal device, the service attribute of the service and the priority of the side channel.

[0166] Among them, the modes of the terminal device include: a first mode and a second mode; when the terminal device is in the first mode, the first transmission resource is allocated by the network device; when the terminal device is in the second mode, the second transmission resource is selected autonomously by the terminal device.

[0167] 1) Selecting a transmission resource based on the priority of the mode the terminal device is in. When the priority of the first mode is higher than the priority of the second mode, the terminal device selects a first transmission resource corresponding to the first mode.

[0168] 2) Selecting transmission resources based on service attributes of the service, wherein the service attributes of the service include any one of the following: service priority, service reliability, service delay and service transmission rate.

[0169] For example, mode 1 transmits the first service, and mode 2 transmits the second service. The terminal device determines which transmission resource to select based on the priority of each service. If the priority of the first service is higher than the priority of the second service, the terminal device selects the transmission resource corresponding to the first service and gives up transmitting the second service. If the priority of the first service is lower than the priority of the second service, the terminal device selects the transmission resource corresponding to the second service and gives up transmitting the first service. Alternatively, the terminal device determines which transmission resource to select based on the latency of each service. If the latency requirement of the first service is higher than the latency requirement of the second service, for example, the latency requirement of the first service is 10ms and the latency requirement of the second service is 20ms, the terminal device selects the transmission resource corresponding to the first service and gives up transmitting the second service; if the latency requirement of the first service is lower than the latency requirement of the second service, the terminal device selects the transmission resource corresponding to the second service and gives up transmitting the first service. Alternatively, the terminal device determines which transmission resource to select based on the service transmission rate of each service. If the service transmission rate of the first service is higher than the service transmission rate of the second service, the terminal device selects the transmission resources corresponding to the first service and abandons the transmission of the second service; if the service transmission rate of the first service is lower than the delay requirement of the second service, the terminal device selects the transmission resources corresponding to the second service and abandons the transmission of the first service.

[0170] It should be noted that the service priority is the priority of the logical channel corresponding to the service, and further, the service priority is the highest priority of the logical channel corresponding to the service. If the sidelink control information (Sidelink Control Information, SCI) of the sidelink service or sidelink data to be transmitted carries priority information, the service priority is the priority information carried in the SCI.

[0171] 3) Select transmission resources based on the priority of the side channel.

[0172] The types of side channels include: any two of PSCCH, PSSCH, PSFCH and PSBCH; the priority relationship between the side channels can be pre-configured or network configured. For example, the pre-configured PSFCH transmission priority is higher than PSSCH, and the PSCCH transmission priority is higher than PSSCH. The terminal device determines the side channel in transmission mode 1 or mode 2 according to the transmission priority information between the side channels pre-configured or configured by the network device.

[0173] The embodiment of the present invention solves the problem that when mode 1 and mode 2 are transmitted in the same time slot, a transmission resource is selected by means of the priority of the side channel, service attributes, the mode of the terminal device, etc., to give priority to the transmission of services with higher priority.

[0174] To implement the resource processing method described in the embodiment of the present invention, the embodiment of the present invention provides a terminal device, the component structure of the terminal device 800 is as follows: Fig.13 As shown, including:

[0175] A first processing unit 801 is configured to determine a first transmission resource set within a resource selection window;

[0176] The first transmission resource set does not include transmission resources in the time slot where the first transmission resource allocated by the network device to the terminal device is located, and the transmission resources in the first transmission resource set are used for the terminal device to send side services.

[0177] In the embodiment of the present invention, the first processing unit 801 is configured to determine a second transmission resource set within the resource selection window; and exclude transmission resources in the same time slot as the first transmission resource from the second transmission resource set.

[0178] In an embodiment of the present invention, the first processing unit 801 is further configured to exclude the third transmission resource from the second transmission resource set when the terminal device selects a third transmission resource from the second transmission resource set and reserves at least one fourth transmission resource, and the fourth transmission resource is in the same time slot as the fifth transmission resource allocated by the network device to the terminal device.

[0179] In the embodiment of the present invention, the terminal device 800 further includes: a first sending unit 802, configured to send first information to the network device, wherein the first information is used to represent information of transmission resources selected by the terminal device for sending sideline services.

[0180] In the embodiment of the present invention, the first information is used to determine the time slot information of the time slot where the transmission resource selected by the terminal device is located.

[0181] In the embodiment of the present invention, the first sending unit 802 is further configured to send second information to the network device;

[0182] The second information is used to determine the time domain interval between the transmission resource selected by the terminal device and the transmission resource reserved by the terminal device;

[0183] Alternatively, the second information is used to determine the service period of the sideline service transmitted by the terminal device in the second mode; wherein, when the terminal device is in the second mode, the transmission resources used by the terminal device are independently selected by the terminal device.

[0184] In the embodiment of the present invention, the first sending unit 802 is further configured to send third information to the network device, where the third information is used to determine the number of transmission resources reserved by the terminal device.

[0185] In the embodiment of the present invention, the terminal device 800 further includes:

[0186] A first receiving unit 803 is configured to receive configuration information sent by the network device, where the configuration information is used to determine the first transmission resource;

[0187] The first transmission resource and the transmission resource selected by the terminal device for sending the sideline service are not in the same time slot; or the first transmission resource and the transmission resource reserved by the terminal device are not in the same time slot.

[0188] To implement the resource processing method described in the embodiment of the present invention, the embodiment of the present invention provides a network device, the composition structure of the network device 900 is as follows: Fig.14 As shown, including:

[0189] The second receiving unit 901 is configured to receive first information sent by a terminal device, where the first information is used to represent information about a transmission resource selected by the terminal device for sending a sideline service;

[0190] The second processing unit 902 is configured to allocate a first transmission resource to the terminal device based on the first information.

[0191] In the embodiment of the present invention, the first information is used to determine the time slot information of the time slot where the transmission resource selected by the terminal device is located.

[0192] In the embodiment of the present invention, the second receiving unit 901 is further configured to receive second information sent by the terminal device;

[0193] The second information is used to determine the time domain interval between the transmission resource selected by the terminal device and the transmission resource reserved by the terminal device;

[0194] Alternatively, the second information is used to determine the service period of the sideline service transmitted by the terminal device in the second mode; wherein, when the terminal device is in the second mode, the sideline transmission resources used by the terminal device are independently selected by the terminal device.

[0195] In the embodiment of the present invention, the second receiving unit 901 is further configured to receive third information sent by the terminal device, where the third information is used to determine the number of transmission resources reserved by the terminal device.

[0196] In the embodiment of the present invention, the first transmission resource and the transmission resource selected by the terminal device are not in the same time slot.

[0197] In the embodiment of the present invention, the second processing unit 902 is configured to determine the time slot in which the transmission resource selected by the terminal device is located based on the first information, and not allocate the transmission resource in the time slot to the terminal device.

[0198] In the embodiment of the present invention, the first transmission resource, the transmission resource selected by the terminal device, and the transmission resource reserved by the terminal device are not in the same time slot.

[0199] In an embodiment of the present invention, the second processing unit 902 is configured to determine, based on the first information, the time slots in which the transmission resources selected by the terminal device and the transmission resources reserved by the terminal device are located, respectively, and not allocate transmission resources in the time slots to the terminal device.

[0200] In the embodiment of the present invention, the network device 900 further includes:

[0201] The second sending unit 903 is configured to send configuration information to the terminal device, and the configuration information is used to determine the first transmission resource; wherein the first transmission resource and the transmission resource selected by the terminal device for sending the sideline service are not in the same time slot; or, the first transmission resource and the transmission resource reserved by the terminal device are not in the same time slot.

[0202] To implement the resource processing method described in the embodiment of the present invention, the embodiment of the present invention provides another terminal device, the component structure of the terminal device 1000 is as follows: Fig.15 As shown, including:

[0203] The third processing unit 1001 is configured such that, when the first transmission resource and the second transmission resource are in the same time slot, the terminal device selects a transmission resource for transmitting the service based on at least one of the following:

[0204] The priority of the mode in which the terminal device is located, the service attributes of the service and the priority of the side channel;

[0205] Among them, the modes of the terminal device include: a first mode and a second mode; when the terminal device is in the first mode, the first transmission resource is allocated by the network device; when the terminal device is in the second mode, the second transmission resource is selected autonomously by the terminal device.

[0206] In the embodiment of the present invention, when the priority of the first mode is higher than the priority of the second mode, the third processing unit 1001 is configured to select the first transmission resource.

[0207] In the embodiment of the present invention, the service attribute of the service includes any one of the following: service priority, service reliability, service delay and service transmission rate.

[0208] In an embodiment of the present invention, the third processing unit 1001 is configured to select transmission resources corresponding to a service with a high service priority; or, select transmission resources corresponding to a service with a high service reliability; or, select transmission resources corresponding to a service with a short service delay; or, select transmission resources corresponding to a service with a high service transmission rate.

[0209] In the embodiment of the present invention, the side channel includes any two of PSCCH, PSSCH, PSFCH and PSBCH.

[0210] In an embodiment of the present invention, the priority of the side channel is configured or pre-configured by a network device; and / or, the priority of the mode in which the terminal device is located is configured or pre-configured by a network device.

[0211] In the embodiment of the present invention, the third processing unit 1001 is configured to select transmission resources corresponding to a side channel with a high priority.

[0212] An embodiment of the present invention also provides a terminal device, including a processor and a memory for storing a computer program that can be run on the processor, wherein the processor is used to execute the steps of the resource processing method executed by the above-mentioned terminal device when running the computer program.

[0213] An embodiment of the present invention further provides a network device, comprising a processor and a memory for storing a computer program that can be run on the processor, wherein the processor is used to execute the steps of the resource processing method executed by the above-mentioned network device when running the computer program.

[0214] Fig.16 700 is a schematic diagram of the hardware structure of an electronic device (terminal device or network device) according to an embodiment of the present invention. The electronic device 700 includes: at least one processor 701, a memory 702, and at least one network interface 704. The various components in the electronic device 700 are coupled together through a bus system 705. It can be understood that the bus system 705 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 705 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, the bus system 705 is not shown in FIG. Fig.16 Various buses are labeled as bus system 705 .

[0215] It can be understood that the memory 702 can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be ROM, programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), magnetic random access memory (FRAM), ferromagnetic random access memory, flash memory, magnetic surface memory, optical disk, or compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), direct memory bus random access memory (DRRAM). The memory 702 described in the embodiments of the present invention is intended to include, but is not limited to, these and any other suitable types of memory.

[0216] The memory 702 in the embodiment of the present invention is used to store various types of data to support the operation of the electronic device 700. Examples of such data include: any computer program for operating on the electronic device 700, such as the application 7022. The program implementing the method of the embodiment of the present invention may be included in the application 7022.

[0217] The method disclosed in the above embodiment of the present invention can be applied to the processor 701, or implemented by the processor 701. The processor 701 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 701 or the instruction in the form of software. The above processor 701 may be a general processor, a digital signal processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The processor 701 can implement or execute the methods, steps and logic block diagrams disclosed in the embodiment of the present invention. The general processor may be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present invention, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium, which is located in the memory 702. The processor 701 reads the information in the memory 702 and completes the steps of the above method in combination with its hardware.

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

[0219] An embodiment of the present application also provides a storage medium for storing a computer program.

[0220] Optionally, the storage medium can be applied to the terminal device in the embodiments of the present application, and the computer program enables the computer to execute the corresponding processes in the various methods in the embodiments of the present application. For the sake of brevity, they are not repeated here.

[0221] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0222] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0223] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

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

Claims

1. A resource processing method, the method comprising: The terminal device determines a first transmission resource set within the resource selection window; The first transmission resource set does not include transmission resources in a time slot where a first transmission resource allocated by a network device to the terminal device is located, and the transmission resources in the first transmission resource set are used by the terminal device to send side services. The terminal device determines a first transmission resource set within a resource selection window, including: The terminal device determines a second transmission resource set within the resource selection window; The terminal device excludes, from the second transmission resource set, transmission resources in the same time slot as the first transmission resource, When the terminal device selects a third transmission resource from the second transmission resource set and reserves at least one fourth transmission resource, and the fourth transmission resource is in the same time slot as the fifth transmission resource allocated by the network device to the terminal device, the terminal device excludes the third transmission resource from the second transmission resource set.

2. The method according to claim 1, wherein: The method further comprises: The terminal device sends first information to the network device, where the first information is used to represent information about transmission resources selected by the terminal device for sending sideline services.

3. The method according to claim 2, wherein: The first information is used to determine the time slot information of the time slot where the transmission resource selected by the terminal device is located.

4. The method according to claim 2, wherein: The method further comprises: The terminal device sends second information to the network device; The second information is used to determine the time domain interval between the transmission resource selected by the terminal device and the transmission resource reserved by the terminal device; Alternatively, the second information is used to determine a service period of a sideline service transmitted by the terminal device in the second mode; Wherein, when the terminal device is in the second mode, the transmission resources used by the terminal device are independently selected by the terminal device.

5. The method according to claim 4, wherein: The method further comprises: The terminal device sends third information to the network device, where the third information is used to determine the number of transmission resources reserved by the terminal device.

6. The method according to any one of claims 2 to 5, wherein: The method further comprises: The terminal device receives configuration information sent by the network device, where the configuration information is used to determine the first transmission resource; The first transmission resource and the transmission resource selected by the terminal device for sending the sideline service are not in the same time slot; or the first transmission resource and the transmission resource reserved by the terminal device are not in the same time slot.

7. A terminal device, comprising: A first processing unit configured to determine a first transmission resource set within a resource selection window; The first transmission resource set does not include transmission resources in a time slot where a first transmission resource allocated by a network device to the terminal device is located, and the transmission resources in the first transmission resource set are used by the terminal device to send side services. Wherein, the first processing unit is configured as follows: determining a second transmission resource set within the resource selection window; Excluding, from the second transmission resource set, transmission resources in the same time slot as the first transmission resource; When the terminal device selects a third transmission resource from the second transmission resource set and reserves at least one fourth transmission resource, and the fourth transmission resource is in the same time slot as the fifth transmission resource allocated by the network device to the terminal device, the third transmission resource is excluded from the second transmission resource set.

8. The terminal device according to claim 7, wherein: The terminal device further includes: The first sending unit is configured to send first information to the network device, where the first information is used to represent information about transmission resources selected by the terminal device for sending sideline services.

9. The terminal device according to claim 8, wherein: The first information is used to determine the time slot information of the time slot where the transmission resource selected by the terminal device is located.

10. The terminal device according to claim 8, wherein: The first sending unit is further configured to send second information to the network device; The second information is used to determine the time domain interval between the transmission resource selected by the terminal device and the transmission resource reserved by the terminal device; Alternatively, the second information is used to determine a service period of a sideline service transmitted by the terminal device in the second mode; Wherein, when the terminal device is in the second mode, the transmission resources used by the terminal device are independently selected by the terminal device.

11. The terminal device according to claim 10, wherein: The first sending unit is further configured to send third information to the network device, where the third information is used to determine the number of transmission resources reserved by the terminal device.

12. The terminal device according to any one of claims 8 to 11, wherein: The terminal device further includes: A first receiving unit, configured to receive configuration information sent by the network device, where the configuration information is used to determine the first transmission resource; The first transmission resource and the transmission resource selected by the terminal device for sending the sideline service are not in the same time slot; or the first transmission resource and the transmission resource reserved by the terminal device are not in the same time slot.

13. A terminal device comprising a processor and a memory for storing a computer program that can be run on the processor, wherein: The processor is used to execute the steps of the resource processing method according to any one of claims 1 to 5 when running the computer program.

14. A storage medium storing an executable program, wherein when the executable program is executed by a processor, the resource processing method according to any one of claims 1 to 5 is implemented.