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
lizhongxiao
OpenXG-RAN
Commits
1fcf4479
Commit
1fcf4479
authored
Jul 20, 2017
by
Calisson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modifications for TDD special subframe handling
parent
d3df77bc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
9 deletions
+14
-9
targets/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band38.tm1.usrpb210.conf
...ROJECTS/GENERIC-LTE-EPC/CONF/enb.band38.tm1.usrpb210.conf
+2
-2
targets/RT/USER/lte-enb.c
targets/RT/USER/lte-enb.c
+12
-7
No files found.
targets/PROJECTS/GENERIC-LTE-EPC/CONF/enb.band38.tm1.usrpb210.conf
View file @
1fcf4479
...
...
@@ -17,7 +17,7 @@ eNBs =
mobile_country_code
=
"208"
;
mobile_network_code
=
"9
2
"
;
mobile_network_code
=
"9
4
"
;
//////////
Physical
parameters
:
...
...
@@ -34,7 +34,7 @@ eNBs =
downlink_frequency
=
2580000000
L
;
uplink_frequency_offset
=
0
;
Nid_cell
=
0
;
N_RB_DL
=
25
;
N_RB_DL
=
50
;
Nid_cell_mbsfn
=
0
;
nb_antenna_ports
=
1
;
nb_antennas_tx
=
1
;
...
...
targets/RT/USER/lte-enb.c
View file @
1fcf4479
...
...
@@ -308,6 +308,7 @@ void do_OFDM_mod_rt(int subframe,PHY_VARS_eNB *phy_vars_eNB)
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_ENB_OFDM_MODULATION
,
1
);
if
(
phy_vars_eNB
->
proc
.
frame_tx
==
0
)
LOG_I
(
PHY
,
"doing OFDM mod for for slot %d
\n
"
,
subframe
<<
1
);
do_OFDM_mod_symbol
(
&
phy_vars_eNB
->
common_vars
,
0
,
subframe
<<
1
,
...
...
@@ -493,6 +494,9 @@ void proc_tx_full(PHY_VARS_eNB *eNB,
// do OFDM modulation
do_OFDM_mod_rt
(
proc
->
subframe_tx
,
eNB
);
// if TX fronthaul go ahead
if
(
proc
->
frame_tx
==
0
)
LOG_I
(
PHY
,
"Frame 0 : Calling eNB->tx_fh for subframe %d
\n
"
,
proc
->
subframe_tx
);
eNB
->
proc
.
subframe_tx
=
proc
->
subframe_tx
;
if
(
eNB
->
tx_fh
)
eNB
->
tx_fh
(
eNB
,
proc
);
/*
...
...
@@ -695,6 +699,7 @@ static void* print_stats_thread( void* param ) {
print_meas
(
&
eNB
->
send_if4p5_comp_stats
,
"send_if4p5_comp_stats"
,
NULL
,
NULL
);
printf
(
"
\n
"
);
}
return
(
0
);
}
// asynchronous UL with IF5 (RCC,RAU,eNodeB_BBU)
...
...
@@ -1037,7 +1042,7 @@ void rx_rf(PHY_VARS_eNB *eNB,int *frame,int *subframe) {
//printf("timestamp_rx %lu, frame %d(%d), subframe %d(%d)\n",proc->timestamp_rx,proc->frame_rx,frame,proc->subframe_rx,subframe);
VCD_SIGNAL_DUMPER_DUMP_VARIABLE_BY_NAME
(
VCD_SIGNAL_DUMPER_VARIABLES_TRX_TS
,
proc
->
timestamp_rx
&
0xffffffff
);
VCD_SIGNAL_DUMPER_DUMP_VARIABLE_BY_NAME
(
VCD_SIGNAL_DUMPER_VARIABLES_TRX_TS
,
(
proc
->
timestamp_rx
+
eNB
->
ts_offset
)
&
0xffffffff
);
if
(
rxs
!=
fp
->
samples_per_tti
)
exit_fun
(
"problem receiving samples"
);
...
...
@@ -1516,7 +1521,6 @@ void tx_rf(PHY_VARS_eNB *eNB,eNB_rxtx_proc_t *proc_rxtx) {
void
*
txp
[
fp
->
nb_antennas_tx
];
unsigned
int
txs
;
int
i
;
openair0_timestamp
ts
,
old_ts
;
// Transmit TX buffer based on timestamp from RX
...
...
@@ -1552,13 +1556,14 @@ void tx_rf(PHY_VARS_eNB *eNB,eNB_rxtx_proc_t *proc_rxtx) {
(
prevSF_type
==
SF_UL
)
&&
(
nextSF_type
==
SF_UL
))
{
flags
=
4
;
// start of burst and end of burst (only one DL SF between two UL)
sf_extension
=
1
;
sf_extension
=
eNB
->
N_TA_offset
<<
1
;
}
VCD_SIGNAL_DUMPER_DUMP_VARIABLE_BY_NAME
(
VCD_SIGNAL_DUMPER_VARIABLES_TRX_TST
,
(
proc
->
timestamp_tx
-
openair0_cfg
[
0
].
tx_sample_advance
-
sf_extension
)
&
0xffffffff
);
if
(
proc
->
frame_tx
==
0
)
LOG_I
(
PHY
,
"siglen = %d, sf_extension = %d (%d,%d)
\n
"
,
siglen
,
sf_extension
,
proc
->
subframe_tx
,
proc_rxtx
->
subframe_tx
);
VCD_SIGNAL_DUMPER_DUMP_VARIABLE_BY_NAME
(
VCD_SIGNAL_DUMPER_VARIABLES_TRX_TST
,
(
proc
->
timestamp_tx
+
eNB
->
ts_offset
-
openair0_cfg
[
0
].
tx_sample_advance
-
sf_extension
)
&
0xffffffff
);
for
(
i
=
0
;
i
<
fp
->
nb_antennas_tx
;
i
++
)
txp
[
i
]
=
(
void
*
)
&
eNB
->
common_vars
.
txdata
[
0
][
i
][(((
proc
->
subframe_tx
)
%
10
)
*
siglen
)
-
sf_extension
];
txp
[
i
]
=
(
void
*
)
&
eNB
->
common_vars
.
txdata
[
0
][
i
][(((
proc
->
subframe_tx
)
%
10
)
*
fp
->
samples_per_tti
)
-
sf_extension
];
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_TRX_WRITE
,
1
);
VCD_SIGNAL_DUMPER_DUMP_VARIABLE_BY_NAME
(
VCD_SIGNAL_DUMPER_VARIABLES_TRX_WRITE_FLAGS
,
flags
);
...
...
@@ -1572,8 +1577,8 @@ void tx_rf(PHY_VARS_eNB *eNB,eNB_rxtx_proc_t *proc_rxtx) {
end_rf_ts
=
proc
->
timestamp_tx
+
eNB
->
ts_offset
-
openair0_cfg
[
0
].
tx_sample_advance
;
if
(
recv_if_count
!=
0
)
{
recv_if_count
=
recv_if_count
-
1
;
LOG_D
(
HW
,
"[From Timestamp %
d to Timestamp %d] RTT_RF: %"
PRId64
"; RTT_RF
\n
"
,
start_rf_prev_ts
,
end_rf_ts
,
clock_difftime_ns
(
start_rf_prev
,
end_rf
));
LOG_D
(
HW
,
"[From Timestamp %
d to Timestamp %d] RTT_RF: %"
PRId64
"; RTT_RF
\n
"
,
start_rf_prev2_ts
,
end_rf_ts
,
clock_difftime_ns
(
start_rf_prev2
,
end_rf
));
LOG_D
(
HW
,
"[From Timestamp %
llu to Timestamp %llu] RTT_RF: %"
PRId64
"; RTT_RF
\n
"
,
(
long
long
unsigned
int
)
start_rf_prev_ts
,
(
long
long
unsigned
int
)
end_rf_ts
,
clock_difftime_ns
(
start_rf_prev
,
end_rf
));
LOG_D
(
HW
,
"[From Timestamp %
llu to Timestamp %llu] RTT_RF: %"
PRId64
"; RTT_RF
\n
"
,
(
long
long
unsigned
int
)
start_rf_prev2_ts
,
(
long
long
unsigned
int
)
end_rf_ts
,
clock_difftime_ns
(
start_rf_prev2
,
end_rf
));
}
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_TRX_WRITE
,
0
);
...
...
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