A method of wireless communication performed by a user equipment, UE, comprising: obtaining one or more measurements for estimating a distance between the UE and a serving base station , one or more measurements for estimating a speed of the UE relative to the serving base station, or both; determining a resource configuration and a transmit power for a first physical random access channel, PRACH, preamble sequence and/or a resource configuration and a transmit power for a first physical uplink shared channel, PUSCH, resource unit, PRU, based at least on the distance between the UE and the serving base station, the speed of the UE relative to the serving base station, a radio resource control, RRC, state of the UE, or any combination thereof; transmitting, to the serving base station over a first carrier frequency, a first message comprising the first PRACH preamble sequence on a PRACH occasion and a first message payload on a PRU occasion based on the determined resource configuration and transmit power for the first PRACH preamble sequence and/or the determined resource configuration and transmit power for the first PRU; and receiving, from the serving base station over the first carrier frequency, a second message comprising information on a physical downlink control channel, PDCCH, and a second message payload on a physical downlink shared channel, PDSCH, wherein the PDCCH or the PDSCH have a quasi co-location relationship with a beam index of a synchronization signal block, SSB, or a reference signal, RS, associated with the first message, and wherein the first message is a first step of a two-step contention-based random access procedure. obtaining one or more measurements for estimating a distance between the UE and a serving base station , one or more measurements for estimating a speed of the UE relative to the serving base station, or both; determining a resource configuration and a transmit power for a first physical random access channel, PRACH, preamble sequence and/or a resource configuration and a transmit power for a first physical uplink shared channel, PUSCH, resource unit, PRU, based at least on the distance between the UE and the serving base station, the speed of the UE relative to the serving base station, a radio resource control, RRC, state of the UE, or any combination thereof; transmitting, to the serving base station over a first carrier frequency, a first message comprising the first PRACH preamble sequence on a PRACH occasion and a first message payload on a PRU occasion based on the determined resource configuration and transmit power for the first PRACH preamble sequence and/or the determined resource configuration and transmit power for the first PRU; and receiving, from the serving base station over the first carrier frequency, a second message comprising information on a physical downlink control channel, PDCCH, and a second message payload on a physical downlink shared channel, PDSCH, wherein the PDCCH or the PDSCH have a quasi co-location relationship with a beam index of a synchronization signal block, SSB, or a reference signal, RS, associated with the first message, and wherein the first message is a first step of a two-step contention-based random access procedure. <EOS>