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
spbro
OpenXG-RAN
Commits
d6d7064c
Commit
d6d7064c
authored
Sep 03, 2024
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A3 Event is for a PCI: Rename variable to make this clear
parent
fde10b92
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
16 deletions
+15
-16
ci-scripts/conf_files/neighbour-config.conf
ci-scripts/conf_files/neighbour-config.conf
+2
-2
openair2/GNB_APP/gnb_config.c
openair2/GNB_APP/gnb_config.c
+2
-2
openair2/GNB_APP/gnb_paramdef.h
openair2/GNB_APP/gnb_paramdef.h
+3
-3
openair2/RRC/NR/MESSAGES/asn1_msg.c
openair2/RRC/NR/MESSAGES/asn1_msg.c
+6
-7
openair2/RRC/NR/MESSAGES/asn1_msg.h
openair2/RRC/NR/MESSAGES/asn1_msg.h
+1
-1
openair2/RRC/NR/nr_rrc_defs.h
openair2/RRC/NR/nr_rrc_defs.h
+1
-1
No files found.
ci-scripts/conf_files/neighbour-config.conf
View file @
d6d7064c
...
...
@@ -62,12 +62,12 @@ nr_measurement_configuration = {
};
A3
= ({
cell_i
d
= -
1
;
#Default
physCellI
d
= -
1
;
#Default
offset
=
10
;
hysteresis
=
0
;
timeToTrigger
=
1
}, {
cell_i
d
=
2
;
physCellI
d
=
2
;
offset
=
5
;
hysteresis
=
1
;
timeToTrigger
=
2
...
...
openair2/GNB_APP/gnb_config.c
View file @
d6d7064c
...
...
@@ -1696,12 +1696,12 @@ static void fill_measurement_configuration(uint8_t gnb_idx, gNB_RRC_INST *rrc)
for
(
int
i
=
0
;
i
<
A3_EventList
.
numelt
;
i
++
)
{
nr_a3_event_t
*
a3_event
=
(
nr_a3_event_t
*
)
calloc
(
1
,
sizeof
(
nr_a3_event_t
));
AssertFatal
(
a3_event
!=
NULL
,
"out of memory
\n
"
);
a3_event
->
cell_id
=
*
A3_EventList
.
paramarray
[
i
][
MEASUREMENT_EVENTS_CELL
_ID_IDX
].
i64ptr
;
a3_event
->
pci
=
*
A3_EventList
.
paramarray
[
i
][
MEASUREMENT_EVENTS_PCI
_ID_IDX
].
i64ptr
;
a3_event
->
timeToTrigger
=
*
A3_EventList
.
paramarray
[
i
][
MEASUREMENT_EVENTS_TIMETOTRIGGER_IDX
].
i64ptr
;
a3_event
->
a3_offset
=
*
A3_EventList
.
paramarray
[
i
][
MEASUREMENT_EVENTS_OFFSET_IDX
].
i64ptr
;
a3_event
->
hysteresis
=
*
A3_EventList
.
paramarray
[
i
][
MEASUREMENT_EVENTS_HYSTERESIS_IDX
].
i64ptr
;
if
(
a3_event
->
cell_id
==
-
1
)
if
(
a3_event
->
pci
==
-
1
)
measurementConfig
->
is_default_a3_configuration_exists
=
true
;
seq_arr_push_back
(
measurementConfig
->
a3_event_list
,
a3_event
,
sizeof
(
nr_a3_event_t
));
...
...
openair2/GNB_APP/gnb_paramdef.h
View file @
d6d7064c
...
...
@@ -324,12 +324,12 @@ typedef enum {
#define MEASUREMENT_EVENTS_THRESHOLD "threshold"
#define MEASUREMENT_EVENTS_PERIODICAL_BEAM_MEASUREMENT "includeBeamMeasurements"
#define MEASUREMENT_EVENTS_PERIODICAL_NR_OF_RS_INDEXES "maxNrofRS_IndexesToReport"
#define MEASUREMENT_EVENTS_
CELL_ID "cell_i
d"
#define MEASUREMENT_EVENTS_
PCI_ID "physCellI
d"
#define MEASUREMENT_EVENT_ENABLE "enable"
// clang-format off
#define MEASUREMENT_A3_GLOBALPARAMS_DESC \
{ \
{MEASUREMENT_EVENTS_
CELL_ID, "neighbour cellId
for A3Report", 0, .i64ptr = NULL, .defint64val = -1, TYPE_INT64, 0}, \
{MEASUREMENT_EVENTS_
PCI_ID, "neighbour PCI
for A3Report", 0, .i64ptr = NULL, .defint64val = -1, TYPE_INT64, 0}, \
{MEASUREMENT_EVENTS_TIME_TO_TRIGGER, "a3 time to trigger", 0, .i64ptr = NULL, .defint64val = 1, TYPE_INT64, 0}, \
{MEASUREMENT_EVENTS_OFFSET, "a3 offset", 0, .i64ptr = NULL, .defint64val = 60, TYPE_INT64, 0}, \
{MEASUREMENT_EVENTS_HYSTERESIS, "a3 hysteresis", 0, .i64ptr = NULL, .defint64val = 0, TYPE_INT64, 0}, \
...
...
@@ -350,7 +350,7 @@ typedef enum {
}
// clang-format on
#define MEASUREMENT_EVENTS_
CELL
_ID_IDX 0
#define MEASUREMENT_EVENTS_
PCI
_ID_IDX 0
#define MEASUREMENT_EVENTS_ENABLE_IDX 0
#define MEASUREMENT_EVENTS_TIMETOTRIGGER_IDX 1
#define MEASUREMENT_EVENTS_A2_THRESHOLD_IDX 2
...
...
openair2/RRC/NR/MESSAGES/asn1_msg.c
View file @
d6d7064c
...
...
@@ -1165,10 +1165,9 @@ static NR_ReportConfigToAddMod_t *prepare_a2_event_report(const nr_a2_event_t *a
static
NR_ReportConfigToAddMod_t
*
prepare_a3_event_report
(
const
nr_a3_event_t
*
a3_event
)
{
NR_ReportConfigToAddMod_t
*
rc_A3
=
calloc
(
1
,
sizeof
(
*
rc_A3
));
rc_A3
->
reportConfigId
=
a3_event
->
cell_id
==
-
1
?
3
:
a3_event
->
cell_id
+
4
;
// 3 is default A3 Report Config ID. So cellId(0) specific Report Config ID starts from 4
// 3 is default A3 Report Config ID. So cellId(0) specific Report Config ID
// starts from 4
rc_A3
->
reportConfigId
=
a3_event
->
pci
==
-
1
?
3
:
a3_event
->
pci
+
4
;
rc_A3
->
reportConfig
.
present
=
NR_ReportConfigToAddMod__reportConfig_PR_reportConfigNR
;
NR_EventTriggerConfig_t
*
etrc_A3
=
calloc
(
1
,
sizeof
(
*
etrc_A3
));
etrc_A3
->
eventId
.
present
=
NR_EventTriggerConfig__eventId_PR_eventA3
;
...
...
@@ -1194,7 +1193,7 @@ static NR_ReportConfigToAddMod_t *prepare_a3_event_report(const nr_a3_event_t *a
return
rc_A3
;
}
const
nr_a3_event_t
*
get_a3_configuration
(
int
nr_cellid
)
const
nr_a3_event_t
*
get_a3_configuration
(
int
pci
)
{
gNB_RRC_INST
*
rrc
=
RC
.
nrrrc
[
0
];
nr_measurement_configuration_t
*
measurementConfiguration
=
&
rrc
->
measurementConfiguration
;
...
...
@@ -1203,7 +1202,7 @@ const nr_a3_event_t *get_a3_configuration(int nr_cellid)
for
(
uint8_t
i
=
0
;
i
<
measurementConfiguration
->
a3_event_list
->
size
;
i
++
)
{
nr_a3_event_t
*
a3_event
=
(
nr_a3_event_t
*
)
seq_arr_at
(
measurementConfiguration
->
a3_event_list
,
i
);
if
(
a3_event
->
cell_id
==
nr_cellid
)
if
(
a3_event
->
pci
==
pci
)
return
a3_event
;
}
...
...
@@ -1266,7 +1265,7 @@ NR_MeasConfig_t *get_MeasConfig(const NR_MeasTiming_t *mt,
if
(
!
a3Event
||
is_default_a3_added
)
continue
;
if
(
a3Event
->
cell_id
==
-
1
)
if
(
a3Event
->
pci
==
-
1
)
is_default_a3_added
=
true
;
NR_ReportConfigToAddMod_t
*
rc_A3
=
prepare_a3_event_report
(
a3Event
);
...
...
openair2/RRC/NR/MESSAGES/asn1_msg.h
View file @
d6d7064c
...
...
@@ -143,7 +143,7 @@ int do_RRCReestablishment(rrc_gNB_ue_context_t *const ue_context_pP,
int
do_RRCReestablishmentComplete
(
uint8_t
*
buffer
,
size_t
buffer_size
,
int64_t
rrc_TransactionIdentifier
);
const
nr_a3_event_t
*
get_a3_configuration
(
int
nr_cellid
);
const
nr_a3_event_t
*
get_a3_configuration
(
int
pci
);
NR_MeasConfig_t
*
get_MeasConfig
(
const
NR_MeasTiming_t
*
mt
,
int
band
,
int
scs
,
...
...
openair2/RRC/NR/nr_rrc_defs.h
View file @
d6d7064c
...
...
@@ -342,7 +342,7 @@ typedef struct {
}
nr_a2_event_t
;
typedef
struct
{
int
cell_id
;
int
pci
;
long
a3_offset
;
long
hysteresis
;
long
timeToTrigger
;
...
...
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