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
bd903cfe
Commit
bd903cfe
authored
Jun 06, 2017
by
Nick Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modify IF Module to fit the FAPI Specification
parent
28991862
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
263 additions
and
424 deletions
+263
-424
openair1/SCHED/phy_procedures_lte_eNb_nb_iot.c
openair1/SCHED/phy_procedures_lte_eNb_nb_iot.c
+199
-402
openair2/LAYER2/MAC/IF_Module_nb_iot.c
openair2/LAYER2/MAC/IF_Module_nb_iot.c
+15
-5
openair2/PHY_INTERFACE/IF_Module_nb_iot.h
openair2/PHY_INTERFACE/IF_Module_nb_iot.h
+45
-17
record.txt
record.txt
+4
-0
No files found.
openair1/SCHED/phy_procedures_lte_eNb_nb_iot.c
View file @
bd903cfe
This diff is collapsed.
Click to expand it.
openair2/LAYER2/MAC/IF_Module_nb_iot.c
View file @
bd903cfe
...
...
@@ -9,19 +9,29 @@ void UL_indication(UL_IND_t UL_INFO)
if
(
UL_INFO
.
test
==
1
)
{
/*If there is a preamble, do the initiate RA procedure*/
if
(
UL_INFO
.
preamble_index
&&
UL_INFO
.
timing_offset
)
NB_initiate_ra_proc
(
UL_INFO
.
module_id
,
UL_INFO
.
CC_id
,
UL_INFO
.
frame
,
UL_INFO
.
preamble_index
,
UL_INFO
.
timing_offset
,
UL_INFO
.
subframe
);
if
(
UL_INFO
.
Number_SC
>
0
)
{
for
(
i
=
0
;
i
<
UL_INFO
.
Number_SC
;
i
++
)
{
NB_initiate_ra_proc
(
UL_INFO
.
module_id
,
UL_INFO
.
CC_id
,
UL_INFO
.
frame
,
UL_INFO
.
Preamble_list
[
UL_INFO
.
Number_SC
].
preamble_index
,
UL_INFO
.
Preamble_list
[
UL_INFO
.
Number_SC
].
timing_offset
,
UL_INFO
.
subframe
);
}
}
/*If there is a Uplink SDU (even MSG3, NAK) need to send to MAC*/
for
(
i
=
0
;
i
<
UL_INFO
.
UE_NUM
;
i
++
)
{
/*For MSG3, Normal Uplink Data, NAK*/
if
(
UL_INFO
.
UL_SPEC_Info
[
i
].
rntiP
)
if
(
UL_INFO
.
UL_SPEC_Info
[
i
].
RNTI
)
NB_rx_sdu
(
UL_INFO
.
module_id
,
UL_INFO
.
CC_id
,
UL_INFO
.
frame
,
UL_INFO
.
subframe
,
UL_INFO
.
UL_SPEC_Info
[
i
].
rntiP
,
UL_INFO
.
UL_SPEC_Info
[
i
].
RNTI
,
UL_INFO
.
UL_SPEC_Info
[
i
].
sdu
,
UL_INFO
.
UL_SPEC_Info
[
i
].
sdu_lenP
,
UL_INFO
.
UL_SPEC_Info
[
i
].
harq_pidP
,
...
...
openair2/PHY_INTERFACE/IF_Module_nb_iot.h
View file @
bd903cfe
...
...
@@ -15,14 +15,33 @@
// uplink subframe P7
typedef
struct
{
//index of the preamble, detected initial subcarrier (0-47)
uint16_t
preamble_index
;
//timing offset by PHY
int16_t
timing_offset
;
//Indicates the NRACH CE level as configured in CONFIG (0,1,2 = CE level 0,1,2)
uint8_t
NRACH_CE_Level
;
//RA-RNTI
uint16_t
RNTI
;
//Timing Advance
uint16_t
TA
;
}
NRACH_t
;
/*UL_SPEC_t:
* A struture mainly describes the UE specific information. (for NB_rx_sdu)
* Corresponding to th
h
e RX_ULSCH.indication, CRC.inidcation, NB_HARQ.indication in FAPI
* Corresponding to the RX_ULSCH.indication, CRC.inidcation, NB_HARQ.indication in FAPI
*/
typedef
struct
{
// 0 = format 1 (data), 1 = formaat 2 (ACK/NACK)
uint8_t
NPUSCH_format
;
//An opaque handling returned in the RX.indication
uint32_t
OPA_handle
;
//rnti
rnti_t
rntiP
;
uint16_t
RNTI
;
//Pointer to sdu
uint8_t
*
sdu
;
//Pointer to sdu length
...
...
@@ -34,11 +53,12 @@ typedef struct{
//CRC indication for the message is corrected or not for the Uplink HARQ
uint8_t
crc_ind
;
//This ACK NACK is for the Downlink HARQ received by the NPUSCH from UE
//This ACK NACK is for the Downlink HARQ
feedback
received by the NPUSCH from UE
uint8_t
NAK
;
}
UL_SPEC_t
;
/*UL_IND_t:
* A structure handles all the uplink information.
*/
...
...
@@ -47,6 +67,7 @@ typedef struct{
/*Start at the common part*/
int
test
;
//Module ID
module_id_t
module_id
;
//CC ID
...
...
@@ -55,25 +76,26 @@ typedef struct{
frame_t
frame
;
//subframe
sub_frame_t
subframe
;
//Number of availble UE
int
UE_NUM
;
/*preamble part*/
//
index of the preambl
e
uint
16_t
preamble_index
;
//
timing offset by PHY
int16_t
timing_offset
;
//
number of the subcarrier detected in the same tim
e
uint
8_t
Number_SC
;
//
NRACH Indication parameters list
NRACH_t
Preamble_list
[
48
]
;
/*UE specific part*/
//Number of availble UE for Uplink
int
UE_NUM
;
//Uplink Schedule information
UL_SPEC_t
UL_SPEC_Info
[
NUMBER_OF_UE_MAX
];
}
UL_IND_t
;
// Downlink subframe P7
typedef
union
{
typedef
struct
{
//The length (in bytes)
uint16_t
Length
;
...
...
@@ -88,7 +110,7 @@ typedef struct{
}
npbch_t
;
typedef
union
{
typedef
struct
{
//The length (in bytes)
uint16_t
Length
;
...
...
@@ -107,7 +129,7 @@ typedef struct{
}
npdsch_t
;
typedef
union
{
typedef
struct
{
// The length (in bytes)
uint16_t
Length
;
...
...
@@ -136,6 +158,16 @@ typedef struct{
}
npdcch_t
;
typedef
union
{
npdcch_t
NB_DCI
;
npdsch_t
NB_DLSCH
;
npbch_t
NB_BCH
;
}
NB_DL_u
;
typedef
struct
{
...
...
@@ -150,11 +182,7 @@ typedef struct{
//subframe
sub_frame_t
subframeP
;
npdcch_t
NB_DCI
;
npdsch_t
NB_DLSCH
;
npbch_t
NB_BCH
;
NB_DL_u
NB_DL
;
}
Sched_Rsp_t
;
...
...
record.txt
View file @
bd903cfe
...
...
@@ -80,3 +80,7 @@ Comment: Complete the TX part, add the NB_generate_eNB_dlsch_params and NB_gener
Comment: Complete the dci_tools the part configuring the PHY and do the pack of dci at the same times.
Add DCI packed format in dci_nb_iot.h
6/6
Comment: Update the IF Module header file to fit the FAPI structure and types.
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