A terminal device comprising: an acquisition unit configured to acquire from a base station device the setting of at least a first resource and at least one second resource to transmit an uplink signal of a RACH procedure to the base station device , wherein the first resource is selected from a set of resources set by information in an RRC layer, the at least one second resource is designated by the base station device for use by the terminal device in a case when the terminal device determines that the first resource is not available, the at least one second resource being designated by downlink information in a physical layer, the downlink information in the physical layer being one of: a notice of the one or more second resources in a channel occupancy time, COT, the notice being included in downlink control information, DCI, or a slot format indicator, SFI, included in the DCI that identifies the one or more second resources, and the first resource occurs before the at least one second resource; and an communication processing unit configured to determine whether the first resource is clear or busy, upon determining that the first resource is busy, determine the at least one second resource is clear, and transmit the uplink signal of the RACH procedure to the base station device via the at least one second resource. an acquisition unit configured to acquire from a base station device the setting of at least a first resource and at least one second resource to transmit an uplink signal of a RACH procedure to the base station device , wherein the first resource is selected from a set of resources set by information in an RRC layer, the at least one second resource is designated by the base station device for use by the terminal device in a case when the terminal device determines that the first resource is not available, the at least one second resource being designated by downlink information in a physical layer, the downlink information in the physical layer being one of: a notice of the one or more second resources in a channel occupancy time, COT, the notice being included in downlink control information, DCI, or a slot format indicator, SFI, included in the DCI that identifies the one or more second resources, and the first resource occurs before the at least one second resource; and a notice of the one or more second resources in a channel occupancy time, COT, the notice being included in downlink control information, DCI, or a slot format indicator, SFI, included in the DCI that identifies the one or more second resources, and the first resource occurs before the at least one second resource; and an communication processing unit configured to determine whether the first resource is clear or busy, upon determining that the first resource is busy, determine the at least one second resource is clear, and transmit the uplink signal of the RACH procedure to the base station device via the at least one second resource. determine whether the first resource is clear or busy, upon determining that the first resource is busy, determine the at least one second resource is clear, and transmit the uplink signal of the RACH procedure to the base station device via the at least one second resource. <EOS>