Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
spbro
OpenXG-RAN
Commits
819427a6
Commit
819427a6
authored
Apr 17, 2024
by
Laurent THOMAS
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix ue UL payload filling randomly done in retransmissions (pointer
not set)
parent
08200783
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
15 deletions
+13
-15
nfapi/open-nFAPI/nfapi/public_inc/fapi_nr_ue_interface.h
nfapi/open-nFAPI/nfapi/public_inc/fapi_nr_ue_interface.h
+1
-1
openair1/SCHED_NR_UE/fapi_nr_ue_l1.c
openair1/SCHED_NR_UE/fapi_nr_ue_l1.c
+4
-4
openair1/SIMULATION/NR_PHY/ulsim.c
openair1/SIMULATION/NR_PHY/ulsim.c
+1
-1
openair2/LAYER2/NR_MAC_UE/nr_ue_scheduler.c
openair2/LAYER2/NR_MAC_UE/nr_ue_scheduler.c
+7
-9
No files found.
nfapi/open-nFAPI/nfapi/public_inc/fapi_nr_ue_interface.h
View file @
819427a6
...
...
@@ -175,7 +175,7 @@ typedef struct {
typedef
struct
{
uint16_t
pdu_length
;
uint8_t
*
p
du
;
uint8_t
*
fapiTxP
du
;
}
fapi_nr_tx_request_body_t
;
///
...
...
openair1/SCHED_NR_UE/fapi_nr_ue_l1.c
View file @
819427a6
...
...
@@ -142,7 +142,7 @@ int8_t nr_ue_scheduled_response_stub(nr_scheduled_response_t *scheduled_response
nfapi_nr_rx_data_indication_t
*
rx_ind
=
CALLOC
(
1
,
sizeof
(
*
rx_ind
));
nfapi_nr_crc_indication_t
*
crc_ind
=
CALLOC
(
1
,
sizeof
(
*
crc_ind
));
nfapi_nr_ue_pusch_pdu_t
*
pusch_config_pdu
=
&
it
->
pusch_config_pdu
;
if
(
pusch_config_pdu
->
tx_request_body
.
p
du
)
{
if
(
pusch_config_pdu
->
tx_request_body
.
fapiTxP
du
)
{
rx_ind
->
header
.
message_id
=
NFAPI_NR_PHY_MSG_TYPE_RX_DATA_INDICATION
;
rx_ind
->
sfn
=
frame
;
rx_ind
->
slot
=
slot
;
...
...
@@ -154,7 +154,7 @@ int8_t nr_ue_scheduled_response_stub(nr_scheduled_response_t *scheduled_response
rx_ind
->
pdu_list
[
j
].
harq_id
=
pusch_config_pdu
->
pusch_data
.
harq_process_id
;
rx_ind
->
pdu_list
[
j
].
pdu_length
=
tx_req_body
->
pdu_length
;
rx_ind
->
pdu_list
[
j
].
pdu
=
CALLOC
(
tx_req_body
->
pdu_length
,
sizeof
(
*
rx_ind
->
pdu_list
[
j
].
pdu
));
memcpy
(
rx_ind
->
pdu_list
[
j
].
pdu
,
tx_req_body
->
p
du
,
tx_req_body
->
pdu_length
*
sizeof
(
*
rx_ind
->
pdu_list
[
j
].
pdu
));
memcpy
(
rx_ind
->
pdu_list
[
j
].
pdu
,
tx_req_body
->
fapiTxP
du
,
tx_req_body
->
pdu_length
*
sizeof
(
*
rx_ind
->
pdu_list
[
j
].
pdu
));
rx_ind
->
pdu_list
[
j
].
rnti
=
pusch_config_pdu
->
rnti
;
/* TODO: Implement channel modeling to abstract TA and CQI. For now,
we hard code the values below since they are set in L1 and we are
...
...
@@ -461,7 +461,7 @@ static void nr_ue_scheduled_response_ul(PHY_VARS_NR_UE *phy, fapi_nr_ul_config_r
pdu
->
pusch_config_pdu
.
num_dmrs_cdm_grps_no_data
);
memcpy
(
pusch_pdu
,
&
pdu
->
pusch_config_pdu
,
sizeof
(
*
pusch_pdu
));
if
(
pdu
->
pusch_config_pdu
.
tx_request_body
.
p
du
)
{
if
(
pdu
->
pusch_config_pdu
.
tx_request_body
.
fapiTxP
du
)
{
LOG_D
(
PHY
,
"%d.%d Copying %d bytes to harq_process_ul_ue->a (harq_pid %d)
\n
"
,
ul_config
->
frame
,
...
...
@@ -469,7 +469,7 @@ static void nr_ue_scheduled_response_ul(PHY_VARS_NR_UE *phy, fapi_nr_ul_config_r
pdu
->
pusch_config_pdu
.
tx_request_body
.
pdu_length
,
current_harq_pid
);
memcpy
(
harq_process_ul_ue
->
payload_AB
,
pdu
->
pusch_config_pdu
.
tx_request_body
.
p
du
,
pdu
->
pusch_config_pdu
.
tx_request_body
.
fapiTxP
du
,
pdu
->
pusch_config_pdu
.
tx_request_body
.
pdu_length
);
}
...
...
openair1/SIMULATION/NR_PHY/ulsim.c
View file @
819427a6
...
...
@@ -1087,7 +1087,7 @@ int main(int argc, char *argv[])
ul_config0
->
pdu_type
=
FAPI_NR_UL_CONFIG_TYPE_PUSCH
;
nfapi_nr_ue_pusch_pdu_t
*
pusch_config_pdu
=
&
ul_config0
->
pusch_config_pdu
;
// Config UL TX PDU
pusch_config_pdu
->
tx_request_body
.
p
du
=
ulsch_input_buffer
;
pusch_config_pdu
->
tx_request_body
.
fapiTxP
du
=
ulsch_input_buffer
;
pusch_config_pdu
->
tx_request_body
.
pdu_length
=
TBS
/
8
;
pusch_config_pdu
->
rnti
=
n_rnti
;
pusch_config_pdu
->
pdu_bit_map
=
pdu_bit_map
;
...
...
openair2/LAYER2/NR_MAC_UE/nr_ue_scheduler.c
View file @
819427a6
...
...
@@ -1301,7 +1301,6 @@ void nr_ue_ul_scheduler(NR_UE_MAC_INST_t *mac, nr_uplink_indication_t *ul_info)
while
(
ulcfg_pdu
->
pdu_type
!=
FAPI_NR_END
)
{
uint8_t
*
ulsch_input_buffer
=
ulsch_input_buffer_array
[
number_of_pdus
];
if
(
ulcfg_pdu
->
pdu_type
==
FAPI_NR_UL_CONFIG_TYPE_PUSCH
)
{
int
mac_pdu_exist
=
0
;
uint16_t
TBS_bytes
=
ulcfg_pdu
->
pusch_config_pdu
.
pusch_data
.
tb_size
;
LOG_D
(
NR_MAC
,
"harq_id %d, new_data_indicator %d, TBS_bytes %d (ra_state %d)
\n
"
,
...
...
@@ -1309,27 +1308,26 @@ void nr_ue_ul_scheduler(NR_UE_MAC_INST_t *mac, nr_uplink_indication_t *ul_info)
ulcfg_pdu
->
pusch_config_pdu
.
pusch_data
.
new_data_indicator
,
TBS_bytes
,
ra
->
ra_state
);
ulcfg_pdu
->
pusch_config_pdu
.
tx_request_body
.
fapiTxPdu
=
NULL
;
if
(
ra
->
ra_state
==
nrRA_WAIT_RAR
&&
!
ra
->
cfra
)
{
nr_get_msg3_payload
(
mac
,
ulsch_input_buffer
,
TBS_bytes
);
for
(
int
k
=
0
;
k
<
TBS_bytes
;
k
++
)
{
LOG_D
(
NR_MAC
,
"(%i): 0x%x
\n
"
,
k
,
ulsch_input_buffer
[
k
]);
}
mac_pdu_exist
=
1
;
ulcfg_pdu
->
pusch_config_pdu
.
tx_request_body
.
fapiTxPdu
=
ulsch_input_buffer
;
ulcfg_pdu
->
pusch_config_pdu
.
tx_request_body
.
pdu_length
=
TBS_bytes
;
number_of_pdus
++
;
}
else
{
if
(
ulcfg_pdu
->
pusch_config_pdu
.
pusch_data
.
new_data_indicator
&&
(
mac
->
state
==
UE_CONNECTED
||
(
ra
->
ra_state
==
nrRA_WAIT_RAR
&&
ra
->
cfra
)))
{
// Getting IP traffic to be transmitted
nr_ue_get_sdu
(
mac
,
cc_id
,
frame_tx
,
slot_tx
,
gNB_index
,
ulsch_input_buffer
,
TBS_bytes
);
mac_pdu_exist
=
1
;
ulcfg_pdu
->
pusch_config_pdu
.
tx_request_body
.
fapiTxPdu
=
ulsch_input_buffer
;
ulcfg_pdu
->
pusch_config_pdu
.
tx_request_body
.
pdu_length
=
TBS_bytes
;
number_of_pdus
++
;
}
}
// Config UL TX PDU
if
(
mac_pdu_exist
)
{
ulcfg_pdu
->
pusch_config_pdu
.
tx_request_body
.
pdu
=
ulsch_input_buffer
;
ulcfg_pdu
->
pusch_config_pdu
.
tx_request_body
.
pdu_length
=
TBS_bytes
;
number_of_pdus
++
;
}
if
(
ra
->
ra_state
==
nrRA_WAIT_CONTENTION_RESOLUTION
&&
!
ra
->
cfra
)
{
LOG_I
(
NR_MAC
,
"[RAPROC][%d.%d] RA-Msg3 retransmitted
\n
"
,
frame_tx
,
slot_tx
);
// 38.321 restart the ra-ContentionResolutionTimer at each HARQ retransmission in the first symbol after the end of the Msg3
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment