Commit Graph
6655 Commits
Author SHA1 Message Date
mjoang 4db04d7bee first version of sr bsr. remove test code 2021-08-16 14:19:29 -04:00
mjoang 5df1f412be first version of sr bsr. remove test code 2021-08-16 12:35:40 -04:00
mjoang 607578f080 first version of sr bsr. 2021-08-16 10:09:53 -04:00
Thomas Schlichter b5fb1dc05f Merge remote-tracking branch 'origin/develop' into nr_ue_mac_pdu_fixes 2021-08-12 11:35:27 +02:00
Raphael Defosseux 5f9e0a235d Merge remote-tracking branch 'origin/code-cleanup-20210716' into integration_2021_w32 2021-08-09 10:07:45 +02:00
Raphael Defosseux a0e3cc8de4 Merge remote-tracking branch 'origin/NR_SA_tempfix_coreset' into integration_2021_w32 2021-08-06 10:39:56 +02:00
Raphael Defosseux 7b2420760f Merge remote-tracking branch 'origin/NR_UE_reworking_UCI_procedures' into integration_2021_w32 2021-08-06 10:37:22 +02:00
Laurent THOMAS b7857a505e try to fix CUDA, and fix infinite loop in nr UE uplink data collect 2021-08-05 17:31:31 +02:00
Thomas Schlichter 6c227f4d6b NR_UE: Assure correct padding in nr_ue_get_sdu()
In case no MAC CE needs to be transmitted and we filled the buffer with SDUs from RLC, we missed to add padding for the last 3 bytes.
2021-08-05 12:33:09 +02:00
Laurent THOMAS fadbdd3671 pdusession id fix: different values for UL and DL 2021-08-05 10:02:36 +02:00
Laurent THOMAS 464520304b merge develop, make DNN, NSSAI configurable, fix infinite loop 2021-08-05 09:49:25 +02:00
Laurent THOMAS 3cbf516885 Merge branch 'develop' of https://gitlab.eurecom.fr/oai/openairinterface5g into code-cleanup-20210716 2021-08-04 19:57:45 +02:00
francescomani 62b1531c55 improvement in fix for commonControlResourceSet for SIB1 2021-08-04 14:23:50 +02:00
cig 92fb370258 Removed unnecessary sdu_lengths array in nr_ue_get_sdu 2021-08-04 13:06:31 +02:00
cig 05a4c48d96 Bugfix in the generation of UL MAC PDU in Msg3
- restored FIXED subheader length
- restored SHORT subheader in MAX TBS (still unclear the reason behind the
  selection of SHORT subheader here by developer)
2021-08-04 13:06:31 +02:00
cig 6e0737d9e4 Send Msg3 CCCH SDU in SA mode only
- send C-RNTI MAC CE otherwise
- init RA if there are bytes to send and is a PRACH occasion
- minor cleanups
2021-08-04 13:06:31 +02:00
cig 9af71a7a46 Set the tc-rnti only in CBRA
- TC-RNTI is set and used after RAR reception according to the specs
- C-RNTI is used in CFRA
2021-08-04 13:06:31 +02:00
cig b6e3718d70 Changes to nr_write_ce_ulsch_pdu
- takes in input MAC instance
- uses a mac ce struct
- minor fixes
2021-08-04 13:06:31 +02:00
cig 07a80bc84e Do generation of UL padding in nr_ue_get_sdu only
- removed code from outside this function
- generate random padding in RFSIM mode
- generate 0 padding in real-time
- padding is generated either to complete the PDU or to transmit a new one
  when no data from RLC was fetched
2021-08-04 13:06:31 +02:00
cig 02012e77ee Minor MAC UE fixes
- set constant variables to const
2021-08-04 13:06:31 +02:00
cig 021788c7a7 Improved logging in the MAC PDU processing function at gNB
- improved debug logging
- minor fixes and cleanup
2021-08-04 13:06:31 +02:00
cig 5cfa2cd2f4 Removed OAI exit in mac_rlc_data_req when no RB is present
- this prevents crashes when the function is called for LCIDs that have no RB
- and simply print error message and return 0 when no RB is found
2021-08-04 12:49:42 +02:00
cig 4277d4e1bb Fixes to UE ULSCH PDU generation
- included MAC CE sub-PDUs size in the computation of RLC data to transmit
  this fixes the error with residual mac pdu appearing at gNB side when
  transmitting higher amount of data
- got rid of the nr_generate_ulsch_pdu and moved the relevant UL-SCH MAC PDU
  generation procedure within the nr_ue_get_sdu and nr_ue_get_rach
- reduced memcpy calls and unnecessary memory allocations
- fetching RLC data and SDU size from the mac_rlc_data_req, removed the call
  to mac_rlc_get_buffer_occupancy_ind
- introduced a new function to generate the MAC CEs sub-PDUs
- removed unnecessary function input parameters
- minor fixes and cleanup
- enhanced logging
2021-08-04 12:49:42 +02:00
francescomani 39307247c9 change error log to log_d to avoid flooding of error messages at ue 2021-08-02 12:49:50 +02:00
francescomani 5c744429c9 bugfix: not scheduling pucch transmission at UE when there is only negative SR 2021-08-02 12:47:32 +02:00
Raphael Defosseux a9ffbc6b07 Merge remote-tracking branch 'origin/hack-bch-no-sched-sf-0' into develop 2021-08-02 10:00:14 +02:00
Raphael Defosseux 599287b632 Merge remote-tracking branch 'origin/fix-retransmission-rbg' into develop 2021-08-02 09:59:46 +02:00
Laurent OpenCells d649434be9 Merge branch 'develop' of https://gitlab.eurecom.fr/oai/openairinterface5g into code-cleanup-20210716 2021-07-29 22:29:52 +02:00
francescomani d9fdbe6338 fix for pucch prb size 2021-07-29 15:59:02 +02:00
francescomani 8d7636bb1e temp fix for SIB1 coreset 2021-07-29 14:31:38 +02:00
francescomani ea6cd95009 bugfix in rrc configuration 2021-07-27 07:29:19 +02:00
francescomani d2127b65f3 flexible csi configuration including do_csirs config parameter 2021-07-26 12:45:04 +02:00
francescomani 17ee4648c7 fixes in ssb rsrp functions at ue 2021-07-26 11:47:32 +02:00
francescomani 5c70aa96c4 Merge remote-tracking branch 'origin/develop' into NR_UE_reworking_UCI_procedures 2021-07-26 07:39:57 +02:00
Laurent OpenCells 754e8e3043 CMakeList cleanup,improvement and trial to run in ubuntu 16 2021-07-25 13:52:01 +02:00
hardy c93a9497db Merge remote-tracking branch 'origin/develop-NSA_SA_fixes' into integration_2021_wk30_b 2021-07-24 17:56:38 +02:00
rmagueta 165b406839 Avoid segmentation fault for LTE 2021-07-23 13:12:35 +01:00
francescomani bd816e5175 Merge remote-tracking branch 'origin/develop' into NR_UE_reworking_UCI_procedures 2021-07-23 13:51:41 +02:00
hardy fad5fbda34 Merge remote-tracking branch 'origin/NR_CSIRS_tomerge' into integration_2021_wk30 2021-07-23 09:18:33 +02:00
Laurent OpenCells f62b7e1f9e nfapi work around (missing malloc) 2021-07-22 15:32:09 +02:00
luis_pereira87 1beffd1ecc Remove the MAC and RRC context after UL failure when gNB is not connected to CN5G 2021-07-22 14:05:10 +01:00
luis_pereira87 67bccd8c80 Fix handling failure of CFRA procedure for OAI UE 2021-07-22 11:36:52 +01:00
luis_pereira87 a038df0459 Discard Random Access when max number of users is achieved 2021-07-22 10:55:46 +01:00
luis_pereira87 95372bd2da Fix RNTI selection for CFRA 2021-07-22 10:51:49 +01:00
luis_pereira87 17f466a9bf Fix define MACRLC idx that overlaps 2021-07-22 10:50:44 +01:00
francescomani 618e33aca0 adding check for ul failure in nr_csi_meas_reporting 2021-07-22 09:16:10 +02:00
Cedric Roux 4a2c0b1eff bugfix: fix allocation of RBGs for retransmission
When there is a retransmission, we want to use the same number of RBs.

The RBs are allocated by groups (RBGs).

In some cases (like a cell with 25 PRBs), the last RBG contains less RBs.
So in case of a retransmission, if this last RBG was used before we need
to reuse it to have the same number of RBs. If not, we will use more RBs
for the retransmission than the previous transmission.

In an experiment with two UEs (quectel modules) it was seen that when a
retransmission happens with a different number of RBs then the UE is not
happy at all, leading to way more NACKs in the harq processes than should
happen (actually the first NACK was not a NACK at all, but the eNB did
interpret it as a NACK; so the next transmission should simply be discarded
by the UE that successfully received the first transmission; instead the UE
fails to decode the data and sends a NACK, a real one this time).

Maybe it's not the correct solution, but it improve things, there are
much less NACKs.
2021-07-21 23:22:48 +02:00
Cedric Roux f6e0321860 hack: do not use BCH RBs for DL scheduling in subframe 0
The problem is that when using those RBs with MCS 28 we may exceed the
code rate 0.93 and according to 36.213 7.1.7 the UE may skip decoding
PDSCH entirely in this case.

This is a hack. The real solution is to check that the code rate is below
0.93 for each scheduling decision and, I don't know, reduce the MCS if the
code rate is above, so that in the end it is below. That means that we need
a proper resource grid for the configuration of the eNB and this is not an
easy thing (at least from my point of view) given all the possible
configurations for the eNB, so I prefer not to do it rather than do something
incorrect, thus this hack.

The problem of this hack is that we won't use all the available RBs for
scheduling, potentially reducing the maximum throughput achievable.

To be fixed properly at some time, by someone who understands fully the
resource grid and all the possible combinations (fdd/tdd, number of
antennas, whatever else).
2021-07-21 23:22:02 +02:00
francescomani 227529c129 Merge remote-tracking branch 'origin/develop' into NR_UE_reworking_UCI_procedures 2021-07-21 17:49:33 +02:00
Laurent OpenCells 3f436e3e2f merge develop (was in conflict) 2021-07-20 17:26:15 +02:00