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
wangjie
OpenXG-RAN
Commits
e1b95332
Commit
e1b95332
authored
Nov 25, 2016
by
Wilson W.K. Thong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enabled extra logs
parent
ae253f45
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
12 deletions
+12
-12
openair1/PHY/LTE_ESTIMATION/lte_ue_measurements.c
openair1/PHY/LTE_ESTIMATION/lte_ue_measurements.c
+2
-2
openair1/PHY/LTE_TRANSPORT/dci.c
openair1/PHY/LTE_TRANSPORT/dci.c
+5
-5
openair1/PHY/LTE_TRANSPORT/initial_sync.c
openair1/PHY/LTE_TRANSPORT/initial_sync.c
+1
-1
openair1/PHY/LTE_TRANSPORT/pcfich.c
openair1/PHY/LTE_TRANSPORT/pcfich.c
+3
-3
openair1/SCHED/phy_procedures_lte_ue.c
openair1/SCHED/phy_procedures_lte_ue.c
+1
-1
No files found.
openair1/PHY/LTE_ESTIMATION/lte_ue_measurements.c
View file @
e1b95332
...
...
@@ -32,7 +32,7 @@
#define k1 ((long long int) 1000)
#define k2 ((long long int) (1024-k1))
//
#define DEBUG_MEAS
#define DEBUG_MEAS
#ifdef USER_MODE
void
print_shorts
(
char
*
s
,
short
*
x
)
...
...
@@ -287,7 +287,7 @@ void ue_rrc_measurements(PHY_VARS_UE *ue,
for
(
l
=
0
,
nu
=
0
;
l
<=
(
4
-
ue
->
frame_parms
.
Ncp
);
l
+=
(
4
-
ue
->
frame_parms
.
Ncp
),
nu
=
3
)
{
k
=
(
nu
+
nushift
)
%
6
;
#ifdef DEBUG_MEAS
LOG_
I
(
PHY
,
"[UE %d] Frame %d subframe %d Doing ue_rrc_measurements rsrp/rssi (Nid_cell %d, nushift %d, eNB_offset %d, k %d, l %d)
\n
"
,
ue
->
Mod_id
,
ue
->
proc
.
proc_rxtx
[
subframe
&
1
].
frame_rx
,
subframe
,
Nid_cell
,
nushift
,
LOG_
D
(
PHY
,
"[UE %d] Frame %d subframe %d Doing ue_rrc_measurements rsrp/rssi (Nid_cell %d, nushift %d, eNB_offset %d, k %d, l %d)
\n
"
,
ue
->
Mod_id
,
ue
->
proc
.
proc_rxtx
[
subframe
&
1
].
frame_rx
,
subframe
,
Nid_cell
,
nushift
,
eNB_offset
,
k
,
l
);
#endif
...
...
openair1/PHY/LTE_TRANSPORT/dci.c
View file @
e1b95332
...
...
@@ -403,7 +403,7 @@ void pdcch_demapping(uint16_t *llr,uint16_t *wbar,LTE_DL_FRAME_PARMS *frame_parm
for
(
i
=
0
;
i
<
4
;
i
++
)
{
wbar
[
mprime
]
=
llr
[
tti_offset0
+
i
];
#ifdef DEBUG_DCI_DECODING
LOG_
I
(
PHY
,
"PDCCH demapping mprime %d.%d <= llr %d (symbol %d re %d) -> (%d,%d)
\n
"
,
mprime
/
4
,
i
,
tti_offset0
+
i
,
symbol_offset
,
re_offset0
,
*
(
char
*
)
&
wbar
[
mprime
],
*
(
1
+
(
char
*
)
&
wbar
[
mprime
]));
LOG_
D
(
PHY
,
"PDCCH demapping mprime %d.%d <= llr %d (symbol %d re %d) -> (%d,%d)
\n
"
,
mprime
/
4
,
i
,
tti_offset0
+
i
,
symbol_offset
,
re_offset0
,
*
(
char
*
)
&
wbar
[
mprime
],
*
(
1
+
(
char
*
)
&
wbar
[
mprime
]));
#endif
mprime
++
;
re_offset0
++
;
...
...
@@ -419,7 +419,7 @@ void pdcch_demapping(uint16_t *llr,uint16_t *wbar,LTE_DL_FRAME_PARMS *frame_parm
for
(
i
=
0
;
i
<
4
;
i
++
)
{
wbar
[
mprime
]
=
llr
[
tti_offset
+
i
];
#ifdef DEBUG_DCI_DECODING
LOG_
I
(
PHY
,
"PDCCH demapping mprime %d.%d <= llr %d (symbol %d re %d) -> (%d,%d)
\n
"
,
mprime
/
4
,
i
,
tti_offset
+
i
,
symbol_offset
,
re_offset
+
i
,
*
(
char
*
)
&
wbar
[
mprime
],
*
(
1
+
(
char
*
)
&
wbar
[
mprime
]));
LOG_
D
(
PHY
,
"PDCCH demapping mprime %d.%d <= llr %d (symbol %d re %d) -> (%d,%d)
\n
"
,
mprime
/
4
,
i
,
tti_offset
+
i
,
symbol_offset
,
re_offset
+
i
,
*
(
char
*
)
&
wbar
[
mprime
],
*
(
1
+
(
char
*
)
&
wbar
[
mprime
]));
#endif
mprime
++
;
}
...
...
@@ -2473,16 +2473,16 @@ void dci_decoding(uint8_t DCI_LENGTH,
#ifdef DEBUG_DCI_DECODING
for
(
i
=
0
;
i
<
16
+
DCI_LENGTH
;
i
++
)
LOG_
I
(
PHY
,
" DCI %d : (%d,%d,%d)
\n
"
,
i
,
*
(
d_rx
+
96
+
(
3
*
i
)),
*
(
d_rx
+
97
+
(
3
*
i
)),
*
(
d_rx
+
98
+
(
3
*
i
)));
LOG_
D
(
PHY
,
" DCI %d : (%d,%d,%d)
\n
"
,
i
,
*
(
d_rx
+
96
+
(
3
*
i
)),
*
(
d_rx
+
97
+
(
3
*
i
)),
*
(
d_rx
+
98
+
(
3
*
i
)));
#endif
memset
(
decoded_output
,
0
,
2
+
((
16
+
DCI_LENGTH
)
>>
3
));
#ifdef DEBUG_DCI_DECODING
printf
(
"Before Viterbi
\n
"
);
LOG_D
(
PHY
,
"Before Viterbi
\n
"
);
for
(
i
=
0
;
i
<
16
+
DCI_LENGTH
;
i
++
)
printf
(
"%d : (%d,%d,%d)
\n
"
,
i
,
*
(
d_rx
+
96
+
(
3
*
i
)),
*
(
d_rx
+
97
+
(
3
*
i
)),
*
(
d_rx
+
98
+
(
3
*
i
)));
LOG_D
(
PHY
,
"%d : (%d,%d,%d)
\n
"
,
i
,
*
(
d_rx
+
96
+
(
3
*
i
)),
*
(
d_rx
+
97
+
(
3
*
i
)),
*
(
d_rx
+
98
+
(
3
*
i
)));
#endif
//debug_printf("Doing DCI Viterbi \n");
...
...
openair1/PHY/LTE_TRANSPORT/initial_sync.c
View file @
e1b95332
...
...
@@ -41,7 +41,7 @@
#include "common_lib.h"
extern
openair0_config_t
openair0_cfg
[];
//
#define DEBUG_INITIAL_SYNCH
#define DEBUG_INITIAL_SYNCH
int
pbch_detection
(
PHY_VARS_UE
*
ue
,
runmode_t
mode
)
{
...
...
openair1/PHY/LTE_TRANSPORT/pcfich.c
View file @
e1b95332
...
...
@@ -34,7 +34,7 @@
//uint16_t pcfich_reg[4];
//uint8_t pcfich_first_reg_idx = 0;
//
#define DEBUG_PCFICH
#define DEBUG_PCFICH
void
generate_pcfich_reg_mapping
(
LTE_DL_FRAME_PARMS
*
frame_parms
)
{
...
...
@@ -301,7 +301,7 @@ uint8_t rx_pcfich(LTE_DL_FRAME_PARMS *frame_parms,
}
#ifdef DEBUG_PCFICH
msg
(
"metric %d : %d
\n
"
,
i
,
metric
);
LOG_I
(
PHY
,
"metric %d : %d
\n
"
,
i
,
metric
);
#endif
if
(
metric
>
old_metric
)
{
...
...
@@ -311,7 +311,7 @@ uint8_t rx_pcfich(LTE_DL_FRAME_PARMS *frame_parms,
}
#ifdef DEBUG_PCFICH
msg
(
"[PHY]
PCFICH detected for %d PDCCH symbols
\n
"
,
num_pdcch_symbols
);
LOG_I
(
PHY
,
"
PCFICH detected for %d PDCCH symbols
\n
"
,
num_pdcch_symbols
);
#endif
return
(
num_pdcch_symbols
);
}
openair1/SCHED/phy_procedures_lte_ue.c
View file @
e1b95332
...
...
@@ -3279,7 +3279,7 @@ int phy_procedures_UE_RX(PHY_VARS_UE *ue,UE_rxtx_proc_t *proc,uint8_t eNB_id,uin
#ifdef DEBUG_PHY_PROC
LOG_
D
(
PHY
,
"[%s %d] Frame %d subframe %d: Doing phy_procedures_UE_RX (%d
)
\n
"
,
LOG_
I
(
PHY
,
"[%s %d] Frame %d subframe %d: Doing phy_procedures_UE_RX (-
)
\n
"
,
(
r_type
==
multicast_relay
)
?
"RN/UE"
:
"UE"
,
ue
->
Mod_id
,
frame_rx
,
subframe_rx
);
#endif
...
...
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