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
Michael Black
OpenXG-RAN
Commits
cd5a3218
Commit
cd5a3218
authored
Aug 15, 2019
by
Khalid Ahmed
Committed by
Thomas Schlichter
Oct 08, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing TDD mode using USRP x300
parent
ef41f62f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
executables/nr-ru.c
executables/nr-ru.c
+7
-4
targets/PROJECTS/GENERIC-LTE-EPC/CONF/gnb.band78.tm1.106PRB.usrpx300.conf
.../GENERIC-LTE-EPC/CONF/gnb.band78.tm1.106PRB.usrpx300.conf
+1
-1
No files found.
executables/nr-ru.c
View file @
cd5a3218
...
@@ -2103,6 +2103,7 @@ void init_NR_RU(char *rf_config_file)
...
@@ -2103,6 +2103,7 @@ void init_NR_RU(char *rf_config_file)
{
{
int
ru_id
;
int
ru_id
;
RU_t
*
ru
;
RU_t
*
ru
;
PHY_VARS_gNB
*
gNB_RC
;
PHY_VARS_gNB
*
gNB0
=
(
PHY_VARS_gNB
*
)
NULL
;
PHY_VARS_gNB
*
gNB0
=
(
PHY_VARS_gNB
*
)
NULL
;
NR_DL_FRAME_PARMS
*
fp
=
(
NR_DL_FRAME_PARMS
*
)
NULL
;
NR_DL_FRAME_PARMS
*
fp
=
(
NR_DL_FRAME_PARMS
*
)
NULL
;
int
i
;
int
i
;
...
@@ -2146,6 +2147,7 @@ void init_NR_RU(char *rf_config_file)
...
@@ -2146,6 +2147,7 @@ void init_NR_RU(char *rf_config_file)
}
}
}
}
gNB_RC
=
RC
.
gNB
[
0
][
0
];
gNB0
=
ru
->
gNB_list
[
0
];
gNB0
=
ru
->
gNB_list
[
0
];
fp
=
ru
->
nr_frame_parms
;
fp
=
ru
->
nr_frame_parms
;
LOG_D
(
PHY
,
"RU FUnction:%d ru->if_south:%d
\n
"
,
ru
->
function
,
ru
->
if_south
);
LOG_D
(
PHY
,
"RU FUnction:%d ru->if_south:%d
\n
"
,
ru
->
function
,
ru
->
if_south
);
...
@@ -2154,10 +2156,11 @@ void init_NR_RU(char *rf_config_file)
...
@@ -2154,10 +2156,11 @@ void init_NR_RU(char *rf_config_file)
if
((
ru
->
function
!=
NGFI_RRU_IF5
)
&&
(
ru
->
function
!=
NGFI_RRU_IF4p5
))
if
((
ru
->
function
!=
NGFI_RRU_IF5
)
&&
(
ru
->
function
!=
NGFI_RRU_IF4p5
))
AssertFatal
(
gNB0
!=
NULL
,
"gNB0 is null!
\n
"
);
AssertFatal
(
gNB0
!=
NULL
,
"gNB0 is null!
\n
"
);
if
(
gNB0
)
{
if
(
gNB0
&&
gNB_RC
)
{
LOG_I
(
PHY
,
"Copying frame parms from gNB %d to ru %d
\n
"
,
gNB0
->
Mod_id
,
ru
->
idx
);
LOG_I
(
PHY
,
"Copying frame parms from gNB in RC to gNB %d in ru %d and frame_parms in ru
\n
"
,
gNB0
->
Mod_id
,
ru
->
idx
);
memcpy
((
void
*
)
fp
,(
void
*
)
&
gNB0
->
frame_parms
,
sizeof
(
NR_DL_FRAME_PARMS
));
memset
((
void
*
)
fp
,
0
,
sizeof
(
NR_DL_FRAME_PARMS
));
memset
((
void
*
)
ru
->
nr_frame_parms
,
0
,
sizeof
(
NR_DL_FRAME_PARMS
));
memcpy
((
void
*
)
fp
,
&
gNB_RC
->
frame_parms
,
sizeof
(
NR_DL_FRAME_PARMS
));
memcpy
((
void
*
)
&
gNB0
->
frame_parms
,(
void
*
)
&
gNB_RC
->
frame_parms
,
sizeof
(
NR_DL_FRAME_PARMS
));
// attach all RU to all gNBs in its list/
// attach all RU to all gNBs in its list/
LOG_D
(
PHY
,
"ru->num_gNB:%d gNB0->num_RU:%d
\n
"
,
ru
->
num_gNB
,
gNB0
->
num_RU
);
LOG_D
(
PHY
,
"ru->num_gNB:%d gNB0->num_RU:%d
\n
"
,
ru
->
num_gNB
,
gNB0
->
num_RU
);
...
...
targets/PROJECTS/GENERIC-LTE-EPC/CONF/gnb.band78.tm1.106PRB.usrpx300.conf
View file @
cd5a3218
...
@@ -31,7 +31,7 @@ gNBs =
...
@@ -31,7 +31,7 @@ gNBs =
UL_prefix_type
=
"NORMAL"
;
UL_prefix_type
=
"NORMAL"
;
eutra_band
=
78
;
eutra_band
=
78
;
downlink_frequency
=
3510000000
L
;
downlink_frequency
=
3510000000
L
;
uplink_frequency_offset
=
-
12000000
0
;
uplink_frequency_offset
=
0
;
Nid_cell
=
0
;
Nid_cell
=
0
;
N_RB_DL
=
106
;
N_RB_DL
=
106
;
nb_antenna_ports
=
1
;
nb_antenna_ports
=
1
;
...
...
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