Dear Dr. Martin Taranetz,
Thank you very much for your reply !
Firstly, I would like to imitate the method of how to “create the connection between eNodeB and UE” to “create the connection between UE and UE”.
As far as I’ve read in source code, the basic procedure to create the connection between an eNodeB and an UE is as follows:
1. The UE positions will be randomly generated in “LTE_init_generated_users_and_schedulers.m”
2. From the UE position, UE will be assigned to “attached_site”
3. UE then will be attached to an eNodeB based on distance (or SINR ?)
in “LTE_init_generated_users_and_schedulers.m” & “eNodeB_sector.m”
4. Next, UE will be put in the scheduler’s queue of that eNodeB, and the Resource Block of this eNodeB will be assigned to this UE.
The number of Resource Block will be assigned to UE depends on the Resource Allocation scheme (Round Robin, Proportional Fair…)
5. Based on the number of Resource Blocks are assigned to that UE, eNodeB will decide the power allocation for that UE.
For example, the total power of eNodeB is 40W which will be divided for 100 Rbs → each Resource Block is transmitted with power = 0.4W
If the UE is assigned with 5 RB → the Tx power for that UE is 2W
6. The total Pathloss is calculated in “downlinkChannelModel.m”. The pathloss is determined from (UE positions, eNodeB positions)
7. From the “Tx Power” and “Pathloss”, we can determine the Received Signal’s power in UE side.
I would like to create the connection between 2 Ues, and my idea is to imitate from step 5, 6, 7.
first, I would assume the Tx Power in Tx UE, then use the function to calculate the Pathloss based on 2 UE’s position.
However, I am not sure this is a good approach or not ? Is there anything else that should be considered. Any suggestion is appreciated.