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
wangwenhui
OpenXG-RAN
Commits
02532d04
Commit
02532d04
authored
Jul 04, 2019
by
wujing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x2 handover for tdd
parent
67293964
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
219 additions
and
18 deletions
+219
-18
openair2/COMMON/x2ap_messages_types.h
openair2/COMMON/x2ap_messages_types.h
+2
-0
openair2/ENB_APP/enb_config.c
openair2/ENB_APP/enb_config.c
+2
-0
openair2/LAYER2/MAC/config.c
openair2/LAYER2/MAC/config.c
+16
-16
openair2/RRC/LTE/rrc_eNB.c
openair2/RRC/LTE/rrc_eNB.c
+25
-0
openair2/X2AP/x2ap_eNB_defs.h
openair2/X2AP/x2ap_eNB_defs.h
+2
-0
openair2/X2AP/x2ap_eNB_generate_messages.c
openair2/X2AP/x2ap_eNB_generate_messages.c
+172
-2
No files found.
openair2/COMMON/x2ap_messages_types.h
View file @
02532d04
...
@@ -95,6 +95,8 @@ typedef struct x2ap_register_enb_req_s {
...
@@ -95,6 +95,8 @@ typedef struct x2ap_register_enb_req_s {
lte_frame_type_t
frame_type
[
MAX_NUM_CCs
];
lte_frame_type_t
frame_type
[
MAX_NUM_CCs
];
uint32_t
fdd_earfcn_DL
[
MAX_NUM_CCs
];
uint32_t
fdd_earfcn_DL
[
MAX_NUM_CCs
];
uint32_t
fdd_earfcn_UL
[
MAX_NUM_CCs
];
uint32_t
fdd_earfcn_UL
[
MAX_NUM_CCs
];
uint32_t
subframeAssignment
[
MAX_NUM_CCs
];
uint32_t
specialSubframe
[
MAX_NUM_CCs
];
int
num_cc
;
int
num_cc
;
/* To be considered for TDD */
/* To be considered for TDD */
...
...
openair2/ENB_APP/enb_config.c
View file @
02532d04
...
@@ -2511,6 +2511,8 @@ int RCconfig_X2(MessageDef *msg_p, uint32_t i) {
...
@@ -2511,6 +2511,8 @@ int RCconfig_X2(MessageDef *msg_p, uint32_t i) {
X2AP_REGISTER_ENB_REQ
(
msg_p
).
frame_type
[
J
]
=
FDD
;
X2AP_REGISTER_ENB_REQ
(
msg_p
).
frame_type
[
J
]
=
FDD
;
}
else
if
(
strcmp
(
ccparams_lte
.
frame_type
,
"TDD"
)
==
0
)
{
}
else
if
(
strcmp
(
ccparams_lte
.
frame_type
,
"TDD"
)
==
0
)
{
X2AP_REGISTER_ENB_REQ
(
msg_p
).
frame_type
[
J
]
=
TDD
;
X2AP_REGISTER_ENB_REQ
(
msg_p
).
frame_type
[
J
]
=
TDD
;
X2AP_REGISTER_ENB_REQ
(
msg_p
).
subframeAssignment
[
J
]
=
ccparams_lte
.
tdd_config
;
X2AP_REGISTER_ENB_REQ
(
msg_p
).
specialSubframe
[
J
]
=
ccparams_lte
.
tdd_config_s
;
}
else
{
}
else
{
AssertFatal
(
0
,
AssertFatal
(
0
,
"Failed to parse eNB configuration file %s, enb %d unknown value
\"
%s
\"
for frame_type choice: FDD or TDD !
\n
"
,
"Failed to parse eNB configuration file %s, enb %d unknown value
\"
%s
\"
for frame_type choice: FDD or TDD !
\n
"
,
...
...
openair2/LAYER2/MAC/config.c
View file @
02532d04
...
@@ -113,22 +113,22 @@ static const eutra_bandentry_t eutra_bandtable[] = {
...
@@ -113,22 +113,22 @@ static const eutra_bandentry_t eutra_bandtable[] = {
{
30
,
23050
,
23250
,
23500
,
23600
,
97700
},
{
30
,
23050
,
23250
,
23500
,
23600
,
97700
},
{
31
,
45250
,
34900
,
46250
,
35900
,
98700
},
{
31
,
45250
,
34900
,
46250
,
35900
,
98700
},
{
32
,
0
,
0
,
14520
,
14960
,
99200
},
{
32
,
0
,
0
,
14520
,
14960
,
99200
},
{
33
,
19000
,
19200
,
19000
,
19200
,
36000
},
{
33
,
19000
,
19200
,
19000
,
19200
,
36000
0
},
{
34
,
20100
,
20250
,
20100
,
20250
,
36200
},
{
34
,
20100
,
20250
,
20100
,
20250
,
36200
0
},
{
35
,
18500
,
19100
,
18500
,
19100
,
36350
},
{
35
,
18500
,
19100
,
18500
,
19100
,
36350
0
},
{
36
,
19300
,
19900
,
19300
,
19900
,
36950
},
{
36
,
19300
,
19900
,
19300
,
19900
,
36950
0
},
{
37
,
19100
,
19300
,
19100
,
19300
,
37550
},
{
37
,
19100
,
19300
,
19100
,
19300
,
37550
0
},
{
38
,
25700
,
26200
,
25700
,
26300
,
37750
},
{
38
,
25700
,
26200
,
25700
,
26300
,
37750
0
},
{
39
,
18800
,
19200
,
18800
,
19200
,
38250
},
{
39
,
18800
,
19200
,
18800
,
19200
,
38250
0
},
{
40
,
23000
,
24000
,
23000
,
24000
,
38650
},
{
40
,
23000
,
24000
,
23000
,
24000
,
38650
0
},
{
41
,
24960
,
26900
,
24960
,
26900
,
39650
},
{
41
,
24960
,
26900
,
24960
,
26900
,
39650
0
},
{
42
,
34000
,
36000
,
34000
,
36000
,
41590
},
{
42
,
34000
,
36000
,
34000
,
36000
,
41590
0
},
{
43
,
36000
,
38000
,
36000
,
38000
,
43590
},
{
43
,
36000
,
38000
,
36000
,
38000
,
43590
0
},
{
44
,
7030
,
8030
,
7030
,
8030
,
45590
},
{
44
,
7030
,
8030
,
7030
,
8030
,
45590
0
},
{
45
,
14470
,
14670
,
14470
,
14670
,
46590
},
{
45
,
14470
,
14670
,
14470
,
14670
,
46590
0
},
{
46
,
51500
,
59250
,
51500
,
59250
,
46790
},
{
46
,
51500
,
59250
,
51500
,
59250
,
46790
0
},
{
65
,
19200
,
20100
,
21100
,
22000
,
65536
},
{
65
,
19200
,
20100
,
21100
,
22000
,
65536
0
},
{
66
,
17100
,
18000
,
21100
,
22000
,
66436
},
{
66
,
17100
,
18000
,
21100
,
22000
,
66436
0
},
{
67
,
0
,
0
,
7380
,
7580
,
67336
},
{
67
,
0
,
0
,
7380
,
7580
,
67336
},
{
68
,
6980
,
7280
,
7530
,
7830
,
67536
}
{
68
,
6980
,
7280
,
7530
,
7830
,
67536
}
};
};
...
...
openair2/RRC/LTE/rrc_eNB.c
View file @
02532d04
...
@@ -3898,6 +3898,31 @@ flexran_rrc_eNB_generate_defaultRRCConnectionReconfiguration(const protocol_ctxt
...
@@ -3898,6 +3898,31 @@ flexran_rrc_eNB_generate_defaultRRCConnectionReconfiguration(const protocol_ctxt
MeasObj
->
measObject
.
choice
.
measObjectEUTRA
.
neighCellConfig
.
size
=
1
;
MeasObj
->
measObject
.
choice
.
measObjectEUTRA
.
neighCellConfig
.
size
=
1
;
MeasObj
->
measObject
.
choice
.
measObjectEUTRA
.
neighCellConfig
.
bits_unused
=
6
;
MeasObj
->
measObject
.
choice
.
measObjectEUTRA
.
neighCellConfig
.
bits_unused
=
6
;
MeasObj
->
measObject
.
choice
.
measObjectEUTRA
.
offsetFreq
=
NULL
;
// Default is 15 or 0dB
MeasObj
->
measObject
.
choice
.
measObjectEUTRA
.
offsetFreq
=
NULL
;
// Default is 15 or 0dB
if
(
rrc_inst
->
carrier
[
0
].
sib1
->
tdd_Config
!=
NULL
)
{
MeasObj
->
measObject
.
choice
.
measObjectEUTRA
.
ext1
=
CALLOC
(
1
,
sizeof
(
struct
LTE_MeasObjectEUTRA__ext1
));
MeasObj
->
measObject
.
choice
.
measObjectEUTRA
.
ext1
->
measCycleSCell_r10
=
NULL
;
MeasObj
->
measObject
.
choice
.
measObjectEUTRA
.
ext1
->
measSubframePatternConfigNeigh_r10
=
CALLOC
(
1
,
sizeof
(
struct
LTE_MeasSubframePatternConfigNeigh_r10
));
MeasObj
->
measObject
.
choice
.
measObjectEUTRA
.
ext1
->
measSubframePatternConfigNeigh_r10
->
present
=
LTE_MeasSubframePatternConfigNeigh_r10_PR_setup
;
MeasObj
->
measObject
.
choice
.
measObjectEUTRA
.
ext1
->
measSubframePatternConfigNeigh_r10
->
choice
.
setup
.
measSubframePatternNeigh_r10
.
present
=
LTE_MeasSubframePattern_r10_PR_subframePatternTDD_r10
;
MeasObj
->
measObject
.
choice
.
measObjectEUTRA
.
ext1
->
measSubframePatternConfigNeigh_r10
->
choice
.
setup
.
measSubframePatternNeigh_r10
.
choice
.
subframePatternTDD_r10
.
present
=
LTE_MeasSubframePattern_r10__subframePatternTDD_r10_PR_subframeConfig1_5_r10
;
MeasObj
->
measObject
.
choice
.
measObjectEUTRA
.
ext1
->
measSubframePatternConfigNeigh_r10
->
choice
.
setup
.
measSubframePatternNeigh_r10
.
choice
.
subframePatternTDD_r10
.
choice
.
subframeConfig1_5_r10
.
buf
=
CALLOC
(
3
,
sizeof
(
uint8_t
));
MeasObj
->
measObject
.
choice
.
measObjectEUTRA
.
ext1
->
measSubframePatternConfigNeigh_r10
->
choice
.
setup
.
measSubframePatternNeigh_r10
.
choice
.
subframePatternTDD_r10
.
choice
.
subframeConfig1_5_r10
.
size
=
3
;
MeasObj
->
measObject
.
choice
.
measObjectEUTRA
.
ext1
->
measSubframePatternConfigNeigh_r10
->
choice
.
setup
.
measSubframePatternNeigh_r10
.
choice
.
subframePatternTDD_r10
.
choice
.
subframeConfig1_5_r10
.
bits_unused
=
4
;
switch
(
rrc_inst
->
carrier
[
0
].
sib1
->
tdd_Config
->
subframeAssignment
)
{
case
1
:
//subframe 0,4,5,9
MeasObj
->
measObject
.
choice
.
measObjectEUTRA
.
ext1
->
measSubframePatternConfigNeigh_r10
->
choice
.
setup
.
measSubframePatternNeigh_r10
.
choice
.
subframePatternTDD_r10
.
choice
.
subframeConfig1_5_r10
.
buf
[
0
]
=
0x8C
;
MeasObj
->
measObject
.
choice
.
measObjectEUTRA
.
ext1
->
measSubframePatternConfigNeigh_r10
->
choice
.
setup
.
measSubframePatternNeigh_r10
.
choice
.
subframePatternTDD_r10
.
choice
.
subframeConfig1_5_r10
.
buf
[
1
]
=
0x63
;
MeasObj
->
measObject
.
choice
.
measObjectEUTRA
.
ext1
->
measSubframePatternConfigNeigh_r10
->
choice
.
setup
.
measSubframePatternNeigh_r10
.
choice
.
subframePatternTDD_r10
.
choice
.
subframeConfig1_5_r10
.
buf
[
2
]
=
0x10
;
break
;
default:
//subframe 0 , 5
MeasObj
->
measObject
.
choice
.
measObjectEUTRA
.
ext1
->
measSubframePatternConfigNeigh_r10
->
choice
.
setup
.
measSubframePatternNeigh_r10
.
choice
.
subframePatternTDD_r10
.
choice
.
subframeConfig1_5_r10
.
buf
[
0
]
=
0x84
;
MeasObj
->
measObject
.
choice
.
measObjectEUTRA
.
ext1
->
measSubframePatternConfigNeigh_r10
->
choice
.
setup
.
measSubframePatternNeigh_r10
.
choice
.
subframePatternTDD_r10
.
choice
.
subframeConfig1_5_r10
.
buf
[
1
]
=
0x21
;
MeasObj
->
measObject
.
choice
.
measObjectEUTRA
.
ext1
->
measSubframePatternConfigNeigh_r10
->
choice
.
setup
.
measSubframePatternNeigh_r10
.
choice
.
subframePatternTDD_r10
.
choice
.
subframeConfig1_5_r10
.
buf
[
2
]
=
0x00
;
break
;
}
}
MeasObj
->
measObject
.
choice
.
measObjectEUTRA
.
cellsToAddModList
=
MeasObj
->
measObject
.
choice
.
measObjectEUTRA
.
cellsToAddModList
=
(
LTE_CellsToAddModList_t
*
)
CALLOC
(
1
,
sizeof
(
*
CellsToAddModList
));
(
LTE_CellsToAddModList_t
*
)
CALLOC
(
1
,
sizeof
(
*
CellsToAddModList
));
CellsToAddModList
=
MeasObj
->
measObject
.
choice
.
measObjectEUTRA
.
cellsToAddModList
;
CellsToAddModList
=
MeasObj
->
measObject
.
choice
.
measObjectEUTRA
.
cellsToAddModList
;
...
...
openair2/X2AP/x2ap_eNB_defs.h
View file @
02532d04
...
@@ -173,6 +173,8 @@ typedef struct x2ap_eNB_instance_s {
...
@@ -173,6 +173,8 @@ typedef struct x2ap_eNB_instance_s {
lte_frame_type_t
frame_type
[
MAX_NUM_CCs
];
lte_frame_type_t
frame_type
[
MAX_NUM_CCs
];
uint32_t
fdd_earfcn_DL
[
MAX_NUM_CCs
];
uint32_t
fdd_earfcn_DL
[
MAX_NUM_CCs
];
uint32_t
fdd_earfcn_UL
[
MAX_NUM_CCs
];
uint32_t
fdd_earfcn_UL
[
MAX_NUM_CCs
];
uint32_t
subframeAssignment
[
MAX_NUM_CCs
];
uint32_t
specialSubframe
[
MAX_NUM_CCs
];
int
num_cc
;
int
num_cc
;
net_ip_address_t
target_enb_x2_ip_address
[
X2AP_MAX_NB_ENB_IP_ADDRESS
];
net_ip_address_t
target_enb_x2_ip_address
[
X2AP_MAX_NB_ENB_IP_ADDRESS
];
...
...
openair2/X2AP/x2ap_eNB_generate_messages.c
View file @
02532d04
This diff is collapsed.
Click to expand it.
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