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
15777bbf
Commit
15777bbf
authored
Apr 20, 2022
by
francescomani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for ulsim antenna ports
parent
02b66061
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
openair1/SIMULATION/NR_PHY/ulsim.c
openair1/SIMULATION/NR_PHY/ulsim.c
+5
-3
No files found.
openair1/SIMULATION/NR_PHY/ulsim.c
View file @
15777bbf
...
...
@@ -730,7 +730,7 @@ int main(int argc, char **argv)
// TODO do a UECAP for phy-sim
const
gNB_RrcConfigurationReq
conf
=
{
.
pdsch_AntennaPorts
=
{
.
N1
=
n_tx
,
.
N2
=
1
,
.
XP
=
1
},
.
pdsch_AntennaPorts
=
{
.
N1
=
1
,
.
N2
=
1
,
.
XP
=
1
},
.
pusch_AntennaPorts
=
n_rx
,
.
minRXTXTIME
=
0
,
.
do_CSIRS
=
0
,
...
...
@@ -751,10 +751,10 @@ int main(int argc, char **argv)
rrc_mac_config_req_gNB
(
0
,
0
,
conf
.
pdsch_AntennaPorts
,
n_rx
,
0
,
6
,
scc
,
&
rrc
.
carrier
.
mib
,
rrc
.
carrier
.
siblock1
,
0
,
0
,
NULL
);
// UE dedicated configuration
rrc_mac_config_req_gNB
(
0
,
0
,
conf
.
pdsch_AntennaPorts
,
n_rx
,
0
,
6
,
scc
,
&
rrc
.
carrier
.
mib
,
rrc
.
carrier
.
siblock1
,
1
,
secondaryCellGroup
->
spCellConfig
->
reconfigurationWithSync
->
newUE_Identity
,
secondaryCellGroup
);
frame_parms
->
nb_antennas_tx
=
n_tx
;
frame_parms
->
nb_antennas_tx
=
1
;
frame_parms
->
nb_antennas_rx
=
n_rx
;
nfapi_nr_config_request_scf_t
*
cfg
=
&
gNB
->
gNB_config
;
cfg
->
carrier_config
.
num_tx_ant
.
value
=
n_tx
;
cfg
->
carrier_config
.
num_tx_ant
.
value
=
1
;
cfg
->
carrier_config
.
num_rx_ant
.
value
=
n_rx
;
// nr_phy_config_request_sim(gNB,N_RB_DL,N_RB_DL,mu,0,0x01);
phy_init_nr_gNB
(
gNB
,
0
,
1
);
...
...
@@ -771,6 +771,8 @@ int main(int argc, char **argv)
PHY_vars_UE_g
[
0
]
=
malloc
(
sizeof
(
PHY_VARS_NR_UE
*
));
PHY_vars_UE_g
[
0
][
0
]
=
UE
;
memcpy
(
&
UE
->
frame_parms
,
frame_parms
,
sizeof
(
NR_DL_FRAME_PARMS
));
UE
->
frame_parms
.
nb_antennas_tx
=
n_tx
;
frame_parms
->
nb_antennas_rx
=
1
;
if
(
init_nr_ue_signal
(
UE
,
1
)
!=
0
)
{
printf
(
"Error at UE NR initialisation
\n
"
);
...
...
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