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
canghaiwuhen
OpenXG-RAN
Commits
5506e79f
Commit
5506e79f
authored
Nov 12, 2018
by
Nick Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sync the PHY structure that IF-Modules intends to write, also the filter of LTE preamble tested
parent
410da556
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
19 additions
and
17 deletions
+19
-17
openair1/PHY/LTE_TRANSPORT/dci_tools_NB_IoT.c
openair1/PHY/LTE_TRANSPORT/dci_tools_NB_IoT.c
+4
-4
openair1/PHY/LTE_TRANSPORT/nprach_NB_IoT.c
openair1/PHY/LTE_TRANSPORT/nprach_NB_IoT.c
+1
-1
openair1/PHY/LTE_TRANSPORT/proto_NB_IoT.h
openair1/PHY/LTE_TRANSPORT/proto_NB_IoT.h
+3
-3
openair1/PHY/defs.h
openair1/PHY/defs.h
+2
-0
openair1/SCHED/defs_NB_IoT.h
openair1/SCHED/defs_NB_IoT.h
+3
-3
openair1/SCHED/phy_procedures_lte_common_NB_IoT.c
openair1/SCHED/phy_procedures_lte_common_NB_IoT.c
+1
-1
openair1/SCHED/phy_procedures_lte_eNb_NB_IoT.c
openair1/SCHED/phy_procedures_lte_eNb_NB_IoT.c
+4
-4
openair2/PHY_INTERFACE/IF_Module_L2_primitives_NB_IoT.c
openair2/PHY_INTERFACE/IF_Module_L2_primitives_NB_IoT.c
+1
-1
No files found.
openair1/PHY/LTE_TRANSPORT/dci_tools_NB_IoT.c
View file @
5506e79f
...
...
@@ -54,7 +54,7 @@
void
add_dci_NB_IoT
(
DCI_PDU_NB_IoT
*
DCI_pdu
,
void
*
pdu
,
rnti_t
rnti
,
unsigned
char
dci_size_bytes
,
unsigned
char
aggregation
,
unsigned
char
dci_size_bits
,
unsigned
char
dci_fmt
,
uint8_t
npdcch_start_symbol
)
{
//put the pdu
memcpy
(
&
DCI_pdu
->
dci_alloc
[
0
].
dci_pdu
[
0
],
pdu
,
dci_size_bytes
);
memcpy
(
&
DCI_pdu
->
dci_alloc
[
DCI_pdu
->
Num_dci
].
dci_pdu
[
0
],
pdu
,
dci_size_bytes
);
//configure the dci alloc
DCI_pdu
->
dci_alloc
[
DCI_pdu
->
Num_dci
].
dci_length
=
dci_size_bits
;
DCI_pdu
->
dci_alloc
[
DCI_pdu
->
Num_dci
].
L
=
aggregation
;
...
...
@@ -68,7 +68,7 @@ void add_dci_NB_IoT(DCI_PDU_NB_IoT *DCI_pdu,void *pdu,rnti_t rnti,unsigned char
}
int
generate_eNB_ulsch_params_from_dci_NB_IoT
(
PHY_VARS_eNB
_NB_IoT
*
eNB
,
int
generate_eNB_ulsch_params_from_dci_NB_IoT
(
PHY_VARS_eNB
*
eNB
,
eNB_rxtx_proc_t
*
proc
,
DCI_CONTENT
*
DCI_Content
,
uint16_t
rnti
,
...
...
@@ -144,14 +144,14 @@ int generate_eNB_ulsch_params_from_dci_NB_IoT(PHY_VARS_eNB_NB_IoT *eNB,
//map the Isf (DCI param) to the number of subframes (Nsf)
int
resource_to_subframe
[
8
]
=
{
1
,
2
,
3
,
4
,
5
,
6
,
8
,
10
};
int
generate_eNB_dlsch_params_from_dci_NB_IoT
(
PHY_VARS_eNB
_NB_IoT
*
eNB
,
int
generate_eNB_dlsch_params_from_dci_NB_IoT
(
PHY_VARS_eNB
*
eNB
,
int
frame
,
uint8_t
subframe
,
DCI_CONTENT
*
DCI_Content
,
uint16_t
rnti
,
DCI_format_NB_IoT_t
dci_format
,
NB_IoT_eNB_NPDCCH_t
*
ndlcch
,
NB_IoT
_DL_FRAME_PARMS
*
frame_parms
,
LTE
_DL_FRAME_PARMS
*
frame_parms
,
uint8_t
aggregation
,
//////????? maybe add the ncce index ??????????
uint8_t
npdcch_start_symbol
)
{
...
...
openair1/PHY/LTE_TRANSPORT/nprach_NB_IoT.c
View file @
5506e79f
...
...
@@ -80,7 +80,7 @@ uint8_t NPRACH_detection_NB_IoT(int16_t *input_buffer,uint32_t input_length){
}
//printf("energies = %ld %ld\n",energy_signal,energy_noise);
if
((
uint64_t
)(((
uint64_t
)
energy_signal
))
<
(
uint64_t
)
energy_noise
>>
2
){
if
((
uint64_t
)(((
uint64_t
)
energy_signal
))
<
(
uint64_t
)
energy_noise
>>
4
){
return
1
;
}
else
{
...
...
openair1/PHY/LTE_TRANSPORT/proto_NB_IoT.h
View file @
5506e79f
...
...
@@ -189,7 +189,7 @@ void add_dci_NB_IoT(DCI_PDU_NB_IoT *DCI_pdu,
/*Use the UL DCI Information to configure PHY and also Pack the DCI*/
int
generate_eNB_ulsch_params_from_dci_NB_IoT
(
PHY_VARS_eNB
_NB_IoT
*
eNB
,
int
generate_eNB_ulsch_params_from_dci_NB_IoT
(
PHY_VARS_eNB
*
eNB
,
eNB_rxtx_proc_t
*
proc
,
DCI_CONTENT
*
DCI_Content
,
uint16_t
rnti
,
...
...
@@ -200,14 +200,14 @@ int generate_eNB_ulsch_params_from_dci_NB_IoT(PHY_VARS_eNB_NB_IoT *eNB,
/*Use the DL DCI Information to configure PHY and also Pack the DCI*/
int
generate_eNB_dlsch_params_from_dci_NB_IoT
(
PHY_VARS_eNB
_NB_IoT
*
eNB
,
int
generate_eNB_dlsch_params_from_dci_NB_IoT
(
PHY_VARS_eNB
*
eNB
,
int
frame
,
uint8_t
subframe
,
DCI_CONTENT
*
DCI_Content
,
uint16_t
rnti
,
DCI_format_NB_IoT_t
dci_format
,
NB_IoT_eNB_NPDCCH_t
*
ndlcch
,
NB_IoT
_DL_FRAME_PARMS
*
frame_parms
,
LTE
_DL_FRAME_PARMS
*
frame_parms
,
uint8_t
aggregation
,
uint8_t
npdcch_start_symbol
);
...
...
openair1/PHY/defs.h
View file @
5506e79f
...
...
@@ -515,6 +515,7 @@ NB_IoT_eNB_NULSCH_t *nulsch[NUMBER_OF_UE_MAX+1]; //nulsch[0] contains the
NB_IoT_eNB_NDLSCH_t
*
ndlsch_SIB1
;
NB_IoT_eNB_NDLSCH_t
*
ndlsch_SIB23
;
NB_IoT_eNB_NDLSCH_t
*
ndlsch_RAR
;
NB_IoT_eNB_NPDCCH_t
*
npdcch
[
NUMBER_OF_UE_MAX_NB_IoT
];
//NB_IoT_eNB_NDLSCH_t ndlsch_rar;
NB_IoT_eNB_NPDCCH_t
npdcch_DCI
;
...
...
@@ -529,6 +530,7 @@ pthread_mutex_t UL_INFO_mutex;
//nfapi_preamble_pdu_t preamble_list_NB_IoT[4];
uint8_t
msg3_pdu
[
6
];
DCI_PDU_NB_IoT
*
DCI_pdu
;
//////////////////// END /////////////////////////////////
}
PHY_VARS_eNB
;
...
...
openair1/SCHED/defs_NB_IoT.h
View file @
5506e79f
...
...
@@ -28,15 +28,15 @@ void phy_procedures_eNB_uespec_RX_NB_IoT(PHY_VARS_eNB *eNB,eNB_rxtx_proc_t *proc
void
common_signal_procedures_NB_IoT
(
PHY_VARS_eNB
*
eNB
,
eNB_rxtx_proc_t
*
proc
);
/*Generate the ulsch params and do the mapping for the FAPI style parameters to OAI, and then do the packing*/
void
generate_eNB_ulsch_params_NB_IoT
(
PHY_VARS_eNB
_NB_IoT
*
eNB
,
eNB_rxtx_proc_t
*
proc
,
nfapi_hi_dci0_request_pdu_t
*
hi_dci0_pdu
);
void
generate_eNB_ulsch_params_NB_IoT
(
PHY_VARS_eNB
*
eNB
,
eNB_rxtx_proc_t
*
proc
,
nfapi_hi_dci0_request_pdu_t
*
hi_dci0_pdu
);
/*Generate the dlsch params and do the mapping for the FAPI style parameters to OAI, and then do the packing*/
void
generate_eNB_dlsch_params_NB_IoT
(
PHY_VARS_eNB
_NB_IoT
*
eNB
,
eNB_rxtx_proc_t
*
proc
,
nfapi_dl_config_request_pdu_t
*
dl_config_pdu
);
void
generate_eNB_dlsch_params_NB_IoT
(
PHY_VARS_eNB
*
eNB
,
eNB_rxtx_proc_t
*
proc
,
nfapi_dl_config_request_pdu_t
*
dl_config_pdu
);
/*Process all the scheduling result from MAC and also common signals.*/
void
phy_procedures_eNB_TX_NB_IoT
(
PHY_VARS_eNB_NB_IoT
*
eNB
,
eNB_rxtx_proc_t
*
proc
,
int
do_meas
);
int8_t
find_ue_NB_IoT
(
uint16_t
rnti
,
PHY_VARS_eNB
_NB_IoT
*
eNB
);
int8_t
find_ue_NB_IoT
(
uint16_t
rnti
,
PHY_VARS_eNB
*
eNB
);
NB_IoT_DL_FRAME_PARMS
*
get_NB_IoT_frame_parms
(
module_id_t
Mod_id
,
uint8_t
CC_id
);
...
...
openair1/SCHED/phy_procedures_lte_common_NB_IoT.c
View file @
5506e79f
...
...
@@ -1094,7 +1094,7 @@ int8_t find_ue(uint16_t rnti, PHY_VARS_eNB *eNB)
return(-1);
}
*/
int8_t
find_ue_NB_IoT
(
uint16_t
rnti
,
PHY_VARS_eNB
_NB_IoT
*
eNB
)
int8_t
find_ue_NB_IoT
(
uint16_t
rnti
,
PHY_VARS_eNB
*
eNB
)
{
uint8_t
i
;
...
...
openair1/SCHED/phy_procedures_lte_eNb_NB_IoT.c
View file @
5506e79f
...
...
@@ -712,10 +712,10 @@ void phy_procedures_eNB_uespec_RX_NB_IoT(PHY_VARS_eNB *eNB,eNB_rxtx_proc_t *proc
/////Generate eNB ndlsch params for NB-IoT from the NPDCCH PDU of the DCI, modify the input to the Sched Rsp variable////
*/
void
generate_eNB_dlsch_params_NB_IoT
(
PHY_VARS_eNB
_NB_IoT
*
eNB
,
eNB_rxtx_proc_t
*
proc
,
nfapi_dl_config_request_pdu_t
*
dl_config_pdu
)
void
generate_eNB_dlsch_params_NB_IoT
(
PHY_VARS_eNB
*
eNB
,
eNB_rxtx_proc_t
*
proc
,
nfapi_dl_config_request_pdu_t
*
dl_config_pdu
)
{
int
UE_id
=
-
1
;
NB_IoT_DL_FRAME_PARMS
*
fp
=
&
eNB
->
frame_parms_NB_IoT
;
LTE_DL_FRAME_PARMS
*
fp
=
&
eNB
->
frame_parms
;
int
frame
=
proc
->
frame_tx
;
int
subframe
=
proc
->
subframe_tx
;
DCI_CONTENT
*
DCI_Content
;
...
...
@@ -754,7 +754,7 @@ void generate_eNB_dlsch_params_NB_IoT(PHY_VARS_eNB_NB_IoT *eNB,eNB_rxtx_proc_t *
// fill the dlsch_ra_NB structure for RAR, and packed the DCI PDU
ndlsch
=
PHY_vars_eNB_g
[
0
][
0
]
->
ndlsch_RAR
;
ndlsch
=
eNB
->
ndlsch_RAR
;
ndlsch
->
ndlsch_type
=
RAR
;
//LOG_I(PHY,"Generating dlsch params for RA_RNTI and packing DCI\n");
...
...
@@ -846,7 +846,7 @@ void generate_eNB_dlsch_params_NB_IoT(PHY_VARS_eNB_NB_IoT *eNB,eNB_rxtx_proc_t *
void
generate_eNB_ulsch_params_NB_IoT
(
PHY_VARS_eNB
_NB_IoT
*
eNB
,
eNB_rxtx_proc_t
*
proc
,
nfapi_hi_dci0_request_pdu_t
*
hi_dci0_pdu
)
{
void
generate_eNB_ulsch_params_NB_IoT
(
PHY_VARS_eNB
*
eNB
,
eNB_rxtx_proc_t
*
proc
,
nfapi_hi_dci0_request_pdu_t
*
hi_dci0_pdu
)
{
int
UE_id
=
-
1
;
//int harq_pid = 0;
...
...
openair2/PHY_INTERFACE/IF_Module_L2_primitives_NB_IoT.c
View file @
5506e79f
...
...
@@ -78,7 +78,7 @@ void UL_indication_NB_IoT(UL_IND_NB_IoT_t *UL_INFO)
if
(
UL_INFO
->
hypersfn
==
1
&&
UL_INFO
->
frame
==
0
)
{
LOG_
I
(
MAC
,
"IF L2 hypersfn:%d frame: %d ,subframe: %d
\n
"
,
UL_INFO
->
hypersfn
,
UL_INFO
->
frame
,
UL_INFO
->
subframe
);
LOG_
D
(
MAC
,
"IF L2 hypersfn:%d frame: %d ,subframe: %d
\n
"
,
UL_INFO
->
hypersfn
,
UL_INFO
->
frame
,
UL_INFO
->
subframe
);
}
abs_subframe
=
UL_INFO
->
hypersfn
*
10240
+
UL_INFO
->
frame
*
10
+
UL_INFO
->
subframe
+
4
;
...
...
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