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
d1d5029f
Commit
d1d5029f
authored
May 23, 2017
by
Nick Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DCI_PDU_NB structure update, and add some stuff in NB_phy_prcoedures_TX
parent
bdf57bdc
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
58 additions
and
11 deletions
+58
-11
openair1/PHY/LTE_TRANSPORT/dci_nb_iot.h
openair1/PHY/LTE_TRANSPORT/dci_nb_iot.h
+2
-2
openair1/SCHED/phy_procedures_lte_eNb_nb_iot.c
openair1/SCHED/phy_procedures_lte_eNb_nb_iot.c
+54
-4
openair2/LAYER2/MAC/defs_nb_iot.h
openair2/LAYER2/MAC/defs_nb_iot.h
+1
-4
openair2/PHY_INTERFACE/IF_Module_nb_iot.h
openair2/PHY_INTERFACE/IF_Module_nb_iot.h
+1
-1
No files found.
openair1/PHY/LTE_TRANSPORT/dci_nb_iot.h
View file @
d1d5029f
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
#include <stdint.h>
#include <stdint.h>
#endif
#endif
typedef
enum
DCI_format_NB
typedef
enum
{
{
DCIFormatN0
=
0
,
DCIFormatN0
=
0
,
DCIFormatN1
,
DCIFormatN1
,
...
@@ -43,7 +43,7 @@ typedef enum DCI_format_NB
...
@@ -43,7 +43,7 @@ typedef enum DCI_format_NB
DCIFormatN1_RAR
,
DCIFormatN1_RAR
,
DCIFormatN2_Ind
,
DCIFormatN2_Ind
,
DCIFormatN2_Pag
,
DCIFormatN2_Pag
,
}
e_DCI_format_NB
;
}
DCI_format_NB_t
;
/// DCI Format Type 0 (180 kHz, 23 bits)
/// DCI Format Type 0 (180 kHz, 23 bits)
struct
DCIFormatN0
{
struct
DCIFormatN0
{
...
...
openair1/SCHED/phy_procedures_lte_eNb_nb_iot.c
View file @
d1d5029f
...
@@ -705,11 +705,15 @@ void NB_phy_procedures_eNB_TX(PHY_VARS_eNB *eNB,
...
@@ -705,11 +705,15 @@ void NB_phy_procedures_eNB_TX(PHY_VARS_eNB *eNB,
int
frame
=
proc
->
frame_tx
;
int
frame
=
proc
->
frame_tx
;
int
subframe
=
proc
->
subframe_tx
;
int
subframe
=
proc
->
subframe_tx
;
uint32_t
i
,
j
,
aa
;
uint32_t
i
,
j
,
aa
;
uint8_t
harq_pid
;
DCI_PDU_NB
*
DCI_pdu
;
DCI_PDU_NB
*
DCI_pdu
;
DCI_PDU_NB
DCI_pdu_tmp
;
DCI_PDU_NB
DCI_pdu_tmp
;
LTE_DL_FRAME_PARMS
*
fp
=
&
eNB
->
frame_parms
;
LTE_DL_FRAME_PARMS
*
fp
=
&
eNB
->
frame_parms
;
DCI_ALLOC_t
*
dci_alloc
=
(
DCI_ALLOC_t
*
)
NULL
;
DCI_ALLOC_t
*
dci_alloc
=
(
DCI_ALLOC_t
*
)
NULL
;
int
oai_exit
=
0
;
int
oai_exit
=
0
;
int8_t
UE_id
=
0
;
uint8_t
ul_subframe
;
uint32_t
ul_frame
;
//for NB-IoT
//for NB-IoT
...
@@ -745,17 +749,18 @@ void NB_phy_procedures_eNB_TX(PHY_VARS_eNB *eNB,
...
@@ -745,17 +749,18 @@ void NB_phy_procedures_eNB_TX(PHY_VARS_eNB *eNB,
{
{
/* Not test
/* Not test
yet
if(wait_on_condition(&proc->mutex_l2,&proc->cond_l2,&proc->instance_cnt_l2,"eNB_L2_thread") < 0)
if(wait_on_condition(&proc->mutex_l2,&proc->cond_l2,&proc->instance_cnt_l2,"eNB_L2_thread") < 0)
break;*/
break;*/
/*Take the structures from the shared structures*/
/*Take the structures from the shared structures*/
//Sched_Rsp = ;
//Sched_Rsp = ;
/*
DCI part
*/
/*
If there is a DCI, packed it after this procedure, we'll have a DCI PDU
*/
if
(
!
Sched_Rsp
.
pdu_payload
)
if
(
Sched_Rsp
.
DCI_Content
)
{
{
/*Packed DCI here*/
switch
(
Sched_Rsp
.
DCI_Format
)
switch
(
Sched_Rsp
.
DCI_Format
)
{
{
case
DCIFormatN0
:
case
DCIFormatN0
:
...
@@ -769,8 +774,53 @@ void NB_phy_procedures_eNB_TX(PHY_VARS_eNB *eNB,
...
@@ -769,8 +774,53 @@ void NB_phy_procedures_eNB_TX(PHY_VARS_eNB *eNB,
}
}
}
}
/*clear the existing ulsch dci allocations before applying info from MAC*/
ul_subframe
=
(
subframe
+
4
)
%
10
;
ul_frame
=
frame
+
(
ul_subframe
>=
6
?
1
:
0
);
harq_pid
=
((
ul_frame
<<
1
)
+
ul_subframe
)
&
7
;
/*clear the DCI allocation maps for new subframe*/
for
(
i
=
0
;
i
<
NUMBER_OF_UE_MAX
;
i
++
)
{
if
(
eNB
->
ulsch
[
i
])
{
eNB
->
ulsch
[
i
]
->
harq_processes
[
harq_pid
]
->
dci_alloc
=
0
;
eNB
->
ulsch
[
i
]
->
harq_processes
[
harq_pid
]
->
rar_alloc
=
0
;
}
}
/*clear previous allocation information for all UEs*/
for
(
i
=
0
;
i
<
NUMBER_OF_UE_MAX
;
i
++
)
{
if
(
eNB
->
dlsch
[
i
][
0
])
eNB
->
dlsch
[
i
][
0
]
->
subframe_tx
[
subframe
]
=
0
;
}
/*remove the part save old HARQ information for PHICH generation*/
/*Loop over all the dci to generate DLSCH allocation, there is only 1 DCI for NB-IoT in the same time*/
dci_alloc
=
&
DCI_pdu
->
dci_alloc
[
i
];
if
((
dci_alloc
->
rnti
<=
P_RNTI
)
&&
(
dci_alloc
->
ra_flag
!=
1
))
{
UE_id
=
find_ue
((
int16_t
)
dci_alloc
->
rnti
,
eNB
);
}
else
UE_id
=
0
;
generate_eNB_dlsch_params
(
eNB
,
proc
,
dci_alloc
,
UE_id
);
// Apply physicalConfigDedicated if needed, don't know if needed in NB-IoT or not
// This is for UEs that have received this IE, which changes these DL and UL configuration, we apply after a delay for the eNodeB UL parameters
//phy_config_dedicated_eNB_step2(eNB);
dci_alloc
=
&
DCI_pdu
->
dci_alloc
[
i
];
if
(
dci_alloc
->
format
==
DCIFormatN0
)
// this is a ULSCH allocation
{
UE_id
=
find_ue
((
int16_t
)
dci_alloc
->
rnti
,
eNB
);
generate_eNB_ulsch_params
(
eNB
,
proc
,
dci_alloc
,
UE_id
);
}
/*UE specific DLSCH*/
}
}
...
...
openair2/LAYER2/MAC/defs_nb_iot.h
View file @
d1d5029f
...
@@ -416,10 +416,7 @@ typedef struct {
...
@@ -416,10 +416,7 @@ typedef struct {
}
__attribute__
((
__packed__
))
POWER_HEADROOM_CMD_NB
;
}
__attribute__
((
__packed__
))
POWER_HEADROOM_CMD_NB
;
typedef
struct
{
typedef
struct
{
uint8_t
Num_ue_spec_dci
;
//delete the count for the DCI numbers and symbols,NUM_DCI_MAX should set to 1
uint8_t
Num_common_dci
;
// uint32_t nCCE;
uint32_t
num_pdcch_symbols
;
DCI_ALLOC_t
dci_alloc
[
NUM_DCI_MAX
]
;
DCI_ALLOC_t
dci_alloc
[
NUM_DCI_MAX
]
;
}
DCI_PDU_NB
;
}
DCI_PDU_NB
;
typedef
struct
{
typedef
struct
{
...
...
openair2/PHY_INTERFACE/IF_Module_nb_iot.h
View file @
d1d5029f
...
@@ -83,7 +83,7 @@ typedef struct{
...
@@ -83,7 +83,7 @@ typedef struct{
// Format of DCI
// Format of DCI
uint8_t
DCI_Format
;
uint8_t
DCI_Format
;
// Content of DCI
// Content of DCI
DCI_CONTENT
DCI_Content
;
void
*
DCI_Content
;
}
Sched_Rsp_t
;
}
Sched_Rsp_t
;
...
...
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