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
alex037yang
OpenXG-RAN
Commits
7fb0902d
Commit
7fb0902d
authored
Jan 29, 2018
by
matzakos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Works up to the reception of Msg4 at the eNB. Still sometimes SF sync between PNF and VNF is lost.
parent
507c1ea9
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
100 additions
and
43 deletions
+100
-43
nfapi/nfapi_pnf.c
nfapi/nfapi_pnf.c
+2
-0
openair1/PHY/INIT/lte_init.c
openair1/PHY/INIT/lte_init.c
+23
-2
openair2/PHY_INTERFACE/phy_stub_UE.c
openair2/PHY_INTERFACE/phy_stub_UE.c
+71
-37
targets/RT/USER/lte-ue.c
targets/RT/USER/lte-ue.c
+4
-4
No files found.
nfapi/nfapi_pnf.c
View file @
7fb0902d
...
...
@@ -1891,8 +1891,10 @@ int oai_nfapi_harq_indication(nfapi_harq_indication_t *harq_ind)
harq_ind
->
header
.
phy_id
=
1
;
// DJP HACK TODO FIXME - need to pass this around!!!!
harq_ind
->
header
.
message_id
=
NFAPI_HARQ_INDICATION
;
LOG_E
(
PHY
,
"%s() sfn_sf:%d number_of_harqs:%d
\n
"
,
__FUNCTION__
,
NFAPI_SFNSF2DEC
(
harq_ind
->
sfn_sf
),
harq_ind
->
harq_indication_body
.
number_of_harqs
);
LOG_E
(
PHY
,
"%s() Panos-D: Number of ACK/NACKs: %d"
,
__FUNCTION__
,
harq_ind
->
harq_indication_body
.
harq_pdu_list
[
0
].
harq_indication_fdd_rel13
.
number_of_ack_nack
);
int
retval
=
nfapi_pnf_p7_harq_ind
(
p7_config_g
,
harq_ind
);
if
(
retval
!=
0
)
LOG_E
(
PHY
,
"%s() sfn_sf:%d number_of_harqs:%d nfapi_pnf_p7_harq_ind()=%d
\n
"
,
__FUNCTION__
,
NFAPI_SFNSF2DEC
(
harq_ind
->
sfn_sf
),
harq_ind
->
harq_indication_body
.
number_of_harqs
,
retval
);
...
...
openair1/PHY/INIT/lte_init.c
View file @
7fb0902d
...
...
@@ -37,6 +37,7 @@ extern int32_t get_uldl_offset(int eutra_bandP);
extern
uint16_t
prach_root_sequence_map0_3
[
838
];
extern
uint16_t
prach_root_sequence_map4
[
138
];
extern
uint8_t
nfapi_mode
;
uint8_t
dmrs1_tab
[
8
]
=
{
0
,
2
,
3
,
4
,
6
,
8
,
9
,
10
};
...
...
@@ -1170,12 +1171,16 @@ void phy_config_dedicated_ue(uint8_t Mod_id,int CC_id,uint8_t eNB_id,
LOG_D
(
PHY
,
"[UE %d] Received NULL physicalConfigDedicated->antennaInfo from eNB %d
\n
"
,
Mod_id
,
eNB_id
);
}
//LOG_I(PHY,"Panos-D: phy_config_dedicated_ue 1 \n");
if
(
physicalConfigDedicated
->
schedulingRequestConfig
)
{
//LOG_I(PHY,"Panos-D: phy_config_dedicated_ue 2 \n");
if
(
physicalConfigDedicated
->
schedulingRequestConfig
->
present
==
SchedulingRequestConfig_PR_setup
)
{
//LOG_I(PHY,"Panos-D: phy_config_dedicated_ue 3 \n");
phy_vars_ue
->
scheduling_request_config
[
eNB_id
].
sr_PUCCH_ResourceIndex
=
physicalConfigDedicated
->
schedulingRequestConfig
->
choice
.
setup
.
sr_PUCCH_ResourceIndex
;
phy_vars_ue
->
scheduling_request_config
[
eNB_id
].
sr_ConfigIndex
=
physicalConfigDedicated
->
schedulingRequestConfig
->
choice
.
setup
.
sr_ConfigIndex
;
phy_vars_ue
->
scheduling_request_config
[
eNB_id
].
dsr_TransMax
=
physicalConfigDedicated
->
schedulingRequestConfig
->
choice
.
setup
.
dsr_TransMax
;
//LOG_I(PHY,"Panos-D: phy_config_dedicated_ue 4 \n");
LOG_D
(
PHY
,
"scheduling_request_config.sr_PUCCH_ResourceIndex %d
\n
"
,
phy_vars_ue
->
scheduling_request_config
[
eNB_id
].
sr_PUCCH_ResourceIndex
);
LOG_D
(
PHY
,
"scheduling_request_config.sr_ConfigIndex %d
\n
"
,
phy_vars_ue
->
scheduling_request_config
[
eNB_id
].
sr_ConfigIndex
);
LOG_D
(
PHY
,
"scheduling_request_config.dsr_TransMax %d
\n
"
,
phy_vars_ue
->
scheduling_request_config
[
eNB_id
].
dsr_TransMax
);
...
...
@@ -1187,6 +1192,7 @@ void phy_config_dedicated_ue(uint8_t Mod_id,int CC_id,uint8_t eNB_id,
if
(
physicalConfigDedicated
->
soundingRS_UL_ConfigDedicated
)
{
//LOG_I(PHY,"Panos-D: phy_config_dedicated_ue 5 \n");
phy_vars_ue
->
soundingrs_ul_config_dedicated
[
eNB_id
].
srsConfigDedicatedSetup
=
0
;
if
(
physicalConfigDedicated
->
soundingRS_UL_ConfigDedicated
->
present
==
SoundingRS_UL_ConfigDedicated_PR_setup
)
{
phy_vars_ue
->
soundingrs_ul_config_dedicated
[
eNB_id
].
srsConfigDedicatedSetup
=
1
;
...
...
@@ -1208,7 +1214,9 @@ void phy_config_dedicated_ue(uint8_t Mod_id,int CC_id,uint8_t eNB_id,
if
(
physicalConfigDedicated
->
cqi_ReportConfig
)
{
//LOG_I(PHY,"Panos-D: phy_config_dedicated_ue 6.0 \n");
if
(
physicalConfigDedicated
->
cqi_ReportConfig
->
cqi_ReportModeAperiodic
)
{
//LOG_I(PHY,"Panos-D: phy_config_dedicated_ue 6 \n");
// configure PUSCH CQI reporting
phy_vars_ue
->
cqi_report_config
[
eNB_id
].
cqi_ReportModeAperiodic
=
*
physicalConfigDedicated
->
cqi_ReportConfig
->
cqi_ReportModeAperiodic
;
if
((
phy_vars_ue
->
cqi_report_config
[
eNB_id
].
cqi_ReportModeAperiodic
!=
rm12
)
&&
...
...
@@ -1217,6 +1225,7 @@ void phy_config_dedicated_ue(uint8_t Mod_id,int CC_id,uint8_t eNB_id,
LOG_E
(
PHY
,
"Unsupported Aperiodic CQI Feedback Mode : %d
\n
"
,
phy_vars_ue
->
cqi_report_config
[
eNB_id
].
cqi_ReportModeAperiodic
);
}
if
(
physicalConfigDedicated
->
cqi_ReportConfig
->
cqi_ReportPeriodic
)
{
//LOG_I(PHY,"Panos-D: phy_config_dedicated_ue 7 \n");
if
(
physicalConfigDedicated
->
cqi_ReportConfig
->
cqi_ReportPeriodic
->
present
==
CQI_ReportPeriodic_PR_setup
)
{
// configure PUCCH CQI reporting
phy_vars_ue
->
cqi_report_config
[
eNB_id
].
CQI_ReportPeriodic
.
cqi_PUCCH_ResourceIndex
=
physicalConfigDedicated
->
cqi_ReportConfig
->
cqi_ReportPeriodic
->
choice
.
setup
.
cqi_PUCCH_ResourceIndex
;
...
...
@@ -1249,24 +1258,36 @@ void phy_config_dedicated_ue(uint8_t Mod_id,int CC_id,uint8_t eNB_id,
}
// fill cqi parameters for periodic CQI reporting
//LOG_I(PHY,"Panos-D: phy_config_dedicated_ue 8 \n");
get_cqipmiri_params
(
phy_vars_ue
,
eNB_id
);
//LOG_I(PHY,"Panos-D: phy_config_dedicated_ue 9 \n");
// disable MIB SIB decoding once we are on connected mode
first_dedicated_configuration
++
;
if
(
first_dedicated_configuration
>
1
)
{
//LOG_I(PHY,"Panos-D: phy_config_dedicated_ue 10 \n");
LOG_I
(
PHY
,
"Disable SIB MIB decoding
\n
"
);
phy_vars_ue
->
decode_SIB
=
0
;
phy_vars_ue
->
decode_MIB
=
0
;
}
//phy_vars_ue->pdcch_vars[1][eNB_id]->crnti = phy_vars_ue->pdcch_vars[0][eNB_id]->crnti;
if
(
phy_vars_ue
->
pdcch_vars
[
0
][
eNB_id
]
->
crnti
==
0x1234
)
LOG_I
(
PHY
,
"Panos-D: phy_config_dedicated_ue 11.0
\n
"
);
if
(
nfapi_mode
!=
3
){
if
(
phy_vars_ue
->
pdcch_vars
[
0
][
eNB_id
]
->
crnti
==
0x1234
)
{
//LOG_I(PHY,"Panos-D: phy_config_dedicated_ue 11 \n");
phy_vars_ue
->
pdcch_vars
[
0
][
eNB_id
]
->
crnti
=
phy_vars_ue
->
pdcch_vars
[
1
][
eNB_id
]
->
crnti
;
else
}
else
{
//LOG_I(PHY,"Panos-D: phy_config_dedicated_ue 12 \n");
phy_vars_ue
->
pdcch_vars
[
1
][
eNB_id
]
->
crnti
=
phy_vars_ue
->
pdcch_vars
[
0
][
eNB_id
]
->
crnti
;
}
//LOG_I(PHY,"Panos-D: phy_config_dedicated_ue 13 \n");
LOG_I
(
PHY
,
"C-RNTI %x %x
\n
"
,
phy_vars_ue
->
pdcch_vars
[
0
][
eNB_id
]
->
crnti
,
phy_vars_ue
->
pdcch_vars
[
1
][
eNB_id
]
->
crnti
);
}
}
...
...
openair2/PHY_INTERFACE/phy_stub_UE.c
View file @
7fb0902d
This diff is collapsed.
Click to expand it.
targets/RT/USER/lte-ue.c
View file @
7fb0902d
...
...
@@ -1005,15 +1005,15 @@ static void *UE_phy_stub_thread_rxn_txnp4(void *arg) {
if
(
UE
->
mode
!=
loop_through_memory
){
if
((
UE_mac_inst
[
Mod_id
].
UE_mode
[
0
]
==
PRACH
)
)
{
LOG_I
(
MAC
,
"Panos-D: UE_phy_stub_thread_rxn_txnp4 before RACH
\n
"
);
//LOG_D
(MAC, "Panos-D: UE_phy_stub_thread_rxn_txnp4 before RACH \n");
// check if we have PRACH opportunity
if
(
is_prach_subframe
(
&
UE
->
frame_parms
,
proc
->
frame_tx
,
proc
->
subframe_tx
))
{
LOG_I
(
MAC
,
"Panos-D: UE_phy_stub_thread_rxn_txnp4 before RACH 2
\n
"
);
//
LOG_I(MAC, "Panos-D: UE_phy_stub_thread_rxn_txnp4 before RACH 2 \n");
PRACH_RESOURCES_t
*
prach_resources
=
ue_get_rach
(
Mod_id
,
0
,
proc
->
frame_tx
,
0
,
proc
->
subframe_tx
);
if
(
prach_resources
!=
NULL
)
{
LOG_I
(
MAC
,
"Panos-D: UE_phy_stub_thread_rxn_txnp4 before RACH 3
\n
"
);
//
LOG_I(MAC, "Panos-D: UE_phy_stub_thread_rxn_txnp4 before RACH 3 \n");
fill_rach_indication_UE_MAC
(
Mod_id
,
proc
->
frame_tx
,
proc
->
subframe_tx
,
UL_INFO
,
prach_resources
->
ra_PreambleIndex
,
prach_resources
->
ra_RNTI
);
Msg1_transmitted
(
Mod_id
,
0
,
proc
->
frame_tx
,
0
);
UE_mac_inst
[
Mod_id
].
UE_mode
[
0
]
=
RA_RESPONSE
;
...
...
@@ -1026,7 +1026,7 @@ static void *UE_phy_stub_thread_rxn_txnp4(void *arg) {
// UE Tx procedures directly at the MAC layer, based on the received ul_config requests from the vnf (eNB).
// Generate UL_indications which correspond to UL traffic.
if
(
UE_mac_inst
[
Mod_id
].
ul_config_req
!=
NULL
&&
UE_mac_inst
[
Mod_id
].
ul_config_req
->
ul_config_request_body
.
ul_config_pdu_list
!=
NULL
){
LOG_I
(
MAC
,
"Panos-D: UE_phy_stub_thread_rxn_txnp4 ul_config_req is not NULL
\n
"
);
//
LOG_I(MAC, "Panos-D: UE_phy_stub_thread_rxn_txnp4 ul_config_req is not NULL \n");
ul_config_req_UE_MAC
(
UE_mac_inst
[
Mod_id
].
ul_config_req
,
timer_frame
,
timer_subframe
);
//ul_config_req_UE_MAC(UE_mac_inst[Mod_id].ul_config_req, proc->frame_tx, proc->subframe_tx);
if
(
UE_mac_inst
[
Mod_id
].
ul_config_req
->
ul_config_request_body
.
ul_config_pdu_list
!=
NULL
){
...
...
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