Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG UE
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
OpenXG
OpenXG UE
Commits
9a6baac0
Commit
9a6baac0
authored
May 01, 2021
by
Raymond Knopp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
logging for debugging DRB/SRB2 establishment at gNodeB
parent
a850b6d8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
6 deletions
+10
-6
openair1/PHY/NR_TRANSPORT/pucch_rx.c
openair1/PHY/NR_TRANSPORT/pucch_rx.c
+6
-6
openair2/LAYER2/nr_rlc/nr_rlc_oai_api.c
openair2/LAYER2/nr_rlc/nr_rlc_oai_api.c
+1
-0
openair2/RRC/NR/rrc_gNB.c
openair2/RRC/NR/rrc_gNB.c
+3
-0
No files found.
openair1/PHY/NR_TRANSPORT/pucch_rx.c
View file @
9a6baac0
...
...
@@ -205,7 +205,7 @@ void nr_decode_pucch0(PHY_VARS_gNB *gNB,
nr_sequences
=
8
>>
(
1
-
pucch_pdu
->
sr_flag
);
}
LOG_
I
(
PHY
,
"pucch0: nr_symbols %d, start_symbol %d, prb_start %d, second_hop_prb %d, group_hop_flag %d, sequence_hop_flag %d, O_ACK %d, O_SR %d, mcs %d
\n
"
,
pucch_pdu
->
nr_of_symbols
,
pucch_pdu
->
start_symbol_index
,
pucch_pdu
->
prb_start
,
pucch_pdu
->
second_hop_prb
,
pucch_pdu
->
group_hop_flag
,
pucch_pdu
->
sequence_hop_flag
,
pucch_pdu
->
bit_len_harq
,
pucch_pdu
->
sr_flag
,
mcs
[
0
]);
LOG_
D
(
PHY
,
"pucch0: nr_symbols %d, start_symbol %d, prb_start %d, second_hop_prb %d, group_hop_flag %d, sequence_hop_flag %d, O_ACK %d, O_SR %d, mcs %d
\n
"
,
pucch_pdu
->
nr_of_symbols
,
pucch_pdu
->
start_symbol_index
,
pucch_pdu
->
prb_start
,
pucch_pdu
->
second_hop_prb
,
pucch_pdu
->
group_hop_flag
,
pucch_pdu
->
sequence_hop_flag
,
pucch_pdu
->
bit_len_harq
,
pucch_pdu
->
sr_flag
,
mcs
[
0
]);
int
cs_ind
=
get_pucch0_cs_lut_index
(
gNB
,
pucch_pdu
);
/*
...
...
@@ -241,12 +241,12 @@ void nr_decode_pucch0(PHY_VARS_gNB *gNB,
int
prb_offset
[
2
]
=
{
pucch_pdu
->
bwp_start
+
pucch_pdu
->
prb_start
,
pucch_pdu
->
bwp_start
+
pucch_pdu
->
prb_start
};
nr_group_sequence_hopping
(
pucch_GroupHopping
,
pucch_pdu
->
hopping_id
,
0
,
slot
,
&
u
[
0
],
&
v
[
0
]);
// calculating u and v value first hop
LOG_
I
(
PHY
,
"pucch0: u %d, v %d
\n
"
,
u
[
0
],
v
[
0
]);
LOG_
D
(
PHY
,
"pucch0: u %d, v %d
\n
"
,
u
[
0
],
v
[
0
]);
if
(
pucch_pdu
->
freq_hop_flag
==
1
)
{
nr_group_sequence_hopping
(
pucch_GroupHopping
,
pucch_pdu
->
hopping_id
,
1
,
slot
,
&
u
[
1
],
&
v
[
1
]);
// calculating u and v value second hop
LOG_
I
(
PHY
,
"pucch0 second hop: u %d, v %d
\n
"
,
u
[
1
],
v
[
1
]);
LOG_
D
(
PHY
,
"pucch0 second hop: u %d, v %d
\n
"
,
u
[
1
],
v
[
1
]);
prb_offset
[
1
]
=
pucch_pdu
->
bwp_start
+
pucch_pdu
->
second_hop_prb
;
}
...
...
@@ -306,10 +306,10 @@ void nr_decode_pucch0(PHY_VARS_gNB *gNB,
}
}
//
#ifdef DEBUG_NR_PUCCH_RX
#ifdef DEBUG_NR_PUCCH_RX
LOG_I
(
PHY
,
"PUCCH IDFT = (%d,%d)=>%f
\n
"
,
corr_re
[
0
],
corr_im
[
0
],
10
*
log10
((
double
)
corr_re
[
0
]
*
corr_re
[
0
]
+
(
double
)
corr_im
[
0
]
*
corr_im
[
0
]));
if
(
l
>
1
)
LOG_I
(
PHY
,
"PUCCH 2nd symbol IDFT[%d/%d] = (%d,%d)=>%f
\n
"
,
mcs
[
i
],
seq_index
,
corr_re
[
1
],
corr_im
[
1
],
10
*
log10
((
double
)
corr_re
[
1
]
*
corr_re
[
1
]
+
(
double
)
corr_im
[
1
]
*
corr_im
[
1
]));
//
#endif
#endif
if
(
pucch_pdu
->
freq_hop_flag
==
0
&&
l
==
1
)
// non-coherent correlation
temp
=
(
int64_t
)
corr_re
[
0
]
*
corr_re
[
0
]
+
(
int64_t
)
corr_im
[
0
]
*
corr_im
[
0
];
else
if
(
pucch_pdu
->
freq_hop_flag
==
0
&&
l
==
2
)
{
...
...
@@ -386,7 +386,7 @@ void nr_decode_pucch0(PHY_VARS_gNB *gNB,
uci_pdu
->
harq
->
harq_confidence_level
=
no_conf
?
1
:
0
;
uci_pdu
->
harq
->
harq_list
=
(
nfapi_nr_harq_t
*
)
malloc
(
1
);
uci_pdu
->
harq
->
harq_list
[
0
].
harq_value
=
index
&
0x01
;
LOG_
I
(
PHY
,
"Slot %d HARQ value %d with confidence level (0 is good, 1 is bad) %d xrt_mag %d n0 %d pucch0_thres %d
\n
"
,
LOG_
D
(
PHY
,
"Slot %d HARQ value %d with confidence level (0 is good, 1 is bad) %d xrt_mag %d n0 %d pucch0_thres %d
\n
"
,
slot
,
uci_pdu
->
harq
->
harq_list
[
0
].
harq_value
,
uci_pdu
->
harq
->
harq_confidence_level
,
xrtmag_dB
,
max_n0
,
uci_stats
->
pucch0_thres
);
if
(
pucch_pdu
->
sr_flag
==
1
)
{
uci_pdu
->
sr
=
calloc
(
1
,
sizeof
(
*
uci_pdu
->
sr
));
...
...
openair2/LAYER2/nr_rlc/nr_rlc_oai_api.c
View file @
9a6baac0
...
...
@@ -657,6 +657,7 @@ static void add_rlc_srb(int rnti, struct NR_SRB_ToAddMod *s, NR_RLC_BearerConfig
int
t_reassembly
;
int
sn_field_length
;
LOG_I
(
RLC
,
"Trying to add SRB %d
\n
"
,
srb_id
);
if
(
srb_id
!=
1
&&
srb_id
!=
2
)
{
LOG_E
(
RLC
,
"%s:%d:%s: fatal, bad srb id %d
\n
"
,
__FILE__
,
__LINE__
,
__FUNCTION__
,
srb_id
);
...
...
openair2/RRC/NR/rrc_gNB.c
View file @
9a6baac0
...
...
@@ -1265,6 +1265,8 @@ rrc_gNB_process_RRCReconfigurationComplete(
ue_context_pP
->
ue_context
.
rnti
);
#ifndef ITTI_SIM
LOG_I
(
NR_RRC
,
"Configuring PDCP DRBs/SRBs for UE %x
\n
"
,
ue_context_pP
->
ue_context
.
rnti
);
nr_rrc_pdcp_config_asn1_req
(
ctxt_pP
,
SRB_configList
,
// NULL,
DRB_configList
,
...
...
@@ -1279,6 +1281,7 @@ rrc_gNB_process_RRCReconfigurationComplete(
ue_context_pP
->
ue_context
.
masterCellGroup
->
rlc_BearerToAddModList
);
/* Refresh SRBs/DRBs */
if
(
!
NODE_IS_CU
(
RC
.
nrrrc
[
ctxt_pP
->
module_id
]
->
node_type
))
{
LOG_I
(
NR_RRC
,
"Configuring RLC DRBs/SRBs for UE %x
\n
"
,
ue_context_pP
->
ue_context
.
rnti
);
nr_rrc_rlc_config_asn1_req
(
ctxt_pP
,
SRB_configList
,
// NULL,
DRB_configList
,
...
...
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