With the development of wireless communication, there are usually both communication and positioning requirements. In our previous work, we studied the power allocation algorithm for positioning user (P-User) based on Multi-Scale Non-Orthogonal Multiple Access (MS-NOMA) downlink signal where all communication users (C-Users) have the same power. In the uplink case, the power allocation scheme for both C-User and P-User needs to be considered jointly as all C-Users may have different power. In this paper, we analyze the Quality of Service (QoS) and ranging accuracy based on the MS-NOMA signal by deriving their simple expressions. Then, a two stage joint iterative power allocation algorithm (JIPAA) is proposed. In the first stage, considering the QoS of C-User requirement and total power limitation, the power of P-Users is allocated to obtain optimal ranging performance. In the second stage, the power of C-Users is allocated to minimize the power consumption. With the iterative process, the optimal power of each C-User and P-User is calculated. The numerical results show that the proposed JIPAA algorithm dramatically promotes ranging accuracy under the same energy consumption.INDEX TERMS Multi-scale non-orthogonal multiple access (MS-NOMA), power allocation, quality of service (QoS), ranging accuracy.