[srslte-users] Accessing QCI Info at the Scheduler

Ayman Maghrabi ayman.maghrabi at gmail.com
Fri May 15 20:27:26 UTC 2020


Hello srsLTE community,

I'm currently working on customizing the dl_metric_rr in the scheduler to
separate users based on their QCI value which is defined in the
user_db.csv. However, I'm not sure if this information is stored in ue_db
which is used inside the scheduler function or how to access it.

void dl_metric_rr::sched_users(std::map<uint16_t, sched_ue>& ue_db,
dl_sf_sched_itf* tti_sched)
{
  tti_alloc = tti_sched;

  if (ue_db.empty()) {
    return;
  }

  // give priority in a time-domain RR basis.
  uint32_t priority_idx = tti_alloc->get_tti_tx_dl() % (uint32_t)ue_db.size();
  auto     iter         = ue_db.begin();
  std::advance(iter, priority_idx);
  for (uint32_t ue_count = 0; ue_count < ue_db.size(); ++iter, ++ue_count) {
    if (iter == ue_db.end()) {
      iter = ue_db.begin(); // wrap around
    }
    sched_ue* user = &iter->second;
    allocate_user(user);
  }
}


Would I need to somehow create a new ue_db in such a way that it also gets
the QCI value from user_db.csv?

Regards,
Ayman

<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virus-free.
www.avg.com
<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.srsran.com/pipermail/srsran-users/attachments/20200516/31589ca8/attachment.htm>


More information about the srsran-users mailing list