Commit d1bbbb5d authored by Raymond Knopp's avatar Raymond Knopp

analytics of PSCCH/PSSCH

parent 18853ab6
......@@ -2259,6 +2259,8 @@ void nr_rx_pusch(PHY_VARS_gNB *gNB,
sci2_re);
// send SCI indication with SCI2 payload and get SLSCH information if CRC is OK
LOG_D(NR_PHY,"SCI indication (crc %x)\n",crc);
if (crc==0) ue->SL_UE_PHY_PARAMS.pssch.rx_sci2_ok++;
else ue->SL_UE_PHY_PARAMS.pssch.rx_sci2_errors++;
sl_nr_sci_indication_t sci_ind={0};
sci_ind.sfn = frame;
sci_ind.slot = slot;
......
......@@ -973,7 +973,7 @@ uint8_t nr_dci_decoding_procedure(PHY_VARS_NR_UE *ue,
memcpy(sci_ind->sci_pdu[sci_ind->number_of_SCIs].sci_payloadBits,&dci_estimation,8);
sci_ind->number_of_SCIs++;
ue->SL_UE_PHY_PARAMS.pscch.rx_ok++;
}
break; // If DCI is found, no need to check for remaining DCI lengths
}
......
......@@ -92,6 +92,9 @@ void nr_fill_sl_rx_indication(sl_nr_rx_indication_t *rx_ind,
rx_slsch_pdu->pdu_length = slsch_status->rdata->ulsch_harq->TBS;
rx_slsch_pdu->harq_pid = slsch_status->rdata->harq_pid;
rx_slsch_pdu->ack_nack = (slsch_status->rxok==true) ? 1 : 0;
if (slsch_status->rxok==true) ue->SL_UE_PHY_PARAMS.pssch.rx_ok++;
else ue->SL_UE_PHY_PARAMS.pssch.rx_errors[0]++;
break;
case FAPI_NR_RX_PDU_TYPE_SSB: {
sl_nr_ssb_pdu_t *ssb_pdu = &rx_ind->rx_indication_body[n_pdus - 1].ssb_pdu;
......@@ -658,6 +661,7 @@ void psbch_pscch_pssch_processing(PHY_VARS_NR_UE *ue,
pssch_vars->DTX = 0;
int totalDecode = nr_slsch_procedures(ue, frame_rx, nr_slot_rx, 0, proc,phy_data);
if (totalDecode > 0) sl_phy_params->pssch.rx_ok++;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment