Section: 5.8.13.3 NR sidelink discovery transmission
Content: A UE capable of NR sidelink discovery that is configured by upper layer to transmit NR sidelink discovery message shall: 1> if the frequency used for NR sidelink discovery is included in sl-FreqInfoToAddModList in sl-ConfigDedicatedNR within RRCReconfiguration message; or if the frequency used for NR sidelink discovery is included in sl-FreqInfoList within SIB12: 2> if the UE is in RRC_CONNECTED and uses the frequency included in sl-ConfigDedicatedNR within RRCReconfiguration message: 3> if the UE is acting as NR sidelink U2N Relay UE and sl-DiscConfig is included in RRCReconfiguration, and if the NR sidelink U2N Relay UE threshold conditions as specified in 5.8.14.2 are met based on sl-RelayUE-Config; or 3> if the UE is selecting NR sidelink U2N Relay UE / has a selected NR sidelink U2N Relay UE/ configured with measurement object associated to L2 U2N Relay UEs and sl-DiscConfig is included in RRCReconfiguration, and if the NR sidelink U2N Remote UE threshold conditions as specified in 5.8.15.2 are met based on sl-RemoteUE-Config; or 3> if the UE is selecting NR sidelink U2U Relay UE / has a selected NR sidelink U2U Relay UE and sl-DiscConfig is included in RRCReconfiguration, and if the NR sidelink U2U Remote UE threshold conditions associated with the peer NR Sidelink U2U Remote UE as specified in 5.8.17.2 are met based on sl-RemoteUE-ConfigU2U; or 3> if the UE acting as Target Remote UE is performing U2U Relay Discovery with Model B and sl-DiscConfig is included in RRCReconfiguration, and if the NR sidelink U2U Remote UE threshold conditions associated with the NR sidelink U2U Relay UE as specified in 5.8.17.2 are met based on sl-RemoteUE-ConfigU2U; or 3> if the UE acting as U2U Relay UE is performing U2U Relay Discovery with Model A or Model B response message as specified in TS 23.304[ Proximity based Services (ProSe) in the 5G System (5GS) ] [65]; or 3> if the UE acting as U2U Relay UE is performing U2U Relay Discovery with Model B as specified in TS 23.304[ Proximity based Services (ProSe) in the 5G System (5GS) ] [65] and sl-DiscConfig is included in RRCReconfiguration, and if the NR sidelink U2U Relay UE threshold conditions as specified in 5.8.16.2 are met based on sl-RelayUE-ConfigU2U; or NOTE 1: For U2U Relay UE and Target Remote UE, it can be up to UE implementation on cross-layer interaction for the AS layer condition check for discovery message forwarding. 3> if the UE is performing NR sidelink non-relay discovery: 4> if the UE is configured with sl-ScheduledConfig: 5> if T310 for MCG or T311 is running; and if sl-TxPoolExceptional is included in sl-FreqInfoList for the concerned frequency in SIB12 or included in sl-ConfigDedicatedNR in RRCReconfiguration; or 5> if T301 is running and the cell on which the UE initiated RRC connection re-establishment provides SIB12 including sl-TxPoolExceptional for the concerned frequency; or 5> if T304 for MCG is running and the UE is configured with sl-TxPoolExceptional included in sl-ConfigDedicatedNR for the concerned frequency in RRCReconfiguration: 6> configure lower layers to perform the sidelink resource allocation mode 2 based on random selection using the resource pool indicated by sl-TxPoolExceptional as defined in TS 38.321[ NR; Medium Access Control (MAC) protocol specification ]  [3] for NR sidelink discovery transmission; 5> else: 6> configure lower layers to perform the sidelink resource allocation mode 1 using the resource pool indicated by sl-DiscTxPoolScheduling or sl-TxPoolScheduling for NR sidelink discovery transmission on the concerned frequency in RRCReconfiguration; 5> if T311 is running, configure the lower layers to release the resources indicated by rrc-ConfiguredSidelinkGrant (if any); 4> if the UE is configured with sl-UE-SelectedConfig: 5> if the sl-DiscTxPoolSelected for NR sidelink discovery transmission on the concerned frequency is included in the sl-ConfigDedicatedNR within RRCReconfiguration, and if a result of full/partial sensing, if selected and is allowed by sl-AllowedResourceSelectionConfig, on the resources configured in sl-DiscTxPoolSelected for NR sidelink discovery transmission on the concerned frequency included in sl-ConfigDedicatedNR within RRCReconfiguration is not available in accordance with TS 38.214[ NR; Physical layer procedures for data ]  [19]; or 5> if the sl-DiscTxPoolSelected for NR sidelink discovery transmission on the concerned frequency is not included in the sl-ConfigDedicatedNR within RRCReconfiguration, and a result of full/partial sensing, if selected and is allowed by sl-AllowedResourceSelectionConfig, on the resources configured in sl-TxPoolSelectedNormal for NR sidelink discovery transmission on the concerned frequency included in sl-ConfigDedicatedNR within RRCReconfiguration is not available in accordance with TS 38.214[ NR; Physical layer procedures for data ]  [19]; 6> if sl-TxPoolExceptional for the concerned frequency is included in RRCReconfiguration; or 6> if the PCell provides SIB12 including sl-TxPoolExceptional in sl-FreqInfoList for the concerned frequency: 7> configure lower layers to perform the sidelink resource allocation mode 2 based on random selection using the resource pool indicated by sl-TxPoolExceptional as defined in TS 38.321[ NR; Medium Access Control (MAC) protocol specification ]  [3] for NR sidelink discovery transmission; 5> else, if the sl-DiscTxPoolSelected for NR sidelink discovery transmission on the concerned frequency is included in the sl-ConfigDedicatedNR within RRCReconfiguration: 6> configure lower layers to perform the sidelink resource allocation mode 2 based on resource selection operation according to sl-AllowedResourceSelectionConfig (as defined in TS 38.321[ NR; Medium Access Control (MAC) protocol specification ]  [3] and TS 38.214[ NR; Physical layer procedures for data ]  [19]) using the pools of resources indicated by sl-DiscTxPoolSelected for NR sidelink discovery transmission on the concerned frequency in RRCReconfiguration; 5> else, if the sl-TxPoolSelectedNormal for NR sidelink discovery transmission on the concerned frequency is included in the sl-ConfigDedicatedNR within RRCReconfiguration: 6> configure lower layers to perform the sidelink resource allocation mode 2 based on resource selection operation according to sl-AllowedResourceSelectionConfig (as defined in TS 38.321[ NR; Medium Access Control (MAC) protocol specification ]  [3] and TS 38.214[ NR; Physical layer procedures for data ]  [19]) using the pools of resources indicated by sl-TxPoolSelectedNormal for NR sidelink discovery transmission on the concerned frequency in RRCReconfiguration; 2> else if the cell chosen for NR sidelink discovery transmission provides SIB12: 3> if the UE is acting as NR sidelink U2N Relay UE and sl-DiscConfigCommon is included in SIB12, and if the NR sidelink U2N Relay UE threshold conditions as specified in 5.8.14.2 are met based on sl-RelayUE-ConfigCommon in SIB12; or 3> if the UE is selecting NR sidelink U2N Relay UE / has a selected NR sidelink U2N Relay UE and sl-DiscConfigCommon is included in SIB12, and if the NR sidelink U2N Remote UE threshold conditions as specified in 5.8.15.2 are met based on sl-RemoteUE-ConfigCommon in SIB12; or 3> if the UE is selecting NR sidelink U2U Relay UE / has a selected NR sidelink U2U Relay UE and sl-DiscConfigCommon is included in SIB12, and if the NR sidelink U2U Remote UE threshold conditions associated with the peer NR Sidelink U2U Remote UE as specified in 5.8.17.2 are met based on sl-RemoteUE-ConfigCommonU2U in SIB12; or 3> if the UE acting as Target Remote UE is performing U2U Relay Discovery with Model B and if the NR sidelink U2U Remote UE threshold conditions associated with the NR sidelink U2U Relay UE as specified in 5.8.17.2 are met based on sl-RemoteUE-ConfigCommonU2U in SIB12; or 3> if the UE acting as U2U Relay UE is performing U2U Relay Discovery with Model A or Model B response message as specified in TS 23.304[ Proximity based Services (ProSe) in the 5G System (5GS) ] [65]; or 3> if the UE acting as U2U Relay UE is performing U2U Relay Discovery with Model B as specified in TS 23.304[ Proximity based Services (ProSe) in the 5G System (5GS) ] [65] and if the NR sidelink U2U Relay UE threshold conditions as specified in 5.8.16.2 are met based on sl-RelayUE-ConfigCommonU2U in SIB12; or 3> if the UE is performing NR sidelink non-relay discovery: 4> if SIB12 includes sl-DiscTxPoolSelected for NR sidelink discovery transmission on the concerned frequency, and a result of full/partial sensing, if selected and is allowed by sl-AllowedResourceSelectionConfig, on the resources configured in the sl-DiscTxPoolSelected for NR sidelink discovery transmission is available in accordance with TS 38.214[ NR; Physical layer procedures for data ]  [19] or random selection, if allowed by sl-AllowedResourceSelectionConfig, is selected: 5> configure lower layers to perform the sidelink resource allocation mode 2 based on resource selection operation according to sl-AllowedResourceSelectionConfig using the pools of resources indicated by sl-DiscTxPoolSelected for NR sidelink discovery transmission on the concerned frequency in SIB12 as defined in TS 38.321[ NR; Medium Access Control (MAC) protocol specification ]  [3]; 4> else if SIB12 includes sl-TxPoolSelectedNormal for NR sidelink discovery transmission on the concerned frequency, and a result of full/partial sensing, if selected and is allowed by sl-AllowedResourceSelectionConfig, on the resources configured in the sl-TxPoolSelectedNormal for NR sidelink discovery transmission is available in accordance with TS 38.214[ NR; Physical layer procedures for data ]  [19] or random selection, if allowed by sl-AllowedResourceSelectionConfig, is selected: 5> configure lower layers to perform the sidelink resource allocation mode 2 based on resource selection operation according to sl-AllowedResourceSelectionConfig using the pools of resources indicated by sl-TxPoolSelectedNormal for NR sidelink discovery transmission on the concerned frequency in SIB12 as defined in TS 38.321[ NR; Medium Access Control (MAC) protocol specification ]  [3]; 4> else if SIB12 includes sl-TxPoolExceptional for the concerned frequency: 5> from the moment the UE initiates RRC connection establishment or RRC connection resume, until receiving an RRCReconfiguration including sl-ConfigDedicatedNR, or receiving an RRCRelease or an RRCReject; or 5> if a result of full/partial sensing, if selected and is allowed by sl-AllowedResourceSelectionConfig, on the resources configured in sl-DiscTxPoolSelected for NR sidelink discovery transmission on the concerned frequency in SIB12 is not available in accordance with TS 38.214[ NR; Physical layer procedures for data ]  [19]; or 5> if sl-DiscTxPoolSelected for NR sidelink discovery transmission on the concerned frequency is not included in SIB12 and if a result of full/partial sensing, if selected and is allowed by sl-AllowedResourceSelectionConfig, on the resources configured in sl-TxPoolSelectedNormal for NR sidelink discovery transmission on the concerned frequency in SIB12 is not available in accordance with TS 38.214[ NR; Physical layer procedures for data ]  [19]: 6> configure lower layers to perform the sidelink resource allocation mode 2 based on random selection (as defined in TS 38.321[ NR; Medium Access Control (MAC) protocol specification ]  [3]) using one of the pools of resources indicated by sl-TxPoolExceptional for NR sidelink discovery transmission on the concerned frequency; 1> else if out of coverage on the concerned frequency for NR sidelink discovery: 2> if the UE is acting as L3 U2N Relay UE; or 2> if the UE is selecting NR sidelink U2N Relay UE / has a selected NR sidelink U2N Relay UE and if the NR sidelink U2N Remote UE threshold conditions as specified in 5.8.15.2 are met based on sl-PreconfigDiscConfig in SidelinkPreconfigNR; or 2> if the UE is selecting NR sidelink U2U Relay UE / has a selected NR sidelink U2U Relay UE and if the NR sidelink U2U Remote UE threshold conditions associated with the peer NR sidelink U2U Remote UE as specified in 5.8.17.2 are met based on sl-RemoteUE-PreconfigU2U in SidelinkPreconfigNR; or 2> if the UE acting as Target Remote UE is performing U2U Relay Discovery with Model B and if the NR sidelink U2U Remote UE threshold conditions associated with the NR sidelink U2U Relay UE as specified in 5.8.17.2 are met based on sl-RemoteUE-PreconfigU2U in SidelinkPreconfigNR; or 2> if the UE acting as U2U Relay UE is performing U2U Relay Discovery with Model A or Model B response message as specified in TS 23.304[ Proximity based Services (ProSe) in the 5G System (5GS) ] [65]; or 2> if the UE acting as U2U Relay UE is performing U2U Relay Discovery with Model B as specified in TS 23.304[ Proximity based Services (ProSe) in the 5G System (5GS) ] [65] and if the NR sidelink U2U Relay UE threshold conditions as specified in 5.8.16.2 are met based on sl-RelayUE-PreconfigU2U in SidelinkPreconfigNR; or 2> if the UE is performing NR sidelink non-relay discovery: 3> configure lower layers to perform the sidelink resource allocation mode 2 based on resource selection operation according to sl-AllowedResourceSelectionConfig (as defined in TS 38.321[ NR; Medium Access Control (MAC) protocol specification ]  [3] and TS 38.213[ NR; Physical layer procedures for control ]  [13]) using the pools of resources indicated in sl-DiscTxPoolSelected or sl-TxPoolSelectedNormal for NR sidelink discovery transmission on the concerned frequency in SidelinkPreconfigNR. NOTE 2: It is up to UE implementation to determine, in accordance with TS 38.321[ NR; Medium Access Control (MAC) protocol specification ] [3], which resource pool to use if multiple resource pools are configured, and which resource allocation scheme is used in the AS based on UE capability (for a UE in RRC_IDLE/RRC_INACTIVE) and the allowed resource schemes sl-allowedResourceSelectionConfig in the resource pool configuration.